diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-12 01:10:07 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-12 01:10:07 +0100 |
commit | df73d93b10e8e6014f61b1554be5b8553f34852a (patch) | |
tree | c12c7742f366b4702ef707fc4eb1f5e5e66b0521 /src/json_rpc.h | |
parent | refactoring (diff) | |
download | cimple-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.h | 2 |
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 *); |