summaryrefslogtreecommitdiff
path: root/rbutil/sansapatcher/sansapatcher.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-12-23 23:36:00 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-01 15:06:34 +0100
commit9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8 (patch)
tree1c884e4db52c2d365095c281e63956f909691226 /rbutil/sansapatcher/sansapatcher.h
parent24e37ddf57bac6a1c9786d50abbe3a1982930382 (diff)
downloadrockbox-9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8.tar.gz
rockbox-9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8.zip
sansapatcher: move sectorbuf pointer into sansa_t structure.
Similar as the ipod_t structure for ipodpatcher the sansa_t structure holds all relevant information for sansapatcher. Put the global sansa_sectorbuf pointer into it as well. Change-Id: Iad08ef6aafc49609c3d0d556914246f230ee0179
Diffstat (limited to 'rbutil/sansapatcher/sansapatcher.h')
-rw-r--r--rbutil/sansapatcher/sansapatcher.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/rbutil/sansapatcher/sansapatcher.h b/rbutil/sansapatcher/sansapatcher.h
index 80cef4d417..1ae101e012 100644
--- a/rbutil/sansapatcher/sansapatcher.h
+++ b/rbutil/sansapatcher/sansapatcher.h
@@ -32,15 +32,6 @@ extern int sansa_verbose;
32/* Size of buffer for disk I/O - 8MB is large enough for any version 32/* Size of buffer for disk I/O - 8MB is large enough for any version
33 of the Apple firmware, but not the Nano's RSRC image. */ 33 of the Apple firmware, but not the Nano's RSRC image. */
34#define BUFFER_SIZE 8*1024*1024 34#define BUFFER_SIZE 8*1024*1024
35#ifndef _MSC_VER
36extern unsigned char* sansa_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* sansa_sectorbuf;
43#endif
44 35
45int sansa_read_partinfo(struct sansa_t* sansa, int silent); 36int sansa_read_partinfo(struct sansa_t* sansa, int silent);
46int is_sansa(struct sansa_t* sansa); 37int is_sansa(struct sansa_t* sansa);