diff options
Diffstat (limited to 'src/pulse/internal.h')
-rw-r--r-- | src/pulse/internal.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/pulse/internal.h b/src/pulse/internal.h index 9ed541d1..9167bf1b 100644 --- a/src/pulse/internal.h +++ b/src/pulse/internal.h @@ -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> @@ -63,7 +64,7 @@ struct pa_context { uint32_t version; uint32_t ctag; uint32_t csyncid; - uint32_t error; + int error; pa_context_state_t state; pa_context_notify_cb_t state_callback; @@ -74,9 +75,12 @@ struct pa_context { pa_mempool *mempool; pa_bool_t is_local:1; - pa_bool_t do_autospawn:1; pa_bool_t do_shm:1; - int autospawn_lock_fd; + + pa_bool_t do_autospawn:1; + pa_bool_t autospawn_locked:1; + int autospawn_fd; + pa_io_event *autospawn_event; pa_spawn_api spawn_api; pa_strlist *server_list; @@ -86,6 +90,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 +243,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 |