Adding API changes needed for Active Discovery in the TB Stack layer.
authorJoseph Morrow <joseph.l.morrow@intel.com>
Thu, 21 Aug 2014 21:04:55 +0000 (17:04 -0400)
committerErich Keane <erich.keane@intel.com>
Mon, 25 Aug 2014 21:47:24 +0000 (14:47 -0700)
Change-Id: I8c457cccb2bbbfefedc6aa27a89bdc47ad7aa061

csdk/stack/include/ocstack.h

index 1474f7b..f00a1cd 100644 (file)
@@ -55,13 +55,14 @@ typedef enum {
  * Standard RESTful HTTP Methods
  */
 typedef enum {
-    OC_REST_NOMETHOD = 0,
-    OC_REST_GET      = (1 << 0),      // Read
-    OC_REST_PUT      = (1 << 1),      // Write
-    OC_REST_POST     = (1 << 2),      // Update
-    OC_REST_DELETE   = (1 << 3),      // Delete
-    OC_REST_OBSERVE  = (1 << 4),      // Register observe request for most up date notifications ONLY.
-    OC_REST_OBSERVE_ALL  = (1 << 5)   // Register observe request for all notifications, including stale notifications.
+    OC_REST_NOMETHOD    = 0,
+    OC_REST_GET         = (1 << 0),     // Read
+    OC_REST_PUT         = (1 << 1),     // Write
+    OC_REST_POST        = (1 << 2),     // Update
+    OC_REST_DELETE      = (1 << 3),     // Delete
+    OC_REST_OBSERVE     = (1 << 4),     // Register observe request for most up date notifications ONLY.
+    OC_REST_OBSERVE_ALL = (1 << 5),     // Register observe request for all notifications, including stale notifications.
+    OC_REST_PRESENCE    = (1 << 6)      // Subscribe for all presence notifications of a particular resource.
 } OCMethod;
 
 /**