maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   dbus listen on multiple events (https://talk.maemo.org/showthread.php?t=52382)

b0unc3 2010-05-11 11:05

dbus listen on multiple events
 
Hello,

I'm playing with glib-dbus, and I would like to know if I can have a single instance of DBusGConnection and then two (or more) DBusGProxy (on the same connection), to listen on different events.
Is it possible?

Thanks.

qwerty12 2010-05-11 11:09

Re: dbus listen on multiple events
 
Yes, this should work fine. Have you encountered any problems in particular?

b0unc3 2010-05-11 11:42

Re: dbus listen on multiple events
 
I think I found the problem.
The problem ( I suppose ) is that for an event I need to register a connection with :
dbus_g_bus_get (DBUS_BUS_SESSION, &error);

and for the other one:
dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);


All times are GMT. The time now is 13:05.

vBulletin® Version 3.8.8