Lines Matching refs:r
290 coap_resource_t *r; in init_resources() local
292 r = coap_resource_init(NULL, 0, 0); in init_resources()
293 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_index); in init_resources()
295 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_resources()
296 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"General Info\"", 14, 0); in init_resources()
297 coap_add_resource(ctx, r); in init_resources()
302 r = coap_resource_init((unsigned char *)"time", 4, COAP_RESOURCE_FLAGS_NOTIFY_CON); in init_resources()
303 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_time); in init_resources()
304 coap_register_handler(r, COAP_REQUEST_PUT, hnd_put_time); in init_resources()
305 coap_register_handler(r, COAP_REQUEST_DELETE, hnd_delete_time); in init_resources()
307 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_resources()
308 coap_add_attr(r, (unsigned char *)"title", 5, (unsigned char *)"\"Internal Clock\"", 16, 0); in init_resources()
309 coap_add_attr(r, (unsigned char *)"rt", 2, (unsigned char *)"\"Ticks\"", 7, 0); in init_resources()
310 r->observable = 1; in init_resources()
311 coap_add_attr(r, (unsigned char *)"if", 2, (unsigned char *)"\"clock\"", 7, 0); in init_resources()
313 coap_add_resource(ctx, r); in init_resources()
314 time_resource = r; in init_resources()
317 r = coap_resource_init((unsigned char *)"async", 5, 0); in init_resources()
318 coap_register_handler(r, COAP_REQUEST_GET, hnd_get_async); in init_resources()
320 coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"0", 1, 0); in init_resources()
321 coap_add_resource(ctx, r); in init_resources()