index 6dd7d1ade1ca98b952a4ce05a8b1a4f6bc21fa49..df959eab25396d03e67e8ab24f075a9086be77f1 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
#define SDB_STORE_MATCHER(obj) ((sdb_store_matcher_t *)(obj))
/*
- * A JSON formatter converts a stored object into the JSON format.
+ * A JSON formatter converts stored objects into the JSON format.
* See http://www.ietf.org/rfc/rfc4627.txt
*/
struct sdb_store_json_formatter;
* out. The SKIP_EMPTY flags may be used to skip host objects entirely.
*/
enum {
+ SDB_WANT_ARRAY = 1 << 0,
+
SDB_SKIP_ATTRIBUTES = 1 << 0,
SDB_SKIP_SERVICES = 1 << 1,
SDB_SKIP_METRICS = 1 << 2,
* Create a JSON formatter writing to the specified buffer.
*/
sdb_store_json_formatter_t *
-sdb_store_json_formatter(sdb_strbuf_t *buf);
+sdb_store_json_formatter(sdb_strbuf_t *buf, int flags);
/*
* sdb_store_json_emit: