Lines Matching refs:r

145   coap_resource_t *r;  in init_coap_resources()  local
147 r = coap_resource_init(NULL, 0, 0); in init_coap_resources()
148 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_index); in init_coap_resources()
150 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_coap_resources()
151 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"General Info\"", 14, 0); in init_coap_resources()
152 coap_add_resource(ctx, r); in init_coap_resources()
157 r = coap_resource_init((unsigned char *)"time", 4, 0); in init_coap_resources()
158 if (!r) in init_coap_resources()
161 r->observable = 1; in init_coap_resources()
162 time_resource = r; in init_coap_resources()
163 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_time); in init_coap_resources()
165 coap_register_handler(r, COAP_REQUEST_PUT, hnd_put_time); in init_coap_resources()
166 coap_register_handler(r, COAP_REQUEST_DELETE, hnd_delete_time); in init_coap_resources()
168 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_coap_resources()
170 coap_add_attr(r, (unsigned char *)"rt", 2, (unsigned char *)"\"Ticks\"", 7, 0); in init_coap_resources()
171 coap_add_attr(r, (unsigned char *)"if", 2, (unsigned char *)"\"clock\"", 7, 0); in init_coap_resources()
173 coap_add_resource(ctx, r); in init_coap_resources()
176 r = coap_resource_init((unsigned char *)"async", 5, 0); in init_coap_resources()
177 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_async); in init_coap_resources()
179 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_coap_resources()
180 coap_add_resource(ctx, r); in init_coap_resources()