projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Observation without caching.
[platform/upstream/iotivity.git]
/
service
/
resource-encapsulation
/
src
/
resourceCache
/
include
/
ObserveCache.h
diff --git
a/service/resource-encapsulation/src/resourceCache/include/ObserveCache.h
b/service/resource-encapsulation/src/resourceCache/include/ObserveCache.h
index
73ce388
..
1c19f90
100644
(file)
--- 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;
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;
void stopCache();
CACHE_STATE getCacheState() const;
@@
-83,9
+83,9
@@
namespace OIC
private:
static void verifyObserveCB(const HeaderOptions &_hos,
const ResponseStatement &_rep, int _result,
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,
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
bool convertOCResultToSuccess(OCStackResult ret);
};
} // namespace Service