From e36402aead91c157dbefd577cdf463759c2aa045 Mon Sep 17 00:00:00 2001 From: teuf Date: Sun, 25 May 2008 10:38:09 +0000 Subject: * configure.ac: check libxml presence * src/Makefile.am: add new files, remove obsolete ones * src/itdb_plist.h: * src/itdb_plist.c: plist parser, this parses a plist XML file to a GHashTable of GValue *. This parser should be generic, ie it doesn't know it's parsing SysInfoExtended, it only cares about it being a plist file * src/itdb_sysinfo_extended_parser.h: * src/itdb_sysinfo_extended_parser.c: convert the parsed plist data to data structures usable by libgpod * src/itdb_device.h: * src/itdb_device.c: parses SysInfoExtended in addition to SysInfo * src/itdb_sysinfo.c: this hacky parser is obsoleted by the new (much more complete) SysInfoExtended parser, so it's removed * tests/Makefile.am: * tests/test-sysinfo-extended-parsing.c: small test program for the new parser git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1980 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb_device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/itdb_device.h') diff --git a/src/itdb_device.h b/src/itdb_device.h index c21be94..0f4a8a7 100644 --- a/src/itdb_device.h +++ b/src/itdb_device.h @@ -40,6 +40,7 @@ #endif #include "itdb.h" +#include "itdb_sysinfo_extended_parser.h" #include @@ -85,6 +86,8 @@ struct _Itdb_Device */ GHashTable *sysinfo; /* hash with value/key pairs of all entries * in Device/SysInfo */ + SysInfoIpodProperties *sysinfo_extended; /* parsed content of + * SysInfoExtended, can be NULL */ gboolean sysinfo_changed; /* Has the sysinfo hash been changed by the user (itdb_set_sysinfo) */ gint timezone_shift; /* difference in seconds between the current @@ -109,8 +112,6 @@ struct _Itdb_ArtworkFormat G_GNUC_INTERNAL const Itdb_ArtworkFormat *itdb_device_get_artwork_formats (Itdb_Device *device); G_GNUC_INTERNAL gint itdb_device_musicdirs_number (Itdb_Device *device); G_GNUC_INTERNAL void itdb_device_autodetect_endianess (Itdb_Device *device); -G_GNUC_INTERNAL gboolean itdb_device_read_sysinfo_xml (Itdb_Device *device, - GError **error); G_GNUC_INTERNAL guint64 itdb_device_get_firewire_id (Itdb_Device *device); G_END_DECLS -- cgit