Peer to peer D-BUS / gLib
John (J5) Palmieri
johnp at redhat.com
Mon Feb 20 11:24:11 PST 2006
On Mon, 2006-02-20 at 14:17 -0500, John (J5) Palmieri wrote:
>
> > Second, I still had to use the internal macro DBUS_G_CONNECTION_FROM_CONNECTION in one place, in the server process's connection handler. I'd like to suggest that the signature of the function dbus_connection_setup_with_g_main be changed from:
> >
> > void dbus_connection_setup_with_g_main (DBusConnection *connection,
> > GMainContext *context);
> >
> > to:
> >
> > DBusGConnection* dbus_connection_setup_with_g_main (DBusConnection *connection,
> > GMainContext *context);
> >
> > That would have allowed me to access the DBusGConnection pointer I needed.
> >
> > If you would like to include the modified sample using peer-to-peer direct connections in the glib/examples distribution, let me know.
> >
>
> You don't need to call dbus_connection_setup_with_g_main as it is called
> via dbus_g_bus_get and dbus_g_connection_open.
Hmm, but it doesn't let you choose a context so it won't work for
mainloops other than the default. I'm thinking dbus_g_bus_get and
dbus_g_connection_open need to take a GMainContext * also.
--
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus
mailing list