diff options
author | Dave Chapman <dave@dchapman.com> | 2007-02-10 19:49:43 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-02-10 19:49:43 +0000 |
commit | 955afed1b74793a3f06f98f3c259ec98f26a0b82 (patch) | |
tree | 6dcaa6b318ce282b21327530171f4f6a3297cb04 /rbutil/ipodpatcher/ipodpatcher.h | |
parent | f0efde23039064d393e8cc35c2d88a487c47b1c7 (diff) | |
download | rockbox-955afed1b74793a3f06f98f3c259ec98f26a0b82.tar.gz rockbox-955afed1b74793a3f06f98f3c259ec98f26a0b82.zip |
Move ipodpatcher into rbutil directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12263 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.h')
-rw-r--r-- | rbutil/ipodpatcher/ipodpatcher.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.h b/rbutil/ipodpatcher/ipodpatcher.h new file mode 100644 index 0000000000..c533f4c2dc --- /dev/null +++ b/rbutil/ipodpatcher/ipodpatcher.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: ipodpatcher.c 12237 2007-02-08 21:31:38Z dave $ | ||
9 | * | ||
10 | * Copyright (C) 2006-2007 Dave Chapman | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef _IPODPATCHER_H | ||
21 | #define _IPODPATCHER_H | ||
22 | |||
23 | #include "ipodio.h" | ||
24 | |||
25 | /* Size of buffer for disk I/O - 8MB is large enough for any version | ||
26 | of the Apple firmware, but not the Nano's RSRC image. */ | ||
27 | #define BUFFER_SIZE 8*1024*1024 | ||
28 | extern unsigned char* sectorbuf; | ||
29 | |||
30 | #define FILETYPE_DOT_IPOD 0 | ||
31 | #define FILETYPE_DOT_BIN 1 | ||
32 | #ifdef WITH_BOOTOBJS | ||
33 | #define FILETYPE_INTERNAL 2 | ||
34 | #endif | ||
35 | |||
36 | void display_partinfo(struct ipod_t* ipod); | ||
37 | int read_partinfo(struct ipod_t* ipod, int silent); | ||
38 | int read_partition(struct ipod_t* ipod, int outfile); | ||
39 | int write_partition(struct ipod_t* ipod, int infile); | ||
40 | int diskmove(struct ipod_t* ipod, int delta); | ||
41 | int add_bootloader(struct ipod_t* ipod, char* filename, int type); | ||
42 | int delete_bootloader(struct ipod_t* ipod); | ||
43 | int write_firmware(struct ipod_t* ipod, char* filename, int type); | ||
44 | int read_firmware(struct ipod_t* ipod, char* filename); | ||
45 | int read_directory(struct ipod_t* ipod); | ||
46 | int list_images(struct ipod_t* ipod); | ||
47 | int getmodel(struct ipod_t* ipod, int ipod_version); | ||
48 | int ipod_scan(struct ipod_t* ipod); | ||
49 | off_t filesize(int fd); | ||
50 | |||
51 | #endif | ||