message-params: use JSON instead of custom format

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/525>
This commit is contained in:
Igor V. Kovalenko 2021-03-14 09:49:05 +03:00 committed by PulseAudio Marge Bot
parent 0ba768b2e9
commit 1dd05f4a9b
6 changed files with 93 additions and 69 deletions

View file

@ -19,6 +19,7 @@
***/
#include <pulsecore/core.h>
#include <pulse/json.h>
/* Message handler types and functions */
@ -26,7 +27,7 @@
typedef int (*pa_message_handler_cb_t)(
const char *object_path,
const char *message,
char *message_parameters,
const pa_json_object *parameters,
char **response,
void *userdata);