aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/json.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-11-15 13:50:15 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-11-15 14:03:11 +0100
commit992ac5301fc8727d83017b242af2df9895eebfcc (patch)
tree4fdd21a61b54d368540d6ef65258f97473051381 /src/json.h
parentclient: print the server response (diff)
downloadcimple-992ac5301fc8727d83017b242af2df9895eebfcc.tar.gz
cimple-992ac5301fc8727d83017b242af2df9895eebfcc.zip
implement a command to list runs
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index d14fd97..92cd688 100644
--- a/src/json.h
+++ b/src/json.h
@@ -28,6 +28,9 @@ int json_clone(const struct json_object *, const char *key, struct json_object *
int json_send(struct json_object *, int fd);
struct json_object *json_recv(int fd);
+int json_new_object(struct json_object **);
+int json_new_array(struct json_object **);
+
int json_has(const struct json_object *, const char *key);
int json_get(const struct json_object *, const char *key, struct json_object **value);
@@ -42,4 +45,6 @@ int json_set_const_key(struct json_object *, const char *, struct json_object *v
int json_set_string_const_key(struct json_object *, const char *, const char *value);
int json_set_int_const_key(struct json_object *, const char *, int64_t value);
+int json_append(struct json_object *arr, struct json_object *elem);
+
#endif