summaryrefslogtreecommitdiff
path: root/tools/iriver.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-18 22:30:59 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-18 22:30:59 +0000
commitc47988034fbd5d7de8fcda2a87224bdb0b5dcfe6 (patch)
treedeb96279c6952871b5c0f47ec25879bb73240afd /tools/iriver.h
parentefbd2b8d7a9295f1a5544717c1b86527cc27ac7b (diff)
downloadrockbox-c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6.tar.gz
rockbox-c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6.zip
Factor out scramble / mkboot functions to allow easier reuse (for rbutil).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17732 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/iriver.h')
-rw-r--r--tools/iriver.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/iriver.h b/tools/iriver.h
index 96326c4e48..e9df809a12 100644
--- a/tools/iriver.h
+++ b/tools/iriver.h
@@ -16,14 +16,21 @@
16 * KIND, either express or implied. 16 * KIND, either express or implied.
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19 19#ifndef TRUE
20#define TRUE 1 20#define TRUE 1
21#endif
22#ifndef FALSE
21#define FALSE 0 23#define FALSE 0
24#endif
22 25
23#define BOOL unsigned int 26#define BOOL unsigned int
24 27
25#define ESTF_SIZE 32 28#define ESTF_SIZE 32
26 29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
27enum striptype 34enum striptype
28{ 35{
29 STRIP_NONE, 36 STRIP_NONE,
@@ -32,6 +39,11 @@ enum striptype
32}; 39};
33 40
34/* protos for iriver.c */ 41/* protos for iriver.c */
35int iriver_decode(char *infile, char *outfile, BOOL modify, 42int iriver_decode(const char *infile, const char *outfile, BOOL modify,
36 enum striptype stripmode ); 43 enum striptype stripmode );
37int iriver_encode(char *infile_name, char *outfile_name, BOOL modify ); 44int iriver_encode(const char *infile_name, const char *outfile_name, BOOL modify);
45
46#ifdef __cplusplus
47}
48#endif
49