Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/nikosft/libcoap-fork int…
Browse files Browse the repository at this point in the history
…o nikosft-develop

Resolved conflicts in file resource.h.
  • Loading branch information
obgm committed Apr 20, 2018
2 parents ddfb94b + 3c83ec8 commit 837917f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions include/coap/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,27 @@ typedef struct coap_resource_t {
* of length @p len. This function returns the new coap_resource_t object.
*
* @param uri_path The URI path of the new resource.
* @param len The length of @p uri_path.
* @param flags Flags for memory management (in particular release of memory).
* @param len The length of @p uri_path.
* @param flags Flags for memory management (in particular release of
* memory). Possible values:@n
*
* @return A pointer to the new object or @c NULL on error.
* COAP_RESOURCE_FLAGS_RELEASE_URI
* If this flag is set, the URI passed to
* coap_resource_init() is free'd by
* coap_delete_resource()@n
*
* COAP_RESOURCE_FLAGS_NOTIFY_CON
* If this flag is set, coap-observe notifications
* will be sent confirmable by default.@n
*
* COAP_RESOURCE_FLAGS_NOTIFY_NON (default)
* If this flag is set, coap-observe notifications
* will be sent non-confirmable by default.@n
*
* If flags is set to 0 then the
* COAP_RESOURCE_FLAGS_NOTIFY_NON is considered.
*
* @return A pointer to the new object or @c NULL on error.
*/
coap_resource_t *coap_resource_init(const unsigned char *uri_path,
size_t len, int flags);
Expand Down

0 comments on commit 837917f

Please sign in to comment.