From 8abf63b8675787859c956c108f0a9eafeee7880c Mon Sep 17 00:00:00 2001 From: Jean-Michel Julien Date: Thu, 6 Jul 2017 15:11:10 -0400 Subject: [PATCH] resource.h: increase method_handler structure to hold new methods (FETCH,PATCH,IPATCH) --- include/coap/resource.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/coap/resource.h b/include/coap/resource.h index dbb19a8d1f..87f1d68a10 100644 --- a/include/coap/resource.h +++ b/include/coap/resource.h @@ -80,12 +80,13 @@ typedef struct coap_resource_t { unsigned int cacheable:1; /**< can be cached */ /** - * Used to store handlers for the four coap methods @c GET, @c POST, @c PUT, - * and @c DELETE. coap_dispatch() will pass incoming requests to the handler + * Used to store handlers for the seven coap methods @c GET, @c POST, @c PUT, + * @c DELETE, @c FETCH, @c PATCH and @c IPATCH. + * coap_dispatch() will pass incoming requests to the handler * that corresponds to its request method or generate a 4.05 response if no * handler is available. */ - coap_method_handler_t handler[4]; + coap_method_handler_t handler[7]; coap_key_t key; /**< the actual key bytes for this resource */