Lines Matching refs:coap_uri_t
45 coap_split_uri(unsigned char *str_var, size_t len, coap_uri_t *uri) { in coap_split_uri()
52 memset(uri, 0, sizeof(coap_uri_t)); in coap_split_uri()
409 #define URI_DATA(uriobj) ((unsigned char *)(uriobj) + sizeof(coap_uri_t))
411 coap_uri_t *
415 result = coap_malloc(length + 1 + sizeof(coap_uri_t)); in coap_new_uri()
423 if (coap_split_uri(URI_DATA(result), length, (coap_uri_t *)result) < 0) { in coap_new_uri()
427 return (coap_uri_t *)result; in coap_new_uri()
430 coap_uri_t *
431 coap_clone_uri(const coap_uri_t *uri) { in coap_clone_uri()
432 coap_uri_t *result; in coap_clone_uri()
437 result = (coap_uri_t *)coap_malloc( uri->query.length + uri->host.length + in coap_clone_uri()
438 uri->path.length + sizeof(coap_uri_t) + 1); in coap_clone_uri()
443 memset( result, 0, sizeof(coap_uri_t) ); in coap_clone_uri()