summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace cleanuppython-container-methods-oldTodd Zullinger2008-08-231-8/+8
|
* Be more consistent with other python container objects and classesTodd Zullinger2008-07-091-6/+81
| | | | | | | | This enables testing whether a key exists in an object (e.g. "'title' in track") as well as iterating over a Photo, Track, or Thumbnail object's keys, values, or items. The items() and pairs() methods were renamed to values() and items(), respectively, in Photo, Track, and Thumbnail classes.
* Add src/itdb_thumb.c to POTFILES.intmzullinger2008-07-092-2/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2046 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: properly detect newer libsgutils (the so name wasteuf2008-07-093-3/+16
| | | | | | | | | changed) * tools/ipod-scsi-inquiry.c: add missing include Based on a patch from Dan Horák (dan@danny.cz) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2045 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix up information from podsleuthteuf2008-07-062-6/+11
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2044 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add a way to get an Itdb_ModelInfo from a serial numberteuf2008-07-062-18/+234
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2043 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add missing 2GB ipod shuffle models and ipod shuffle redteuf2008-07-063-0/+13
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2042 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Pick itdb_device_get_storage_info from songbirdteuf2008-07-064-10/+70
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2041 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Use GMappedFile instead of directly using mmapteuf2008-07-064-45/+40
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2040 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove inner functions to make MSVC8 compat easierteuf2008-07-063-23/+28
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2039 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove non-useful argument to db_parse_context_destroy (patch from songbird)teuf2008-07-064-6/+15
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2038 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix bug in thumbnail resizing when not cropping which caused duplicated ↵teuf2008-07-062-20/+27
| | | | | | lines at the bottom of thumbnails git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2036 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix memleakteuf2008-07-052-0/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2035 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix bug in thumbnail rearranging codeteuf2008-07-052-2/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2034 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Properly set padding to 0 in mhod type 3teuf2008-07-052-0/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2033 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix a memory leakteuf2008-07-052-0/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2032 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* fix typos: s/ipod/iPod/ s/availale/available/ s/of non-existent/if non-existent/dforsi2008-06-295-10/+15
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2026 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ithumb-writer.c (itdb_write_ithumb_files): fix bug whenjcsjcs2008-06-293-66/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | writing photos (loop variable "it" re-used inside loop). Rename loop variable to "itw" also in case of writing artwork. * src/itdb_thumb.c (itdb_thumb_to_pixbuf_at_size): If requesting a thumb from the iPod smaller than available, none would be returned. Fixed. Thumbs from the iPod would not be scaled even if requested. Fixed. If requesting a thumb from a file or existing pixbuf, scaling was done even if none was requested (width/height = 0/-1). Fixed. Introduced selection of smallest available thumbnail (width/height = 0) besides largest available thumbnail (width/height = -1). TODO: consider aspect ratio of requested picture (currently it is very likely that some of the square thumbs are returned...) src/itdb_artwork.c (itdb_artwork_get_thumbnail): Introduced selection of smallest available thumbnail (width/height = 0) besides largest available thumbnail (width/height = -1). (Only necessary documentation.) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2025 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ithumb-writer.c (itdb_write_ithumb_files): fix bug whenjcsjcs2008-06-292-5/+12
| | | | | | | | | writing photos (loop variable "it" re-used inside loop). Rename loop variable to "itw" also in case of writing artwork. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2023 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* patch by: Mike Heffner <mikeh@fesnel.com>teuf2008-06-283-0/+13
| | | | | | | | | * src/Makefile.am: * src/db-artwork-writer.c: fix compilation with older glib (without GChecksum) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2021 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: rework timezone handling: handle timezones asteuf2008-06-243-80/+144
| | | | | | | | | | stored on 5g ipods (hopefully) and fallback to using the computer timezone if we can't figure out the ipod timezone * tests/get-timezone.c: use functions from libgpod to get the timezone instead of duplicating some itdb_device code git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2018 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: oops, forgot a ','teuf2008-06-142-1/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2017 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix some ipod_model_table entriesteuf2008-06-142-3/+16
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2016 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove buggy function to test if an ipod supports videoteuf2008-06-142-19/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2015 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.h:teuf2008-06-094-97/+235
| | | | | | | | | * src/itdb_sysinfo_extended_parser.c: * src/ithumb-writer.c: use background color and alignement information from SysInfoExtended if available git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2014 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2013 ↵teuf2008-06-091-0/+8
| | | | f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:teuf2008-06-096-16/+73
| | | | | | | | | | | | | * src/itdb_device.c: * src/itdb_device.h: * src/itdb_sysinfo_extended_parser.c: * src/itdb_sysinfo_extended_parser.h: implements itdb_device_supports_sparse_artwork (instead of the old stub always returning TRUE). Use data from SysInfoExtended if it's available, use hardcoded table from libgpod if not. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2012 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c:teuf2008-06-095-100/+208
| | | | | | | | | | | * src/itdb_device.h: * src/itdb_sysinfo_extended_parser.c: * src/itdb_sysinfo_extended_parser.h: merge Itdb_ArtworkFormat and SysInfoImageFormat, use artwork formats from SysInfoExtended when it's available instead of using the hardcoded tables from libgpod git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2011 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:teuf2008-06-097-142/+79
| | | | | | | | | | | | | * src/db-image-parser.h: * src/itdb.h: * src/itdb_device.c: * src/itdb_device.h: * src/ithumb-writer.c: get rid of ItdbThumbType, it's replaced by pointers to the appropriate Itdb_ArtworkFormat for the thumbnail type when it's needed git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2010 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.c: remove duplicated artwork/photo supportteuf2008-06-0911-213/+269
| | | | | | | | | | | | | | | | | | | | | | | 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
* * src/gchecksum.c: fix compilation (it's only compiled on system withteuf2008-06-092-7/+6
| | | | | | | older glib versions) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2008 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:teuf2008-06-095-7/+31
| | | | | | | | | * src/itdb_artwork.c: * src/itdb_thumb.c: * src/itdb_thumb.h: fix compilation when gdk-pixbuf isn't present git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2007 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_track.c (itdb_track_remove_thumbnails): set mhii_linkjcsjcs2008-06-053-0/+13
| | | | | | | | | | | to 0. * src/db-artwork-parser.c (mhfd_associate_itunesdb_artwork): remove thumbnails if mhii_link is invalid. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2006 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/gchecksum.cjcsjcs2008-06-0210-114/+1851
| | | | | | | | | | | | | | | | | | | | | | | | src/gchecksum.h src/Makefile.am configure.ac: copied gchecksum from glib 2.16.3. It's used if we compile on a system that does not have glib 2.16 or higher. Testing is needed whether it's really pulled in in those cases -- I'm using 2.16.3 myself. * src/itdb_itunesdb.c (mk_mhit): write mhii_link. * src/db-artwork-writer.c: code to handle sparse artwork correctly. (ipod_supports_sparse_artwork): currently hard-coded to TRUE. Will be changed in the future to reflect the information given in the SysInfoExtended. Change yourself if your iPod does not support Sparse Artwork (sharing of thumbnails between several tracks). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2005 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_thumb.cjcsjcs2008-06-012-7/+10
| | | | | | | | | | remove some unnecessary checks for NULL pointer (itdb_thumb_duplicate): move g_list_reverse() outside the loop modifying the list. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2004 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_thumb.cjcsjcs2008-05-305-8/+18
| | | | | | | | | | src/itdb_thumb.h src/ithumb-writer.c src/itdb_photoalbum.c: fixed a number of compile-time warnings. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1994 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* forgot to add these new filesteuf2008-05-302-0/+576
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1993 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Ian Stewartteuf2008-05-302-2/+10
| | | | | | | | * src/itdb_itunesdb.c: don't pass NULL sort_composer names down to jump_table_letter, fixes a crash reported by Andy Busch git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1992 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/Makefile.am:teuf2008-05-3014-906/+524
| | | | | | | | | | | | | | | | | | | | | | | | | * src/db-artwork-parser.c: * src/db-artwork-writer.c: * src/db-image-parser.c: * src/db-image-parser.h: * src/itdb.h: * src/itdb_artwork.c: * src/itdb_device.h: * src/itdb_photoalbum.c: * src/itdb_track.c: * src/ithumb-writer.c: * tests/test-covers.c: * tests/test-photos.c: rework Itdb_Thumb type. Now it's split into different subtypes depending on what it represents (GdkPixbuf, thumbnail read from the ipod, ...). Itdb_Artwork now contains only a pointer to a single Itdb_Thumb (it used to contain a GList * of Itdb_Thumb) since the only time when the list is useful is for thumbs read from the ipod. Using a list for the other types of thumbnails created some complications when trying to set art on an Itdb_Track that wasn't attached to an Itdb_iTunesDB. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1991 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add missing static to function declarationsteuf2008-05-293-9/+14
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1990 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.c (parse_mhii): removed artwork_fallbackjcsjcs2008-05-282-27/+19
| | | | | | | | variable upon Christophe's suggestion and streamlined code. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1986 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_track.c (itdb_track_set_thumbnails_internal): setjcsjcs2008-05-2815-74/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | artwork ID to 0 after removing thumbnails. * src/db-artwork-parser.c (parse_mhii): move out dbid association to a separate function. (mhfd_associate_itunesdb_artwork): handle dbid and mhii_link association of artwork to track (parse_mhfd): loop over the number of mhsd hunks instead of hardcoding it. Call mhfd_associate_itunesdb_artwork(). * src/itdb_itunesdb.c (get_mhit): read the mhii_link field. * src/db-artwork-writer.c (write_mhli): handle unset artwork correctly. (itdb_track_filter_thumbnails): remove thumbnails correctly. * src/db-parse-context.c (db_parse_context_get_sub_context): copy newly introduced artwork field. * tests/test-covers.c: print mhii_link. * src/itdb.h: (Itdb_Track) added mhii_link. (Itdb_Artwork): added dbid. * src/itdb.h, src/db-artwork-parser.c, src/db-artwork-writer.c, src/itdb_device.c, src/ithumb-writer.c, src/itdb_artwork.c: added ITDB_THUMB_CHAPTER_SMALL/LARGE. * src/itdb_device.c: ipod_classic_1_artwork_info: correct ITDB_THUMB_COVER_SMALL/LARGE entries. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1985 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: libxml presence is mandatory unlessteuf2008-05-252-10/+7
| | | | | | | --disable-libxml is passed to configure git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1984 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: don't insert NULL firewire IDs in the SysInfoteuf2008-05-252-2/+9
| | | | | | | hash table git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1983 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: rework libxml detectionteuf2008-05-255-9/+67
| | | | | | | | | | * src/Makefile.am: remove LIBXML_CFLAGS/LIBXML_LIBS since they are no longer used * src/itdb_plist.c: add stub functions when libxml isn't available * src/itdb_sysinfo_extended_parser.c: include config.h git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1982 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-debug.c:teuf2008-05-257-40/+45
| | | | | | | | | | | | * src/db-artwork-writer.c: * src/db-image-parser.c: * src/db-itunes-parser.h: * src/itdb_device.h: * src/ithumb-writer.c: rename correlation_id to format_id (this is how that value is called in SysInfoExtended) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1981 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: check libxml presenceteuf2008-05-2512-275/+999
| | | | | | | | | | | | | | | | | | | | | | * src/Makefile.am: add new files, remove obsolete ones * src/itdb_plist.h: * src/itdb_plist.c: plist parser, this parses a plist XML file to a GHashTable of GValue *. This parser should be generic, ie it doesn't know it's parsing SysInfoExtended, it only cares about it being a plist file * src/itdb_sysinfo_extended_parser.h: * src/itdb_sysinfo_extended_parser.c: convert the parsed plist data to data structures usable by libgpod * src/itdb_device.h: * src/itdb_device.c: parses SysInfoExtended in addition to SysInfo * src/itdb_sysinfo.c: this hacky parser is obsoleted by the new (much more complete) SysInfoExtended parser, so it's removed * tests/Makefile.am: * tests/test-sysinfo-extended-parsing.c: small test program for the new parser git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1980 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add jump table support (mhod53)teuf2008-05-252-21/+187
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1979 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Factor some code out of ithumb_writer_write_thumbnail for better readabilityteuf2008-05-242-156/+165
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1977 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Handle cropping for thumbnails needing itteuf2008-05-244-59/+179
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1976 f01d2545-417e-4e96-918e-98f8d0dbbcb6