summaryrefslogtreecommitdiff
path: root/include/CommonAPI/ProxyManager.hpp
diff options
context:
space:
mode:
authorDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
committerDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
commitb6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9 (patch)
tree8b0b1438ccaa9450ca4b21221eb9cd74f14b10f5 /include/CommonAPI/ProxyManager.hpp
parent3d2fb21d0e93b6b595610285e910ac80c099a174 (diff)
downloadgenivi-common-api-runtime-b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9.tar.gz
CommonAPI 3.1.4
Diffstat (limited to 'include/CommonAPI/ProxyManager.hpp')
-rw-r--r--include/CommonAPI/ProxyManager.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/CommonAPI/ProxyManager.hpp b/include/CommonAPI/ProxyManager.hpp
index 571eb97..d7bcada 100644
--- a/include/CommonAPI/ProxyManager.hpp
+++ b/include/CommonAPI/ProxyManager.hpp
@@ -39,7 +39,7 @@ public:
virtual const ConnectionId_t &getConnectionId() const = 0;
virtual void getAvailableInstances(CommonAPI::CallStatus&, std::vector<std::string>& availableInstances) = 0;
- virtual std::future<CallStatus> getAvailableInstancesAsync(GetAvailableInstancesCallback callback) = 0;
+ virtual std::future<CallStatus> getAvailableInstancesAsync(GetAvailableInstancesCallback callback) = 0;
virtual void getInstanceAvailabilityStatus(const std::string& instanceAddress,
CallStatus& callStatus,
@@ -50,22 +50,22 @@ public:
virtual InstanceAvailabilityStatusChangedEvent& getInstanceAvailabilityStatusChangedEvent() = 0;
- template<template<typename ...> class _ProxyClass, typename ... _AttributeExtensions>
- std::shared_ptr<_ProxyClass<_AttributeExtensions...> >
+ template<template<typename ...> class ProxyClass_, typename ... AttributeExtensions_>
+ std::shared_ptr<ProxyClass_<AttributeExtensions_...> >
buildProxy(const std::string &_instance) {
std::shared_ptr<Proxy> proxy = createProxy(getDomain(), getInterface(), _instance, getConnectionId());
if (proxy) {
- return std::make_shared<_ProxyClass<_AttributeExtensions...>>(proxy);
+ return std::make_shared<ProxyClass_<AttributeExtensions_...>>(proxy);
}
return NULL;
}
protected:
- std::shared_ptr<Proxy> createProxy(const std::string &,
- const std::string &,
- const std::string &,
- const ConnectionId_t &_connection) const;
+ COMMONAPI_EXPORT std::shared_ptr<Proxy> createProxy(const std::string &,
+ const std::string &,
+ const std::string &,
+ const ConnectionId_t &_connection) const;
};
} // namespace CommonAPI