diff options
author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-25 10:07:11 +0000 |
---|---|---|
committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-25 10:07:11 +0000 |
commit | 8a7268bde01dc2cc1d0202b51f1f1bd2c6c9c908 (patch) | |
tree | ac07fc6e9ddeee06cb0e67c9e4f0c14722dc4c2b /include | |
parent | a1b8e8f7f5833dbdb77a5e0dd749f15f0678c367 (diff) | |
download | zabbix-8a7268bde01dc2cc1d0202b51f1f1bd2c6c9c908.tar.gz zabbix-8a7268bde01dc2cc1d0202b51f1f1bd2c6c9c908.tar.xz zabbix-8a7268bde01dc2cc1d0202b51f1f1bd2c6c9c908.zip |
- [DEV-100] C library for JSON data format
git-svn-id: svn://svn.zabbix.com/trunk@5279 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r-- | include/zbxjson.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/zbxjson.h b/include/zbxjson.h index 30b2312b..ab4a4eb0 100644 --- a/include/zbxjson.h +++ b/include/zbxjson.h @@ -26,6 +26,7 @@ typedef enum { ZBX_JSON_TYPE_UNKNOWN = 0, ZBX_JSON_TYPE_STRING, + ZBX_JSON_TYPE_INT, ZBX_JSON_TYPE_NULL } zbx_json_type_t; @@ -53,7 +54,7 @@ int zbx_json_init(struct zbx_json *j, size_t allocate); int zbx_json_free(struct zbx_json *j); int zbx_json_addobject(struct zbx_json *j, const char *name); int zbx_json_addarray(struct zbx_json *j, const char *name); -int zbx_json_addstring(struct zbx_json *j, const char *name, const char *string); +int zbx_json_addstring(struct zbx_json *j, const char *name, const char *string, zbx_json_type_t type); /*int zbx_json_addunit64(struct zbx_json *j, const char *name, zbx_uint64_t value); int zbx_json_adddouble(struct zbx_json *j, const char *name, const double *value);*/ int zbx_json_return(struct zbx_json *j); |