//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _IN_PROC_SERVER_WRAPPER_H_
-#define _IN_PROC_SERVER_WRAPPER_H_
+#ifndef OC_IN_PROC_SERVER_WRAPPER_H_
+#define OC_IN_PROC_SERVER_WRAPPER_H_
#include <thread>
#include <mutex>
-#include <ocstack.h>
#include <IServerWrapper.h>
virtual OCStackResult registerDeviceInfo(
const OCDeviceInfo deviceInfo);
- virtual OCStackResult registerResourceWithHost(
- OCResourceHandle& resourceHandle,
- std::string& resourceHOST,
- std::string& resourceURI,
- const std::string& resourceTypeName,
- const std::string& resourceInterface,
- EntityHandler& entityHandler,
- uint8_t resourceProperty);
+ virtual OCStackResult registerPlatformInfo(
+ const OCPlatformInfo PlatformInfo);
virtual OCStackResult unregisterResource(
const OCResourceHandle& resourceHandle);
virtual OCStackResult stopPresence();
+ virtual OCStackResult notifyAllObservers(
+ OCResourceHandle resourceHandle,
+ QualityOfService QoS);
+
+ virtual OCStackResult notifyListOfObservers(
+ OCResourceHandle resourceHandle,
+ ObservationIds& observationIds,
+ const std::shared_ptr<OCResourceResponse> pResponse,
+ QualityOfService QoS);
+
virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler);
virtual OCStackResult sendResponse(const std::shared_ptr<OCResourceResponse> pResponse);
+
+ virtual OCStackResult setPropertyValue(OCPayloadType type, const std::string& tag, const std::string& value);
+ virtual OCStackResult getPropertyValue(OCPayloadType type, const std::string& tag, std::string& value);
+
+ virtual OCStackResult stop();
+
+ virtual OCStackResult start();
private:
void processFunc();
std::thread m_processThread;
bool m_threadRun;
std::weak_ptr<std::recursive_mutex> m_csdkLock;
+ PlatformConfig m_cfg;
};
}