X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FInProcServerWrapper.h;h=6d54e4025e0b011de4f4eee59c0b23e71d26b9f1;hb=refs%2Ftags%2Ftizen_4.0.m2_release;hp=aab856bb7acc7822defcf2c34a20de941c1ef529;hpb=88df85f0c20992acba7c96a85a1007916923b448;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/InProcServerWrapper.h b/resource/include/InProcServerWrapper.h index aab856b..6d54e40 100644 --- a/resource/include/InProcServerWrapper.h +++ b/resource/include/InProcServerWrapper.h @@ -18,12 +18,11 @@ // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -#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 #include -#include #include @@ -45,14 +44,11 @@ namespace OC EntityHandler& entityHandler, uint8_t resourceProperty); - 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 registerDeviceInfo( + const OCDeviceInfo deviceInfo); + + virtual OCStackResult registerPlatformInfo( + const OCPlatformInfo PlatformInfo); virtual OCStackResult unregisterResource( const OCResourceHandle& resourceHandle); @@ -69,14 +65,32 @@ namespace OC virtual OCStackResult stopPresence(); + virtual OCStackResult notifyAllObservers( + OCResourceHandle resourceHandle, + QualityOfService QoS); + + virtual OCStackResult notifyListOfObservers( + OCResourceHandle resourceHandle, + ObservationIds& observationIds, + const std::shared_ptr pResponse, + QualityOfService QoS); + virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler); virtual OCStackResult sendResponse(const std::shared_ptr 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 m_csdkLock; + PlatformConfig m_cfg; }; }