From d06a947f4e79cb6888937c4ddac48815f2f3e0ae Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Mon, 24 Sep 2007 14:59:33 +0000 Subject: ** code courtesy of Christophe Fergeau ** * src/itdb_itunesdb.c (mk_mhbd): write extended header needed for new iPod Nanos (3G Video) and iPod Classics. src/itdb_device.c src/itdb_device.h: Code to parse SysInfoExtended and SysInfo for the FireWireGUID. You must either copy the iPod description XML file to Device/SysInfoExtended or add a line 'FirewireGuid: 000A27....' to Device/SysInfo. You can get your FirewireGuid by using the tests/test-fw-id test program. * src/sha1.c src/sha1.h src/itdb_sha1.c src/itdb_sha1.h New files for obscure hash generation code. * src/Makefile.am: added new files. * tests/test-checksum.c tests/test-fw-id.c tests/Makefile.am: test programs to retrieve the FirewireGuid and calculate/write the obscure hash. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1698 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb_device.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/itdb_device.h') diff --git a/src/itdb_device.h b/src/itdb_device.h index 2c11630..904dca3 100644 --- a/src/itdb_device.h +++ b/src/itdb_device.h @@ -100,6 +100,10 @@ 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 #endif -- cgit