-
Notifications
You must be signed in to change notification settings - Fork 3
/
ddftw.h
41 lines (32 loc) · 796 Bytes
/
ddftw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Header goes here
#ifndef _DDFTW_HEADER
#define _DDFTW_HEADER
static const char tw_dinfo_file[] = "/etc/device.info";
static const char tw_block[] = "/dev/block/";
static const char tw_mtd[] = "/dev/mtd/";
enum backup_method {
unknown = 0,
none,
image,
files,
};
struct dInfo {
char mnt[20];
char blk[100];
char dev[100];
char fst[10];
char fnm[256];
unsigned long long sze;
unsigned long long used;
int mountable;
enum backup_method backup;
};
struct dInfo* findDeviceByLabel(const char* label);
void readRecFstab();
void verifyFst();
void createFstab();
int getLocations();
void updateUsedSized();
extern struct dInfo tmp, sys, dat, boo, rec, cac, sdcext, sdcint, ase, sde, sp1, sp2, sp3;
extern char tw_device_name[20];
#endif // _DDFTW_HEADER