Lines Matching refs:uri
100 coap_dynamic_uri_t *uri) { in coap_add_payload() argument
106 if (uri) { in coap_add_payload()
107 memcpy(uri->resource_key, key, sizeof(coap_key_t)); in coap_add_payload()
108 HASH_ADD(hh, test_dynamic_uris, resource_key, sizeof(coap_key_t), uri); in coap_add_payload()
115 coap_dynamic_uri_t *uri; in coap_delete_payload() local
117 payload->resource_key, sizeof(coap_key_t), uri); in coap_delete_payload()
118 if (uri) { in coap_delete_payload()
119 HASH_DELETE(hh, test_dynamic_uris, uri); in coap_delete_payload()
120 coap_free(uri); in coap_delete_payload()
247 coap_dynamic_uri_t *uri; in hnd_post_test() local
260 uri = (coap_dynamic_uri_t *)coap_malloc(sizeof(coap_dynamic_uri_t) + l); in hnd_post_test()
261 if (!(test_payload && uri)) { in hnd_post_test()
265 coap_free(uri); in hnd_post_test()
269 memset(uri, 0, sizeof(coap_dynamic_uri_t)); in hnd_post_test()
270 uri->length = min(l, snprintf((char *)uri->data, l, "test/%p", test_payload)); in hnd_post_test()
275 r = coap_resource_init(uri->data, uri->length, 0); in hnd_post_test()
287 coap_add_payload(r->key, test_payload, uri); in hnd_post_test()
290 res = coap_split_path(uri->data, uri->length, buf, &buflen); in hnd_post_test()