diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-06-18 22:30:59 +0000 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-06-18 22:30:59 +0000 |
| commit | c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6 (patch) | |
| tree | deb96279c6952871b5c0f47ec25879bb73240afd /tools/iriver.h | |
| parent | efbd2b8d7a9295f1a5544717c1b86527cc27ac7b (diff) | |
| download | rockbox-c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6.zip rockbox-c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6.tar.gz rockbox-c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6.tar.bz2 rockbox-c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6.tar.xz | |
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.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/iriver.h b/tools/iriver.h index 96326c4..e9df809 100644 --- a/tools/iriver.h +++ b/tools/iriver.h @@ -16,14 +16,21 @@ * KIND, either express or implied. * ****************************************************************************/ - +#ifndef TRUE #define TRUE 1 +#endif +#ifndef FALSE #define FALSE 0 +#endif #define BOOL unsigned int #define ESTF_SIZE 32 +#ifdef __cplusplus +extern "C" { +#endif + enum striptype { STRIP_NONE, @@ -32,6 +39,11 @@ enum striptype }; /* protos for iriver.c */ -int iriver_decode(char *infile, char *outfile, BOOL modify, +int iriver_decode(const char *infile, const char *outfile, BOOL modify, enum striptype stripmode ); -int iriver_encode(char *infile_name, char *outfile_name, BOOL modify ); +int iriver_encode(const char *infile_name, const char *outfile_name, BOOL modify); + +#ifdef __cplusplus +} +#endif + |