|
libcoap 4.3.5-develop-e13dfda
|
Generic resource internal handling. More...
Include dependency graph for coap_resource_internal.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | coap_attr_t |
| Limits the number of subscribers for each resource that this server support. More... | |
| struct | coap_resource_t |
| Abstraction of resource that can be attached to coap_context_t. More... | |
Macros | |
| #define | RESOURCES_ADD(r, obj) HASH_ADD(hh, (r), uri_path->s[0], (obj)->uri_path->length, (obj)) |
| #define | RESOURCES_DELETE(r, obj) HASH_DELETE(hh, (r), (obj)) |
| #define | RESOURCES_ITER(r, tmp) |
| #define | RESOURCES_FIND(r, k, res) |
Functions | |
| void | coap_add_resource_lkd (coap_context_t *context, coap_resource_t *resource) |
Registers the given resource for context. | |
| int | coap_delete_resource_lkd (coap_context_t *context, coap_resource_t *resource) |
Deletes a resource identified by resource. | |
| void | coap_delete_all_resources (coap_context_t *context) |
Deletes all resources from given context and frees their storage. | |
| void | coap_resource_reference_lkd (coap_resource_t *resource) |
| Increment reference counter on a resource. | |
| void | coap_resource_release_lkd (coap_resource_t *resource) |
| Decrement reference counter on a resource. | |
| coap_resource_t * | coap_get_resource_from_uri_path_lkd (coap_context_t *context, coap_str_const_t *uri_path) |
Returns the resource identified by the unique string uri_path. | |
| void | coap_delete_attr (coap_attr_t *attr) |
| Deletes an attribute. | |
| coap_print_status_t | coap_print_wellknown_lkd (coap_context_t *context, unsigned char *buf, size_t *buflen, size_t offset, const coap_string_t *query_filter) |
Prints the names of all known resources for context to buf. | |
Generic resource internal handling.
Definition in file coap_resource_internal.h.