Revision: 1527
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1527&view=rev
Author:   phantom_sf
Date:     2007-06-05 14:31:25 -0700 (Tue, 05 Jun 2007)

Log Message:
-----------
2007-06-05  P.G. Richardson <phantom_sf at users.sourceforge.net>

  * Initial and experimental referencing of photo database. Code
    taken from test source files so successful initialization
    simply prints out the reference id numbers of the photos.

Modified Paths:
--------------
    gtkpod/branches/photo_support_branch/src/Makefile.am
    gtkpod/branches/photo_support_branch/src/display_itdb.h
    gtkpod/branches/photo_support_branch/src/file_itunesdb.c
    gtkpod/branches/photo_support_branch/src/itdb.h

Modified: gtkpod/branches/photo_support_branch/src/Makefile.am
===================================================================
--- gtkpod/branches/photo_support_branch/src/Makefile.am        2007-06-05 
21:27:42 UTC (rev 1526)
+++ gtkpod/branches/photo_support_branch/src/Makefile.am        2007-06-05 
21:31:25 UTC (rev 1527)
@@ -39,6 +39,7 @@
     display.h display_private.h \
     display_itdb.c display_itdb.h \
     display_spl.c display_tracks.c \
+    display_photo.c display_photo.h \
     fetchcover.c fetchcover.h \
     file.c file.h file_export.c \
     file_convert.c file_convert.h \

Modified: gtkpod/branches/photo_support_branch/src/display_itdb.h
===================================================================
--- gtkpod/branches/photo_support_branch/src/display_itdb.h     2007-06-05 
21:27:42 UTC (rev 1526)
+++ gtkpod/branches/photo_support_branch/src/display_itdb.h     2007-06-05 
21:31:25 UTC (rev 1527)
@@ -55,6 +55,7 @@
     gboolean data_changed;         /* data changed since import?           */
     gboolean itdb_imported;        /* has in iTunesDB been imported?       */
     gboolean ipod_ejected;         /* if iPod was ejected                  */
+    PhotoDB *photodb;            /* Photo DB reference used if the ipod 
supports photos */
 } ExtraiTunesDBData;
 
 typedef struct

Modified: gtkpod/branches/photo_support_branch/src/file_itunesdb.c
===================================================================
--- gtkpod/branches/photo_support_branch/src/file_itunesdb.c    2007-06-05 
21:27:42 UTC (rev 1526)
+++ gtkpod/branches/photo_support_branch/src/file_itunesdb.c    2007-06-05 
21:31:25 UTC (rev 1527)
@@ -46,6 +46,7 @@
 #include "ipod_init.h"
 #include "file_convert.h"
 #include "display_coverart.h"
+#include "display_photo.h"
 
 #define _TO_STR(x) #x
 #define TO_STR(x) _TO_STR(x)
@@ -949,6 +950,9 @@
            }
        }
     }
+    
+    /* All successfully loaded so try loading the photo database */
+    display_photo_load_photodb (new_itdb);
     return new_itdb;
 }
 

Modified: gtkpod/branches/photo_support_branch/src/itdb.h
===================================================================
--- gtkpod/branches/photo_support_branch/src/itdb.h     2007-06-05 21:27:42 UTC 
(rev 1526)
+++ gtkpod/branches/photo_support_branch/src/itdb.h     2007-06-05 21:31:25 UTC 
(rev 1527)
@@ -48,4 +48,6 @@
 typedef Itdb_Thumb Thumb;
 typedef Itdb_Artwork Artwork;
 typedef Itdb_IpodInfo IpodInfo;
+typedef Itdb_PhotoDB PhotoDB;
+typedef Itdb_PhotoAlbum PhotoAlbum;
 #endif


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to