index 538390afb3d69d24aaf7cce07fa38c689a36840a..bc4de1090f6d4a95e980835cf7c4033002776e79 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
#include "core/object.h"
#include "core/time.h"
#include "utils/llist.h"
+#include "utils/strbuf.h"
#include <stdio.h>
sdb_store_service(const char *hostname, const char *name,
sdb_time_t last_update);
+/*
+ * sdb_store_tojson:
+ * Serialize the entire store to JSON and append the result to the specified
+ * buffer.
+ *
+ * Returns:
+ * - 0 on success
+ * - a negative value on error
+ */
int
-sdb_store_dump(FILE *fh);
+sdb_store_tojson(sdb_strbuf_t *buf);
#ifdef __cplusplus
} /* extern "C" */