Home
last modified time | relevance | path

Searched refs:coap_resource (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/include/zephyr/net/
Dcoap_service.h56 struct coap_resource *res_begin;
57 struct coap_resource *res_end;
114 STRUCT_SECTION_ITERABLE_ALTERNATE(_CONCAT(coap_resource_, _service), coap_resource, \
135 extern struct coap_resource _CONCAT(_CONCAT(_coap_resource_, _name), _list_start)[]; \
136 extern struct coap_resource _CONCAT(_CONCAT(_coap_resource_, _name), _list_end)[]; \
180 STRUCT_SECTION_FOREACH_ALTERNATE(_CONCAT(coap_resource_, _service), coap_resource, _it)
191 for (struct coap_resource *_it = (_service)->res_begin; ({ \
259 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt,
276 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request,
288 int coap_resource_remove_observer_by_addr(struct coap_resource *resource,
[all …]
Dcoap_link_format.h44 int coap_well_known_core_get(struct coap_resource *resource,
61 int coap_well_known_core_get_len(struct coap_resource *resources,
Dcoap_mgmt.h40 struct coap_resource;
91 struct coap_resource *resource;
Dcoap.h255 struct coap_resource;
262 typedef int (*coap_method_t)(struct coap_resource *resource,
271 typedef void (*coap_notify_t)(struct coap_resource *resource,
280 struct coap_resource { struct
705 struct coap_resource *resources,
728 struct coap_resource *resources,
1009 bool coap_register_observer(struct coap_resource *resource,
1021 bool coap_remove_observer(struct coap_resource *resource,
1252 int coap_resource_notify(struct coap_resource *resource);
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dobserver.c20 static int send_notification_packet(struct coap_resource *resource, in send_notification_packet()
88 static int obs_get(struct coap_resource *resource, in obs_get()
115 static void obs_notify(struct coap_resource *resource, in obs_notify()
Dtest.c16 static int piggyback_get(struct coap_resource *resource, in piggyback_get()
81 static int test_del(struct coap_resource *resource, in test_del()
121 static int test_put(struct coap_resource *resource, in test_put()
168 static int test_post(struct coap_resource *resource, in test_post()
Dlarge.c16 static int large_get(struct coap_resource *resource, in large_get()
95 static int large_update_put(struct coap_resource *resource, in large_update_put()
175 static int large_create_post(struct coap_resource *resource, in large_create_post()
Dcore.c15 static int core_get(struct coap_resource *resource, in core_get()
Dlocation_query.c14 static int location_query_post(struct coap_resource *resource, in location_query_post()
Dseparate.c14 static int separate_get(struct coap_resource *resource, in separate_get()
Dquery.c14 static int query_get(struct coap_resource *resource, in query_get()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_link_format.c158 static bool match_queries_resource(const struct coap_resource *resource, in match_queries_resource()
368 static int format_resource(const struct coap_resource *resource, in format_resource()
435 int coap_well_known_core_get_len(struct coap_resource *resources, in coap_well_known_core_get_len()
618 static int format_resource(const struct coap_resource *resource, in format_resource()
637 int coap_well_known_core_get_len(struct coap_resource *resources, in coap_well_known_core_get_len()
709 int coap_well_known_core_get(struct coap_resource *resource, in coap_well_known_core_get()
714 struct coap_resource *resources = resource + 1; in coap_well_known_core_get()
Dcoap_server.c85 struct coap_resource *resource, in coap_service_remove_observer()
587 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt, in coap_resource_send()
601 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request, in coap_resource_parse_observe()
670 static int coap_resource_remove_observer(struct coap_resource *resource, in coap_resource_remove_observer()
705 int coap_resource_remove_observer_by_addr(struct coap_resource *resource, 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()
Dcoap.c1135 static int method_from_code(const struct coap_resource *resource, in method_from_code()
1179 struct coap_resource *resources, in coap_handle_request_len()
1214 struct coap_resource *resources, in coap_handle_request()
1220 struct coap_resource *resource; in coap_handle_request()
1796 static inline void coap_observer_increment_age(struct coap_resource *resource) in coap_observer_increment_age()
1888 int coap_resource_notify(struct coap_resource *resource) in coap_resource_notify()
1923 static inline void coap_observer_raise_event(struct coap_resource *resource, in coap_observer_raise_event()
1942 bool coap_register_observer(struct coap_resource *resource, in coap_register_observer()
1959 bool coap_remove_observer(struct coap_resource *resource, in coap_remove_observer()
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_server.rst77 static int my_get(struct coap_resource *resource, struct coap_packet *request,
109 static int my_put(struct coap_resource *resource, struct coap_packet *request,
145 static int send_temperature(struct coap_resource *resource,
190 static int temp_get(struct coap_resource *resource, struct coap_packet *request,
208 static void temp_notify(struct coap_resource *resource, struct coap_observer *observer)
Dcoap.rst57 static struct coap_resource resources[] = {
/Zephyr-latest/tests/net/lib/coap_server/common/src/
Dmain.c12 static int coap_method1(struct coap_resource *resource, struct coap_packet *request, in coap_method1()
23 static int coap_method2(struct coap_resource *resource, struct coap_packet *request, in coap_method2()
/Zephyr-latest/tests/net/lib/coap/src/
Dmain.c42 static void server_resource_1_callback(struct coap_resource *resource,
45 static void server_resource_2_callback(struct coap_resource *resource,
48 static int server_resource_1_get(struct coap_resource *resource,
54 static struct coap_resource server_resources[] = {
838 static void server_resource_1_callback(struct coap_resource *resource, in server_resource_1_callback()
848 static void server_resource_2_callback(struct coap_resource *resource, in server_resource_2_callback()
857 static int server_resource_1_get(struct coap_resource *resource, in server_resource_1_get()
1812 struct coap_resource *resource = &server_resources[1]; in ZTEST()