diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-12-23 23:30:57 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-01 15:05:52 +0100 |
commit | 24e37ddf57bac6a1c9786d50abbe3a1982930382 (patch) | |
tree | b34ae751986f185f51556a040f388025cac4c383 /rbutil/ipodpatcher/ipodpatcher.h | |
parent | 6803d7b10cd9651ded08674f1597d4511cabb7af (diff) | |
download | rockbox-24e37ddf57bac6a1c9786d50abbe3a1982930382.tar.gz rockbox-24e37ddf57bac6a1c9786d50abbe3a1982930382.zip |
ipodpatcher: move sectorbuf pointer into ipod_t structure.
The ipod_t structure holds all relevant information for ipodpatcher. Put the
global ipod_sectorbuf pointer into it as well. Allows the Rockbox Utility Ipod
class to be instanciated multiple times since each instance can now have its
own buffer.
Change-Id: Ie319cbadbc20c367ceadba9a46b4dc34b57a79a7
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.h')
-rw-r--r-- | rbutil/ipodpatcher/ipodpatcher.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.h b/rbutil/ipodpatcher/ipodpatcher.h index dc3f100520..01f5a1bb26 100644 --- a/rbutil/ipodpatcher/ipodpatcher.h +++ b/rbutil/ipodpatcher/ipodpatcher.h | |||
@@ -32,16 +32,6 @@ extern "C" { | |||
32 | of the Apple firmware, but not the Nano's RSRC image. */ | 32 | of the Apple firmware, but not the Nano's RSRC image. */ |
33 | #define BUFFER_SIZE 8*1024*1024 | 33 | #define BUFFER_SIZE 8*1024*1024 |
34 | 34 | ||
35 | #ifndef _MSC_VER | ||
36 | extern unsigned char* ipod_sectorbuf; | ||
37 | #else | ||
38 | /* MSVC needs to use dllimport to allow using it directly from a DLL. | ||
39 | * See http://support.microsoft.com/kb/90530 | ||
40 | * Building with MSVC is only when using as DLL. | ||
41 | */ | ||
42 | _declspec(dllimport) unsigned char* ipod_sectorbuf; | ||
43 | #endif | ||
44 | |||
45 | extern int ipod_verbose; | 35 | extern int ipod_verbose; |
46 | 36 | ||
47 | #define FILETYPE_DOT_IPOD 0 | 37 | #define FILETYPE_DOT_IPOD 0 |