| 1 |
#ifndef foopulseextdevicemanagerhfoo |
| 2 |
#define foopulseextdevicemanagerhfoo |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#include <pulse/cdecl.h> |
| 25 |
#include <pulse/context.h> |
| 26 |
#include <pulse/version.h> |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
PA_C_DECL_BEGIN |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
typedef struct pa_ext_device_manager_role_priority_info { |
| 39 |
const char *role; |
| 40 |
uint32_t priority; |
| 41 |
} pa_ext_device_manager_role_priority_info; |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
typedef struct pa_ext_device_manager_info { |
| 46 |
const char *name; |
| 47 |
const char *description; |
| 48 |
const char *icon; |
| 49 |
uint32_t index; |
| 50 |
uint32_t n_role_priorities; |
| 51 |
pa_ext_device_manager_role_priority_info *role_priorities; |
| 52 |
} pa_ext_device_manager_info; |
| 53 |
|
| 54 |
|
| 55 |
typedef void (*pa_ext_device_manager_test_cb_t)( |
| 56 |
pa_context *c, |
| 57 |
uint32_t version, |
| 58 |
void *userdata); |
| 59 |
|
| 60 |
|
| 61 |
pa_operation *pa_ext_device_manager_test( |
| 62 |
pa_context *c, |
| 63 |
pa_ext_device_manager_test_cb_t cb, |
| 64 |
void *userdata); |
| 65 |
|
| 66 |
|
| 67 |
typedef void (*pa_ext_device_manager_read_cb_t)( |
| 68 |
pa_context *c, |
| 69 |
const pa_ext_device_manager_info *info, |
| 70 |
int eol, |
| 71 |
void *userdata); |
| 72 |
|
| 73 |
|
| 74 |
pa_operation *pa_ext_device_manager_read( |
| 75 |
pa_context *c, |
| 76 |
pa_ext_device_manager_read_cb_t cb, |
| 77 |
void *userdata); |
| 78 |
|
| 79 |
|
| 80 |
pa_operation *pa_ext_device_manager_set_device_description( |
| 81 |
pa_context *c, |
| 82 |
const char* device, |
| 83 |
const char* description, |
| 84 |
pa_context_success_cb_t cb, |
| 85 |
void *userdata); |
| 86 |
|
| 87 |
|
| 88 |
pa_operation *pa_ext_device_manager_delete( |
| 89 |
pa_context *c, |
| 90 |
const char *const s[], |
| 91 |
pa_context_success_cb_t cb, |
| 92 |
void *userdata); |
| 93 |
|
| 94 |
|
| 95 |
pa_operation *pa_ext_device_manager_enable_role_device_priority_routing( |
| 96 |
pa_context *c, |
| 97 |
int enable, |
| 98 |
pa_context_success_cb_t cb, |
| 99 |
void *userdata); |
| 100 |
|
| 101 |
|
| 102 |
pa_operation *pa_ext_device_manager_reorder_devices_for_role( |
| 103 |
pa_context *c, |
| 104 |
const char* role, |
| 105 |
const char** devices, |
| 106 |
pa_context_success_cb_t cb, |
| 107 |
void *userdata); |
| 108 |
|
| 109 |
|
| 110 |
pa_operation *pa_ext_device_manager_subscribe( |
| 111 |
pa_context *c, |
| 112 |
int enable, |
| 113 |
pa_context_success_cb_t cb, |
| 114 |
void *userdata); |
| 115 |
|
| 116 |
|
| 117 |
typedef void (*pa_ext_device_manager_subscribe_cb_t)( |
| 118 |
pa_context *c, |
| 119 |
void *userdata); |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
void pa_ext_device_manager_set_subscribe_cb( |
| 124 |
pa_context *c, |
| 125 |
pa_ext_device_manager_subscribe_cb_t cb, |
| 126 |
void *userdata); |
| 127 |
|
| 128 |
PA_C_DECL_END |
| 129 |
|
| 130 |
#endif |