Lines Matching refs:r
29 coap_resource_t *r; in t_wellknown1() local
40 r = coap_resource_init(NULL, 0, 0); in t_wellknown1()
42 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in t_wellknown1()
43 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"some attribute\"", 16, 0); in t_wellknown1()
45 coap_add_resource(ctx, r); in t_wellknown1()
51 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1()
61 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1()
69 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1()
78 coap_resource_t *r; in t_wellknown2() local
88 r = coap_resource_init((unsigned char *)"abcd", 4, 0); in t_wellknown2()
89 r->observable = 1; in t_wellknown2()
90 coap_add_attr(r, (unsigned char *)"if", 2, (unsigned char *)"\"one\"", 5, 0); in t_wellknown2()
92 coap_add_resource(ctx, r); in t_wellknown2()
98 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown2()
110 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown2()
122 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown2()
132 coap_resource_t *r; in t_wellknown3() local
144 r = coap_resource_init(uribuf, len, 0); in t_wellknown3()
145 coap_add_resource(ctx, r); in t_wellknown3()
264 coap_resource_t *r; in t_wkc_tests_create()
270 r = coap_resource_init(NULL, 0, 0); in t_wkc_tests_create()
272 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in t_wkc_tests_create()
273 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"some attribute\"", 16, 0); in t_wkc_tests_create()
274 coap_add_resource(ctx, r); in t_wkc_tests_create()
277 r = coap_resource_init((unsigned char *)"abcd", 4, 0); in t_wkc_tests_create()
278 r->observable = 1; in t_wkc_tests_create()
279 coap_add_attr(r, (unsigned char *)"if", 2, (unsigned char *)"\"one\"", 5, 0); in t_wkc_tests_create()
281 coap_add_resource(ctx, r); in t_wkc_tests_create()
287 r = coap_resource_init(buf, len, 0); in t_wkc_tests_create()
288 coap_add_resource(ctx, r); in t_wkc_tests_create()