Active Topics

 


Reply
Thread Tools
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#1
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's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Yes, this should work fine. Have you encountered any problems in particular?
 
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#3
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);
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:49.