when resolving filenames also take system and hidden files into account.
[Rockbox.git] / rbutil / sansapatcher / sansapatcher.h
blob7f113ec08346222dc9338631129ff7c2503ebc79
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006-2007 Dave Chapman
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef _SANSAPATCHER_H
21 #define _SANSAPATCHER_H
23 #include "sansaio.h"
25 /* Size of buffer for disk I/O - 8MB is large enough for any version
26 of the Apple firmware, but not the Nano's RSRC image. */
27 #define BUFFER_SIZE 8*1024*1024
28 extern unsigned char* sectorbuf;
30 #define FILETYPE_MI4 0
31 #define FILETYPE_INTERNAL 1
33 int sansa_read_partinfo(struct sansa_t* sansa, int silent);
34 int is_sansa(struct sansa_t* sansa);
35 int sansa_scan(struct sansa_t* sansa);
36 int sansa_read_firmware(struct sansa_t* sansa, char* filename);
37 int sansa_add_bootloader(struct sansa_t* sansa, char* filename, int type);
38 int sansa_delete_bootloader(struct sansa_t* sansa);
39 int sansa_update_of(struct sansa_t* sansa,char* filename);
40 int sansa_update_ppbl(struct sansa_t* sansa,char* filename);
41 void sansa_list_images(struct sansa_t* sansa);
43 #endif