@@ -42,7 +42,7 @@ static ot_rpc_coap_request_key ot_rpc_coap_request_alloc(otCoapResponseHandler h
42
42
otMessage * otCoapNewMessage (otInstance * aInstance , const otMessageSettings * aSettings )
43
43
{
44
44
struct nrf_rpc_cbor_ctx ctx ;
45
- ot_msg_key message_rep ;
45
+ ot_rpc_registry_key message_rep ;
46
46
47
47
NRF_RPC_CBOR_ALLOC (& ot_group , ctx , OT_RPC_MESSAGE_SETTINGS_LENGTH );
48
48
ot_rpc_encode_message_settings (& ctx , aSettings );
@@ -59,12 +59,12 @@ void otCoapMessageInit(otMessage *aMessage, otCoapType aType, otCoapCode aCode)
59
59
struct nrf_rpc_cbor_ctx ctx ;
60
60
size_t cbor_buffer_size = 0 ;
61
61
62
- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
62
+ cbor_buffer_size += 1 + sizeof (ot_rpc_registry_key ); /* aMessage */
63
63
cbor_buffer_size += 1 ; /* aType */
64
64
cbor_buffer_size += 1 + sizeof (aCode ); /* aCode */
65
65
66
66
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_registry_key )aMessage );
68
68
nrf_rpc_encode_uint (& ctx , aType );
69
69
nrf_rpc_encode_uint (& ctx , aCode );
70
70
@@ -79,14 +79,14 @@ otError otCoapMessageInitResponse(otMessage *aResponse, const otMessage *aReques
79
79
size_t cbor_buffer_size = 0 ;
80
80
otError error ;
81
81
82
- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aResponse */
83
- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aRequest */
82
+ cbor_buffer_size += 1 + sizeof (ot_rpc_registry_key ); /* aResponse */
83
+ cbor_buffer_size += 1 + sizeof (ot_rpc_registry_key ); /* aRequest */
84
84
cbor_buffer_size += 1 ; /* aType */
85
85
cbor_buffer_size += 1 + sizeof (aCode ); /* aCode */
86
86
87
87
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_registry_key )aResponse );
89
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aRequest );
90
90
nrf_rpc_encode_uint (& ctx , aType );
91
91
nrf_rpc_encode_uint (& ctx , aCode );
92
92
@@ -102,11 +102,11 @@ otError otCoapMessageAppendUriPathOptions(otMessage *aMessage, const char *aUriP
102
102
size_t cbor_buffer_size = 0 ;
103
103
otError error ;
104
104
105
- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
105
+ cbor_buffer_size += 1 + sizeof (ot_rpc_registry_key ); /* aMessage */
106
106
cbor_buffer_size += 2 + strlen (aUriPath ); /* aUriPath */
107
107
108
108
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_registry_key )aMessage );
110
110
nrf_rpc_encode_str (& ctx , aUriPath , -1 );
111
111
112
112
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)
120
120
struct nrf_rpc_cbor_ctx ctx ;
121
121
otError error ;
122
122
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_registry_key ));
124
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aMessage );
125
125
126
126
nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_SET_PAYLOAD_MARKER , & ctx ,
127
127
ot_rpc_decode_error , & error );
@@ -134,8 +134,8 @@ otCoapType otCoapMessageGetType(const otMessage *aMessage)
134
134
struct nrf_rpc_cbor_ctx ctx ;
135
135
otCoapType type = 0 ;
136
136
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_registry_key ));
138
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aMessage );
139
139
140
140
nrf_rpc_cbor_cmd_rsp_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_TYPE , & ctx );
141
141
nrf_rpc_rsp_decode_uint (& ot_group , & ctx , & type , sizeof (type ));
@@ -149,8 +149,8 @@ otCoapCode otCoapMessageGetCode(const otMessage *aMessage)
149
149
struct nrf_rpc_cbor_ctx ctx ;
150
150
otCoapCode code = 0 ;
151
151
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_registry_key ));
153
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aMessage );
154
154
155
155
nrf_rpc_cbor_cmd_rsp_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_CODE , & ctx );
156
156
nrf_rpc_rsp_decode_uint (& ot_group , & ctx , & code , sizeof (code ));
@@ -164,8 +164,8 @@ uint16_t otCoapMessageGetMessageId(const otMessage *aMessage)
164
164
struct nrf_rpc_cbor_ctx ctx ;
165
165
uint16_t id = 0 ;
166
166
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_registry_key ));
168
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aMessage );
169
169
170
170
nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_MESSAGE_ID , & ctx ,
171
171
nrf_rpc_rsp_decode_u16 , & id );
@@ -178,8 +178,8 @@ uint8_t otCoapMessageGetTokenLength(const otMessage *aMessage)
178
178
struct nrf_rpc_cbor_ctx ctx ;
179
179
uint8_t token_length = 0 ;
180
180
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_registry_key ));
182
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aMessage );
183
183
184
184
nrf_rpc_cbor_cmd_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_TOKEN_LENGTH , & ctx ,
185
185
nrf_rpc_rsp_decode_u8 , & token_length );
@@ -192,8 +192,8 @@ const uint8_t *otCoapMessageGetToken(const otMessage *aMessage)
192
192
struct nrf_rpc_cbor_ctx ctx ;
193
193
static uint8_t token [OT_COAP_MAX_TOKEN_LENGTH ];
194
194
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_registry_key ));
196
+ nrf_rpc_encode_uint (& ctx , (ot_rpc_registry_key )aMessage );
197
197
198
198
nrf_rpc_cbor_cmd_rsp_no_err (& ot_group , OT_RPC_CMD_COAP_MESSAGE_GET_TOKEN , & ctx );
199
199
@@ -370,7 +370,7 @@ void otCoapSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandle
370
370
static void ot_rpc_cmd_coap_default_handler (const struct nrf_rpc_group * group ,
371
371
struct nrf_rpc_cbor_ctx * ctx , void * handler_data )
372
372
{
373
- ot_msg_key message_rep ;
373
+ ot_rpc_registry_key message_rep ;
374
374
otMessageInfo message_info ;
375
375
376
376
message_rep = nrf_rpc_decode_uint (ctx );
@@ -407,12 +407,12 @@ otError otCoapSendRequestWithParameters(otInstance *aInstance, otMessage *aMessa
407
407
return OT_ERROR_NO_BUFS ;
408
408
}
409
409
410
- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
410
+ cbor_buffer_size += 1 + sizeof (ot_rpc_registry_key ); /* aMessage */
411
411
cbor_buffer_size += OT_RPC_MESSAGE_INFO_LENGTH (aMessageInfo );
412
412
cbor_buffer_size += 1 + sizeof (ot_rpc_coap_request_key );
413
413
414
414
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_registry_key )aMessage );
416
416
ot_rpc_encode_message_info (& ctx , aMessageInfo );
417
417
nrf_rpc_encode_uint (& ctx , request_rep );
418
418
/* Ignore aTXParameters as it is NULL for otCoapSendRequest() that we only need for now */
@@ -474,11 +474,11 @@ otError otCoapSendResponseWithParameters(otInstance *aInstance, otMessage *aMess
474
474
size_t cbor_buffer_size = 0 ;
475
475
otError error = OT_ERROR_PARSE ;
476
476
477
- cbor_buffer_size += 1 + sizeof (ot_msg_key ); /* aMessage */
477
+ cbor_buffer_size += 1 + sizeof (ot_rpc_registry_key ); /* aMessage */
478
478
cbor_buffer_size += OT_RPC_MESSAGE_INFO_LENGTH (aMessageInfo );
479
479
480
480
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_registry_key )aMessage );
482
482
ot_rpc_encode_message_info (& ctx , aMessageInfo );
483
483
/* Ignore aTXParameters as it is NULL for otCoapSendResponse() that we only need for now */
484
484
ARG_UNUSED (aTxParameters );
0 commit comments