diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-03-21 08:37:20 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-03-21 08:37:20 +0000 |
commit | f204cd6a06ccf86d73fb12dd7ca68a9da25eb1a5 (patch) | |
tree | 9108736fd3a017e8d8cd708281bdd72de8025ab7 /src/itdb.h | |
parent | 64559345a2954fd3e2007e1b17542b65bbfd87a5 (diff) | |
download | libgpod-f204cd6a06ccf86d73fb12dd7ca68a9da25eb1a5.tar.gz libgpod-f204cd6a06ccf86d73fb12dd7ca68a9da25eb1a5.tar.xz libgpod-f204cd6a06ccf86d73fb12dd7ca68a9da25eb1a5.zip |
* src/itdb.h
src/itdb_artwork.c
src/itdb_photoalbum.c
src/itdb_track.c
src/ithumb-writer.c:
Added new API functions: itdb_photodb_add_photo_from_pixbuf
function(), itdb_track_set_thumbnails_from_pixbuf() and
itdb_artwork_add_thumbnail_from_pixbuf(). Thanks to Christophe
Fergeau.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1405 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb.h')
-rw-r--r-- | src/itdb.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -445,6 +445,7 @@ struct _Itdb_Thumb { non-transfered thumbnails when filename == NULL */ gsize image_data_len; /* length of data */ + gpointer pixbuf; gint rotation; /* angle (0, 90, 180, 270) to rotate the image */ guint32 offset; guint32 size; @@ -1030,6 +1031,9 @@ gboolean itdb_track_set_thumbnails (Itdb_Track *track, gboolean itdb_track_set_thumbnails_from_data (Itdb_Track *track, const guchar *image_data, gsize image_data_len); +gboolean itdb_track_set_thumbnails_from_pixbuf (Itdb_Track *track, + gpointer pixbuf); + void itdb_track_remove_thumbnails (Itdb_Track *track); /* photoalbum functions -- see itdb_photoalbum.c for instructions on @@ -1044,6 +1048,11 @@ Itdb_Artwork *itdb_photodb_add_photo_from_data (Itdb_PhotoDB *db, gint position, gint rotation, GError **error); +Itdb_Artwork *itdb_photodb_add_photo_from_pixbuf (Itdb_PhotoDB *db, + gpointer pixbuf, + gint position, + gint rotation, + GError **error); void itdb_photodb_photoalbum_add_photo (Itdb_PhotoDB *db, Itdb_PhotoAlbum *album, Itdb_Artwork *photo, @@ -1082,6 +1091,11 @@ gboolean itdb_artwork_add_thumbnail_from_data (Itdb_Artwork *artwork, const guchar *image_data, gsize image_data_len, gint rotation, GError **error); +gboolean itdb_artwork_add_thumbnail_from_pixbuf (Itdb_Artwork *artwork, + ItdbThumbType type, + gpointer pixbuf, + gint rotation, + GError **error); void itdb_artwork_remove_thumbnail (Itdb_Artwork *artwork, Itdb_Thumb *thumb); void itdb_artwork_remove_thumbnails (Itdb_Artwork *artwork); |