diff options
Diffstat (limited to 'include/npassd/collection.h')
-rw-r--r-- | include/npassd/collection.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/npassd/collection.h b/include/npassd/collection.h new file mode 100644 index 0000000..36d6b72 --- /dev/null +++ b/include/npassd/collection.h @@ -0,0 +1,21 @@ +#include <linux/limits.h> +#include <sqlite3.h> +#include <sys/queue.h> +#include <systemd/sd-bus.h> + +struct collection { + sd_bus_slot *slot; + char *root, *path; + + int locked; + char *alias, *label; + uint64_t created, modified; + + LIST_ENTRY(collection) dlist; +}; + +LIST_HEAD(collection_dlist, collection); + +int collection_new(sd_bus *bus, struct sqlite3 *db, struct collection **p, + const char *alias, const char *label, const char *root); +int collection_root_make(const char *label, const char *alias, char **root); |