json_object: Add size_t json_object_sizeof()

This commit is contained in:
Björn Esser committed 2017-12-13 21:17:21 +01:00
1 parent 2849650f11
commit 10fe00650c
2 files changed
+10

No files matched your search

+5
View File
@@ -392,6 +392,11 @@ JSON_EXPORT struct lh_table* json_object_get_object(const struct json_object *ob
*/
JSON_EXPORT int json_object_object_length(const struct json_object* obj);
/** Get the sizeof (struct json_object).
* @returns a size_t with the sizeof (struct json_object)
*/
JSON_EXPORT size_t json_object_sizeof(void);
/** Add an object field to a json_object of type json_type_object
*
* The reference count will *not* be incremented. This is to make adding