summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fixJorg Schuler2007-06-292-0/+10
| | | | | | | | | 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
* Remove hard coding of _proxied_attributesNicholas Piper2007-06-282-18/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1608 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* bump version to 0.5.3SVN for further developmentTodd Zullinger2007-06-232-2/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1583 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* bump version for 0.5.2 releaseTodd Zullinger2007-06-232-1/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1581 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (mhod52_make_collate_keys): ignore emptyJorg Schuler2007-06-232-6/+15
| | | | | | | | | 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
* * TROUBLESHOOTING: comment concerning namespace cleanupJorg Schuler2007-06-182-0/+17
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1559 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* bump version and soname for 0.5.0 releaseTodd Zullinger2007-06-182-4/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1556 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* add glib version and gobject-2.0 to 'Requires:'Todd Zullinger2007-06-172-3/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1554 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h: corrected description for "BPM" (beats per minute)Jorg Schuler2007-06-172-1/+3
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1552 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.cJorg Schuler2007-06-173-25/+38
| | | | | | | | | | | | | 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
* * po/es.po: new version updated by Alejandro Lamas Daviña.Jorg Schuler2007-06-148-552/+658
| | | | | | | | make update-po git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1547 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * po/ja.poJorg Schuler2007-06-114-5/+13
| | | | | | | | | | | po/sv.po po/it.po: Changed license to "same as gtkpod" to "same as libgpod" after consulting with translators. Waiting for response from the Hebrew and Spanish translators. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1545 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* rename INSTALL_CVS to INSTALL_SVNTodd Zullinger2007-06-031-0/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1524 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* update a few more CVS references for SubversionTodd Zullinger2007-06-033-3/+3
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1522 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* updated Italian translationDaniele Forsi2007-06-021-0/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1520 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* update Italian translationDaniele Forsi2007-06-021-235/+288
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1517 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c (itdb_photodb_parse): return a validJorg Schuler2007-06-012-2/+18
| | | | | | | | | | | | 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-014-6/+24
| | | | | | | | | | | | | | | | 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
* Rephrased my last CVS commit log.Jorg Schuler2007-05-301-8/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1510 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* change CVS references and links to SVNTodd Zullinger2007-05-305-6/+13
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1509 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.cJorg Schuler2007-05-278-49/+68
| | | | | | | | | | | | | | | | | | | 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-232-3/+8
| | | | 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-192-1/+4
| | | | | | | 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-192-1/+6
| | | | | | | | * 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-173-0/+18
| | | | | | | | 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
* treat time_t as longTodd Zullinger2007-05-131-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1434 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* treat time_t as longTodd Zullinger2007-05-131-2/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1433 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * TROUBLESHOOTING: added a note about the 'padding[]'Jorg Schuler2007-05-132-2/+14
| | | | | | | incompatibility with older versions of gcc. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1432 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* treat time_t as intTodd Zullinger2007-05-122-0/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1431 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Minor documentation cleanups.Todd Zullinger2007-05-1210-26/+77
| | | | 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-102-3/+6
| | | | | | | 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-072-2/+6
| | | | | | | | 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-074-4/+11
| | | | | | | | | 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-065-177/+389
| | | | | | | | | | | | | | | | | | | | | | | 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-012-13/+17
| | | | | | | | | | | | | 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
* Added get-timezone into ignore list.Jorg Schuler2007-05-010-0/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1424 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_playlist.c (compMostOftenPlayed, compLeastOftenPlayed):Jorg Schuler2007-04-302-2/+6
| | | | | | | | 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-304-3/+95
| | | | | | | | | | | | (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-285-97/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-289-19/+132
| | | | | | | | | 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
* Namespace cleanup part II (python bindings and documentation).Jorg Schuler2007-04-276-140/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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@1419 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.hJorg Schuler2007-04-275-517/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2715-181/+435
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* put down the pipe and commit something that should actually work...Todd Zullinger2007-04-161-2/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1416 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* use the mac-style path for filename_ipod in the extended info file, like ↵Todd Zullinger2007-04-162-1/+6
| | | | | | gtkpod does git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1415 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2007-04-14 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2007-04-145-3/+85
| | | | | | | | | | | * 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-083-9/+15
| | | | | | | | | | 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
* Add missing tests/Makefile.am fileNicholas Piper2007-03-271-0/+11
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1412 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Use build-tree libraries for Python test, not the installed set.Nicholas Piper2007-03-264-3/+13
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1411 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add some PhotoDB reading features, thanks to John Carr for prompting.Nicholas Piper2007-03-264-3/+432
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1410 f01d2545-417e-4e96-918e-98f8d0dbbcb6