diff options
| author | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-06-09 19:53:36 +0000 |
|---|---|---|
| committer | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-06-09 19:53:36 +0000 |
| commit | 1d8f0569e5d779a14a590d33cc4aa45db5d8049b (patch) | |
| tree | 1261fe601c0fdc543ca024404b6107245d3d4ead /src/itdb.h | |
| parent | 55a3a23ffca6d6228e83ad69cbfbfca765023c41 (diff) | |
* src/db-artwork-parser.c: remove duplicated artwork/photo support
testing functions
* src/db-artwork-parser.h: ditto
* src/itdb_itunesdb.c: s/ipod_supports_XXX/itdb_device_supports_XXX
* src/itdb_photoalbum.c: ditto
* src/itdb.h: use a const Itdb_Device argument for
itdb_device_supports_*, add ITDB_IPOD_GENERATION_IPHONE_1 to
Itdb_IpodGeneration, get rid of ITDB_IPOD_GENERATION_FIFTH and
ITDB_IPOD_GENERATION_SIXTH
* src/itdb_device.c: split functions to get artwork format from the
ipod in 2 separate functions: instead of
itdb_device_get_artwork_formats we now have
itdb_device_get_photo_formats and itdb_device_get_cover_art_formats
* src/itdb_device.h:
* src/db-image-parser.c: use the separate
get_cover_art_formats/get_photos_formats functions
* src/db-artwork-writer.c: ditto
* src/ithumb-writer.c: ditto
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2009 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb.h')
| -rw-r--r-- | src/itdb.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -97,9 +97,7 @@ typedef enum { ITDB_IPOD_GENERATION_VIDEO_2, ITDB_IPOD_GENERATION_CLASSIC_1, ITDB_IPOD_GENERATION_TOUCH_1, - /* The following 2 are no longer in use and should be removed */ - ITDB_IPOD_GENERATION_FIFTH, - ITDB_IPOD_GENERATION_SIXTH, + ITDB_IPOD_GENERATION_IPHONE_1, } Itdb_IpodGeneration; typedef enum { @@ -1084,13 +1082,14 @@ void itdb_device_free (Itdb_Device *device); void itdb_device_set_mountpoint (Itdb_Device *device, const gchar *mp); gboolean itdb_device_read_sysinfo (Itdb_Device *device); gboolean itdb_device_write_sysinfo (Itdb_Device *device, GError **error); -gchar *itdb_device_get_sysinfo (Itdb_Device *device, const gchar *field); +gchar *itdb_device_get_sysinfo (const Itdb_Device *device, const gchar *field); void itdb_device_set_sysinfo (Itdb_Device *device, const gchar *field, const gchar *value); -const Itdb_IpodInfo *itdb_device_get_ipod_info (Itdb_Device *device); +const Itdb_IpodInfo *itdb_device_get_ipod_info (const Itdb_Device *device); const Itdb_IpodInfo *itdb_info_get_ipod_info_table (void); -gboolean itdb_device_supports_artwork (Itdb_Device *device); -gboolean itdb_device_supports_photo (Itdb_Device *device); +gboolean itdb_device_supports_artwork (const Itdb_Device *device); +gboolean itdb_device_supports_video (const Itdb_Device *device); +gboolean itdb_device_supports_photo (const Itdb_Device *device); const gchar *itdb_info_get_ipod_model_name_string (Itdb_IpodModel model); const gchar *itdb_info_get_ipod_generation_string (Itdb_IpodGeneration generation); |
