summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-29 18:37:56 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-29 18:37:56 +0000
commit8eafeaaa960b17d2060a17f4e6937265fbe82775 (patch)
tree9db0d33c76714177a02d5774d5c1ac9ddf45fb72 /include
parent0c12891108a86a1059340fd5597a08bd05db8024 (diff)
downloadzabbix-8eafeaaa960b17d2060a17f4e6937265fbe82775.tar.gz
zabbix-8eafeaaa960b17d2060a17f4e6937265fbe82775.tar.xz
zabbix-8eafeaaa960b17d2060a17f4e6937265fbe82775.zip
- [DEV-100] C library for JSON data format
git-svn-id: svn://svn.zabbix.com/trunk@5288 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/zbxjson.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/zbxjson.h b/include/zbxjson.h
index 91cda9f2..a10f918e 100644
--- a/include/zbxjson.h
+++ b/include/zbxjson.h
@@ -52,12 +52,14 @@ struct zbx_json_parse {
const char *end;
};
-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, zbx_json_type_t type);
-int zbx_json_return(struct zbx_json *j);
+char *zbx_json_strerror(void);
+
+void zbx_json_init(struct zbx_json *j, size_t allocate);
+void zbx_json_free(struct zbx_json *j);
+void zbx_json_addobject(struct zbx_json *j, const char *name);
+void zbx_json_addarray(struct zbx_json *j, const char *name);
+void zbx_json_addstring(struct zbx_json *j, const char *name, const char *string, zbx_json_type_t type);
+int zbx_json_close(struct zbx_json *j);
int zbx_json_open(char *buffer, struct zbx_json_parse *jp);
const char *zbx_json_decodevalue(const char *p, char *string, size_t len);