X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-encapsulation%2Fsrc%2FresourceCache%2Finclude%2FCacheTypes.h;h=91a11a7a94512dbdb56455040616b75814b8569b;hb=45053652a06c2c7939af3433d59d4dc6a5eedb26;hp=fa08cc8bd58cfe48ef981820badde7f5106836be;hpb=7aa6219a4656ec0eaeaa43626f6872be5792b2ee;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-encapsulation/src/resourceCache/include/CacheTypes.h b/service/resource-encapsulation/src/resourceCache/include/CacheTypes.h index fa08cc8..91a11a7 100644 --- a/service/resource-encapsulation/src/resourceCache/include/CacheTypes.h +++ b/service/resource-encapsulation/src/resourceCache/include/CacheTypes.h @@ -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, - const RCSResourceAttributes &)> CacheCB; + const RCSResourceAttributes &, int eCode)> CacheCB; typedef std::map> SubscriberInfo; typedef std::pair> SubscriberInfoPair;