Skip to content

Commit

Permalink
resource.h: increase method_handler structure to hold new methods (FE…
Browse files Browse the repository at this point in the history
…TCH,PATCH,IPATCH)
  • Loading branch information
Jean-Michel Julien committed Jul 6, 2017
1 parent aafb87e commit 8abf63b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/coap/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 8abf63b

Please sign in to comment.