diff options
| author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-09-22 18:16:50 +0000 |
|---|---|---|
| committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-09-22 18:16:50 +0000 |
| commit | 32fdf71f74fee4e0774d7ae5167447c70cd83b7c (patch) | |
| tree | dd5f9c7eb78249d02e1a80a8a7447c2bcc0fd4c9 /src/itdb.h | |
| parent | fba33d9b3d03cb92df15904c045fcfe93d251fa4 (diff) | |
| download | libgpod-32fdf71f74fee4e0774d7ae5167447c70cd83b7c.tar.gz libgpod-32fdf71f74fee4e0774d7ae5167447c70cd83b7c.tar.xz libgpod-32fdf71f74fee4e0774d7ae5167447c70cd83b7c.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.h | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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); |
