summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/ipodio.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-08-04 20:32:30 +0000
committerDave Chapman <dave@dchapman.com>2009-08-04 20:32:30 +0000
commit1eca02d86384bd399f3d3b0fce5e6be48ce8156f (patch)
tree64ef1c7da7c4986bc4ebda1b543ec3b22ff5ab23 /rbutil/ipodpatcher/ipodio.h
parent71f0814e52df8d862b2658fd3075c3020347d0fd (diff)
downloadrockbox-1eca02d86384bd399f3d3b0fce5e6be48ce8156f.tar.gz
rockbox-1eca02d86384bd399f3d3b0fce5e6be48ce8156f.zip
Add support (on Linux and win32 only - I couldn't figure this out on OS X) for reading the XML device information from ipods. This information includes the RAM size, which is potentially useful for rbutil to distinguish between the two ipod video builds. This is implemented as both a new --dump-xml option (to dump the entire XML to a file) and a new 'ramsize' field in struct ipod_t.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22165 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodio.h')
-rw-r--r--rbutil/ipodpatcher/ipodio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/ipodio.h b/rbutil/ipodpatcher/ipodio.h
index dbd3d5e1ff..e0692ca6d9 100644
--- a/rbutil/ipodpatcher/ipodio.h
+++ b/rbutil/ipodpatcher/ipodio.h
@@ -80,6 +80,9 @@ struct ipod_t {
80 char* modelstr; 80 char* modelstr;
81 char* targetname; 81 char* targetname;
82 int macpod; 82 int macpod;
83 char* xmlinfo; /* The XML Device Information (if available) */
84 int xmlinfo_len;
85 int ramsize; /* The amount of RAM in the ipod (if available) */
83#ifdef WITH_BOOTOBJS 86#ifdef WITH_BOOTOBJS
84 unsigned char* bootloader; 87 unsigned char* bootloader;
85 int bootloader_len; 88 int bootloader_len;
@@ -91,6 +94,8 @@ int ipod_open(struct ipod_t* ipod, int silent);
91int ipod_reopen_rw(struct ipod_t* ipod); 94int ipod_reopen_rw(struct ipod_t* ipod);
92int ipod_close(struct ipod_t* ipod); 95int ipod_close(struct ipod_t* ipod);
93int ipod_seek(struct ipod_t* ipod, unsigned long pos); 96int ipod_seek(struct ipod_t* ipod, unsigned long pos);
97int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code,
98 unsigned char* buf, int bufsize);
94ssize_t ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes); 99ssize_t ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes);
95ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes); 100ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes);
96int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize); 101int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize);