Observation without caching.
[platform/upstream/iotivity.git] / service / resource-encapsulation / src / resourceCache / include / CacheTypes.h
index fa08cc8..91a11a7 100644 (file)
@@ -46,7 +46,8 @@ namespace OIC
         {
             NONE = 0,
             UPTODATE,
-            PERIODICTY
+            PERIODICTY,
+            WHENEVER_NOTIFIED
         };
 
         struct Report_Info
@@ -73,10 +74,16 @@ namespace OIC
             FREQUENCY
         };
 
+        enum class CACHE_METHOD
+        {
+            OBSERVE_ONLY,
+            ITERATED_GET
+        };
+
         typedef int CacheID;
 
         typedef std::function<OCStackResult(std::shared_ptr<PrimitiveResource>,
-                                            const RCSResourceAttributes &)> CacheCB;
+                        const RCSResourceAttributes &, int eCode)> CacheCB;
         typedef std::map<int, std::pair<Report_Info, CacheCB>> SubscriberInfo;
         typedef std::pair<int, std::pair<Report_Info, CacheCB>> SubscriberInfoPair;