summaryrefslogtreecommitdiff
path: root/include/CommonAPI/DBus/DBusFactory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/CommonAPI/DBus/DBusFactory.hpp')
-rw-r--r--include/CommonAPI/DBus/DBusFactory.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/CommonAPI/DBus/DBusFactory.hpp b/include/CommonAPI/DBus/DBusFactory.hpp
index 51ec476..157382d 100644
--- a/include/CommonAPI/DBus/DBusFactory.hpp
+++ b/include/CommonAPI/DBus/DBusFactory.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2013-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -18,6 +18,9 @@
#include <CommonAPI/DBus/DBusTypes.hpp>
namespace CommonAPI {
+
+class Runtime;
+
namespace DBus {
class DBusAddress;
@@ -95,6 +98,8 @@ public:
// Initialization
COMMONAPI_EXPORT void registerInterface(InterfaceInitFunction _function);
+ static std::weak_ptr<CommonAPI::Runtime> runtime_;
+
private:
COMMONAPI_EXPORT void incrementConnection(std::shared_ptr<DBusProxyConnection>);
COMMONAPI_EXPORT std::shared_ptr<DBusConnection> getConnection(const ConnectionId_t &);