summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static to function declarationsChristophe Fergeau2008-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_fallbackJorg Schuler2008-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): setJorg Schuler2008-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 unlessChristophe Fergeau2008-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 SysInfoChristophe Fergeau2008-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 detectionChristophe Fergeau2008-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:Christophe Fergeau2008-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 presenceChristophe Fergeau2008-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)Christophe Fergeau2008-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 readabilityChristophe Fergeau2008-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 itChristophe Fergeau2008-05-244-59/+179
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1976 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add missing #include unistd.hChristophe Fergeau2008-05-242-0/+9
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1975 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tests/test-covers.c: print more info (marginally)Jorg Schuler2008-05-172-1/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1972 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.cJorg Schuler2008-05-115-10/+26
| | | | | | | | | | | | src/itdb_private.h src/db-artwork-writer.c: renamed itdb_get_free_photo_id() to itdb_get_max_photo_id() and implemented Jacob Hoffman-Andrew's patch about the photo_ids and album_ids being shared. * tests/test-covers.c: print more info (marginally) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1971 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tests/test-covers.c: print more status messages.Jorg Schuler2008-05-102-1/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1969 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Write shuffle data (thanks to Diogo Dutra)Todd Zullinger2008-05-022-0/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1967 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Bump version to 0.6.1SVN (belatedly :-)Todd Zullinger2008-05-012-3/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1965 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * bindings/python/examples/Makefile.amJorg Schuler2008-04-193-0/+58
| | | | | | | | Added fix_empty_artist_field.py provided by Thomas Perl. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1963 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* cleanup more of our dirs with make uninstallTodd Zullinger2008-03-294-1/+16
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1955 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* include string.h to fix builds with gcc 4.3 (fixes SF tracker #1928618)Todd Zullinger2008-03-292-0/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1952 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* shell portability fixes (courtesy of Klaus Heinz)Todd Zullinger2008-03-033-5/+10
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1950 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Track.set_thumbnail() was renamed to Track.set_coverart_from_file() a long ↵Todd Zullinger2008-02-132-1/+6
| | | | | | time ago git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1949 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Adapt artwork debugging code to the mhod string parsing consolidationChristophe Fergeau2008-02-033-32/+20
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1948 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Factorize mhod_type_3 and mhod_type_1 handlingChristophe Fergeau2008-02-035-74/+93
| | | | | | | | | | MHOD in an ArtworkDB can only have 2 types, either they contain a string or they are some kind of container. The code had an arbitrary separation between mhod type 3 and mhod type 1 which both contained strings. This consolidates that code in a parse_mhod_string function git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1947 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add comment about fields that aren't byteswapped, remove hardcoded intChristophe Fergeau2008-02-033-5/+14
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1946 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Merge ArtworkDB_MhodHeaderArtworkType3 and MhodHeaderArtworkType1 into ↵Christophe Fergeau2008-02-034-67/+39
| | | | | | ArtworkDB_MhodHeaderString git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1945 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix potential memory leaksChristophe Fergeau2008-02-022-0/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1944 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Make sure the fields we print aren't NULLChristophe Fergeau2008-01-292-1/+11
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1943 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Make sure we use '/' in filenames on ipod shufflesChristophe Fergeau2008-01-292-2/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1942 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add and use itdb_file_set_contents to workaround a rename issue on sshfsChristophe Fergeau2008-01-294-41/+66
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1941 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Portability fix: only include unistd.h when it's availableChristophe Fergeau2008-01-296-1/+22
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1940 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Rework itdb_cp for MacOSX/Windows portabilityChristophe Fergeau2008-01-292-25/+33
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1939 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* src/itdb_chapterdata.c: file missed being added in previous checkinMichael Tiffany2008-01-262-1/+239
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1937 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_track.cJorg Schuler2008-01-265-40/+164
| | | | | | | | | | | * src/itdb_itunesdb.c * src/itdb_chapterdata * src/itdb.h * src/Makefile.am: applied chapterdata patch by Michael Tiffany. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1936 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix ITDB_THUMB_PHOTO_FULL_SCREEN format onChristophe Fergeau2008-01-022-1/+7
| | | | | | | | 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
* add ACLOCAL_AMFLAGS to fix some autoreconf issues (thanks to Frank ↵Todd Zullinger2007-12-132-0/+7
| | | | | | Lichtenheld at Debian) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1828 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* conditionally add gdk-pixbuf to pkg-config RequiresTodd Zullinger2007-11-263-14/+38
| | | | | | | | exit with an error if gdk-pixbuf or pygobject are explicitly requested and not found add AM_PROG_CC_C_O to make automake happy about per-target flags in tests/Makefile.am git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1804 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* update svn:ignoreTodd Zullinger2007-11-250-0/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1803 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* setup svn:ignore for the tools dirTodd Zullinger2007-11-250-0/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1802 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* pass any user-specified options to configureTodd Zullinger2007-11-252-1/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1801 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fixed date.Jorg Schuler2007-11-171-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1796 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Got rid of timestamp.Jorg Schuler2007-11-171-2/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1795 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_playlist.c (itdb_splr_eval): track length in rules forJorg Schuler2007-11-172-2/+14
| | | | | | | | | | | | | | | smart playlists was treated as seconds, but the iPod treats them as milliseconds. If you told libgpod to create a smart playlist with tracks less than 100 secs in length, but the life update of the iPod would interpret that rule as "tracks less than 100 msec in length", giving a vastly different result. Tested with iPod Nano 1G and iPod nano Video (3G). Requires corresponding fix in GUIs using this function. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1794 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix typoes in iPod Touch model listsChristophe Fergeau2007-11-162-2/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1792 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: use libgpod as the prefix of music files toChristophe Fergeau2007-11-142-2/+7
| | | | | | | be copied to the ipod instead of gtkpod git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1790 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: get rid of local g_mkdir_with_parents copyChristophe Fergeau2007-11-142-87/+16
| | | | | | | | since we now depend on glib 2.8 which have it. Replace mkdir with g_mkdir git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1788 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: ignore invalid UTF-8 paths which might haveChristophe Fergeau2007-11-142-3/+15
| | | | | | | been added to the iPod by the user git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1786 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c: use g_list_remove all instead of anChristophe Fergeau2007-11-142-4/+6
| | | | | | | inefficient combination of g_list_find + g_list_remove git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1783 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c (itdb_photodb_photoalbum_remove): makeJorg Schuler2007-11-142-19/+16
| | | | | | | | | sure same photo isn't freed multiple times if it was added in an album multiple times. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1782 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c: fix bug in itdb_photodb_photoalbum_remove,Christophe Fergeau2007-11-132-1/+18
| | | | | | | | | when removing all the photos from the photodatabase, we were erasing elements and iterating over the list at the same time, which resulted in the function not working properly git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1778 f01d2545-417e-4e96-918e-98f8d0dbbcb6