PulseAudio  16.0
ext-device-restore.h File Reference

Routines for controlling module-device-restore. More...

Go to the source code of this file.

Data Structures

struct  pa_ext_device_restore_info
 Stores information about one device in the device database that is maintained by module-device-manager. More...
 

Typedefs

typedef 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-manager. More...
 
typedef void(* pa_ext_device_restore_test_cb_t) (pa_context *c, uint32_t version, void *userdata)
 Callback prototype for pa_ext_device_restore_test(). More...
 
typedef 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(). More...
 
typedef 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(). More...
 

Functions

pa_operationpa_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. More...
 
pa_operationpa_ext_device_restore_subscribe (pa_context *c, int enable, pa_context_success_cb_t cb, void *userdata)
 Subscribe to changes in the device database. More...
 
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. More...
 
pa_operationpa_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. More...
 
pa_operationpa_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. More...
 
pa_operationpa_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. More...
 

Detailed Description

Routines for controlling module-device-restore.

Typedef Documentation

◆ pa_ext_device_restore_info

Stores information about one device in the device database that is maintained by module-device-manager.

Since
1.0

◆ pa_ext_device_restore_read_device_formats_cb_t

typedef 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().

Since
1.0

◆ pa_ext_device_restore_subscribe_cb_t

typedef 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().

Since
1.0

◆ pa_ext_device_restore_test_cb_t

typedef void(* pa_ext_device_restore_test_cb_t) (pa_context *c, uint32_t version, void *userdata)

Callback prototype for pa_ext_device_restore_test().

Since
1.0

Function Documentation

◆ pa_ext_device_restore_read_formats()

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.

Since
1.0

◆ pa_ext_device_restore_read_formats_all()

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.

Since
1.0

◆ pa_ext_device_restore_save_formats()

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.

Since
1.0

◆ pa_ext_device_restore_set_subscribe_cb()

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.

Since
1.0

◆ pa_ext_device_restore_subscribe()

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.

Since
1.0

◆ pa_ext_device_restore_test()

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.

Since
1.0