Re: Callback for service changed

JH <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CAA=hcWQLKRxnhggbW3qo4SgKERBjPt1zbPbpq89nmnkiKTmodw@mail.gmail.com>
Hi Thiago,

Thanks for your response.

> To react to signals, you need to use dbus_connection_add_filter() and make
> sure you return DBUS_HANDLER_RESULT_NOT_YET_HANDLED.

Yes, I did:

dbus_message_is_signal(msg, "org.freedesktop.NetworkManager", "StateChange")

dbus_connection_add_filter(conn, signal_callback, (void *)data.c_str(), NULL);

DBusHandlerResult signal_callback(DBusConnection *connection,
DBusMessage *message, void *user_data) {
 .......
 return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}

My question is which function provides the values of DBusMessage
*message, void *user_data for signal_callback? And what is format of
the message?

Thank you.

Kind regards,

- jupiter
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.