//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _I_SERVER_WRAPPER_H_
-#define _I_SERVER_WRAPPER_H_
+#ifndef OC_I_SERVER_WRAPPER_H_
+#define OC_I_SERVER_WRAPPER_H_
#include <memory>
#include <string>
virtual OCStackResult registerDeviceInfo(
const OCDeviceInfo deviceInfo) = 0;
- virtual OCStackResult registerResourceWithHost(
- OCResourceHandle& resourceHandle,
- std::string& resourceHOST,
- std::string& resourceURI,
- const std::string& resourceTypeName,
- const std::string& resourceInterface,
- EntityHandler& entityHandler,
- uint8_t resourceProperty) = 0;
+ virtual OCStackResult registerPlatformInfo(
+ const OCPlatformInfo PlatformInfo) = 0;
virtual OCStackResult unregisterResource(
const OCResourceHandle& resourceHandle) = 0;
virtual OCStackResult stopPresence() = 0;
+ virtual OCStackResult notifyAllObservers(
+ OCResourceHandle resourceHandle,
+ QualityOfService QoS) = 0;
+
+ virtual OCStackResult notifyListOfObservers(
+ OCResourceHandle resourceHandle,
+ ObservationIds& observationIds,
+ const std::shared_ptr<OCResourceResponse> pResponse,
+ QualityOfService QoS) = 0;
+
virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler) = 0;
virtual OCStackResult sendResponse(const std::shared_ptr<OCResourceResponse> pResponse) = 0;
+
+ virtual OCStackResult setPropertyValue(OCPayloadType type, const std::string& tag, const std::string& value) = 0;
+ virtual OCStackResult getPropertyValue(OCPayloadType type, const std::string& tag, std::string& value) = 0;
+
+ virtual OCStackResult stop() = 0;
+
+ virtual OCStackResult start() = 0;
};
}