diff options
author | Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> | 2015-10-02 13:09:08 +0200 |
---|---|---|
committer | Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> | 2015-10-02 13:09:08 +0200 |
commit | 6b730d5d2f993a7acddba2ba7ed649ef308a8e8e (patch) | |
tree | 4654ae96abe125990766bc172b566b19520c9205 /AudioManagerUtilities/include | |
parent | bd7ec24a2abe47ae4398b23282e8288e00eaec47 (diff) | |
download | audiomanager-6b730d5d2f993a7acddba2ba7ed649ef308a8e8e.tar.gz |
* Settings for commonAPI without binding code.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerUtilities/include')
-rw-r--r-- | AudioManagerUtilities/include/CAmCommonAPIWrapper.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/AudioManagerUtilities/include/CAmCommonAPIWrapper.h b/AudioManagerUtilities/include/CAmCommonAPIWrapper.h index fd5a784..f2d701d 100644 --- a/AudioManagerUtilities/include/CAmCommonAPIWrapper.h +++ b/AudioManagerUtilities/include/CAmCommonAPIWrapper.h @@ -26,10 +26,18 @@ #include <memory> #include <cassert> #include <CommonAPI/CommonAPI.hpp> +#ifndef COMMONAPI_INTERNAL_COMPILATION +#define COMMONAPI_INTERNAL_COMPILATION +#include <CommonAPI/MainLoopContext.hpp> +#undef COMMONAPI_INTERNAL_COMPILATION +#endif #include <CommonAPI/Utils.hpp> #include "audiomanagerconfig.h" #include "CAmSocketHandler.h" +#if COMMONAPI_VERSION_NUMBER < 300 +#error "CommonAPI versions < 300 are not supported." +#endif /** * A Common-API wrapper class, which loads the common-api runtime and instantiates all necessary objects. @@ -262,14 +270,6 @@ public: return buildProxy<ProxyClass>(parts[0], parts[2]); } - /**The following code is deprecated and it might be unavailable in future versions! - * Compatibility to versions prior 3.0.0 - */ -private: - std::shared_ptr<CommonAPI::Factory> mFactory; -public: - std::shared_ptr<CommonAPI::Factory> __attribute__((deprecated)) factory() const { return mFactory; }; - std::shared_ptr<CommonAPI::Runtime> __attribute__((deprecated)) runtime() const { return mRuntime; }; }; |