1
0
Fork 0
forked from len0rd/rockbox

move iriver checksums to its own file to remove unneeded inclusion and kill warnings. Tiny whitespace cleanup.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14070 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2007-07-29 21:59:11 +00:00
parent f119dc0d82
commit 206a5d3585
4 changed files with 44 additions and 19 deletions

View file

@ -46,7 +46,7 @@ class InstallBl : public QDialog
private: private:
Ui::InstallBootloaderFrm ui; Ui::InstallBootloaderFrm ui;
ProgressLoggerGui* logger; ProgressLoggerGui* logger;
QUrl proxy; QUrl proxy;
QSettings *devices; QSettings *devices;
QSettings *userSettings; QSettings *userSettings;
@ -62,7 +62,7 @@ class InstallBl : public QDialog
void browseFolder(void); void browseFolder(void);
void browseOF(void); void browseOF(void);
void done(bool); void done(bool);
}; };

View file

@ -18,6 +18,7 @@
****************************************************************************/ ****************************************************************************/
#include "installbootloader.h" #include "installbootloader.h"
#include "irivertools/checksums.h"
BootloaderInstaller::BootloaderInstaller(QObject* parent): QObject(parent) BootloaderInstaller::BootloaderInstaller(QObject* parent): QObject(parent)
{ {
@ -961,8 +962,8 @@ void BootloaderInstaller::iriverFinish()
{ {
// Patch firmware // Patch firmware
char md5sum_str[32]; char md5sum_str[32];
struct sumpairs *sums; struct sumpairs *sums = 0;
int origin; int origin = 0;
/* get pointer to the correct bootloader.bin */ /* get pointer to the correct bootloader.bin */
switch(series) { switch(series) {

View file

@ -0,0 +1,39 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* Module: rbutil
* File: irivertools.h
*
* Copyright (C) 2007 Dominik Wenger
*
* All files in this archive are subject to the GNU General Public License.
* See the file COPYING in the source tree root for full license agreement.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef CHECKSUMS_H
#define CHECKSUMS_H
/* precalculated checksums for H110/H115 */
static struct sumpairs h100pairs[] = {
#include "h100sums.h"
};
/* precalculated checksums for H120/H140 */
static struct sumpairs h120pairs[] = {
#include "h120sums.h"
};
/* precalculated checksums for H320/H340 */
static struct sumpairs h300pairs[] = {
#include "h300sums.h"
};
#endif

View file

@ -34,21 +34,6 @@ struct sumpairs {
char *patched; char *patched;
}; };
/* precalculated checksums for H110/H115 */
static struct sumpairs h100pairs[] = {
#include "h100sums.h"
};
/* precalculated checksums for H120/H140 */
static struct sumpairs h120pairs[] = {
#include "h120sums.h"
};
/* precalculated checksums for H320/H340 */
static struct sumpairs h300pairs[] = {
#include "h300sums.h"
};
enum striptype enum striptype
{ {