mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 22:15:37 +08:00
Ref T709, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
f2bf038501
commit
a5cefcf18c
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
namespace XSwiftBus
|
namespace XSwiftBus
|
||||||
{
|
{
|
||||||
|
|
||||||
CDBusServer::CDBusServer()
|
CDBusServer::CDBusServer()
|
||||||
{
|
{
|
||||||
dbus_threads_init_default();
|
dbus_threads_init_default();
|
||||||
@@ -78,6 +77,7 @@ namespace XSwiftBus
|
|||||||
|
|
||||||
void CDBusServer::onNewConnection(DBusServer *, DBusConnection *conn)
|
void CDBusServer::onNewConnection(DBusServer *, DBusConnection *conn)
|
||||||
{
|
{
|
||||||
|
// called by listener and the DBus connection for xSwiftBus afterwards
|
||||||
INFO_LOG("onNewConnection");
|
INFO_LOG("onNewConnection");
|
||||||
auto dbusConnection = std::make_shared<CDBusConnection>(conn);
|
auto dbusConnection = std::make_shared<CDBusConnection>(conn);
|
||||||
m_newConnectionFunc(dbusConnection);
|
m_newConnectionFunc(dbusConnection);
|
||||||
@@ -88,5 +88,4 @@ namespace XSwiftBus
|
|||||||
auto *obj = static_cast<CDBusServer *>(data);
|
auto *obj = static_cast<CDBusServer *>(data);
|
||||||
obj->onNewConnection(server, conn);
|
obj->onNewConnection(server, conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
namespace XSwiftBus
|
namespace XSwiftBus
|
||||||
{
|
{
|
||||||
|
|
||||||
class CDBusObject;
|
class CDBusObject;
|
||||||
|
|
||||||
//! DBus connection
|
//! DBus connection
|
||||||
@@ -38,7 +37,7 @@ namespace XSwiftBus
|
|||||||
CDBusServer();
|
CDBusServer();
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
~CDBusServer() override;
|
virtual ~CDBusServer() override;
|
||||||
|
|
||||||
//! Set the dispatcher
|
//! Set the dispatcher
|
||||||
void setDispatcher(CDBusDispatcher *dispatcher);
|
void setDispatcher(CDBusDispatcher *dispatcher);
|
||||||
@@ -77,7 +76,6 @@ namespace XSwiftBus
|
|||||||
CDBusError m_lastError;
|
CDBusError m_lastError;
|
||||||
NewConnectionFunc m_newConnectionFunc;
|
NewConnectionFunc m_newConnectionFunc;
|
||||||
};
|
};
|
||||||
|
} // ns
|
||||||
}
|
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
Reference in New Issue
Block a user