tests/unittests/tests-gcoap: adapt to resource context ptr

This commit is contained in:
Kaspar Schleiser 2018-02-02 19:02:31 +01:00
parent aa52f5334b
commit 96fb3b1e21

View File

@ -26,13 +26,13 @@
* A test set of dummy resources. The resource handlers are set to NULL. * A test set of dummy resources. The resource handlers are set to NULL.
*/ */
static const coap_resource_t resources[] = { static const coap_resource_t resources[] = {
{ "/act/switch", (COAP_GET | COAP_POST), NULL }, { .path = "/act/switch", .methods = (COAP_GET | COAP_POST) },
{ "/sensor/temp", (COAP_GET), NULL }, { .path = "/sensor/temp", .methods = (COAP_GET) },
{ "/test/info/all", (COAP_GET), NULL }, { .path = "/test/info/all", .methods = (COAP_GET) },
}; };
static const coap_resource_t resources_second[] = { static const coap_resource_t resources_second[] = {
{ "/second/part", (COAP_GET), NULL }, { .path = "/second/part", .methods = (COAP_GET)},
}; };
static gcoap_listener_t listener = { static gcoap_listener_t listener = {