Code

store: Make the actual store a separate object.
[sysdb.git] / src / include / core / store.h
index c52299e806314a951df6fbb670e7b098f7e371cd..4a0960c1cbe0055f77c1c1c6d64a9f32aa566b82 100644 (file)
@@ -170,6 +170,18 @@ typedef struct {
                        sdb_object_t *user_data);
 } sdb_store_writer_t;
 
+/*
+ * sdb_store_init:
+ * Initialize the store sub-system. This function has to be called before
+ * doing any other store operations.
+ *
+ * Returns:
+ *  - 0 on success
+ *  - a negative value else
+ */
+int
+sdb_store_init(void);
+
 /*
  * sdb_store_clear:
  * Clear the entire store and remove all stored objects.