upgrade uci to 0.6.0 - many bugfixes and an API cleanup
[openwrt.git] / package / mtd / src / mtd.h
1 #ifndef __mtd_h
2 #define __mtd_h
3
4 #define JFFS2_EOF "\xde\xad\xc0\xde"
5
6 extern int quiet;
7 extern int mtdsize;
8 extern int erasesize;
9
10 extern int mtd_open(const char *mtd);
11 extern int mtd_check_open(const char *mtd);
12 extern int mtd_erase_block(int fd, int offset);
13 extern int mtd_write_buffer(int fd, const char *buf, int offset, int length);
14 extern int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir);
15 extern int mtd_replace_jffs2(int fd, int ofs, const char *filename);
16 extern void mtd_parse_jffs2data(const char *buf, const char *dir);
17
18 #endif /* __mtd_h */
This page took 0.049114 seconds and 5 git commands to generate.