diff options
Diffstat (limited to 'src/package.h')
-rw-r--r-- | src/package.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/package.h b/src/package.h new file mode 100644 index 0000000..62aca3b --- /dev/null +++ b/src/package.h @@ -0,0 +1,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, char *name, char *path, void *u), void *u); + +#endif |