Receiving signals from server in C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(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
question:

> 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.

-- 
Tanu




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux