[PATCH 4/8] core: add message handler

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

 



On Mon, 2018-04-09 at 19:35 +0200, Georg Chini wrote:
> This patch adds a small message handler to the core which enables
> clients to list available handlers via the list-handlers message.
> Command: pacmd send-message /core list-handlers
> pactl can be used with the same parameters.
> 
> The patch also introduces a convention for the return string.
> It consists of a list of elements where curly braces are used
> to separate elements. Each element can itself contain further
> elements. For example consider a message that returns multiple
> elements which each contain an integer and an array of float.
> A response string would look like that:
> {{Integer} {{1st float} {2nd float} ...}}{...}
> ---
>  doc/messaging_api.txt           | 21 +++++++++++++------
>  src/pulsecore/core.c            | 45 +++++++++++++++++++++++++++++++++++++++++
>  src/pulsecore/message-handler.c | 24 ++++++++++++++++++++++
>  3 files changed, 84 insertions(+), 6 deletions(-)

Looks good to me.

-- 
Tanu

https://www.patreon.com/tanuk
https://liberapay.com/tanuk


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

  Powered by Linux