Time to get rid of the horrible coding style
This commit is contained in:
parent
534ee610d8
commit
efc594f888
53 changed files with 1137 additions and 1136 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
using namespace DBus;
|
||||
|
||||
Server::Private::Private( DBusServer* s )
|
||||
Server::Private::Private(DBusServer *s)
|
||||
: server(s)
|
||||
{
|
||||
}
|
||||
|
@ -41,9 +41,9 @@ Server::Private::~Private()
|
|||
{
|
||||
}
|
||||
|
||||
void Server::Private::on_new_conn_cb( DBusServer* server, DBusConnection* conn, void* data )
|
||||
void Server::Private::on_new_conn_cb(DBusServer *server, DBusConnection *conn, void *data)
|
||||
{
|
||||
Server* s = static_cast<Server*>(data);
|
||||
Server *s = static_cast<Server *>(data);
|
||||
|
||||
Connection nc (new Connection::Private(conn, s->_pvt.get()));
|
||||
|
||||
|
@ -54,12 +54,12 @@ void Server::Private::on_new_conn_cb( DBusServer* server, DBusConnection* conn,
|
|||
debug_log("incoming connection 0x%08x", conn);
|
||||
}
|
||||
|
||||
Server::Server( const char* address )
|
||||
Server::Server(const char *address)
|
||||
{
|
||||
InternalError e;
|
||||
DBusServer* server = dbus_server_listen(address, e);
|
||||
DBusServer *server = dbus_server_listen(address, e);
|
||||
|
||||
if(e) throw Error(e);
|
||||
if (e) throw Error(e);
|
||||
|
||||
debug_log("server 0x%08x listening on %s", server, address);
|
||||
|
||||
|
@ -70,7 +70,7 @@ Server::Server( const char* address )
|
|||
setup(default_dispatcher);
|
||||
}
|
||||
/*
|
||||
Server::Server( const Server& s )
|
||||
Server::Server(const Server &s)
|
||||
: _pvt(s._pvt)
|
||||
{
|
||||
dbus_server_ref(_pvt->server);
|
||||
|
@ -81,11 +81,11 @@ Server::~Server()
|
|||
dbus_server_unref(_pvt->server);
|
||||
}
|
||||
|
||||
Dispatcher* Server::setup( Dispatcher* dispatcher )
|
||||
Dispatcher *Server::setup(Dispatcher *dispatcher)
|
||||
{
|
||||
debug_log("registering stubs for server %p", _pvt->server);
|
||||
|
||||
Dispatcher* prev = _pvt->dispatcher;
|
||||
Dispatcher *prev = _pvt->dispatcher;
|
||||
|
||||
dbus_server_set_watch_functions(
|
||||
_pvt->server,
|
||||
|
@ -110,7 +110,7 @@ Dispatcher* Server::setup( Dispatcher* dispatcher )
|
|||
return prev;
|
||||
}
|
||||
|
||||
bool Server::operator == ( const Server& s ) const
|
||||
bool Server::operator == (const Server &s) const
|
||||
{
|
||||
return _pvt->server == s._pvt->server;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue