Lines Matching refs:resource
85 struct coap_resource *resource, in coap_service_remove_observer() argument
109 if (resource == NULL) { in coap_service_remove_observer()
116 } else if (coap_remove_observer(resource, obs)) { in coap_service_remove_observer()
587 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt, in coap_resource_send() argument
593 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_send()
601 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request, in coap_resource_parse_observe() argument
620 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_parse_observe()
656 coap_register_observer(resource, observer); in coap_resource_parse_observe()
658 ret = coap_service_remove_observer(service, resource, addr, token, tkl); in coap_resource_parse_observe()
670 static int coap_resource_remove_observer(struct coap_resource *resource, in coap_resource_remove_observer() argument
679 if (COAP_SERVICE_HAS_RESOURCE(svc, resource)) { in coap_resource_remove_observer()
690 ret = coap_service_remove_observer(service, resource, addr, token, token_len); in coap_resource_remove_observer()
705 int coap_resource_remove_observer_by_addr(struct coap_resource *resource, in coap_resource_remove_observer_by_addr() argument
708 return coap_resource_remove_observer(resource, addr, NULL, 0); in coap_resource_remove_observer_by_addr()
711 int coap_resource_remove_observer_by_token(struct coap_resource *resource, in coap_resource_remove_observer_by_token() argument
714 return coap_resource_remove_observer(resource, NULL, token, token_len); in coap_resource_remove_observer_by_token()