dbus-glib question?
Xue, Zack
zkxue at tycoint.com
Wed Jun 16 19:24:32 PDT 2010
Thanks very !
Can I do like this?
1. get bus proxy.
bus_proxy = dbus_g_proxy_new_for_name (bus, "org.freedesktop.DBus",
"/org/freedesktop/DBus",
"org.freedesktop.DBus");
2. dbus_g_proxy_call AddMatch
3. dbus_g_proxy_add_signal to the bus_proxy, and then dbus_g_proxy_connect_signal
Best regards!
Zack
-----Original Message-----
From: cgwalters at gmail.com [mailto:cgwalters at gmail.com] On Behalf Of Colin Walters
Sent: 2010年6月17日 10:13
To: Xue, Zack
Cc: dbus at lists.freedesktop.org
Subject: Re: dbus-glib question?
Hi Zack,
Unfortunately there's no good way to do this with dbus-glib; you will
have to resort to adding a filter function using libdbus. If you do
this before you initialize dbus-glib, your filter should be called
first.
On Tue, Jun 15, 2010 at 7:21 AM, Xue, Zack <zkxue at tycoint.com> wrote:
> Hi all,
>
> I have question about dbus glib question.
>
> When use the dbus low level API, we can call the
>
> dbus_bus_add_match, so the client don’t need to know who sent this signal.
> But for the glib dbus, I find most example have a proxy object for the
> signal receive.
>
>
>
> Is there have a method to wait the bus signal by using the dbus glib ? and
> do not care who send the signal.
>
>
>
> Zack
>
>
>
>
>
>
>
>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
More information about the dbus
mailing list