From d64e7bf3d93649b78231912f37606153e3d30665 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 20:16:43 +0200 Subject: finally, perfect .clang-format settings? --- src/json_rpc.h | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'src/json_rpc.h') diff --git a/src/json_rpc.h b/src/json_rpc.h index 0d6d34d..a341835 100644 --- a/src/json_rpc.h +++ b/src/json_rpc.h @@ -18,15 +18,19 @@ 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); +int jsonrpc_request_create( + struct jsonrpc_request**, + int id, + const char* method, + struct json_object* params +); void jsonrpc_request_destroy(struct jsonrpc_request*); -int jsonrpc_notification_create(struct jsonrpc_request**, - const char* method, - struct json_object* params); +int jsonrpc_notification_create( + struct jsonrpc_request**, + const char* method, + struct json_object* params +); int jsonrpc_request_is_notification(const struct jsonrpc_request*); int jsonrpc_request_send(const struct jsonrpc_request*, int fd); @@ -43,15 +47,19 @@ struct jsonrpc_response; const char* jsonrpc_response_to_string(const struct jsonrpc_response*); -int jsonrpc_response_create(struct jsonrpc_response**, - const struct jsonrpc_request*, - struct json_object* result); +int jsonrpc_response_create( + struct jsonrpc_response**, + const struct jsonrpc_request*, + struct json_object* result +); void jsonrpc_response_destroy(struct jsonrpc_response*); -int jsonrpc_error_create(struct jsonrpc_response**, - struct jsonrpc_request*, - int code, - const char* message); +int jsonrpc_error_create( + struct jsonrpc_response**, + struct jsonrpc_request*, + int code, + const char* message +); int jsonrpc_response_is_error(const struct jsonrpc_response*); int jsonrpc_response_send(const struct jsonrpc_response*, int fd); -- cgit v1.3