From 35f99c6e31d90439f2bfbefb8b45cff323b40661 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 7 Jun 2011 12:18:17 +0200 Subject: 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. --- src/pulse/internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pulse/internal.h') diff --git a/src/pulse/internal.h b/src/pulse/internal.h index 40f6804a..92379094 100644 --- a/src/pulse/internal.h +++ b/src/pulse/internal.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -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); -- cgit