mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
wrap protocol extension of module-stream-restore
This commit is contained in:
parent
88c3db6636
commit
0cc674d961
6 changed files with 466 additions and 4 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include <pulse/stream.h>
|
||||
#include <pulse/operation.h>
|
||||
#include <pulse/subscribe.h>
|
||||
#include <pulse/ext-stream-restore.h>
|
||||
|
||||
#include <pulsecore/socket-client.h>
|
||||
#include <pulsecore/pstream.h>
|
||||
|
|
@ -86,6 +87,12 @@ struct pa_context {
|
|||
pa_client_conf *conf;
|
||||
|
||||
uint32_t client_index;
|
||||
|
||||
/* Extension specific data */
|
||||
struct {
|
||||
pa_ext_stream_restore_subscribe_cb_t callback;
|
||||
void *userdata;
|
||||
} ext_stream_restore;
|
||||
};
|
||||
|
||||
#define PA_MAX_WRITE_INDEX_CORRECTIONS 32
|
||||
|
|
@ -233,4 +240,6 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
|
|||
|
||||
#define PA_CHECK_VALIDITY_RETURN_NULL(context, expression, error) PA_CHECK_VALIDITY_RETURN_ANY(context, expression, error, NULL)
|
||||
|
||||
void pa_ext_stream_restore_command(pa_context *c, uint32_t tag, pa_tagstruct *t);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue