RPC: more asserts and checks (#1606)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Nikolay Minaylov
2022-08-22 19:36:45 +03:00
committed by GitHub
parent 4e1470cef2
commit 84e2e321b4
9 changed files with 299 additions and 281 deletions

View File

@@ -77,6 +77,7 @@ static void rpc_system_system_device_info_callback(
furi_assert(key);
furi_assert(value);
RpcSystemContext* ctx = context;
furi_assert(ctx);
furi_assert(key);
furi_assert(value);
@@ -233,6 +234,7 @@ static void rpc_system_system_power_info_callback(
furi_assert(key);
furi_assert(value);
RpcSystemContext* ctx = context;
furi_assert(ctx);
furi_assert(key);
furi_assert(value);
@@ -297,6 +299,8 @@ static void rpc_system_system_update_request_process(const PB_Main* request, voi
#endif
void* rpc_system_system_alloc(RpcSession* session) {
furi_assert(session);
RpcHandler rpc_handler = {
.message_handler = NULL,
.decode_submessage = NULL,