From 1eca02d86384bd399f3d3b0fce5e6be48ce8156f Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 4 Aug 2009 20:32:30 +0000 Subject: 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 --- rbutil/ipodpatcher/ipodio.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rbutil/ipodpatcher/ipodio.h') 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 { char* modelstr; char* targetname; int macpod; + char* xmlinfo; /* The XML Device Information (if available) */ + int xmlinfo_len; + int ramsize; /* The amount of RAM in the ipod (if available) */ #ifdef WITH_BOOTOBJS unsigned char* bootloader; int bootloader_len; @@ -91,6 +94,8 @@ int ipod_open(struct ipod_t* ipod, int silent); int ipod_reopen_rw(struct ipod_t* ipod); int ipod_close(struct ipod_t* ipod); int ipod_seek(struct ipod_t* ipod, unsigned long pos); +int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code, + unsigned char* buf, int bufsize); ssize_t ipod_read(struct ipod_t* ipod, unsigned char* buf, int nbytes); ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes); int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize); -- cgit v1.2.3