Observation without caching.
[platform/upstream/iotivity.git] / service / resource-encapsulation / src / resourceCache / include / ObserveCache.h
index 73ce388..1c19f90 100644 (file)
@@ -51,7 +51,7 @@ namespace OIC
                 ObserveCache & operator = (const ObserveCache &) = delete;
                 ObserveCache & operator = (ObserveCache &&) = delete;
 
-                void startCache(DataCacheCB func);
+                void startCache(DataCacheCB func, bool reportAll = false);
                 void stopCache();
 
                 CACHE_STATE getCacheState() const;
@@ -83,9 +83,9 @@ namespace OIC
             private:
                 static void verifyObserveCB(const HeaderOptions &_hos,
                                             const ResponseStatement &_rep, int _result,
-                                            unsigned int _seq, weakDataCache ptr);
+                                            unsigned int _seq, weakDataCache ptr, bool reportAll);
                 void onObserve(const HeaderOptions &_hos,
-                               const ResponseStatement &_rep, int _result, unsigned int _seq);
+                               const ResponseStatement &_rep, int _result, unsigned int _seq, bool reportAll);
                 bool convertOCResultToSuccess(OCStackResult ret);
         };
     } // namespace Service