shithub: ext4srv

ref: 7c4ed936d9990c8fd790e655585a0ff4028b6ba8
dir: /common.h/

View raw version
#pragma lib "../lwext4/src/liblwext4.a"

typedef struct Group Group;
typedef struct Groups Groups;
typedef struct Opts Opts;
typedef struct Part Part;
#pragma incomplete Part
#pragma varargck type "Ð" Part*
#pragma varargck type "M" Part*

struct Group {
	u32int id;
	char *name;
	char **memb;
	int nmemb;
};

struct Groups {
	char *raw;
	Group *g;
	int ng;
};

struct Opts {
	int cachewb;
};

Part *openpart(char *dev, Opts *opts);
void closepart(Part *p);

char *errno2s(int err);
int loadgroups(Groups *gs, char *raw);
void freegroups(Groups *gs);