Using D-BUS with GLib and no dbus-daemon

John (J5) Palmieri johnp at redhat.com
Wed Feb 15 12:07:19 PST 2006


On Wed, 2006-02-15 at 11:05 -0800, James Kent wrote:
> This sounds good.  I think adding dbus_g_connection_open() seems like
> the right way to go, since it would work in a similar way to
> dbus_g_bus_get().
> 
> There's one other place where the glib bindings were not complete and I
> had to dip into the dbus/dbus.h API.  I had to call dbus_server_listen
> to create the DBusServer, like this:
> 
>  	dbusServer = dbus_server_listen("unix:path=/tmp/a1b2c3",
> &error);
>   	dbus_server_setup_with_g_main(dbusServer,
> g_main_loop_get_context(mainloop)); 
> 
> I think it would be to combine these two steps into a single call,
> something like this:
> 
> 	DBusServer* dbus_server_new_with_g_main(const char *address,
> GMainContext *  context, DBusError *error)
> 
> Jim

We could wrap d-bus server like we do dbus_g_connection but I don't
think we really need to.  It is pretty straight forward and I'm guessing
all that is needed is an entry in the tutorial to show how to set up a
peer to peer server.

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list