[pulseaudio-discuss] Receiving signals from server in C

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Fri May 30 06:44:00 PDT 2014

(Added pulseaudio-discuss back to cc.)

On Fri, 2014-05-30 at 15:24 +0200, Greg Knoll wrote:
> Thank you for your response,
> Yes, I did follow that tutorial.  I didn't state it correctly in my
> question, but I do only use the session bus to get the server
> address.  Then I use
>     *conn = dbus_connection_open(serverAddress, &err);
> to get the DBusConnection object and use this to make calls.

Ok, I suppose this is not the problem then. Back to the original

> However, where/how do I listen for the signal?  I also tried setting a
> dbus match rule:
>    dbus_bus_add_match(system_bus, "type='signal',interface='org.PulseAudio.Core1'", &err);

You don't need to add a match rule (trying to do so won't do anything
useful, because the match rules are managed by the bus daemon, and in a
peer-to-peer connection there's no bus daemon involved at all). Do you
register a message filter with dbus_connection_add_filter()? If not,
then that's the problem.

By the way, please don't top-post on mailing lists, and also plain text
messages are preferred over HTML.


More information about the pulseaudio-discuss mailing list