#include #include #include #include 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);