From 07ac47ae73faf25b9185ba4215dd64d2d31df319 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 29 Apr 2021 12:31:21 +0200 Subject: [PATCH] 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 --- include/coap3/resource.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/include/coap3/resource.h b/include/coap3/resource.h index 708434a2..5e2ac562 100644 --- a/include/coap3/resource.h +++ b/include/coap3/resource.h @@ -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. */