summaryrefslogtreecommitdiffstats
path: root/src/db-itunes-parser.h
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-10-29 10:37:47 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-10-29 10:37:47 +0000
commit539186ab49e478b784c919761533d6e8b3fce983 (patch)
tree2ae5e3895a3664053972b55ff71f5fbf06f12a35 /src/db-itunes-parser.h
parentcb0393e876d66ae4f16efbd84844246f96f12bd9 (diff)
downloadlibgpod-tmz-539186ab49e478b784c919761533d6e8b3fce983.tar.gz
libgpod-tmz-539186ab49e478b784c919761533d6e8b3fce983.tar.xz
libgpod-tmz-539186ab49e478b784c919761533d6e8b3fce983.zip
Added additional functionality for photo albums
* src/db-artwork-parser.c src/db-artwork-writer.c src/db-itunes-parser.c: src/itdb.h: added additional fields to MhbaHeader and Itdb_PhotoAlbum (playmusic, repeat, random, show_titles, transition_direction, slide duration, transition_duration, unk024, unk028, unk044, unk048, song_id. These fields are read and written from the PhotoDB now. Also corrected error for "album type" which was read and written as int32 even though it was a int8. Removed num_images from Itdb_PhotoAlbum -- instead count images at time of writing. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1330 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-itunes-parser.h')
-rw-r--r--src/db-itunes-parser.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/db-itunes-parser.h b/src/db-itunes-parser.h
index 1b2cfff..423485c 100644
--- a/src/db-itunes-parser.h
+++ b/src/db-itunes-parser.h
@@ -1,4 +1,5 @@
-/*
+/* Time-stamp: <2006-10-29 19:18:28 jcs>
+ *
* Copyright (C) 2005 Christophe Fergeau
*
*
@@ -20,6 +21,7 @@
*
* This product is not supported/written/published by Apple!
*
+ * $Id$
*/
@@ -615,10 +617,10 @@ struct _MhbaHeader {
gint32 num_mhods; /* number of Data Objects in the List,
probably always 1 */
gint32 num_mhias; /* number of pictures in the album */
- gint32 playlist_id;/* starts out at $64 and increments by 1 */
- gint32 unknown2; /* unknown, seems to be always 0 */
- gint16 unknown3; /* unknown, seems to be always 0 */
- gchar album_type; /* 1 = master photo list ("Photo Library"),
+ gint32 album_id; /* starts out at $64 and increments by 1 */
+ gint32 unk024; /* unknown, seems to be always 0 */
+ gint16 unk028; /* unknown, seems to be always 0 */
+ guint8 album_type; /* 1 = master photo list ("Photo Library"),
2 = normal album, sometimes 4 and 5 */
guint8 playmusic; /* play music during slideshow (from iPhoto setting) */
guint8 repeat; /* repeat the slideshow (from iPhoto setting) */
@@ -630,10 +632,11 @@ struct _MhbaHeader {
4=bottom-to-top (from iPhoto setting) */
gint32 slide_duration; /* in seconds (from iPhoto setting) */
gint32 transition_duration; /* in milliseconds (from iPhoto setting) */
- gint32 unk044;
- gint32 unk048;
- gint64 song_id;
- gint32 prev_playlist_id; /* the id of the previous playlist */
+ gint32 unk044; /* unknown, seems to always be 0 */
+ gint32 unk048; /* unknown, seems to always be 0 */
+ gint64 song_id; /* dbid2 of track in iTunesDB to play during
+ slideshow (from iPhoto setting) */
+ gint32 prev_album_id; /* the id of the previous photoalbum */
unsigned char padding[];
};