summaryrefslogtreecommitdiff
path: root/src/CommonAPI/DBus/DBusConnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/DBus/DBusConnection.h')
-rw-r--r--src/CommonAPI/DBus/DBusConnection.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/src/CommonAPI/DBus/DBusConnection.h b/src/CommonAPI/DBus/DBusConnection.h
index 54b94d1..7550c10 100644
--- a/src/CommonAPI/DBus/DBusConnection.h
+++ b/src/CommonAPI/DBus/DBusConnection.h
@@ -54,11 +54,11 @@ class DBusConnection: public DBusProxyConnection, public std::enable_shared_from
public:
DBusConnection(BusType busType);
- inline static std::shared_ptr<DBusConnection> getBus(const BusType& dbusBusType);
- inline static std::shared_ptr<DBusConnection> wrapLibDBus(::DBusConnection* libDbusConnection);
- inline static std::shared_ptr<DBusConnection> getSessionBus();
- inline static std::shared_ptr<DBusConnection> getSystemBus();
- inline static std::shared_ptr<DBusConnection> getStarterBus();
+ static std::shared_ptr<DBusConnection> getBus(const BusType& dbusBusType);
+ static std::shared_ptr<DBusConnection> wrapLibDBus(::DBusConnection* libDbusConnection);
+ static std::shared_ptr<DBusConnection> getSessionBus();
+ static std::shared_ptr<DBusConnection> getSystemBus();
+ static std::shared_ptr<DBusConnection> getStarterBus();
DBusConnection(const DBusConnection&) = delete;
DBusConnection(::DBusConnection* libDbusConnection);
@@ -235,25 +235,6 @@ class DBusConnection: public DBusProxyConnection, public std::enable_shared_from
mutable std::mutex enforceTimeoutMutex_;
};
-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