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=0f9460e50b95138c74060376cb74115fc953a58f;hpb=752db8ac38907b7a408c7b23adb02b8a39223e45;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 0f9460e..91a11a7 100644 --- a/service/resource-encapsulation/src/resourceCache/include/CacheTypes.h +++ b/service/resource-encapsulation/src/resourceCache/include/CacheTypes.h @@ -38,7 +38,7 @@ namespace OIC class DataCache; -#define CACHE_TAG PCF("CACHE") +#define CACHE_TAG "CACHE" #define CACHE_DEFAULT_REPORT_MILLITIME 10000 #define CACHE_DEFAULT_EXPIRED_MILLITIME 15000 @@ -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;