resource.h: Add documentation for flags used in resources creation.

This commit is contained in:
Jean-Michel Julien authored and Olaf Bergmann committed 2016-09-22 12:39:54 +02:00
1 parent edf42a6a53
commit 02c3e67175
1 file changed
+11
+11
View File
@@ -57,8 +57,19 @@ typedef struct coap_attr_t {
int flags;
} coap_attr_t;
/** The URI passed to coap_resource_init() is free'd by coap_delete_resource(). */
#define COAP_RESOURCE_FLAGS_RELEASE_URI 0x1
/**
* Notifications will be sent non-confirmable by default. RFC 7641 Section 4.5
* https://tools.ietf.org/html/rfc7641#section-4.5
*/
#define COAP_RESOURCE_FLAGS_NOTIFY_NON 0x0
/**
* Notifications will be sent confirmable by default. RFC 7641 Section 4.5
* https://tools.ietf.org/html/rfc7641#section-4.5
*/
#define COAP_RESOURCE_FLAGS_NOTIFY_CON 0x2
typedef struct coap_resource_t {