Colour targets: Revert an optimisation from almost 18 months ago that actually turned...
[Rockbox.git] / rbutil / rbutilqt / irivertools / irivertools.h
blob6d61300d7952741be9514dcb9d38e147669d1e38
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: irivertools.h
11 * Copyright (C) 2007 Dominik Wenger
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
24 #ifndef IRIVERTOOLS_H_INCLUDED
25 #define IRIVERTOOLS_H_INCLUDED
27 #include <QtCore>
29 #include "md5sum.h"
31 #define ESTF_SIZE 32
33 struct sumpairs {
34 const char *unpatched;
35 const char *patched;
39 enum striptype
41 STRIP_NONE,
42 STRIP_HEADER_CHECKSUM,
43 STRIP_HEADER_CHECKSUM_ESTF
46 /* protos for iriver.c */
48 int intable(char *md5, struct sumpairs *table, int len);
50 int mkboot(QString infile, QString outfile,QString bootloader,int origin);
51 int iriver_decode(QString infile_name, QString outfile_name, unsigned int modify,
52 enum striptype stripmode);
53 int iriver_encode(QString infile_name, QString outfile_name, unsigned int modify);
55 #endif // IRIVERTOOLS_H_INCLUDED