index 53b68193dae4765eb432565992c5d8d8cd208fe6..58e92cde59583dd7b114b163304223ecdb2f5d9c 100644 (file)
--- a/src/include/core/data.h
+++ b/src/include/core/data.h
#define SDB_CORE_DATA_H 1
#include "core/time.h"
+#include "utils/strbuf.h"
#include <inttypes.h>
#include <stddef.h>
void
sdb_data_free_datum(sdb_data_t *datum);
+/*
+ * sdb_data_format:
+ * Append the specified datum to the specified string buffer using a default
+ * format.
+ *
+ * Returns:
+ * - 0 on success
+ * - a negative value else
+ */
+int
+sdb_data_format(sdb_data_t *datum, sdb_strbuf_t *buf);
+
#ifdef __cplusplus
} /* extern "C" */
#endif