summaryrefslogtreecommitdiffstats
path: root/src/itdb_device.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix static nano4g artwork information tablesChristophe Fergeau2009-01-011-4/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2187 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add serial number for pink and silver 16GB nanosChristophe Fergeau2008-12-291-3/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2184 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove unwanted addition of model name in last commitChristophe Fergeau2008-12-221-1/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2180 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add ipod shuffle info from Neil CampbellChristophe Fergeau2008-12-221-0/+3
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2179 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add serial numbers for yellow and green 16GB nano4gChristophe Fergeau2008-12-221-0/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2178 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add serial number for 16GB Purple Nano 4gChristophe Fergeau2008-12-181-0/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2177 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_plist.c: substitute g_base64_decode() between versionJorg Schuler2008-12-151-0/+7
| | | | | | | | | | 2.8 and 2.11 of glib. * src/itdb_device.c: handle timezone correctly on CYGWIN Patches courtesy of Éric Lassauge. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2170 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add hardcoded tables for nano4g artworkChristophe Fergeau2008-12-121-0/+24
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2167 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add SN for 16GB orange nano4gChristophe Fergeau2008-12-121-0/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2166 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Update API documentationTodd Zullinger2008-12-081-39/+66
| | | | | | | Add new functions and missing enums, macros, and structs to the proper places in the documentation, remove old/unused functions, and clean up various minor issues. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2159 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Whitespace cleanupTodd Zullinger2008-12-081-3/+0
| | | | | | This just cleans up some minor whitespace issues to make diffing and merging slightly nicer. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2158 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: SN YX6 corresponds to a Shuffle model B225Christophe Fergeau2008-10-221-1/+1
| | | | | according to a report on #gtkpod git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2144 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Use SysInfoExtended if available for itdb_device_supports_photoChristophe Fergeau2008-10-211-2/+4
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2143 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add SN for 16GB blue nanoChristophe Fergeau2008-10-201-0/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2142 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add serial number for 16GB Black NanoChristophe Fergeau2008-10-151-0/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2141 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix itdb_device_supports_artwork to use info from SysInfoExtendedChristophe Fergeau2008-10-071-2/+4
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2138 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: add serial number for the 8GB Silver Nano 4gChristophe Fergeau2008-10-041-1/+2
| | | | | and model number for the 4GB Blue Nano 4g git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2133 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* A few more fixes in the ipod model tablesChristophe Fergeau2008-10-011-3/+3
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2131 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add missing name for the Yellow 4g nanoChristophe Fergeau2008-10-011-0/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2130 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: and add SN for the 8GB Red NanoChristophe Fergeau2008-10-011-0/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2129 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: add SN for 16GB Red NanoChristophe Fergeau2008-10-011-0/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2128 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h: add enum entries for the new ipod classic and the newChristophe Fergeau2008-10-011-8/+98
| | | | | | | nanos * src/itdb_device.c: add entries for the new nanos and the new ipod classic, add some serial numbers for older ipod models git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2127 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2008-09-11 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2008-09-111-0/+1
| | | | | | | * src/itdb_device.c: add missing string description for the red ipod shuffle that was added some time ago, without it gtkpod was badly broken wrt ipod model selection :-/ git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2117 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Use GError in SysInfoExtended parsingChristophe Fergeau2008-07-291-1/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2067 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add error handling to the plist XML parserChristophe Fergeau2008-07-291-0/+9
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2066 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ithumb-writer.c (pack_RGB_565), (pack_RGB_555)Jorg Schuler2008-07-201-0/+3
| | | | | | | | | (pack_RGB_888): handle horizontal padding correctly (affected pictures in portrait format). * src/itdb_device.c: added some comments. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2060 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c (itdb_device_set_timezone_info): avoid g_statJorg Schuler2008-07-191-0/+5
| | | | | | on NULL filename. Thanks to Andrea. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2055 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: assume the following generations do notJorg Schuler2008-07-191-3/+3
| | | | | | | | | | support sparse artwork: ITDB_IPOD_GENERATION_NANO_1: ITDB_IPOD_GENERATION_NANO_2: ITDB_IPOD_GENERATION_VIDEO_1: ITDB_IPOD_GENERATION_VIDEO_2: git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2054 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix up information from podsleuthChristophe Fergeau2008-07-061-6/+6
| | | 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 numberChristophe Fergeau2008-07-061-18/+228
| | | 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 redChristophe Fergeau2008-07-061-0/+6
| | | 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 songbirdChristophe Fergeau2008-07-061-0/+54
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2041 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* fix typos: s/ipod/iPod/ s/availale/available/ s/of non-existent/if non-existent/Daniele Forsi2008-06-291-1/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2026 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: rework timezone handling: handle timezones asChristophe Fergeau2008-06-241-32/+131
| | | | | | | | 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 ','Christophe Fergeau2008-06-141-1/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2017 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix some ipod_model_table entriesChristophe Fergeau2008-06-141-3/+11
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2016 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:Christophe Fergeau2008-06-091-0/+44
| | | | | | | | | | | * 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:Christophe Fergeau2008-06-091-50/+76
| | | | | | | | | * 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:Christophe Fergeau2008-06-091-58/+51
| | | | | | | | | | | * 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 supportChristophe Fergeau2008-06-091-73/+168
| | | | | | | | | | | | | | | | | | | | | 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/itdb_track.c (itdb_track_set_thumbnails_internal): setJorg Schuler2008-05-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * src/itdb_device.c: don't insert NULL firewire IDs in the SysInfoChristophe Fergeau2008-05-251-2/+4
| | | | | hash table git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1983 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: check libxml presenceChristophe Fergeau2008-05-251-1/+29
| | | | | | | | | | | | | | | | | | | | * 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
* Handle cropping for thumbnails needing itChristophe Fergeau2008-05-241-2/+13
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1976 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Portability fix: only include unistd.h when it's availableChristophe Fergeau2008-01-291-0/+2
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1940 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix ITDB_THUMB_PHOTO_FULL_SCREEN format onChristophe Fergeau2008-01-021-1/+1
| | | | | | ipod classic and nano video, thanks to Tomas Carnecky for pointing that out git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1898 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix typoes in iPod Touch model listsChristophe Fergeau2007-11-161-2/+2
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1792 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: use the same photo thumbnail definitions forJorg Schuler2007-11-101-12/+3
| | | | | | | the iPhone as well as the iPod Touch until further input is received. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1772 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: added photo thumbnail definitions for iPodJorg Schuler2007-11-101-1/+15
| | | | | | | Touch. I'm not sure how reasonable the "PHOTO_LARGE, _FULL_SCREEN, _TV_SCREEN" classification is, however... git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1769 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: (itdb_device_requires_checksum): the iPod TouchChristophe Fergeau2007-11-081-1/+1
| | | | | needs a firewire id as well git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1764 f01d2545-417e-4e96-918e-98f8d0dbbcb6