diff options
Diffstat (limited to 'rbutil/rbutilqt/irivertools/irivertools.h')
-rw-r--r-- | rbutil/rbutilqt/irivertools/irivertools.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/irivertools/irivertools.h b/rbutil/rbutilqt/irivertools/irivertools.h new file mode 100644 index 0000000000..54809d7645 --- /dev/null +++ b/rbutil/rbutilqt/irivertools/irivertools.h | |||
@@ -0,0 +1,69 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * Module: rbutil | ||
9 | * File: irivertools.h | ||
10 | * | ||
11 | * Copyright (C) 2007 Dominik Wenger | ||
12 | * | ||
13 | * All files in this archive are subject to the GNU General Public License. | ||
14 | * See the file COPYING in the source tree root for full license agreement. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | |||
22 | #ifndef IRIVERTOOLS_H_INCLUDED | ||
23 | #define IRIVERTOOLS_H_INCLUDED | ||
24 | |||
25 | #include <QtGui> | ||
26 | |||
27 | #include "md5sum.h" | ||
28 | #include "ui_installprogressfrm.h" | ||
29 | |||
30 | #define ESTF_SIZE 32 | ||
31 | |||
32 | struct sumpairs { | ||
33 | char *unpatched; | ||
34 | char *patched; | ||
35 | }; | ||
36 | |||
37 | /* precalculated checksums for H110/H115 */ | ||
38 | static struct sumpairs h100pairs[] = { | ||
39 | #include "h100sums.h" | ||
40 | }; | ||
41 | |||
42 | /* precalculated checksums for H120/H140 */ | ||
43 | static struct sumpairs h120pairs[] = { | ||
44 | #include "h120sums.h" | ||
45 | }; | ||
46 | |||
47 | /* precalculated checksums for H320/H340 */ | ||
48 | static struct sumpairs h300pairs[] = { | ||
49 | #include "h300sums.h" | ||
50 | }; | ||
51 | |||
52 | |||
53 | enum striptype | ||
54 | { | ||
55 | STRIP_NONE, | ||
56 | STRIP_HEADER_CHECKSUM, | ||
57 | STRIP_HEADER_CHECKSUM_ESTF | ||
58 | }; | ||
59 | |||
60 | /* protos for iriver.c */ | ||
61 | |||
62 | int intable(char *md5, struct sumpairs *table, int len); | ||
63 | |||
64 | bool mkboot(QString infile, QString outfile,QString bootloader,int origin,Ui::InstallProgressFrm* dp); | ||
65 | int iriver_decode(QString infile_name, QString outfile_name, unsigned int modify, | ||
66 | enum striptype stripmode,Ui::InstallProgressFrm* dp ); | ||
67 | int iriver_encode(QString infile_name, QString outfile_name, unsigned int modify,Ui::InstallProgressFrm* dp); | ||
68 | |||
69 | #endif // IRIVERTOOLS_H_INCLUDED | ||