pactl: add format flag for JSON output
This adds a --format
flag to pactl
, which can have the values of normal
or json
.
It also adds JSON output for all the current commands which print output.
This is the first time I've contributed to pulseaudio
, and I'm keen to help out and get this change through.
Please let me know what I should do to get it ready.
Thanks. :)
Closes #812 (closed)
Other notes:
I was able to test each command (including its short
variant for the list
command) except for the message-handlers
option, which failed with the following output on my machine:
undefined symbol: pa_context_send_message_to_object, version PULSE_0
My distribution's (Arch) pulseaudio
also didn't have the message-handlers
option either.