summaryrefslogtreecommitdiffstats
path: root/src/package.h
blob: 56a3d34860e9e2cdc26dc442c03dd8997a81668c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef foopackagehfoo
#define foopackagehfoo

#define PACKAGE_ITEM_NAME_LEN 32

struct package;

struct package* package_open(const char *fn);
void package_remove(struct package *p);
int package_save(struct package *p, const char *fn);
const char *package_get_item(struct package* p, const char *name);
int package_foreach(struct package *p, int (*cb) (struct package *p, const char *name, const char *path, void *u), void *u);

#endif