diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 20:16:43 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 20:16:43 +0200 |
| commit | d64e7bf3d93649b78231912f37606153e3d30665 (patch) | |
| tree | 1b583f5b3a8952794d4bd4f7a1936f7d66802551 /src/command.h | |
| parent | update .git-blame-ignore-revs (diff) | |
| download | cimple-d64e7bf3d93649b78231912f37606153e3d30665.tar.gz cimple-d64e7bf3d93649b78231912f37606153e3d30665.zip | |
finally, perfect .clang-format settings?
Diffstat (limited to 'src/command.h')
| -rw-r--r-- | src/command.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/command.h b/src/command.h index da7ab24..a27ee7c 100644 --- a/src/command.h +++ b/src/command.h @@ -13,9 +13,11 @@ #include <stddef.h> -typedef int (*cmd_handler)(const struct jsonrpc_request* request, - struct jsonrpc_response** response, - void* ctx); +typedef int (*cmd_handler)( + const struct jsonrpc_request* request, + struct jsonrpc_response** response, + void* ctx +); struct cmd_desc { char* name; @@ -27,9 +29,11 @@ struct cmd_dispatcher; int cmd_dispatcher_create(struct cmd_dispatcher**, struct cmd_desc*, size_t numof_defs, void* ctx); void cmd_dispatcher_destroy(struct cmd_dispatcher*); -int cmd_dispatcher_handle(const struct cmd_dispatcher*, - const struct jsonrpc_request* command, - struct jsonrpc_response** response); +int cmd_dispatcher_handle( + const struct cmd_dispatcher*, + const struct jsonrpc_request* command, + struct jsonrpc_response** response +); struct cmd_conn_ctx { int fd; |
