Revert "[CONPRO-1337] Disabled Presence Feature"
[platform/upstream/iotivity.git] / resource / src / InProcClientWrapper.cpp
index 41bb8fa..ee47425 100644 (file)
@@ -1433,7 +1433,6 @@ namespace OC
         return result;
     }
 
-#ifdef WITH_PRESENCE
     OCStackApplicationResult subscribePresenceCallback(void* ctx,
                                                        OCDoHandle /*handle*/,
             OCClientResponse* clientResponse)
@@ -1454,13 +1453,11 @@ namespace OC
 
         return OC_STACK_KEEP_TRANSACTION;
     }
-#endif
 
     OCStackResult InProcClientWrapper::SubscribePresence(OCDoHandle* handle,
         const std::string& host, const std::string& resourceType,
         OCConnectivityType connectivityType, SubscribeCallback& presenceHandler)
     {
-#ifdef WITH_PRESENCE
         if (!presenceHandler)
         {
             return OC_STACK_INVALID_PARAM;
@@ -1494,14 +1491,10 @@ namespace OC
                             os.str().c_str(), nullptr,
                             nullptr, connectivityType,
                             OC_LOW_QOS, &cbdata, NULL, 0);
-#else
-        return OC_STACK_NOT_IMPLEMENTED;
-#endif
     }
 
     OCStackResult InProcClientWrapper::UnsubscribePresence(OCDoHandle handle)
     {
-#ifdef WITH_PRESENCE
         OCStackResult result;
         auto cLock = m_csdkLock.lock();
 
@@ -1516,9 +1509,6 @@ namespace OC
         }
 
         return result;
-#else
-        return OC_STACK_NOT_IMPLEMENTED;
-#endif
     }
 
 #ifdef WITH_CLOUD