diff options
Diffstat (limited to 'rbutil/irivertools.h')
-rwxr-xr-x | rbutil/irivertools.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/rbutil/irivertools.h b/rbutil/irivertools.h new file mode 100755 index 0000000000..deae3f4006 --- /dev/null +++ b/rbutil/irivertools.h | |||
@@ -0,0 +1,65 @@ | |||
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 "rbutil.h" | ||
26 | #include "installlog.h" | ||
27 | |||
28 | #define ESTF_SIZE 32 | ||
29 | |||
30 | struct sumpairs { | ||
31 | char *unpatched; | ||
32 | char *patched; | ||
33 | }; | ||
34 | |||
35 | /* precalculated checksums for H110/H115 */ | ||
36 | static struct sumpairs h100pairs[] = { | ||
37 | #include "h100sums.h" | ||
38 | }; | ||
39 | |||
40 | /* precalculated checksums for H120/H140 */ | ||
41 | static struct sumpairs h120pairs[] = { | ||
42 | #include "h120sums.h" | ||
43 | }; | ||
44 | |||
45 | /* precalculated checksums for H320/H340 */ | ||
46 | static struct sumpairs h300pairs[] = { | ||
47 | #include "h300sums.h" | ||
48 | }; | ||
49 | |||
50 | |||
51 | enum striptype | ||
52 | { | ||
53 | STRIP_NONE, | ||
54 | STRIP_HEADER_CHECKSUM, | ||
55 | STRIP_HEADER_CHECKSUM_ESTF | ||
56 | }; | ||
57 | |||
58 | /* protos for iriver.c */ | ||
59 | |||
60 | int intable(wxString md5, struct sumpairs *table, int len); | ||
61 | |||
62 | bool PatchFirmware(wxString firmware,wxString bootloader,int series, int table_entry); | ||
63 | |||
64 | |||
65 | #endif // IRIVERTOOLS_H_INCLUDED | ||