diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-01-14 14:28:37 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-01-14 14:28:37 +0000 |
commit | a8a2e8e070a6cdcb96e45bdca2f71f7010620969 (patch) | |
tree | bff2254975e1c05368fe7641f8dedfd6fe8e56b7 | |
parent | 553d095cb5fc8ff04261f24f3d97bf055b0cc0ff (diff) | |
download | libgpod-tmz-a8a2e8e070a6cdcb96e45bdca2f71f7010620969.tar.gz libgpod-tmz-a8a2e8e070a6cdcb96e45bdca2f71f7010620969.tar.xz libgpod-tmz-a8a2e8e070a6cdcb96e45bdca2f71f7010620969.zip |
* src/itdb_itunesdb.c: added instructions on how to add new string
fields like 'tvepisode', 'tvshow' without forgetting half of the
places that need to be touched.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1364 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/itdb_itunesdb.c | 32 |
2 files changed, 34 insertions, 2 deletions
@@ -8,6 +8,10 @@ * po/*.po: run 'make update-po' + * src/itdb_itunesdb.c: added instructions on how to add new string + fields like 'tvepisode', 'tvshow' without forgetting half of the + places that need to be touched. + 2007-01-13 Todd Zullinger <tmzullinger at users.sourceforge.net> * bindings/python/Makefile.am: don't include any swig built diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index cad502b..47e6509 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2007-01-09 23:46:31 jcs> +/* Time-stamp: <2007-01-15 01:55:47 jcs> | | Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -133,9 +133,37 @@ #define ITUNESDB_COPYBLK (1024*1024*4) /* blocksize for cp () */ +/* NOTE for developers: + + Sometimes new MHOD string fields are added by Apple in the + iTunesDB. In that case you need to modify the code in the following + places: + + itdb_itunesdb.c: + - enum MHOD_ID + - get_mhod(): inside the switch() statement. Currently no compiler + warning is given. + - get_mhod_string(): inside the switch() statement. A compiler warning + will help you find it. + - get_playlist(): inside the switch() statement. A compiler warning + will help you find it. + - get_mhit(): inside the switch() statement. A compiler warning + will help you find it. + - mk_mhod(): inside the switch() statement. A compiler warning + will help you find it. + - write_mhsd_tracks(): inside the for() loop. + + itdb_track.c: + - itdb_track_free() + - itdb_track_duplicate() + + itdb_playlists.c: + Analogous to itdb_track.c in case the string is part of the playlist + description. +*/ + /* Note: some of the comments for the MHOD_IDs are copied verbatim * from http://ipodlinux.org/ITunesDB */ - enum MHOD_ID { MHOD_ID_TITLE = 1, MHOD_ID_PATH = 2, /* file path on iPod (special format) */ |