summaryrefslogtreecommitdiffstats
path: root/src/itdb.h
diff options
context:
space:
mode:
authorjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-09-22 18:16:50 +0000
committerjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-09-22 18:16:50 +0000
commitda83c8e68edfca1b740b95fe045b5bd32c8ab56d (patch)
treedd5f9c7eb78249d02e1a80a8a7447c2bcc0fd4c9 /src/itdb.h
parentf3ffd45a6e75de502d9c1e913d7b701fef725d34 (diff)
downloadlibgpod-da83c8e68edfca1b740b95fe045b5bd32c8ab56d.tar.gz
libgpod-da83c8e68edfca1b740b95fe045b5bd32c8ab56d.tar.xz
libgpod-da83c8e68edfca1b740b95fe045b5bd32c8ab56d.zip
* applied Christophe Fergeau's patch which adds cover art writing
support to libgpod -> bump to version 104 git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1098 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb.h')
-rw-r--r--src/itdb.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/itdb.h b/src/itdb.h
index 35a6c42..1b19c6d 100644
--- a/src/itdb.h
+++ b/src/itdb.h
@@ -307,6 +307,12 @@ typedef struct SPLRules
GList *rules;
} SPLRules;
+enum ItdbImageType {
+ ITDB_IMAGE_FULL_SCREEN,
+ ITDB_IMAGE_NOW_PLAYING
+};
+
+
/* This structure can represent two slightly different images:
* - an image before it's transferred to the iPod (it will then be scaled
* as necessary to generate the 2 thumbnails needed by the iPod),
@@ -320,13 +326,14 @@ typedef struct SPLRules
* on the iPod
*/
struct _Itdb_Image {
- char *filename;
+ enum ItdbImageType type;
+ char *filename;
off_t offset;
size_t size;
unsigned int width;
unsigned int height;
- unsigned int id;
};
+
typedef struct _Itdb_Image Itdb_Image;
typedef void (* ItdbUserDataDestroyFunc) (gpointer userdata);
@@ -573,9 +580,9 @@ typedef struct
guint32 unk228, unk232, unk236, unk240;
/* This is for Cover Art support */
- Itdb_Image *full_size_thumbnail;
- Itdb_Image *now_playing_thumbnail;
- Itdb_Image *orig_image;
+ GList *thumbnails;
+ unsigned int image_id;
+ char *orig_image_filename;
/* below is for use by application */
guint64 usertype;
@@ -681,6 +688,9 @@ void itdb_spl_update_all (Itdb_iTunesDB *itdb);
/* thumbnails functions */
unsigned char *itdb_image_get_rgb_data (Itdb_Image *image);
+int itdb_track_set_thumbnail (Itdb_Track *song, const char *filename);
+void itdb_track_remove_thumbnail (Itdb_Track *song);
+void itdb_track_free_generated_thumbnails (Itdb_Track *track);
/* time functions */
guint64 itdb_time_get_mac_time (void);