diff options
author | Stefan Laner <laner@itestra.de> | 2014-03-03 12:01:58 +0100 |
---|---|---|
committer | Stefan Laner <laner@itestra.de> | 2014-03-03 12:01:58 +0100 |
commit | 3cc632bdf160300ac5bc300931ff53f1e11a1c1b (patch) | |
tree | 2e62664da922d6189e0929e89ac845e36df8a9fe /src/CommonAPI/DBus/DBusConnection.cpp | |
parent | 638d8475dc6764df0e516c6af90f6690a1eb6d8b (diff) | |
download | genivi-common-api-dbus-runtime-3cc632bdf160300ac5bc300931ff53f1e11a1c1b.tar.gz |
All public inline functions arn't anymore inline
- methods with templates excluded
Diffstat (limited to 'src/CommonAPI/DBus/DBusConnection.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusConnection.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/CommonAPI/DBus/DBusConnection.cpp b/src/CommonAPI/DBus/DBusConnection.cpp index 61b31d7..1d8fd38 100644 --- a/src/CommonAPI/DBus/DBusConnection.cpp +++ b/src/CommonAPI/DBus/DBusConnection.cpp @@ -1207,5 +1207,26 @@ void notifyDBusSignalHandlers(DBusSignalHandlersTable& dbusSignalHandlerstable, return dbusConnection->onLibdbusObjectPathMessage(libdbusMessage); } + +std::shared_ptr<DBusConnection> DBusConnection::getBus(const BusType& busType) { + return std::make_shared<DBusConnection>(busType); +} + +std::shared_ptr<DBusConnection> DBusConnection::wrapLibDBus(::DBusConnection* libDbusConnection) { + return std::make_shared<DBusConnection>(libDbusConnection); +} + +std::shared_ptr<DBusConnection> DBusConnection::getSessionBus() { + return getBus(BusType::SESSION); +} + +std::shared_ptr<DBusConnection> DBusConnection::getSystemBus() { + return getBus(BusType::SYSTEM); +} + +std::shared_ptr<DBusConnection> DBusConnection::getStarterBus() { + return getBus(BusType::STARTER); +} + } // namespace DBus } // namespace CommonAPI |