aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/json_rpc.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-11-12 01:10:07 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-11-12 01:10:07 +0100
commitdf73d93b10e8e6014f61b1554be5b8553f34852a (patch)
treec12c7742f366b4702ef707fc4eb1f5e5e66b0521 /src/json_rpc.h
parentrefactoring (diff)
downloadcimple-df73d93b10e8e6014f61b1554be5b8553f34852a.tar.gz
cimple-df73d93b10e8e6014f61b1554be5b8553f34852a.zip
json_rpc: add a routine to generate request IDs
Diffstat (limited to 'src/json_rpc.h')
-rw-r--r--src/json_rpc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/json_rpc.h b/src/json_rpc.h
index f3c67a9..090caca 100644
--- a/src/json_rpc.h
+++ b/src/json_rpc.h
@@ -16,6 +16,8 @@
struct jsonrpc_request;
+int jsonrpc_generate_request_id(void);
+
int jsonrpc_request_create(struct jsonrpc_request **, int id, const char *method,
struct json_object *params);
void jsonrpc_request_destroy(struct jsonrpc_request *);