device-restore: Add a new protocol extension for device-restore.

This simply exposes the formats that a device supports
via a simple protocol extension that will allow clients
to setup what a connected receiver supports format wise.
This commit is contained in:
Colin Guthrie 2011-06-07 12:18:17 +02:00
parent 695d536380
commit 35f99c6e31
7 changed files with 745 additions and 7 deletions

View file

@ -29,6 +29,7 @@
#include <pulse/operation.h>
#include <pulse/subscribe.h>
#include <pulse/ext-device-manager.h>
#include <pulse/ext-device-restore.h>
#include <pulse/ext-stream-restore.h>
#include <pulsecore/socket-client.h>
@ -106,6 +107,10 @@ struct pa_context {
pa_ext_device_manager_subscribe_cb_t callback;
void *userdata;
} ext_device_manager;
struct {
pa_ext_device_restore_subscribe_cb_t callback;
void *userdata;
} ext_device_restore;
struct {
pa_ext_stream_restore_subscribe_cb_t callback;
void *userdata;
@ -294,6 +299,7 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
PA_FAIL_RETURN_ANY(context, error, NULL)
void pa_ext_device_manager_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
void pa_ext_device_restore_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
void pa_ext_stream_restore_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
void pa_format_info_free2(pa_format_info *f, void *userdata);