Modify RE cache callback function. 09/19109/7
authorKIM JungYong <jyong2.kim@samsung.com>
Wed, 19 Apr 2017 05:29:51 +0000 (14:29 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 21 Apr 2017 01:57:57 +0000 (01:57 +0000)
commit7b9ca77b643e581919e6f3c660ece27ca49db9d8
treeb68678aea206e0efeb6303d01c3f74ac80d0cdcb
parentfd60586efad612ce9342192dc490f38ae38508d4
Modify RE cache callback function.

https://jira.iotivity.org/browse/IOT-2093

RE cache callback was not report error and error code

In this patch,
1. RE cache callback was changed to call on error including error code.
  std::function< void(const RCSResourceAttributes& attrs, int eCode) >
  CacheUpdatedCallback;
2. Related unit test and sample was updated.
3. Related other service was updated.

Change-Id: Iafb16d3025c491c45e70bbe347ce72b61a82aae2
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19109
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
18 files changed:
service/resource-container/src/RemoteResourceUnit.cpp
service/resource-container/src/RemoteResourceUnit.h
service/resource-container/unittests/ResourceContainerTest.cpp
service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/client/RcsRemoteResourceObject.java
service/resource-encapsulation/android/service/src/main/jni/JniRcsRemoteResourceObject.cpp
service/resource-encapsulation/examples/android/RESampleClientApp/app/src/main/java/org/iotivity/service/sample/client/ResourceClientActivity.java
service/resource-encapsulation/examples/linux/SampleResourceClient.cpp
service/resource-encapsulation/examples/tizen/RESampleClientApp/src/reclient.cpp
service/resource-encapsulation/include/RCSRemoteResourceObject.h
service/resource-encapsulation/src/resourceCache/include/CacheTypes.h
service/resource-encapsulation/src/resourceCache/include/DataCache.h
service/resource-encapsulation/src/resourceCache/include/ObserveCache.h
service/resource-encapsulation/src/resourceCache/src/DataCache.cpp
service/resource-encapsulation/src/resourceCache/src/ObserveCache.cpp
service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp
service/resource-encapsulation/src/resourceCache/unittests/ResourceCacheTest.cpp
service/resource-encapsulation/src/resourceClient/RCSRemoteResourceObject.cpp
service/resource-encapsulation/unittests/ResourceClientTest.cpp