summaryrefslogtreecommitdiffstats
path: root/src/itdb.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/itdb.h
parentcb0393e876d66ae4f16efbd84844246f96f12bd9 (diff)
downloadlibgpod-539186ab49e478b784c919761533d6e8b3fce983.tar.gz
libgpod-539186ab49e478b784c919761533d6e8b3fce983.tar.xz
libgpod-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/itdb.h')
-rw-r--r--src/itdb.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/itdb.h b/src/itdb.h
index e04a74a..ff63c4f 100644
--- a/src/itdb.h
+++ b/src/itdb.h
@@ -1,6 +1,6 @@
-/* Time-stamp: <2006-10-29 15:03:21 jcs>
+/* Time-stamp: <2006-10-29 19:18:27 jcs>
|
-| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
+| Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
|
| URL: http://www.gtkpod.org/
@@ -490,11 +490,29 @@ struct _Itdb_iTunesDB
struct _Itdb_PhotoAlbum
{
- gchar *name; /* name of photoalbum in UTF8 */
- GList *members; /* photos in album (Itdb_Artwork *) */
- gint num_images; /* number of photos in album */
- gint album_type; /* 0x01 for master (Photo Library),
- 0x02 otherwise */
+ gchar *name; /* name of photoalbum in UTF8 */
+ GList *members; /* photos in album (Itdb_Artwork *) */
+ guint8 album_type; /* 0x01 for master (Photo Library),
+ 0x02 otherwise (sometimes 4 and 5) */
+ guint8 playmusic; /* play music during slideshow (from
+ iPhoto setting) */
+ guint8 repeat; /* repeat the slideshow (from iPhoto
+ setting) */
+ guint8 random; /* show the slides in random order
+ (from iPhoto setting) */
+ guint8 show_titles; /* show slide captions (from iPhoto
+ setting) */
+ guint8 transition_direction; /* 0=none, 1=left-to-right,
+ 2=right-to-left, 3=top-to-bottom,
+ 4=bottom-to-top (from iPhoto setting) */
+ gint32 slide_duration; /* in seconds (from iPhoto setting) */
+ gint32 transition_duration; /* in milliseconds (from iPhoto setting) */
+ gint64 song_id; /* dbid2 of track in iTunesDB to play
+ during slideshow (from iPhoto setting)*/
+ gint32 unk024; /* unknown, seems to be always 0 */
+ gint16 unk028; /* unknown, seems to be always 0 */
+ gint32 unk044; /* unknown, seems to always be 0 */
+ gint32 unk048; /* unknown, seems to always be 0 */
/* set automatically at time of writing the PhotoDB */
gint32 album_id;
gint32 prev_album_id;