1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests: make use of coap_request_ctx_t

This commit is contained in:
Benjamin Valentin 2022-04-30 00:17:23 +02:00
parent a6c617a221
commit b86379f1ac
3 changed files with 4 additions and 4 deletions

View File

@ -239,7 +239,7 @@ static int _unittests(int argc, char **argv)
return 0;
}
static ssize_t _mock_dns_server(coap_pkt_t *pdu, uint8_t *buf, size_t len, void *ctx)
static ssize_t _mock_dns_server(coap_pkt_t *pdu, uint8_t *buf, size_t len, coap_request_ctx_t *ctx)
{
(void)ctx;
if ((_resp_code >> 5) == COAP_CLASS_SUCCESS) {

View File

@ -58,7 +58,7 @@ static wc_Sha256 _sha_r;
struct tc_sha256_state_struct _sha_r;
#endif
ssize_t _edhoc_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, void *context)
ssize_t _edhoc_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, coap_request_ctx_t *context)
{
(void)context;
ssize_t msg_len = 0;

View File

@ -15,9 +15,9 @@
static riotboot_flashwrite_t _writer;
ssize_t _flashwrite_handler(coap_pkt_t* pkt, uint8_t *buf, size_t len, void *context)
ssize_t _flashwrite_handler(coap_pkt_t* pkt, uint8_t *buf, size_t len, coap_request_ctx_t *ctx)
{
riotboot_flashwrite_t *writer = context;
riotboot_flashwrite_t *writer = ctx->context;
uint32_t result = COAP_CODE_204;