summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * src/itdb_itunesdb.c: (itdb_write_file): set Itdb_Track::idChristophe Fergeau2007-10-051-9/+13
| | | | | before writing the artwork since artwork writing uses them git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1717 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: get rid of unused headersChristophe Fergeau2007-10-011-2/+0
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1713 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: integrate checksum writing into theJorg Schuler2007-10-012-123/+51
| | | | | | | | | | creation of the iTunesDB instead of modifying the iTunesDB file in place (Christophe) * src/itdb_device.c: re-use artwork definition for iPod classic also for iPod Nanos 3G. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1712 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (mk_mhit): write extended mhit header forJorg Schuler2007-10-013-9/+23
| | | | | | | | | | | | new iPod Nanos and Classics so they display artwork (Christophe) * src/db-artwork-writer (ipod_artwork_set_ids): modify the assignment of IDs for artwork (Christophe) * src/itdb_device.c: added artwork definition file (cover only) for iPod Nano Videos (3G). Thanks to Simon Schulz. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1711 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (itdb_write_checksum): remove debugging g_printChristophe Fergeau2007-09-301-9/+0
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1708 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix typo and don't mark iPod Classic as read-onlyChristophe Fergeau2007-09-301-2/+2
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1707 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove trailing whitespaceChristophe Fergeau2007-09-271-1/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1705 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix make distcheckChristophe Fergeau2007-09-271-32/+30
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1704 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (calculate_db_checksum),Christophe Fergeau2007-09-273-10/+16
| | | | | | | | | | | (itdb_write_checksum): * src/itdb_sha1.c: (itdb_compute_hash): * src/itdb_sha1.h: propagate the calculated checksum length as an out parameter to the checksumming functions, fixes a bug where a partial checksum would be written if it contained a \0 * tests/test-checksum.c: (calculate_db_checksum): update test program to that API change git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1702 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: remove "read only" notice on Nano VideoJorg Schuler2007-09-261-1/+1
| | | | | | | | description. * ChangeLog: explained better about SysInfo* files. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1701 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Forgot to add itdb_sysinfo.cJorg Schuler2007-09-241-0/+269
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1699 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* ** code courtesy of Christophe Fergeau **Jorg Schuler2007-09-248-25/+1000
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/itdb_itunesdb.c (mk_mhbd): write extended header needed for new iPod Nanos (3G Video) and iPod Classics. src/itdb_device.c src/itdb_device.h: Code to parse SysInfoExtended and SysInfo for the FireWireGUID. You must either copy the iPod description XML file to Device/SysInfoExtended or add a line 'FirewireGuid: 000A27....' to Device/SysInfo. You can get your FirewireGuid by using the tests/test-fw-id test program. * src/sha1.c src/sha1.h src/itdb_sha1.c src/itdb_sha1.h New files for obscure hash generation code. * src/Makefile.am: added new files. * tests/test-checksum.c tests/test-fw-id.c tests/Makefile.am: test programs to retrieve the FirewireGuid and calculate/write the obscure hash. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1698 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c:Jorg Schuler2007-09-153-113/+261
| | | | | | | | | | | | | | | | | | | Re-organized the representation of iPod models -- instead of 1st to 7th generation more well-known names like "iPod Nano 1G", "iPod Nano 2G"... are used. Added untested support for iPod Classic Artwork. Not clear which thumbnail type is used for what. src/itdb_track.c (itdb_track_set_thumbnails_internal): Please note: itdb_track_set_thumbnails() needs to be thought over to make sure all thumbnail types are added properly. Please see note in itdb_track.c for details. src/itdb.h: Added symbols for the new representation indicated above: ITDB_IPOD_GENERATION_*, ITDB_IPOD_MODEL_* git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1695 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-image-parser.cJorg Schuler2007-09-088-35/+520
| | | | | | | | | | | | | | | | | | | | | | | | src/itdb_device.c src/ithumb-writer.c src/db-image-parser.h src/itdb_device.h src/itdb.h src/itdb_artwork.c tests/test-covers.c: added support to read and write coverart on iPhones. New cover formats are: MEDIUM, XLARGE, XSMALL, SMEDIUM -- should be renamed if function becomes clearer. Introduced New image formats for the thumbnails (THUMB_FORMAT_RGB555, THUMB_FORMAT_REC_RGB555). Coding/decoding functions are pack_/unpack_RGB_555() and pack_/unpack_REC_RGB_555(). Introduced possible padding for thumbnail files (Itdb_ArtworkFormat). * src/db-artwork-parser.c: make output filename unique. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1691 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * itdb_itunesdb.c (itdb_get_control_dir):Jorg Schuler2007-09-043-3/+8
| | | | | | | | | | | | | added support for iPhones * itdb.h: added ITDB_IPOD_MODEL_IPHONE_1 enum * itdb_device.c: added iPhone description TODO: define artwork definition in itdb_device.c -- currently artwork is not supported. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1690 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_artwork.c (itdb_thumb_get_filename): checkJorg Schuler2007-08-181-2/+6
| | | | | | returnvalue of strchr(). Thanks to Javier Kohen. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1685 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb (itdb_parse): don't callJorg Schuler2007-08-181-24/+27
| | | | | | ipod_parse_artwork_db() if iTunesDB was not read successfully. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1682 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: make calls to utf16_strlen()Jorg Schuler2007-08-181-25/+15
| | | | | | unnecessary. Thanks to Javier Kohen for the patch. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1680 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c (write_mhod_type_3): don't assume thatJorg Schuler2007-08-181-14/+20
| | | | | | | | | | length of a utf16 string is twice the length of a utf8 string (even though this was safe here because the strings in question were ASCII). (write_mhod_type_1), (write_mhod_type_3): Don't pad by 4 bytes as this achieves nothing. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1679 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* remove duplicate copyright headerTodd Zullinger2007-08-041-25/+0
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1669 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* remove references to Mac type timestampsTodd Zullinger2007-07-051-14/+12
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1623 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fixJorg Schuler2007-06-291-0/+4
| | | | | | | compile time error when compiling without GDKPIXBUF. Alternative fix: add '#include <glib-object.h>'. Thanks to Olivier CrĂȘte. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1612 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (mhod52_make_collate_keys): ignore emptyJorg Schuler2007-06-231-6/+9
| | | | | | | sort strings -- fixes multiple display of same album on the iPod. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1580 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h: corrected description for "BPM" (beats per minute)Jorg Schuler2007-06-171-1/+1
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1552 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.cJorg Schuler2007-06-172-25/+28
| | | | | | | | | | | src/itdb.h: libgpod will not change the values for sort_artist. Furthermore, libgpod reads the stored values of sort_artist/_album... from the iTunesDB and makes them available through the Itdb_Track structure. Applications should modify these values along with the corresponding artist/album... fields if a particular sort order is required. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1549 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c (itdb_photodb_parse): return a validJorg Schuler2007-06-011-2/+11
| | | | | | | | | | photodb structure including the main Photo Library album if no database existed, analogous to itdb_photodb_create(). Without this the test-photos script won't work as expected and other applications also would have to add extra checks for presence of the main Photo Libarary. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1515 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.c (parse_mhba): non-zero terminatedJorg Schuler2007-06-013-6/+11
| | | | | | | | | | | | | | string was copied using g_strdup() instead of g_strndup(). This affected album names of the Photo Database. src/db-artwork-writer.c (write_mhod_type_1): convert 'type' as 16 bit integer, not 32 bit integer. Potential problem on non-standard endian system (iPod side). src/db-itunes-parser.h: '#if 0' unused structure to avoid confusion. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1514 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.cJorg Schuler2007-05-275-41/+43
| | | | | | | | | | | | | | | | | src/db-artwork-writer.c src/itdb_device.c src/itdb_itunesdb.c src/itdb_private.h: Fixed segfault when parsing photo databases introduced by the new handling of timestamps (all timestamps exported are host-local time_t). itdb_time_time_t_to_mac() and itdb_time_mac_to_time_t() were renamed to device_*() and take a pointer to an Itdb_Device instead of a pointer to an Itdb_iTunesDB structure as the latter does not exist in case of photo databases. All references to those two functions were changed accordingly and the functions themselves were moved from itdb_itunesdb.c to itdb_device.c. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1439 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* fix a potential crasher (Raymond Walsh)Todd Zullinger2007-05-231-3/+3
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1438 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c (itdb_set_sysinfo): Corrected comment. ThanksJorg Schuler2007-05-191-1/+1
| | | | | to Daniele Forsi. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1437 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2007-05-19 Jorg Schuler <jcsjcs at users.sourceforge.net>Jorg Schuler2007-05-191-1/+1
| | | | | | * src/itdb_itunesdb.c (playcounts_init): C&P error stat'ing the wrong file. Thanks to Raymond Walsh. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1436 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h: warning about adding string fieldsJorg Schuler2007-05-172-0/+12
| | | | | | src/itdb_track_duplicate: duplicate new string fields (sort_*). Thanks to Raymond Walsh. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1435 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Minor documentation cleanups.Todd Zullinger2007-05-122-5/+7
| | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1430 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: remove non-sense check (itdb != NULL) whenJorg Schuler2007-05-101-3/+1
| | | | | itdb can never be NULL. Thanks to Raymond Walsh. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1429 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c:Jorg Schuler2007-05-071-2/+2
| | | | | | Fix for 64 bit systems: don't show "last played" data as played in the last century... Thanks to Christophe. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1428 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_artwork.cJorg Schuler2007-05-072-2/+2
| | | | | | | src/itdb_itunesdb.c tests/test-photos.c: Corrected some typos. Thanks to Daniele Forsi. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1427 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.cJorg Schuler2007-05-064-177/+368
| | | | | | | | | | | | | | | | | | | | | src/itdb_device.c src/itdb_private.h src/itdb.h: New API functions to facilitate copying to the iPod in a background thread and implementation of own copying code. itdb_cp_get_dest_filename(): obtain a valid filename on the iPod to where a track can be copied. This function can be used in a thread-safe way. itdb_cp_finalize(): to be called after the track was copied to the iPod to update some fields in the Itdb_Track structure. This function can also be used in a thread-safe way. You can use the already existing function itdb_cp() to copy a track to the iPod and itdb_cp_track_to_ipod() remains available unchanged in functionality. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1426 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (itdb_cp_track_to_ipod): removed staticJorg Schuler2007-05-011-13/+6
| | | | | | | | | | | variable "dir_num" which was initialized once and cycled through for each track transfered. This doesn't seem right since different iPods with different number of music directories may be connected at the same time, and itdb_cp_track_to_ipod() may be called for different iTunesDBs at the same in in a threaded environment. Since there is no inherent value in cycling through the directories, a random directory is selected each time. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1425 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_playlist.c (compMostOftenPlayed, compLeastOftenPlayed):Jorg Schuler2007-04-301-2/+2
| | | | | | compaered time_added instead of playcount (thanks to Daniele Forsi). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1423 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb (itdb_parse_internal): fixed compile warningJorg Schuler2007-04-301-1/+1
| | | | | | | | | | (thanks to Daniele Forsi). * tests/test-ls.c (display_recently_played): fixed compile warning (thanks to Daniele Forsi). * tests/get-timezone.c: added to CVS (thanks to Daniele Forsi). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1422 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * docs/reference/tmpl/track.sgmlJorg Schuler2007-04-283-95/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/itdb.h src/itdb_itunesdb.c src/itdb_track.c: Added the following fields to Itdb_Track: sort_artist sort_title sort_album sort_albumartist sort_composer sort_tvshow These fields can (theoretically) be used to force a certain sort order on the iPod when displaying by artist, album... Even though these fields are present in the iTunesDB, they are discarded when reading the iTunesDB and applications must always set them before writing the iTunesDB again. This is to avoid that the fields 'artist' and 'sort_artist' accidentially get out of sync. libgpod will automatically create a sort_artist key for you if artist is of the type 'The Artist' and sort_artist is not set. The sort key used in that case is 'Artist, The' (followed by five time 0x01), even though sort_artist itself will not be touched. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1421 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h: added padding to exported structures so new entriesJorg Schuler2007-04-281-18/+76
| | | | | | | can be added without loosing backward run-time compatibility. Comments welcome. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1420 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.hJorg Schuler2007-04-274-517/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/itdb_itunesdb.c src/itdb_playlist.c src/itdb_private.h: namespace cleanup. Applications supporting smart playlists will have to be adapted. The following changes were implemented to make sure all exported symbols start with ITDB or Itdb: structs: SPLPref -> Itdb_SPLPref SPLRules -> Itdb_SPLRules SPLRule -> Itdb_SPLRule SPL_* -> ITDB_SPL_* enums, #defines: LIMITTYPE_* -> ITDB_LIMITTYPE_* LIMITSORT_* -> ITDB_LIMITSORT_* SPLMATCH_* -> ITDB_SPLMATCH_* SPLACTION_* -> ITDB_SPLACTION_* SPLFIELD_* -> ITDB_SPLFIELD_* SPLDATE_IDENTIFIER -> ITDB_SPL_DATE_IDENTIFIER splft_* -> ITDB_SPLFT_* splat_* -> ITDB_SPLAT_* enum SPLAction -> ItdbSPLAction enum SPLActionType -> ItdbSPLActionType enum SPLField -> ItdbSPLField enum SPLFieldType -> ItdbSPLFieldType enum ItdbLimitType (new) enum ItdbLimitSort (new) enum ItdbSPLMatch (new) removed SPL_MAXSTRINGLENGTH (use ITDB_SPL_STRING_MAXLEN) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1418 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * docs/reference/tmpl/device.sgmlJorg Schuler2007-04-278-159/+337
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | docs/reference/tmpl/itunesdb-time.sgml docs/reference/tmpl/libgpod-unused.sgml docs/reference/tmpl/track.sgml src/db-artwork-parser.c src/db-artwork-writer.c src/db-itunes-parser.h src/itdb.h src/itdb_device.c src/itdb_device.h src/itdb_itunesdb.c src/itdb_private.h tests/Makefile.am: Christophe's patch for automatic correction of timestamps depending on which timezone the iPod is set to. ATTENTION DEVELOPERS: as a consequence all exported timestamps are no longer guint32 mac-type timestamps but standard time_t timestamps. This also includes the 64 bit timestamps in smart playlists. The following functions are therefore no longer needed and are deprecated: itdb_time_mac_to_host(), itdb_time_host_to_mac(): simply return the argument without changing it. Argument and return value are now both of type 'time_t'. itunesdb_time_get_mac_time(): returns the seconds passed since Epoch in seconds and is equivalent to time(NULL). These functions may be removed in a future version of libgpod. Programs linking to libgpod may need to be changed slightly if they made any assumptions on the type of timestamps used. This should be obvious through compile-time warnings. tests/test-ls.c: print a list of recently played tracks. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1417 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2007-04-14 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2007-04-143-3/+59
| | | | | | | | | * src/itdb_device.c: add itdb_device_supports_artwork and idb_device_supports_photo functions * docs/reference/tmpl/device.sgml: update api doc * src/itdb_itunesdb.c: don't try to write artwork database if the iPod model doesn't support artwork. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1414 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h: changed 'gchar *chapterdata' to 'gpointerJorg Schuler2007-04-082-9/+7
| | | | | | | | chapterdata' with note that chapterdata is not yet supported. * src/itdb_track.c (itdb_track_duplicate): arrange the strings in the same order as in Itdb_Track for easier error-checking. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1413 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: streamline MHOD52 patch (remove mk_mhod52()Jorg Schuler2007-03-251-190/+177
| | | | | and let mk_mhod() handle the sorting of mhod52 directly). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1409 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: Write out MHOD52 hunks after masterJorg Schuler2007-03-231-7/+259
| | | | | | | playlist. This speeds up the iPod interface when browsing titles or albums etc. because the iPod won't have to sort through the track list. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1408 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (write_playlist): corrected what is writtenJorg Schuler2007-03-221-6/+3
| | | | | | into the mhyp header according to the iTunesDB wiki (mhod count / libmhod count) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1407 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.hJorg Schuler2007-03-215-6/+181
| | | | | | | | | | | | src/itdb_artwork.c src/itdb_photoalbum.c src/itdb_track.c src/ithumb-writer.c: Added new API functions: itdb_photodb_add_photo_from_pixbuf function(), itdb_track_set_thumbnails_from_pixbuf() and itdb_artwork_add_thumbnail_from_pixbuf(). Thanks to Christophe Fergeau. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1405 f01d2545-417e-4e96-918e-98f8d0dbbcb6