summaryrefslogtreecommitdiffstats
path: root/src/itdb_device.h
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-03-23 15:06:32 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-03-23 15:06:32 +0000
commit8c7b411193bcafb617406cec1f43341a851eac06 (patch)
tree405f62eac144bf39a2acb281f474b0ccf531f22c /src/itdb_device.h
parent85e971a669065d3357a63327832159f730799666 (diff)
downloadlibgpod-tmz-8c7b411193bcafb617406cec1f43341a851eac06.tar.gz
libgpod-tmz-8c7b411193bcafb617406cec1f43341a851eac06.tar.xz
libgpod-tmz-8c7b411193bcafb617406cec1f43341a851eac06.zip
Alpha version of reversed-endian Artwork writing. Status: iTunesDB
can be written and is accepted on mobile phones, ArtworkDB can be read and be written as well, but newly added artwork will not yet display. * itdb.h: adjusted a couple of field lengths (4 byte -> 2 byte or even 1 byte) to address endian issues. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1225 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_device.h')
-rw-r--r--src/itdb_device.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/itdb_device.h b/src/itdb_device.h
index 5755d3c..0b1d1ea 100644
--- a/src/itdb_device.h
+++ b/src/itdb_device.h
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-03-16 23:02:20 jcs>
+/* Time-stamp: <2006-03-21 17:22:34 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -53,11 +53,17 @@ struct _Itdb_Device
{
gchar *mountpoint; /* mountpoint of the iPod */
gint musicdirs; /* number of /iPod_Control/Music/F.. dirs */
+ guint byte_order; /* G_LITTLE_ENDIAN "regular" endianness
+ * G_BIG_ENDIAN "reversed" endianness (e.g. mobile
+ * phone iTunesDBs)
+ */
+#if 0
gboolean endianess_set; /* the endianess_reversed flag has been
detected or set */
gboolean endianess_reversed; /* this iTunesDB has to be written in
reversed endian order (e.g. mobile phone
iTunesDBs) */
+#endif
GHashTable *sysinfo; /* hash with value/key pairs of all entries
in Device/SysInfo */
};
@@ -83,7 +89,8 @@ typedef enum {
SECOND_GENERATION,
THIRD_GENERATION,
FOURTH_GENERATION,
- FIFTH_GENERATION
+ FIFTH_GENERATION,
+ MOBILE_GENERATION
} Itdb_Generation;
typedef enum {
@@ -102,7 +109,8 @@ typedef enum {
MODEL_TYPE_NANO_WHITE,
MODEL_TYPE_NANO_BLACK,
MODEL_TYPE_VIDEO_WHITE,
- MODEL_TYPE_VIDEO_BLACK
+ MODEL_TYPE_VIDEO_BLACK,
+ MODEL_TYPE_MOBILE_1
} Itdb_ModelType;