From c47988034fbd5d7de8fcda2a87224bdb0b5dcfe6 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 18 Jun 2008 22:30:59 +0000 Subject: 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 --- tools/iriver.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'tools/iriver.h') 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 @@ * 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 + -- cgit