X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-encapsulation%2Fsrc%2FresourceCache%2Finclude%2FObserveCache.h;h=1c19f901a979f218dcb93516ed5af10348937869;hb=45053652a06c2c7939af3433d59d4dc6a5eedb26;hp=73ce388c61a0d9f776ad749285eb86b79e751718;hpb=28be5d58e53203fdc5de45a67b23df3f28efff5a;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-encapsulation/src/resourceCache/include/ObserveCache.h b/service/resource-encapsulation/src/resourceCache/include/ObserveCache.h index 73ce388..1c19f90 100644 --- a/service/resource-encapsulation/src/resourceCache/include/ObserveCache.h +++ b/service/resource-encapsulation/src/resourceCache/include/ObserveCache.h @@ -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