summaryrefslogtreecommitdiffstats
path: root/src/itdb.h
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-11-24 04:03:47 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-11-24 04:03:47 +0000
commite2bc8402d6440a29af874adcc79083d870b45283 (patch)
tree5b9691d071b9ef3841c01d744be7e8d14f31f2ed /src/itdb.h
parent2f2ba10996368cddb4ed536344eb2d26eb66797f (diff)
downloadlibgpod-e2bc8402d6440a29af874adcc79083d870b45283.tar.gz
libgpod-e2bc8402d6440a29af874adcc79083d870b45283.tar.xz
libgpod-e2bc8402d6440a29af874adcc79083d870b45283.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.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/itdb.h b/src/itdb.h
index 5989dcd..d590485 100644
--- a/src/itdb.h
+++ b/src/itdb.h
@@ -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);