From 68f2f1395d635576dae2a8aff34d38f06511d153 Mon Sep 17 00:00:00 2001 From: Georg Chini Date: Tue, 14 Jan 2020 10:24:36 +0100 Subject: [PATCH] pactl, pacmd, cli-command: Add send-message command Part-of: --- doc/messaging_api.txt | 15 +++++++++++ man/pactl.1.xml.in | 7 +++++ man/pulse-cli-syntax.5.xml.in | 7 +++++ shell-completion/bash/pulseaudio | 4 +-- shell-completion/zsh/_pulseaudio | 2 ++ src/pulse/introspect.h | 3 ++- src/pulsecore/cli-command.c | 44 ++++++++++++++++++++++++++++++++ src/utils/pacmd.c | 1 + src/utils/pactl.c | 43 ++++++++++++++++++++++++++++++- 9 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 doc/messaging_api.txt diff --git a/doc/messaging_api.txt b/doc/messaging_api.txt new file mode 100644 index 000000000..cbc06e75a --- /dev/null +++ b/doc/messaging_api.txt @@ -0,0 +1,15 @@ +Message API reference + +The message API allows any object within pulseaudio to register a message +handler. A message handler is a function that can be called by clients using +PA_COMMAND_SEND_OBJECT_MESSAGE. A message consists at least of an object path +and a message command, both specified as strings. Additional parameters can +be specified using a single string, but are not mandatory. The message handler +returns an error number as defined in def.h and also returns a string in +the "response" variable. The following reference lists available messages, +their parameters and return values. + +Recipient: +Message: +Parameters: +Return value: diff --git a/man/pactl.1.xml.in b/man/pactl.1.xml.in index cff628f34..9f4b7abd3 100644 --- a/man/pactl.1.xml.in +++ b/man/pactl.1.xml.in @@ -253,6 +253,13 @@ License along with PulseAudio; if not, see . for possible encodings.

+ + + +