diff options
| author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-11-24 04:03:47 +0000 |
|---|---|---|
| committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-11-24 04:03:47 +0000 |
| commit | be810475a6fde7bac850b1e297dc113cd3d3dd3b (patch) | |
| tree | 5b9691d071b9ef3841c01d744be7e8d14f31f2ed /src/itdb.h | |
| parent | 58934f71261254a236a1f736e360001d3912624e (diff) | |
| download | libgpod-be810475a6fde7bac850b1e297dc113cd3d3dd3b.tar.gz libgpod-be810475a6fde7bac850b1e297dc113cd3d3dd3b.tar.xz libgpod-be810475a6fde7bac850b1e297dc113cd3d3dd3b.zip | |
* src/itdb.h
src/itdb_photoalbum.c (itdb_photodb_add_photo,
itdb_photodb_add_photo_from_data,
itdb_photodb_photoalbum_add_photo): add 'position' where photo
should be inserted.
* tests/test-photos.c: implemented new API (append at the end).
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1339 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb.h')
| -rw-r--r-- | src/itdb.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* Time-stamp: <2006-11-23 23:27:35 jcs> +/* Time-stamp: <2006-11-24 12:57:54 jcs> | | Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -1005,15 +1005,18 @@ void itdb_track_remove_thumbnails (Itdb_Track *track); * how to use. */ Itdb_PhotoDB *itdb_photodb_parse (const gchar *mp, GError **error); Itdb_Artwork *itdb_photodb_add_photo (Itdb_PhotoDB *db, const gchar *filename, - gint rotation, GError **error); + gint position, gint rotation, + GError **error); Itdb_Artwork *itdb_photodb_add_photo_from_data (Itdb_PhotoDB *db, const guchar *image_data, gsize image_data_len, + gint position, gint rotation, GError **error); void itdb_photodb_photoalbum_add_photo (Itdb_PhotoDB *db, Itdb_PhotoAlbum *album, - Itdb_Artwork *photo); + Itdb_Artwork *photo, + gint position); Itdb_PhotoAlbum *itdb_photodb_photoalbum_create (Itdb_PhotoDB *db, const gchar *albumname, gint pos); |
