Code

data: Added sdb_data_sizeof().
[sysdb.git] / src / include / core / data.h
index 514c4d524ce2dd04dc463ff6b7e51254dede129f..c8c7482e796f4438aeafdb8eebe4588223636e7b 100644 (file)
@@ -257,6 +257,17 @@ sdb_data_format(const sdb_data_t *datum, char *buf, size_t buflen, int quoted);
 int
 sdb_data_parse(char *str, int type, sdb_data_t *data);
 
+/*
+ * sdb_data_sizeof:
+ * Return the size of the data-type identified by the specified type.
+ *
+ * Returns:
+ *  - the size of the data-type on success
+ *  - 0 else
+ */
+size_t
+sdb_data_sizeof(int type);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif