diff options
author | Dave Chapman <dave@dchapman.com> | 2009-08-04 20:32:30 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2009-08-04 20:32:30 +0000 |
commit | 1eca02d86384bd399f3d3b0fce5e6be48ce8156f (patch) | |
tree | 64ef1c7da7c4986bc4ebda1b543ec3b22ff5ab23 /rbutil/ipodpatcher/ipodio.h | |
parent | 71f0814e52df8d862b2658fd3075c3020347d0fd (diff) | |
download | rockbox-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.h | 5 |
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); | |||
91 | int ipod_reopen_rw(struct ipod_t* ipod); | 94 | int ipod_reopen_rw(struct ipod_t* ipod); |
92 | int ipod_close(struct ipod_t* ipod); | 95 | int ipod_close(struct ipod_t* ipod); |
93 | int ipod_seek(struct ipod_t* ipod, unsigned long pos); | 96 | int ipod_seek(struct ipod_t* ipod, unsigned long pos); |
97 | int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code, | ||
98 | unsigned char* buf, int bufsize); | ||
94 | ssize_t ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes); | 99 | ssize_t ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes); |
95 | ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes); | 100 | ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes); |
96 | int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize); | 101 | int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize); |