Internal API for handling resources.
More...
|
#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) |
|
Internal API for handling resources.
◆ RESOURCES_ADD
#define RESOURCES_ADD |
( |
|
r, |
|
|
|
obj |
|
) |
| HASH_ADD(hh, (r), uri_path->s[0], (obj)->uri_path->length, (obj)) |
◆ RESOURCES_DELETE
#define RESOURCES_DELETE |
( |
|
r, |
|
|
|
obj |
|
) |
| HASH_DELETE(hh, (r), (obj)) |
◆ RESOURCES_FIND
#define RESOURCES_FIND |
( |
|
r, |
|
|
|
k, |
|
|
|
res |
|
) |
| |
◆ RESOURCES_ITER
#define RESOURCES_ITER |
( |
|
r, |
|
|
|
tmp |
|
) |
| |
Value:
HASH_ITER(hh, (r), tmp, rtmp)
Abstraction of resource that can be attached to coap_context_t.
Definition at line 127 of file coap_resource_internal.h.
◆ coap_delete_all_resources()
Deletes all resources from given context
and frees their storage.
- Parameters
-
context | The CoAP context with the resources to be deleted. |
◆ coap_delete_attr()
Deletes an attribute.
Note: This is for internal use only, as it is not deleted from its chain.
- Parameters
-
attr | Pointer to a previously created attribute. |
◆ coap_print_wellknown()