a question about NameOwnerChanged
Marcel Holtmann
marcel at holtmann.org
Sun Jan 18 05:50:37 PST 2009
Hi Huan,
> I’m new to DBUS world, and I’m trying to get the NameOwnerChanged
> Signal from org.freedesktop.Dbus
>
> But It seems I can’t get my callback be invoked.
>
> Could you please help? Below is the code that I’m using.
>
<snip>
> gint dbus_init() {
>
> char *fdb_name = "org.freedesktop.Dbus";
>
> char *fdb_path = "/org/freedesktop/Dbus";
>
> char *fdb_interface = "org.freedesktop.Dbus";
you should better use the appropriate constants since it is "DBus" and
not "Dbus" in this case.
dbus_g_proxy_new_for_name(connection, DBUS_SERVICE_DBUS,
DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
Regards
Marcel
More information about the dbus
mailing list