X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fstack%2Finclude%2Foctypes.h;h=1a5797b1f50e9050ec9790fe2b0bfd14bd312506;hb=847996e6e5e387e38b7f56814016632d62f0cfe7;hp=df6df44e136e7c6adf9cea0aeb0f69e65b0e8f29;hpb=7e5046079bc8c38470e79aa686091ec18b9c0dd8;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/stack/include/octypes.h b/resource/csdk/stack/include/octypes.h index df6df44..1a5797b 100644 --- a/resource/csdk/stack/include/octypes.h +++ b/resource/csdk/stack/include/octypes.h @@ -79,12 +79,8 @@ extern "C" { /** KeepAlive URI.*/ #define OC_RSRVD_KEEPALIVE_URI "/oic/ping" -#ifdef WITH_PRESENCE -/** Presence */ - /** Presence URI through which the OIC devices advertise their presence.*/ #define OC_RSRVD_PRESENCE_URI "/oic/ad" -#endif // WITH_PRESENCE /** Presence URI through which the OIC devices advertise their device presence.*/ #define OC_RSRVD_DEVICE_PRESENCE_URI "/oic/prs" @@ -95,7 +91,6 @@ extern "C" { /** Separator for multiple query string.*/ #define OC_QUERY_SEPARATOR "&;" -#ifdef WITH_PRESENCE /** * OC_DEFAULT_PRESENCE_TTL_SECONDS sets the default time to live (TTL) for presence. */ @@ -123,8 +118,6 @@ extern "C" { /** To delete.*/ #define OC_RSRVD_TRIGGER_DELETE "delete" -#endif // WITH_PRESENCE - /** * Attributes used to form a proper OIC conforming JSON message. */ @@ -151,10 +144,8 @@ extern "C" { /** To represent resource type.*/ #define OC_RSRVD_RESOURCE_TYPE "rt" -#ifdef WITH_PRESENCE /** To represent resource type with presence.*/ #define OC_RSRVD_RESOURCE_TYPE_PRESENCE "oic.wk.ad" -#endif /** To represent resource type with device.*/ #define OC_RSRVD_RESOURCE_TYPE_DEVICE "oic.wk.d" @@ -844,11 +835,9 @@ typedef enum /** Register observe request for all notifications, including stale notifications.*/ OC_REST_OBSERVE_ALL = (1 << 5), -#ifdef WITH_PRESENCE /** Subscribe for all presence notifications of a particular resource.*/ OC_REST_PRESENCE = (1 << 7), -#endif /** Allows OCDoResource caller to do discovery.*/ OC_REST_DISCOVER = (1 << 8) } OCMethod; @@ -1029,11 +1018,9 @@ typedef enum OC_STACK_NOT_ALLOWED_OXM, /** Insert all new error codes here!.*/ -#ifdef WITH_PRESENCE OC_STACK_PRESENCE_STOPPED = 128, OC_STACK_PRESENCE_TIMEOUT, OC_STACK_PRESENCE_DO_NOT_HANDLE, -#endif /** Request is denied by the user*/ OC_STACK_USER_DENIED_REQ, @@ -1313,10 +1300,8 @@ typedef enum PAYLOAD_TYPE_REPRESENTATION, /** The payload is an OCSecurityPayload */ PAYLOAD_TYPE_SECURITY, -#ifdef WITH_PRESENCE /** The payload is an OCPresencePayload */ PAYLOAD_TYPE_PRESENCE -#endif } OCPayloadType; /** @@ -1454,7 +1439,6 @@ typedef struct size_t payloadSize; } OCSecurityPayload; -#ifdef WITH_PRESENCE typedef struct { OCPayload base; @@ -1463,7 +1447,6 @@ typedef struct OCPresenceTrigger trigger; char* resourceType; } OCPresencePayload; -#endif /** * Incoming requests handled by the server. Requests are passed in as a parameter to the