1 #ifndef foopulseextdevicerestorehfoo
2 #define foopulseextdevicerestorehfoo
26 #include <pulse/version.h>
Connection contexts for asynchronous communication with a server.
void(* pa_context_success_cb_t)(pa_context *c, int success, void *userdata)
A generic callback for operation completion.
Definition: context.h:160
struct pa_context pa_context
An opaque connection context to a daemon.
Definition: context.h:154
enum pa_device_type pa_device_type_t
The type of device we are dealing with.
pa_operation * pa_ext_device_restore_read_formats_all(pa_context *c, pa_ext_device_restore_read_device_formats_cb_t cb, void *userdata)
Read the formats for all present devices from the device database.
struct pa_ext_device_restore_info pa_ext_device_restore_info
Stores information about one device in the device database that is maintained by module-device-manage...
pa_operation * pa_ext_device_restore_save_formats(pa_context *c, pa_device_type_t type, uint32_t idx, uint8_t n_formats, pa_format_info **formats, pa_context_success_cb_t cb, void *userdata)
Read an entry from the device database.
void(* pa_ext_device_restore_read_device_formats_cb_t)(pa_context *c, const pa_ext_device_restore_info *info, int eol, void *userdata)
Callback prototype for pa_ext_device_restore_read_formats().
Definition: ext-device-restore.h:78
void pa_ext_device_restore_set_subscribe_cb(pa_context *c, pa_ext_device_restore_subscribe_cb_t cb, void *userdata)
Set the subscription callback that is called when pa_ext_device_restore_subscribe() was called.
void(* pa_ext_device_restore_subscribe_cb_t)(pa_context *c, pa_device_type_t type, uint32_t idx, void *userdata)
Callback prototype for pa_ext_device_restore_set_subscribe_cb().
Definition: ext-device-restore.h:64
pa_operation * pa_ext_device_restore_read_formats(pa_context *c, pa_device_type_t type, uint32_t idx, pa_ext_device_restore_read_device_formats_cb_t cb, void *userdata)
Read an entry from the device database.
pa_operation * pa_ext_device_restore_subscribe(pa_context *c, int enable, pa_context_success_cb_t cb, void *userdata)
Subscribe to changes in the device database.
pa_operation * pa_ext_device_restore_test(pa_context *c, pa_ext_device_restore_test_cb_t cb, void *userdata)
Test if this extension module is available in the server.
void(* pa_ext_device_restore_test_cb_t)(pa_context *c, uint32_t version, void *userdata)
Callback prototype for pa_ext_device_restore_test().
Definition: ext-device-restore.h:45
struct pa_operation pa_operation
An asynchronous operation object.
Definition: operation.h:33
Stores information about one device in the device database that is maintained by module-device-manage...
Definition: ext-device-restore.h:37
pa_device_type_t type
Device type sink or source?
Definition: ext-device-restore.h:38
pa_format_info ** formats
An array of formats (may be NULL if n_formats == 0)
Definition: ext-device-restore.h:41
uint32_t index
The device index.
Definition: ext-device-restore.h:39
uint8_t n_formats
How many formats do we have?
Definition: ext-device-restore.h:40