Wim Taymans
a3ccbd00b4
pulse-server: implement describe-module with core message
...
Implement the old pacmd describe-module command with a core message:
pactl send-message /core pipewire-pulse:describe-module
module-echo-cancel
2024-05-06 11:39:52 +02:00
Wim Taymans
370bf7206b
pulse-server: add pipewire-pulse:log-level message
...
Add a /core message to set the log level of the pulse-server.
An alternative would be to watch the settings metadata and follow the
server settings. This is however less flexible so the custom message
was chosen.
2024-01-04 17:43:53 +01:00
Wim Taymans
5d7900c4aa
pulse-server: prefix nonstandard messages with pipewire-pulse:
2023-10-06 17:55:35 +02:00
Wim Taymans
4b27807292
pulse-server: add /core message handlers for memory debugging
...
Add malloc-info and malloc-trim message handlers.
2023-10-06 16:49:03 +02:00
Barnabás Pőcze
e8f17814ba
pulse-server: pass the client to message handlers
...
Instead of passing the pw_manager object, pass the client
object to the message handler. The client's manager can
still be accessed via `client->manager`. Furthermore,
message handlers now have access to `client->impl`.
2023-10-06 16:16:48 +02:00
Barnabás Pőcze
4e69507b18
pulse-server: pass FILE to message handlers
...
Use `open_memstream()` to create a FILE stream and pass
that to message handlers to store their response. This allows
the `open_memstream()` calls and related error handling to be
removed from the message handlers.
2023-10-06 16:16:18 +02:00
Barnabás Pőcze
934ab3036e
treewide: use SPDX tags to specify copyright information
...
SPDX tags make the licensing information easy to understand and clear,
and they are machine parseable.
See https://spdx.dev for more information.
2023-02-16 10:54:48 +00:00
Wim Taymans
99f9f729ff
handle open_memstream errors
...
Fixes #2182
2022-03-02 11:48:31 +01:00
Wim Taymans
0904a35ba8
pulse-server: make separate index
...
Separate the id (the pipewire object id) from the index (what we send to
the client to identify the objects).
2022-01-17 12:01:13 +01:00
Wim Taymans
c46113faa3
json: spa_json_get_string() writes up to len chars or fail
2022-01-04 10:42:32 +01:00
Wim Taymans
13c0cbb899
pulse-server: remove unused defines
2022-01-04 10:08:54 +01:00
Peter Hutterer
52a96bb602
modules: add log topics to module-protocol-pulse
...
This ends up using a nested namespace: mod.protocol-pulse for the module
itself, mod.protocol-pulse.foo for the various submodules and
extensions.
2021-09-28 09:35:39 +02:00
Peter Hutterer
6989b24148
pulse-server: fix json comma handling
...
First was never set to false, so we kept skipping the commas.
Fixes 393f3e6d05
2021-07-30 07:29:11 +00:00
Wim Taymans
393f3e6d05
pulse-server: align format to pulseaudio json message format
...
PulseAudio uses json now as the message format. Reformat our output
and parse our input accordingly.
2021-07-29 20:55:44 +02:00
Barnabás Pőcze
e966b1d6f2
pulse-server: split out message-handler
...
Part of !776 .
2021-06-25 03:23:41 +02:00
Peter Hutterer
7697ed0757
treewide: replace strcmp() == 0 with spa_streq()
...
This change is only done in source files for now, header files will be done
separately.
2021-05-18 22:10:27 +10:00
Arun Raghavan
74140abada
pulse-server: Factor out module code to compile independently
...
This starts breaking up the giant monolith that is the pulse-server.c
code into more manageable chunks by trying to split the module code into
individual compilation units.
2021-04-15 19:37:15 -04:00
Pauli Virtanen
6b5b56bcc7
pulse-server: use transportCodec prop for bluez codec messages
2021-03-26 16:59:07 +00:00
Pauli Virtanen
132786c202
pulse-server: implement send_object_message
...
Use it for providing Bluez codec listing/switching interface. It
currently works by just switching device profiles.
2021-03-20 23:30:38 +02:00