mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-16 13:04:55 +03:00
resource.h: remove uthash from public API
As the uthash macros have been moved to coap_resource_internal.h by
PR #582 [1], see commit da18643, the convenience macros and uthash.h
inclusion can be removed from resource.h
[1] https://github.com/obgm/libcoap/pull/582
This commit is contained in:
1 parent
910dd37e19
commit
07ac47ae73
1 file changed
-15
@@ -20,7 +20,6 @@
|
||||
#define COAP_RESOURCE_CHECK_TIME 2
|
||||
#endif /* COAP_RESOURCE_CHECK_TIME */
|
||||
|
||||
#include "uthash.h"
|
||||
#include "async.h"
|
||||
#include "block.h"
|
||||
#include "str.h"
|
||||
@@ -367,20 +366,6 @@ coap_print_status_t coap_print_link(const coap_resource_t *resource,
|
||||
coap_resource_t *coap_get_resource_from_uri_path(coap_context_t *context,
|
||||
coap_str_const_t *uri_path);
|
||||
|
||||
#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) \
|
||||
coap_resource_t *tmp, *rtmp; \
|
||||
HASH_ITER(hh, (r), tmp, rtmp)
|
||||
|
||||
#define RESOURCES_FIND(r, k, res) { \
|
||||
HASH_FIND(hh, (r), (k)->s, (k)->length, (res)); \
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use coap_resource_notify_observers() instead.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user