Lines Matching refs:r
395 coap_resource_t *r; in hnd_post_rd() local
466 r = coap_resource_init(loc, loc_size, COAP_RESOURCE_FLAGS_RELEASE_URI); in hnd_post_rd()
467 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_resource); in hnd_post_rd()
468 coap_register_handler(r, COAP_REQUEST_PUT, hnd_put_resource); in hnd_post_rd()
469 coap_register_handler(r, COAP_REQUEST_DELETE, hnd_delete_resource); in hnd_post_rd()
478 coap_add_attr(r, in hnd_post_rd()
494 coap_add_attr(r, in hnd_post_rd()
502 add_source_address(r, peer); in hnd_post_rd()
515 coap_add_resource(ctx, r); in hnd_post_rd()
541 coap_resource_t *r; in init_resources() local
543 r = coap_resource_init(RD_ROOT_STR, RD_ROOT_SIZE, 0); in init_resources()
544 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_rd); in init_resources()
545 coap_register_handler(r, COAP_REQUEST_POST, hnd_post_rd); in init_resources()
547 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"40", 2, 0); in init_resources()
548 coap_add_attr(r, (unsigned char *)"rt", 2, (unsigned char *)"\"core.rd\"", 9, 0); in init_resources()
549 coap_add_attr(r, (unsigned char *)"ins", 2, (unsigned char *)"\"default\"", 9, 0); in init_resources()
551 coap_add_resource(ctx, r); in init_resources()