add single instance mode
[uwplayer.git] / application / json.h
index 659c7f6..4898cba 100644 (file)
@@ -182,6 +182,7 @@ struct JSONValue {
 
 
 JSONParser* json_parser_new(void);
+void json_parser_free(JSONParser *p);
 
 void json_parser_fill(JSONParser *p, const char *buf, size_t size);
 
@@ -206,6 +207,9 @@ JSONValue* json_array_get(JSONArray *array, size_t i);
 
 void json_value_free(JSONValue *value);
 
+int json_strcmp(JSONValue *jsstr, const char *str);
+int json_strncmp(JSONValue *jsstr, const char *str, size_t slen);
+
 #ifdef __cplusplus
 }
 #endif