summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/ipodio-win32.c
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-win32.c
parent71f0814e52df8d862b2658fd3075c3020347d0fd (diff)
downloadrockbox-1eca02d86384bd399f3d3b0fce5e6be48ce8156f.tar.gz
rockbox-1eca02d86384bd399f3d3b0fce5e6be48ce8156f.tar.bz2
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-win32.c')
-rw-r--r--rbutil/ipodpatcher/ipodio-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/ipodio-win32.c b/rbutil/ipodpatcher/ipodio-win32.c
index ceec4a3d6c..5125c070f8 100644
--- a/rbutil/ipodpatcher/ipodio-win32.c
+++ b/rbutil/ipodpatcher/ipodio-win32.c
@@ -32,10 +32,9 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef __WIN32__
#include <windows.h>
+#include <stddef.h>
#include <winioctl.h>
-#endif
#include "ipodio.h"
@@ -201,3 +200,4 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes)
return count;
}
+