17#ifndef COAP_RESOURCE_INTERNAL_H_
18#define COAP_RESOURCE_INTERNAL_H_
21#include "coap_uthash_internal.h"
23#if COAP_SERVER_SUPPORT
35#ifndef COAP_RESOURCE_MAX_SUBSCRIBER
36#define COAP_RESOURCE_MAX_SUBSCRIBER 0
55 unsigned int partiallydirty:1;
57 unsigned int observable:1;
58 unsigned int cacheable:1;
59 unsigned int is_unknown:1;
60 unsigned int is_proxy_uri:1;
99 size_t proxy_name_count;
151#define RESOURCES_ADD(r, obj) \
152 HASH_ADD(hh, (r), uri_path->s[0], (obj)->uri_path->length, (obj))
154#define RESOURCES_DELETE(r, obj) \
155 HASH_DELETE(hh, (r), (obj))
157#define RESOURCES_ITER(r,tmp) \
158 coap_resource_t *tmp, *rtmp; \
159 HASH_ITER(hh, (r), tmp, rtmp)
161#define RESOURCES_FIND(r, k, res) { \
162 HASH_FIND(hh, (r), (k)->s, (k)->length, (res)); \
struct coap_attr_t coap_attr_t
struct coap_subscription_t coap_subscription_t
struct coap_context_t coap_context_t
struct coap_resource_t coap_resource_t
CoAP mapping of locking functions.
void(* coap_method_handler_t)(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response)
Definition of message handler function.
uint32_t coap_print_status_t
Status word to encode the result of conditional print or copy operations such as coap_print_link().
struct coap_str_const_t coap_str_const_t
CoAP string data definition with const data.
The CoAP stack's global state is stored in a coap_context_t object.
CoAP string data definition with const data.
CoAP string data definition.