protocol-native: add message sending capability
authorGeorg Chini <georg@chini.tk>
Tue, 14 Jan 2020 09:15:36 +0000 (10:15 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 3 Dec 2020 14:41:39 +0000 (14:41 +0000)
commit4cdc0053c01f83b4b1c55042e594e1951a084c4f
treeedc9d5ec6fbec8b1a1aa5caf1ac4209900a29cad
parentcb3d12377cb1131fb3627ece66b0b70c2c5e0479
protocol-native: add message sending capability

This patch adds the PA_COMMAND_SEND_OBJECT_MESSAGE command to protocol-native
so that clients can use the messaging feature introduced in the previous patch.

Sending messages can in effect replace the extension system for modules. The
approach is more flexible than the extension interface because a generic string
format is used to exchange information. Furthermore the messaging system can be
used for any object, not only for modules, and is easier to implement than
extensions.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/51>
PROTOCOL
configure.ac
meson.build
src/map-file
src/pulse/introspect.c
src/pulse/introspect.h
src/pulsecore/native-common.h
src/pulsecore/pdispatch.c
src/pulsecore/protocol-native.c