Commit eb79b675 authored by jacobgladish's avatar jacobgladish

Some code cleanup. Trying to nail down adapter api.

parent b80bfeef
...@@ -74,7 +74,7 @@ bridge::AdapterSignalVector adapters::mock::MockAdapter::GetSignals() ...@@ -74,7 +74,7 @@ bridge::AdapterSignalVector adapters::mock::MockAdapter::GetSignals()
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::Initialize(std::shared_ptr<bridge::IAdapterLog> const& log) adapters::mock::MockAdapter::Initialize(std::shared_ptr<bridge::IAdapterLog> const& log)
{ {
CreateMockDevices(); CreateMockDevices();
...@@ -84,7 +84,7 @@ adapters::mock::MockAdapter::Initialize(std::shared_ptr<bridge::IAdapterLog> con ...@@ -84,7 +84,7 @@ adapters::mock::MockAdapter::Initialize(std::shared_ptr<bridge::IAdapterLog> con
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::Shutdown() adapters::mock::MockAdapter::Shutdown()
{ {
m_vendor.clear(); m_vendor.clear();
...@@ -101,7 +101,7 @@ adapters::mock::MockAdapter::Shutdown() ...@@ -101,7 +101,7 @@ adapters::mock::MockAdapter::Shutdown()
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::EnumDevices( adapters::mock::MockAdapter::EnumDevices(
bridge::EnumDeviceOptions /*opts*/, bridge::EnumDeviceOptions /*opts*/,
bridge::AdapterDeviceVector& deviceList, bridge::AdapterDeviceVector& deviceList,
...@@ -118,7 +118,7 @@ adapters::mock::MockAdapter::EnumDevices( ...@@ -118,7 +118,7 @@ adapters::mock::MockAdapter::EnumDevices(
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::GetProperty( adapters::mock::MockAdapter::GetProperty(
std::shared_ptr<bridge::IAdapterProperty>& prop, std::shared_ptr<bridge::IAdapterProperty>& prop,
std::shared_ptr<bridge::IAdapterIoRequest>* req) std::shared_ptr<bridge::IAdapterIoRequest>* req)
...@@ -144,7 +144,7 @@ adapters::mock::MockAdapter::GetProperty( ...@@ -144,7 +144,7 @@ adapters::mock::MockAdapter::GetProperty(
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::SetProperty( adapters::mock::MockAdapter::SetProperty(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::shared_ptr<bridge::IAdapterIoRequest>* req) std::shared_ptr<bridge::IAdapterIoRequest>* req)
...@@ -170,7 +170,7 @@ adapters::mock::MockAdapter::SetProperty( ...@@ -170,7 +170,7 @@ adapters::mock::MockAdapter::SetProperty(
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::GetPropertyValue( adapters::mock::MockAdapter::GetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::string const& attributeName, std::string const& attributeName,
...@@ -194,7 +194,7 @@ adapters::mock::MockAdapter::GetPropertyValue( ...@@ -194,7 +194,7 @@ adapters::mock::MockAdapter::GetPropertyValue(
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::SetPropertyValue( adapters::mock::MockAdapter::SetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::shared_ptr<bridge::IAdapterValue> const& value, std::shared_ptr<bridge::IAdapterValue> const& value,
...@@ -217,7 +217,7 @@ adapters::mock::MockAdapter::SetPropertyValue( ...@@ -217,7 +217,7 @@ adapters::mock::MockAdapter::SetPropertyValue(
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::CallMethod( adapters::mock::MockAdapter::CallMethod(
std::shared_ptr<bridge::IAdapterMethod>& method, std::shared_ptr<bridge::IAdapterMethod>& method,
std::shared_ptr<bridge::IAdapterIoRequest>* req) std::shared_ptr<bridge::IAdapterIoRequest>* req)
...@@ -234,7 +234,7 @@ adapters::mock::MockAdapter::CallMethod( ...@@ -234,7 +234,7 @@ adapters::mock::MockAdapter::CallMethod(
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::RegisterSignalListener( adapters::mock::MockAdapter::RegisterSignalListener(
std::string const& signalName, std::string const& signalName,
std::shared_ptr<bridge::IAdapterSignalListener> const& listener, std::shared_ptr<bridge::IAdapterSignalListener> const& listener,
...@@ -250,10 +250,10 @@ adapters::mock::MockAdapter::RegisterSignalListener( ...@@ -250,10 +250,10 @@ adapters::mock::MockAdapter::RegisterSignalListener(
return ER_OK; return ER_OK;
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::UnregisterSignalListener(bridge::IAdapter::RegistrationHandle const& h) adapters::mock::MockAdapter::UnregisterSignalListener(bridge::IAdapter::RegistrationHandle const& h)
{ {
int32_t st = ER_FAIL; bridge::AdapterStatus st = ER_FAIL;
for (SignalMap::iterator begin = m_signalListeners.begin(), end = m_signalListeners.end(); for (SignalMap::iterator begin = m_signalListeners.begin(), end = m_signalListeners.end();
begin != end; ++begin) begin != end; ++begin)
{ {
...@@ -296,10 +296,10 @@ adapters::mock::MockAdapter::CreateSignals() ...@@ -296,10 +296,10 @@ adapters::mock::MockAdapter::CreateSignals()
m_signals.push_back(signal); m_signals.push_back(signal);
} }
int32_t bridge::AdapterStatus
adapters::mock::MockAdapter::NotifySignalListeners(std::shared_ptr<MockAdapterSignal> const& signal) adapters::mock::MockAdapter::NotifySignalListeners(std::shared_ptr<MockAdapterSignal> const& signal)
{ {
int32_t st = ER_FAIL; bridge::AdapterStatus st = ER_FAIL;
if (!signal) if (!signal)
return st; return st;
......
#pragma once #pragma once
#include "Bridge/IAdapter.h" #include "Bridge/IAdapter.h"
#include "Common/defines.h"
#include <map> #include <map>
#include <memory> #include <memory>
...@@ -27,52 +26,52 @@ namespace mock ...@@ -27,52 +26,52 @@ namespace mock
virtual common::Guid GetExposedApplicationGuid(); virtual common::Guid GetExposedApplicationGuid();
virtual bridge::AdapterSignalVector GetSignals(); virtual bridge::AdapterSignalVector GetSignals();
virtual int32_t Initialize(std::shared_ptr<bridge::IAdapterLog> const& log); virtual bridge::AdapterStatus Initialize(std::shared_ptr<bridge::IAdapterLog> const& log);
virtual int32_t Shutdown(); virtual bridge::AdapterStatus Shutdown();
virtual int32_t GetConfiguration(std::vector<uint8_t>* /*configData*/) virtual bridge::AdapterStatus GetConfiguration(std::vector<uint8_t>* /*configData*/)
{ return 0; } { return 0; }
virtual int32_t SetConfiguration(std::vector<uint8_t> const& /*configData*/) virtual bridge::AdapterStatus SetConfiguration(std::vector<uint8_t> const& /*configData*/)
{ return 0; } { return 0; }
virtual int32_t EnumDevices( virtual bridge::AdapterStatus EnumDevices(
bridge::EnumDeviceOptions opts, bridge::EnumDeviceOptions opts,
bridge::AdapterDeviceVector& deviceList, bridge::AdapterDeviceVector& deviceList,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t GetProperty( virtual bridge::AdapterStatus GetProperty(
std::shared_ptr<bridge::IAdapterProperty>& prop, std::shared_ptr<bridge::IAdapterProperty>& prop,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t SetProperty( virtual bridge::AdapterStatus SetProperty(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t GetPropertyValue( virtual bridge::AdapterStatus GetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::string const& attributeName, std::string const& attributeName,
std::shared_ptr<bridge::IAdapterValue>& value, std::shared_ptr<bridge::IAdapterValue>& value,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t SetPropertyValue( virtual bridge::AdapterStatus SetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::shared_ptr<bridge::IAdapterValue> const& value, std::shared_ptr<bridge::IAdapterValue> const& value,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t CallMethod( virtual bridge::AdapterStatus CallMethod(
std::shared_ptr<bridge::IAdapterMethod>& method, std::shared_ptr<bridge::IAdapterMethod>& method,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t RegisterSignalListener( virtual bridge::AdapterStatus RegisterSignalListener(
std::string const& signalName, std::string const& signalName,
std::shared_ptr<bridge::IAdapterSignalListener> const& listener, std::shared_ptr<bridge::IAdapterSignalListener> const& listener,
void* argp, void* argp,
bridge::IAdapter::RegistrationHandle& handle); bridge::IAdapter::RegistrationHandle& handle);
virtual int32_t UnregisterSignalListener(bridge::IAdapter::RegistrationHandle const& h); virtual bridge::AdapterStatus UnregisterSignalListener(bridge::IAdapter::RegistrationHandle const& h);
int32_t NotifySignalListeners(std::shared_ptr<MockAdapterSignal> const& signal); bridge::AdapterStatus NotifySignalListeners(std::shared_ptr<MockAdapterSignal> const& signal);
private: private:
void CreateMockDevices(); void CreateMockDevices();
......
...@@ -61,19 +61,19 @@ adapter::zigbee::Adapter::GetSignals() ...@@ -61,19 +61,19 @@ adapter::zigbee::Adapter::GetSignals()
return bridge::AdapterSignalVector(); return bridge::AdapterSignalVector();
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::Initialize() adapter::zigbee::Adapter::Initialize()
{ {
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::Shutdown() adapter::zigbee::Adapter::Shutdown()
{ {
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::EnumDevices( adapter::zigbee::Adapter::EnumDevices(
bridge::EnumDeviceOptions, bridge::EnumDeviceOptions,
bridge::AdapterDeviceVector&, bridge::AdapterDeviceVector&,
...@@ -82,7 +82,7 @@ adapter::zigbee::Adapter::EnumDevices( ...@@ -82,7 +82,7 @@ adapter::zigbee::Adapter::EnumDevices(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::GetProperty( adapter::zigbee::Adapter::GetProperty(
std::shared_ptr<bridge::IAdapterProperty>&, std::shared_ptr<bridge::IAdapterProperty>&,
std::shared_ptr<bridge::IAdapterIoRequest>*) std::shared_ptr<bridge::IAdapterIoRequest>*)
...@@ -90,7 +90,7 @@ adapter::zigbee::Adapter::GetProperty( ...@@ -90,7 +90,7 @@ adapter::zigbee::Adapter::GetProperty(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::SetProperty( adapter::zigbee::Adapter::SetProperty(
std::shared_ptr<bridge::IAdapterProperty> const&, std::shared_ptr<bridge::IAdapterProperty> const&,
std::shared_ptr<bridge::IAdapterIoRequest>*) std::shared_ptr<bridge::IAdapterIoRequest>*)
...@@ -98,7 +98,7 @@ adapter::zigbee::Adapter::SetProperty( ...@@ -98,7 +98,7 @@ adapter::zigbee::Adapter::SetProperty(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::GetPropertyValue( adapter::zigbee::Adapter::GetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const&, std::shared_ptr<bridge::IAdapterProperty> const&,
std::string const&, std::string const&,
...@@ -108,7 +108,7 @@ adapter::zigbee::Adapter::GetPropertyValue( ...@@ -108,7 +108,7 @@ adapter::zigbee::Adapter::GetPropertyValue(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::SetPropertyValue( adapter::zigbee::Adapter::SetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const&, std::shared_ptr<bridge::IAdapterProperty> const&,
std::shared_ptr<bridge::IAdapterValue> const&, std::shared_ptr<bridge::IAdapterValue> const&,
...@@ -117,7 +117,7 @@ adapter::zigbee::Adapter::SetPropertyValue( ...@@ -117,7 +117,7 @@ adapter::zigbee::Adapter::SetPropertyValue(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::CallMethod( adapter::zigbee::Adapter::CallMethod(
std::shared_ptr<bridge::IAdapterMethod>&, std::shared_ptr<bridge::IAdapterMethod>&,
std::shared_ptr<bridge::IAdapterIoRequest>*) std::shared_ptr<bridge::IAdapterIoRequest>*)
...@@ -125,7 +125,7 @@ adapter::zigbee::Adapter::CallMethod( ...@@ -125,7 +125,7 @@ adapter::zigbee::Adapter::CallMethod(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::RegisterSignalListener( adapter::zigbee::Adapter::RegisterSignalListener(
std::string const&, std::string const&,
std::shared_ptr<bridge::IAdapterSignalListener> const&, std::shared_ptr<bridge::IAdapterSignalListener> const&,
...@@ -135,7 +135,7 @@ adapter::zigbee::Adapter::RegisterSignalListener( ...@@ -135,7 +135,7 @@ adapter::zigbee::Adapter::RegisterSignalListener(
return -1; return -1;
} }
int32_t bridge::AdapterStatus
adapter::zigbee::Adapter::UnregisterSignalListener(bridge::IAdapter::RegistrationHandle const&) adapter::zigbee::Adapter::UnregisterSignalListener(bridge::IAdapter::RegistrationHandle const&)
{ {
return -1; return -1;
......
...@@ -58,44 +58,44 @@ namespace zigbee ...@@ -58,44 +58,44 @@ namespace zigbee
virtual common::Guid GetExposedApplicationGuid(); virtual common::Guid GetExposedApplicationGuid();
virtual bridge::AdapterSignalVector GetSignals(); virtual bridge::AdapterSignalVector GetSignals();
virtual int32_t Initialize(); virtual bridge::AdapterStatus Initialize();
virtual int32_t Shutdown(); virtual bridge::AdapterStatus Shutdown();
virtual int32_t EnumDevices( virtual bridge::AdapterStatus EnumDevices(
bridge::EnumDeviceOptions opts, bridge::EnumDeviceOptions opts,
bridge::AdapterDeviceVector& deviceList, bridge::AdapterDeviceVector& deviceList,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t GetProperty( virtual bridge::AdapterStatus GetProperty(
std::shared_ptr<bridge::IAdapterProperty>& prop, std::shared_ptr<bridge::IAdapterProperty>& prop,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t SetProperty( virtual bridge::AdapterStatus SetProperty(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t GetPropertyValue( virtual bridge::AdapterStatus GetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::string const& attributeName, std::string const& attributeName,
std::shared_ptr<bridge::IAdapterValue>& value, std::shared_ptr<bridge::IAdapterValue>& value,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t SetPropertyValue( virtual bridge::AdapterStatus SetPropertyValue(
std::shared_ptr<bridge::IAdapterProperty> const& prop, std::shared_ptr<bridge::IAdapterProperty> const& prop,
std::shared_ptr<bridge::IAdapterValue> const& value, std::shared_ptr<bridge::IAdapterValue> const& value,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t CallMethod( virtual bridge::AdapterStatus CallMethod(
std::shared_ptr<bridge::IAdapterMethod>& method, std::shared_ptr<bridge::IAdapterMethod>& method,
std::shared_ptr<bridge::IAdapterIoRequest>* req); std::shared_ptr<bridge::IAdapterIoRequest>* req);
virtual int32_t RegisterSignalListener( virtual bridge::AdapterStatus RegisterSignalListener(
std::string const& signalName, std::string const& signalName,
std::shared_ptr<bridge::IAdapterSignalListener> const& listener, std::shared_ptr<bridge::IAdapterSignalListener> const& listener,
void* argp, void* argp,
bridge::IAdapter::RegistrationHandle& handle); bridge::IAdapter::RegistrationHandle& handle);
virtual int32_t UnregisterSignalListener( virtual bridge::AdapterStatus UnregisterSignalListener(
bridge::IAdapter::RegistrationHandle const& h); bridge::IAdapter::RegistrationHandle const& h);
}; };
} }
......
#pragma once #pragma once
#include "Common/defines.h"
#include "Common/Guid.h" #include "Common/Guid.h"
#include <alljoyn/AboutData.h> #include <alljoyn/AboutData.h>
......
#pragma once #pragma once
#include "Common/defines.h"
#include "Bridge/IAdapter.h" #include "Bridge/IAdapter.h"
#include "Bridge/ConfigManager.h" #include "Bridge/ConfigManager.h"
......
#pragma once #pragma once
#include "Common/defines.h"
#include "Bridge/BridgeConfig.h" #include "Bridge/BridgeConfig.h"
#include <alljoyn/BusAttachment.h> #include <alljoyn/BusAttachment.h>
......
#pragma once #pragma once
#include "Common/defines.h"
#include "Common/Guid.h" #include "Common/Guid.h"
#include "Common/Variant.h" #include "Common/Variant.h"
#include <condition_variable>
#include <map> #include <map>
#include <memory> #include <memory>
#include <mutex>
#include <string> #include <string>
#include <vector> #include <vector>
namespace bridge namespace bridge
{ {
typedef uint32_t AdapterStatus;
inline bool IsOk(AdapterStatus st)
{
return st == 0;
}
std::string const kDeviceArrivalSignal = "Device_Arrival"; std::string const kDeviceArrivalSignal = "Device_Arrival";
std::string const kDeviceArravalHandle = "Device_Handle"; std::string const kDeviceArravalHandle = "Device_Handle";
std::string const kDeviceRemovalSignal = "Device_Removal"; std::string const kDeviceRemovalSignal = "Device_Removal";
...@@ -155,10 +163,10 @@ namespace bridge ...@@ -155,10 +163,10 @@ namespace bridge
class IAdapterIoRequest class IAdapterIoRequest
{ {
public: public:
virtual int32_t Status() = 0;; virtual ~IAdapterIoRequest() { }
virtual int32_t Wait(uint32_t timeoutMillis) = 0; virtual int32_t GetStatus() = 0;;
virtual int32_t Wait(uint32_t timeoutMillis = std::numeric_limits<uint32_t>::max()) = 0;
virtual int32_t Cancel() = 0; virtual int32_t Cancel() = 0;
virtual int32_t Release() = 0;
}; };
enum class EnumDeviceOptions enum class EnumDeviceOptions
...@@ -172,6 +180,7 @@ namespace bridge ...@@ -172,6 +180,7 @@ namespace bridge
protected: protected:
IAdapter() { } IAdapter() { }
public: public:
typedef int32_t RegistrationHandle; typedef int32_t RegistrationHandle;
virtual ~IAdapter() { } virtual ~IAdapter() { }
...@@ -183,47 +192,47 @@ namespace bridge ...@@ -183,47 +192,47 @@ namespace bridge
virtual common::Guid GetExposedApplicationGuid() = 0; virtual common::Guid GetExposedApplicationGuid() = 0;
virtual AdapterSignalVector GetSignals() = 0; virtual AdapterSignalVector GetSignals() = 0;
virtual int32_t SetConfiguration(std::vector<uint8_t> const& configData) = 0; virtual AdapterStatus SetConfiguration(std::vector<uint8_t> const& configData) = 0;
virtual int32_t GetConfiguration(std::vector<uint8_t>* configData) = 0; virtual AdapterStatus GetConfiguration(std::vector<uint8_t>* configData) = 0;
virtual int32_t Initialize(std::shared_ptr<IAdapterLog> const& log) = 0; virtual AdapterStatus Initialize(std::shared_ptr<IAdapterLog> const& log) = 0;
virtual int32_t Shutdown() = 0; virtual AdapterStatus Shutdown() = 0;
virtual int32_t EnumDevices( virtual AdapterStatus EnumDevices(
EnumDeviceOptions opts, EnumDeviceOptions opts,
AdapterDeviceVector& deviceList, AdapterDeviceVector& deviceList,
std::shared_ptr<IAdapterIoRequest>* req) = 0; std::shared_ptr<IAdapterIoRequest>* req) = 0;
virtual int32_t GetProperty( virtual AdapterStatus GetProperty(
std::shared_ptr<IAdapterProperty>& prop, std::shared_ptr<IAdapterProperty>& prop,
std::shared_ptr<IAdapterIoRequest>* req) = 0; std::shared_ptr<IAdapterIoRequest>* req) = 0;
virtual int32_t SetProperty( virtual AdapterStatus SetProperty(
std::shared_ptr<IAdapterProperty> const& prop, std::shared_ptr<IAdapterProperty> const& prop,
std::shared_ptr<IAdapterIoRequest>* req) = 0; std::shared_ptr<IAdapterIoRequest>* req) = 0;
virtual int32_t GetPropertyValue( virtual AdapterStatus GetPropertyValue(
std::shared_ptr<IAdapterProperty> const& prop, std::shared_ptr<IAdapterProperty> const& prop,
std::string const& attributeName, std::string const& attributeName,
std::shared_ptr<IAdapterValue>& value, std::shared_ptr<IAdapterValue>& value,
std::shared_ptr<IAdapterIoRequest>* req) = 0; std::shared_ptr<IAdapterIoRequest>* req) = 0;
virtual int32_t SetPropertyValue( virtual AdapterStatus SetPropertyValue(