mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
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:
parent
695d536380
commit
35f99c6e31
7 changed files with 745 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue