@@ -42,7 +42,7 @@ static ot_rpc_coap_request_key ot_rpc_coap_request_alloc(otCoapResponseHandler h
4242otMessage * otCoapNewMessage (otInstance * aInstance , const otMessageSettings * aSettings )
4343{
4444 struct nrf_rpc_cbor_ctx ctx ;
45- ot_msg_key message_rep ;
45+ ot_rpc_res_tab_key message_rep ;
4646
4747 NRF_RPC_CBOR_ALLOC (& ot_group , ctx , OT_RPC_MESSAGE_SETTINGS_LENGTH );
4848 ot_rpc_encode_message_settings (& ctx , aSettings );
@@ -59,12 +59,12 @@ void otCoapMessageInit(otMessage *aMessage, otCoapType aType, otCoapCode aCode)
5959 struct nrf_rpc_cbor_ctx ctx ;
6060 size_t cbor_buffer_size = 0 ;
6161
62- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
63- cbor_buffer_size += 1 ; /* aType */
64- cbor_buffer_size += 1 + sizeof (aCode ); /* aCode */
62+ cbor_buffer_size += 1 + sizeof (ot_rpc_res_tab_key ); /* aMessage */
63+ cbor_buffer_size += 1 ; /* aType */
64+ cbor_buffer_size += 1 + sizeof (aCode ); /* aCode */
6565
6666 NRF_RPC_CBOR_ALLOC (& ot_group , ctx , cbor_buffer_size );
67- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
67+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
6868 nrf_rpc_encode_uint (& ctx , aType );
6969 nrf_rpc_encode_uint (& ctx , aCode );
7070
@@ -79,14 +79,14 @@ otError otCoapMessageInitResponse(otMessage *aResponse, const otMessage *aReques
7979 size_t cbor_buffer_size = 0 ;
8080 otError error ;
8181
82- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aResponse */
83- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aRequest */
84- cbor_buffer_size += 1 ; /* aType */
85- cbor_buffer_size += 1 + sizeof (aCode ); /* aCode */
82+ cbor_buffer_size += 1 + sizeof (ot_rpc_res_tab_key ); /* aResponse */
83+ cbor_buffer_size += 1 + sizeof (ot_rpc_res_tab_key ); /* aRequest */
84+ cbor_buffer_size += 1 ; /* aType */
85+ cbor_buffer_size += 1 + sizeof (aCode ); /* aCode */
8686
8787 NRF_RPC_CBOR_ALLOC (& ot_group , ctx , cbor_buffer_size );
88- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aResponse );
89- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aRequest );
88+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aResponse );
89+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aRequest );
9090 nrf_rpc_encode_uint (& ctx , aType );
9191 nrf_rpc_encode_uint (& ctx , aCode );
9292
@@ -102,11 +102,11 @@ otError otCoapMessageAppendUriPathOptions(otMessage *aMessage, const char *aUriP
102102 size_t cbor_buffer_size = 0 ;
103103 otError error ;
104104
105- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
106- cbor_buffer_size += 2 + strlen (aUriPath ); /* aUriPath */
105+ cbor_buffer_size += 1 + sizeof (ot_rpc_res_tab_key ); /* aMessage */
106+ cbor_buffer_size += 2 + strlen (aUriPath ); /* aUriPath */
107107
108108 NRF_RPC_CBOR_ALLOC (& ot_group , ctx , cbor_buffer_size );
109- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
109+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
110110 nrf_rpc_encode_str (& ctx , aUriPath , -1 );
111111
112112 nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_APPEND_URI_PATH_OPTIONS , & ctx ,
@@ -120,8 +120,8 @@ otError otCoapMessageSetPayloadMarker(otMessage *aMessage)
120120 struct nrf_rpc_cbor_ctx ctx ;
121121 otError error ;
122122
123- NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_msg_key ));
124- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
123+ NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_rpc_res_tab_key ));
124+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
125125
126126 nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_SET_PAYLOAD_MARKER , & ctx ,
127127 ot_rpc_decode_error , & error );
@@ -134,8 +134,8 @@ otCoapType otCoapMessageGetType(const otMessage *aMessage)
134134 struct nrf_rpc_cbor_ctx ctx ;
135135 otCoapType type = 0 ;
136136
137- NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_msg_key ));
138- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
137+ NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_rpc_res_tab_key ));
138+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
139139
140140 nrf_rpc_cbor_cmd_rsp_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_TYPE , & ctx );
141141 nrf_rpc_rsp_decode_uint (& ot_group , & ctx , & type , sizeof (type ));
@@ -149,8 +149,8 @@ otCoapCode otCoapMessageGetCode(const otMessage *aMessage)
149149 struct nrf_rpc_cbor_ctx ctx ;
150150 otCoapCode code = 0 ;
151151
152- NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_msg_key ));
153- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
152+ NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_rpc_res_tab_key ));
153+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
154154
155155 nrf_rpc_cbor_cmd_rsp_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_CODE , & ctx );
156156 nrf_rpc_rsp_decode_uint (& ot_group , & ctx , & code , sizeof (code ));
@@ -164,8 +164,8 @@ uint16_t otCoapMessageGetMessageId(const otMessage *aMessage)
164164 struct nrf_rpc_cbor_ctx ctx ;
165165 uint16_t id = 0 ;
166166
167- NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_msg_key ));
168- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
167+ NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_rpc_res_tab_key ));
168+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
169169
170170 nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_MESSAGE_ID , & ctx ,
171171 nrf_rpc_rsp_decode_u16 , & id );
@@ -178,8 +178,8 @@ uint8_t otCoapMessageGetTokenLength(const otMessage *aMessage)
178178 struct nrf_rpc_cbor_ctx ctx ;
179179 uint8_t token_length = 0 ;
180180
181- NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_msg_key ));
182- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
181+ NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_rpc_res_tab_key ));
182+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
183183
184184 nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_TOKEN_LENGTH , & ctx ,
185185 nrf_rpc_rsp_decode_u8 , & token_length );
@@ -192,8 +192,8 @@ const uint8_t *otCoapMessageGetToken(const otMessage *aMessage)
192192 struct nrf_rpc_cbor_ctx ctx ;
193193 static uint8_t token [OT_COAP_MAX_TOKEN_LENGTH ];
194194
195- NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_msg_key ));
196- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
195+ NRF_RPC_CBOR_ALLOC (& ot_group , ctx , 1 + sizeof (ot_rpc_res_tab_key ));
196+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
197197
198198 nrf_rpc_cbor_cmd_rsp_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_TOKEN , & ctx );
199199
@@ -370,7 +370,7 @@ void otCoapSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandle
370370static void ot_rpc_cmd_coap_default_handler (const struct nrf_rpc_group * group ,
371371 struct nrf_rpc_cbor_ctx * ctx , void * handler_data )
372372{
373- ot_msg_key message_rep ;
373+ ot_rpc_res_tab_key message_rep ;
374374 otMessageInfo message_info ;
375375
376376 message_rep = nrf_rpc_decode_uint (ctx );
@@ -407,12 +407,12 @@ otError otCoapSendRequestWithParameters(otInstance *aInstance, otMessage *aMessa
407407 return OT_ERROR_NO_BUFS ;
408408 }
409409
410- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
410+ cbor_buffer_size += 1 + sizeof (ot_rpc_res_tab_key ); /* aMessage */
411411 cbor_buffer_size += OT_RPC_MESSAGE_INFO_LENGTH (aMessageInfo );
412412 cbor_buffer_size += 1 + sizeof (ot_rpc_coap_request_key );
413413
414414 NRF_RPC_CBOR_ALLOC (& ot_group , ctx , cbor_buffer_size );
415- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
415+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
416416 ot_rpc_encode_message_info (& ctx , aMessageInfo );
417417 nrf_rpc_encode_uint (& ctx , request_rep );
418418 /* Ignore aTXParameters as it is NULL for otCoapSendRequest() that we only need for now */
@@ -474,11 +474,11 @@ otError otCoapSendResponseWithParameters(otInstance *aInstance, otMessage *aMess
474474 size_t cbor_buffer_size = 0 ;
475475 otError error = OT_ERROR_PARSE ;
476476
477- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
477+ cbor_buffer_size += 1 + sizeof (ot_rpc_res_tab_key ); /* aMessage */
478478 cbor_buffer_size += OT_RPC_MESSAGE_INFO_LENGTH (aMessageInfo );
479479
480480 NRF_RPC_CBOR_ALLOC (& ot_group , ctx , cbor_buffer_size );
481- nrf_rpc_encode_uint (& ctx , (ot_msg_key )aMessage );
481+ nrf_rpc_encode_uint (& ctx , (ot_rpc_res_tab_key )aMessage );
482482 ot_rpc_encode_message_info (& ctx , aMessageInfo );
483483 /* Ignore aTXParameters as it is NULL for otCoapSendResponse() that we only need for now */
484484 ARG_UNUSED (aTxParameters );
0 commit comments