Lines 40-50
Link Here
|
40 |
static pa_operation* (*pa_context_get_source_info_by_name_ptr)(pa_context* c, const char* name, pa_source_info_cb_t cb, void *userdata) = NULL; |
40 |
static pa_operation* (*pa_context_get_source_info_by_name_ptr)(pa_context* c, const char* name, pa_source_info_cb_t cb, void *userdata) = NULL; |
41 |
static pa_operation* (*pa_context_get_source_info_list_ptr)(pa_context* c, pa_source_info_cb_t cb, void* userdata) = NULL; |
41 |
static pa_operation* (*pa_context_get_source_info_list_ptr)(pa_context* c, pa_source_info_cb_t cb, void* userdata) = NULL; |
42 |
static pa_operation* (*pa_context_get_sink_info_list_ptr)(pa_context* c, pa_sink_info_cb_t cb, void* userdata) = NULL; |
42 |
static pa_operation* (*pa_context_get_sink_info_list_ptr)(pa_context* c, pa_sink_info_cb_t cb, void* userdata) = NULL; |
43 |
static pa_context_state_t (*pa_context_get_state_ptr)(pa_context* c) = NULL; |
43 |
static pa_context_state_t (*pa_context_get_state_ptr)(const pa_context* c) = NULL; |
44 |
static pa_context* (*pa_context_new_ptr)(pa_mainloop_api* mainloop, const char* name) = NULL; |
44 |
static pa_context* (*pa_context_new_ptr)(pa_mainloop_api* mainloop, const char* name) = NULL; |
45 |
static pa_operation* (*pa_context_set_source_volume_by_index_ptr)(pa_context* c, uint32_t idx, const pa_cvolume* volume, pa_context_success_cb_t cb, void* userdata) = NULL; |
45 |
static pa_operation* (*pa_context_set_source_volume_by_index_ptr)(pa_context* c, uint32_t idx, const pa_cvolume* volume, pa_context_success_cb_t cb, void* userdata) = NULL; |
46 |
static void (*pa_context_set_state_callback_ptr)(pa_context* c, pa_context_notify_cb_t cb, void* userdata) = NULL; |
46 |
static void (*pa_context_set_state_callback_ptr)(pa_context* c, pa_context_notify_cb_t cb, void* userdata) = NULL; |
47 |
static pa_operation_state_t (*pa_operation_get_state_ptr)(pa_operation* o) = NULL; |
47 |
static pa_operation_state_t (*pa_operation_get_state_ptr)(const pa_operation* o) = NULL; |
48 |
static void (*pa_context_unref_ptr)(pa_context* c) = NULL; |
48 |
static void (*pa_context_unref_ptr)(pa_context* c) = NULL; |
49 |
static void (*pa_operation_unref_ptr)(pa_operation* o) = NULL; |
49 |
static void (*pa_operation_unref_ptr)(pa_operation* o) = NULL; |
50 |
static int (*pa_stream_begin_write_ptr)(pa_stream* p, void** data, size_t* nbytes) = NULL; |
50 |
static int (*pa_stream_begin_write_ptr)(pa_stream* p, void** data, size_t* nbytes) = NULL; |
Lines 54-77
Link Here
|
54 |
static int (*pa_stream_disconnect_ptr)(pa_stream* s) = NULL; |
54 |
static int (*pa_stream_disconnect_ptr)(pa_stream* s) = NULL; |
55 |
static int (*pa_stream_drop_ptr)(pa_stream *p) = NULL; |
55 |
static int (*pa_stream_drop_ptr)(pa_stream *p) = NULL; |
56 |
static pa_operation* (*pa_stream_flush_ptr)(pa_stream* s, pa_stream_success_cb_t cb, void* userdata) = NULL; |
56 |
static pa_operation* (*pa_stream_flush_ptr)(pa_stream* s, pa_stream_success_cb_t cb, void* userdata) = NULL; |
57 |
static uint32_t (*pa_stream_get_device_index_ptr)(pa_stream* s) = NULL; |
57 |
static uint32_t (*pa_stream_get_device_index_ptr)(const pa_stream* s) = NULL; |
58 |
static int (*pa_stream_get_latency_ptr)(pa_stream* s, pa_usec_t* r_usec, int* negative) = NULL; |
58 |
static int (*pa_stream_get_latency_ptr)(pa_stream* s, pa_usec_t* r_usec, int* negative) = NULL; |
59 |
static pa_stream_state_t (*pa_stream_get_state_ptr)(pa_stream* p) = NULL; |
59 |
static pa_stream_state_t (*pa_stream_get_state_ptr)(const pa_stream* p) = NULL; |
60 |
static pa_stream* (*pa_stream_new_ptr)(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map * map) = NULL; |
60 |
static pa_stream* (*pa_stream_new_ptr)(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map * map) = NULL; |
61 |
static pa_stream* (*pa_stream_new_with_proplist_ptr)(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map* map, pa_proplist* p) = NULL; |
61 |
static pa_stream* (*pa_stream_new_with_proplist_ptr)(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map* map, pa_proplist* p) = NULL; |
62 |
static pa_proplist* (*pa_proplist_new_ptr)(void) = NULL; |
62 |
static pa_proplist* (*pa_proplist_new_ptr)(void) = NULL; |
63 |
static int (*pa_proplist_contains_ptr)(pa_proplist* p, const char* key) = NULL; |
63 |
static int (*pa_proplist_contains_ptr)(const pa_proplist* p, const char* key) = NULL; |
64 |
static void (*pa_proplist_free_ptr)(pa_proplist* p) = NULL; |
64 |
static void (*pa_proplist_free_ptr)(pa_proplist* p) = NULL; |
65 |
static const char* (*pa_proplist_gets_ptr)(pa_proplist* p, const char* key) = NULL; |
65 |
static const char* (*pa_proplist_gets_ptr)(const pa_proplist* p, const char* key) = NULL; |
66 |
static int (*pa_proplist_sets_ptr)(pa_proplist* p, const char* key, const char* value) = NULL; |
66 |
static int (*pa_proplist_sets_ptr)(pa_proplist* p, const char* key, const char* value) = NULL; |
67 |
static size_t (*pa_stream_readable_size_ptr)(pa_stream *p) = NULL; |
67 |
static size_t (*pa_stream_readable_size_ptr)(const pa_stream *p) = NULL; |
68 |
static int (*pa_stream_peek_ptr)(pa_stream* p, const void** data, size_t* nbytes) = NULL; |
68 |
static int (*pa_stream_peek_ptr)(pa_stream* p, const void** data, size_t* nbytes) = NULL; |
69 |
static void (*pa_stream_set_read_callback_ptr)(pa_stream* p, pa_stream_request_cb_t cb, void* userdata) = NULL; |
69 |
static void (*pa_stream_set_read_callback_ptr)(pa_stream* p, pa_stream_request_cb_t cb, void* userdata) = NULL; |
70 |
static void (*pa_stream_set_state_callback_ptr)(pa_stream* s, pa_stream_notify_cb_t cb, void* userdata) = NULL; |
70 |
static void (*pa_stream_set_state_callback_ptr)(pa_stream* s, pa_stream_notify_cb_t cb, void* userdata) = NULL; |
71 |
static int (*pa_stream_write_ptr)(pa_stream* p, const void* data, size_t nbytes, pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek) = NULL; |
71 |
static int (*pa_stream_write_ptr)(pa_stream* p, const void* data, size_t nbytes, pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek) = NULL; |
72 |
static void (*pa_stream_set_write_callback_ptr)(pa_stream *p, pa_stream_request_cb_t cb, void *userdata) = NULL; |
72 |
static void (*pa_stream_set_write_callback_ptr)(pa_stream *p, pa_stream_request_cb_t cb, void *userdata) = NULL; |
73 |
static void (*pa_stream_unref_ptr)(pa_stream* s) = NULL; |
73 |
static void (*pa_stream_unref_ptr)(pa_stream* s) = NULL; |
74 |
static int (*pa_context_errno_ptr)(pa_context *c) = NULL; |
74 |
static int (*pa_context_errno_ptr)(const pa_context *c) = NULL; |
75 |
static const char* (*pa_strerror_ptr)(int error) = NULL; |
75 |
static const char* (*pa_strerror_ptr)(int error) = NULL; |
76 |
static pa_cvolume* (*pa_cvolume_set_ptr)(pa_cvolume* a, unsigned channels, pa_volume_t v) = NULL; |
76 |
static pa_cvolume* (*pa_cvolume_set_ptr)(pa_cvolume* a, unsigned channels, pa_volume_t v) = NULL; |
77 |
|
77 |
|
Lines 152-159
Link Here
|
152 |
pa_operation* pa_context_get_sink_info_list(pa_context* c, pa_sink_info_cb_t cb, void* userdata) { |
152 |
pa_operation* pa_context_get_sink_info_list(pa_context* c, pa_sink_info_cb_t cb, void* userdata) { |
153 |
return pa_context_get_sink_info_list_ptr(c, cb, userdata); |
153 |
return pa_context_get_sink_info_list_ptr(c, cb, userdata); |
154 |
} |
154 |
} |
155 |
extern pa_context_state_t pa_context_get_state(pa_context* c) __attribute__((weak)); |
155 |
extern pa_context_state_t pa_context_get_state(const pa_context* c) __attribute__((weak)); |
156 |
pa_context_state_t pa_context_get_state(pa_context* c) { |
156 |
pa_context_state_t pa_context_get_state(const pa_context* c) { |
157 |
return pa_context_get_state_ptr(c); |
157 |
return pa_context_get_state_ptr(c); |
158 |
} |
158 |
} |
159 |
extern pa_context* pa_context_new(pa_mainloop_api* mainloop, const char* name) __attribute__((weak)); |
159 |
extern pa_context* pa_context_new(pa_mainloop_api* mainloop, const char* name) __attribute__((weak)); |
Lines 168-175
Link Here
|
168 |
void pa_context_set_state_callback(pa_context* c, pa_context_notify_cb_t cb, void* userdata) { |
168 |
void pa_context_set_state_callback(pa_context* c, pa_context_notify_cb_t cb, void* userdata) { |
169 |
pa_context_set_state_callback_ptr(c, cb, userdata); |
169 |
pa_context_set_state_callback_ptr(c, cb, userdata); |
170 |
} |
170 |
} |
171 |
extern pa_operation_state_t pa_operation_get_state(pa_operation* o) __attribute__((weak)); |
171 |
extern pa_operation_state_t pa_operation_get_state(const pa_operation* o) __attribute__((weak)); |
172 |
pa_operation_state_t pa_operation_get_state(pa_operation* o) { |
172 |
pa_operation_state_t pa_operation_get_state(const pa_operation* o) { |
173 |
return pa_operation_get_state_ptr(o); |
173 |
return pa_operation_get_state_ptr(o); |
174 |
} |
174 |
} |
175 |
extern void pa_context_unref(pa_context* c) __attribute__((weak)); |
175 |
extern void pa_context_unref(pa_context* c) __attribute__((weak)); |
Lines 208-223
Link Here
|
208 |
pa_operation* pa_stream_flush(pa_stream* s, pa_stream_success_cb_t cb, void* userdata) { |
208 |
pa_operation* pa_stream_flush(pa_stream* s, pa_stream_success_cb_t cb, void* userdata) { |
209 |
return pa_stream_flush_ptr(s, cb, userdata); |
209 |
return pa_stream_flush_ptr(s, cb, userdata); |
210 |
} |
210 |
} |
211 |
extern uint32_t pa_stream_get_device_index(pa_stream* s) __attribute__((weak)); |
211 |
extern uint32_t pa_stream_get_device_index(const pa_stream* s) __attribute__((weak)); |
212 |
uint32_t pa_stream_get_device_index(pa_stream* s) { |
212 |
uint32_t pa_stream_get_device_index(const pa_stream* s) { |
213 |
return pa_stream_get_device_index_ptr(s); |
213 |
return pa_stream_get_device_index_ptr(s); |
214 |
} |
214 |
} |
215 |
extern int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative) __attribute__((weak)); |
215 |
extern int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative) __attribute__((weak)); |
216 |
int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative) { |
216 |
int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative) { |
217 |
return pa_stream_get_latency_ptr(s, r_usec, negative); |
217 |
return pa_stream_get_latency_ptr(s, r_usec, negative); |
218 |
} |
218 |
} |
219 |
extern pa_stream_state_t pa_stream_get_state(pa_stream* p) __attribute__((weak)); |
219 |
extern pa_stream_state_t pa_stream_get_state(const pa_stream* p) __attribute__((weak)); |
220 |
pa_stream_state_t pa_stream_get_state(pa_stream* p) { |
220 |
pa_stream_state_t pa_stream_get_state(const pa_stream* p) { |
221 |
return pa_stream_get_state_ptr(p); |
221 |
return pa_stream_get_state_ptr(p); |
222 |
} |
222 |
} |
223 |
extern pa_stream* pa_stream_new(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map * map) __attribute__((weak)); |
223 |
extern pa_stream* pa_stream_new(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map * map) __attribute__((weak)); |
Lines 232-255
Link Here
|
232 |
pa_proplist* pa_proplist_new(void) { |
232 |
pa_proplist* pa_proplist_new(void) { |
233 |
return pa_proplist_new_ptr(); |
233 |
return pa_proplist_new_ptr(); |
234 |
} |
234 |
} |
235 |
extern int pa_proplist_contains(pa_proplist* p, const char* key) __attribute__((weak)); |
235 |
extern int pa_proplist_contains(const pa_proplist* p, const char* key) __attribute__((weak)); |
236 |
int pa_proplist_contains(pa_proplist* p, const char* key) { |
236 |
int pa_proplist_contains(const pa_proplist* p, const char* key) { |
237 |
return pa_proplist_contains_ptr(p, key); |
237 |
return pa_proplist_contains_ptr(p, key); |
238 |
} |
238 |
} |
239 |
extern void pa_proplist_free(pa_proplist* p) __attribute__((weak)); |
239 |
extern void pa_proplist_free(pa_proplist* p) __attribute__((weak)); |
240 |
void pa_proplist_free(pa_proplist* p) { |
240 |
void pa_proplist_free(pa_proplist* p) { |
241 |
pa_proplist_free_ptr(p); |
241 |
pa_proplist_free_ptr(p); |
242 |
} |
242 |
} |
243 |
extern const char* pa_proplist_gets(pa_proplist* p, const char* key) __attribute__((weak)); |
243 |
extern const char* pa_proplist_gets(const pa_proplist* p, const char* key) __attribute__((weak)); |
244 |
const char* pa_proplist_gets(pa_proplist* p, const char* key) { |
244 |
const char* pa_proplist_gets(const pa_proplist* p, const char* key) { |
245 |
return pa_proplist_gets_ptr(p, key); |
245 |
return pa_proplist_gets_ptr(p, key); |
246 |
} |
246 |
} |
247 |
extern int pa_proplist_sets(pa_proplist* p, const char* key, const char* value) __attribute__((weak)); |
247 |
extern int pa_proplist_sets(pa_proplist* p, const char* key, const char* value) __attribute__((weak)); |
248 |
int pa_proplist_sets(pa_proplist* p, const char* key, const char* value) { |
248 |
int pa_proplist_sets(pa_proplist* p, const char* key, const char* value) { |
249 |
return pa_proplist_sets_ptr(p, key, value); |
249 |
return pa_proplist_sets_ptr(p, key, value); |
250 |
} |
250 |
} |
251 |
extern size_t pa_stream_readable_size(pa_stream *p) __attribute__((weak)); |
251 |
extern size_t pa_stream_readable_size(const pa_stream *p) __attribute__((weak)); |
252 |
size_t pa_stream_readable_size(pa_stream *p) { |
252 |
size_t pa_stream_readable_size(const pa_stream *p) { |
253 |
return pa_stream_readable_size_ptr(p); |
253 |
return pa_stream_readable_size_ptr(p); |
254 |
} |
254 |
} |
255 |
extern int pa_stream_peek(pa_stream* p, const void** data, size_t* nbytes) __attribute__((weak)); |
255 |
extern int pa_stream_peek(pa_stream* p, const void** data, size_t* nbytes) __attribute__((weak)); |
Lines 276-283
Link Here
|
276 |
void pa_stream_unref(pa_stream* s) { |
276 |
void pa_stream_unref(pa_stream* s) { |
277 |
pa_stream_unref_ptr(s); |
277 |
pa_stream_unref_ptr(s); |
278 |
} |
278 |
} |
279 |
extern int pa_context_errno(pa_context *c) __attribute__((weak)); |
279 |
extern int pa_context_errno(const pa_context *c) __attribute__((weak)); |
280 |
int pa_context_errno(pa_context *c) { |
280 |
int pa_context_errno(const pa_context *c) { |
281 |
return pa_context_errno_ptr(c); |
281 |
return pa_context_errno_ptr(c); |
282 |
} |
282 |
} |
283 |
extern const char* pa_strerror(int error) __attribute__((weak)); |
283 |
extern const char* pa_strerror(int error) __attribute__((weak)); |
Lines 453-459
Link Here
|
453 |
VLOG_IF(1, !pa_context_get_sink_info_list_ptr) << "Couldn't load pa_context_get_sink_info_list, dlerror() says:\n" |
453 |
VLOG_IF(1, !pa_context_get_sink_info_list_ptr) << "Couldn't load pa_context_get_sink_info_list, dlerror() says:\n" |
454 |
<< dlerror(); |
454 |
<< dlerror(); |
455 |
pa_context_get_state_ptr = |
455 |
pa_context_get_state_ptr = |
456 |
reinterpret_cast<pa_context_state_t (*)(pa_context* c)>( |
456 |
reinterpret_cast<pa_context_state_t (*)(const pa_context* c)>( |
457 |
dlsym(module, "pa_context_get_state")); |
457 |
dlsym(module, "pa_context_get_state")); |
458 |
VLOG_IF(1, !pa_context_get_state_ptr) << "Couldn't load pa_context_get_state, dlerror() says:\n" |
458 |
VLOG_IF(1, !pa_context_get_state_ptr) << "Couldn't load pa_context_get_state, dlerror() says:\n" |
459 |
<< dlerror(); |
459 |
<< dlerror(); |
Lines 473-479
Link Here
|
473 |
VLOG_IF(1, !pa_context_set_state_callback_ptr) << "Couldn't load pa_context_set_state_callback, dlerror() says:\n" |
473 |
VLOG_IF(1, !pa_context_set_state_callback_ptr) << "Couldn't load pa_context_set_state_callback, dlerror() says:\n" |
474 |
<< dlerror(); |
474 |
<< dlerror(); |
475 |
pa_operation_get_state_ptr = |
475 |
pa_operation_get_state_ptr = |
476 |
reinterpret_cast<pa_operation_state_t (*)(pa_operation* o)>( |
476 |
reinterpret_cast<pa_operation_state_t (*)(const pa_operation* o)>( |
477 |
dlsym(module, "pa_operation_get_state")); |
477 |
dlsym(module, "pa_operation_get_state")); |
478 |
VLOG_IF(1, !pa_operation_get_state_ptr) << "Couldn't load pa_operation_get_state, dlerror() says:\n" |
478 |
VLOG_IF(1, !pa_operation_get_state_ptr) << "Couldn't load pa_operation_get_state, dlerror() says:\n" |
479 |
<< dlerror(); |
479 |
<< dlerror(); |
Lines 523-529
Link Here
|
523 |
VLOG_IF(1, !pa_stream_flush_ptr) << "Couldn't load pa_stream_flush, dlerror() says:\n" |
523 |
VLOG_IF(1, !pa_stream_flush_ptr) << "Couldn't load pa_stream_flush, dlerror() says:\n" |
524 |
<< dlerror(); |
524 |
<< dlerror(); |
525 |
pa_stream_get_device_index_ptr = |
525 |
pa_stream_get_device_index_ptr = |
526 |
reinterpret_cast<uint32_t (*)(pa_stream* s)>( |
526 |
reinterpret_cast<uint32_t (*)(const pa_stream* s)>( |
527 |
dlsym(module, "pa_stream_get_device_index")); |
527 |
dlsym(module, "pa_stream_get_device_index")); |
528 |
VLOG_IF(1, !pa_stream_get_device_index_ptr) << "Couldn't load pa_stream_get_device_index, dlerror() says:\n" |
528 |
VLOG_IF(1, !pa_stream_get_device_index_ptr) << "Couldn't load pa_stream_get_device_index, dlerror() says:\n" |
529 |
<< dlerror(); |
529 |
<< dlerror(); |
Lines 533-539
Link Here
|
533 |
VLOG_IF(1, !pa_stream_get_latency_ptr) << "Couldn't load pa_stream_get_latency, dlerror() says:\n" |
533 |
VLOG_IF(1, !pa_stream_get_latency_ptr) << "Couldn't load pa_stream_get_latency, dlerror() says:\n" |
534 |
<< dlerror(); |
534 |
<< dlerror(); |
535 |
pa_stream_get_state_ptr = |
535 |
pa_stream_get_state_ptr = |
536 |
reinterpret_cast<pa_stream_state_t (*)(pa_stream* p)>( |
536 |
reinterpret_cast<pa_stream_state_t (*)(const pa_stream* p)>( |
537 |
dlsym(module, "pa_stream_get_state")); |
537 |
dlsym(module, "pa_stream_get_state")); |
538 |
VLOG_IF(1, !pa_stream_get_state_ptr) << "Couldn't load pa_stream_get_state, dlerror() says:\n" |
538 |
VLOG_IF(1, !pa_stream_get_state_ptr) << "Couldn't load pa_stream_get_state, dlerror() says:\n" |
539 |
<< dlerror(); |
539 |
<< dlerror(); |
Lines 553-559
Link Here
|
553 |
VLOG_IF(1, !pa_proplist_new_ptr) << "Couldn't load pa_proplist_new, dlerror() says:\n" |
553 |
VLOG_IF(1, !pa_proplist_new_ptr) << "Couldn't load pa_proplist_new, dlerror() says:\n" |
554 |
<< dlerror(); |
554 |
<< dlerror(); |
555 |
pa_proplist_contains_ptr = |
555 |
pa_proplist_contains_ptr = |
556 |
reinterpret_cast<int (*)(pa_proplist* p, const char* key)>( |
556 |
reinterpret_cast<int (*)(const pa_proplist* p, const char* key)>( |
557 |
dlsym(module, "pa_proplist_contains")); |
557 |
dlsym(module, "pa_proplist_contains")); |
558 |
VLOG_IF(1, !pa_proplist_contains_ptr) << "Couldn't load pa_proplist_contains, dlerror() says:\n" |
558 |
VLOG_IF(1, !pa_proplist_contains_ptr) << "Couldn't load pa_proplist_contains, dlerror() says:\n" |
559 |
<< dlerror(); |
559 |
<< dlerror(); |
Lines 563-569
Link Here
|
563 |
VLOG_IF(1, !pa_proplist_free_ptr) << "Couldn't load pa_proplist_free, dlerror() says:\n" |
563 |
VLOG_IF(1, !pa_proplist_free_ptr) << "Couldn't load pa_proplist_free, dlerror() says:\n" |
564 |
<< dlerror(); |
564 |
<< dlerror(); |
565 |
pa_proplist_gets_ptr = |
565 |
pa_proplist_gets_ptr = |
566 |
reinterpret_cast<const char* (*)(pa_proplist* p, const char* key)>( |
566 |
reinterpret_cast<const char* (*)(const pa_proplist* p, const char* key)>( |
567 |
dlsym(module, "pa_proplist_gets")); |
567 |
dlsym(module, "pa_proplist_gets")); |
568 |
VLOG_IF(1, !pa_proplist_gets_ptr) << "Couldn't load pa_proplist_gets, dlerror() says:\n" |
568 |
VLOG_IF(1, !pa_proplist_gets_ptr) << "Couldn't load pa_proplist_gets, dlerror() says:\n" |
569 |
<< dlerror(); |
569 |
<< dlerror(); |
Lines 573-579
Link Here
|
573 |
VLOG_IF(1, !pa_proplist_sets_ptr) << "Couldn't load pa_proplist_sets, dlerror() says:\n" |
573 |
VLOG_IF(1, !pa_proplist_sets_ptr) << "Couldn't load pa_proplist_sets, dlerror() says:\n" |
574 |
<< dlerror(); |
574 |
<< dlerror(); |
575 |
pa_stream_readable_size_ptr = |
575 |
pa_stream_readable_size_ptr = |
576 |
reinterpret_cast<size_t (*)(pa_stream *p)>( |
576 |
reinterpret_cast<size_t (*)(const pa_stream *p)>( |
577 |
dlsym(module, "pa_stream_readable_size")); |
577 |
dlsym(module, "pa_stream_readable_size")); |
578 |
VLOG_IF(1, !pa_stream_readable_size_ptr) << "Couldn't load pa_stream_readable_size, dlerror() says:\n" |
578 |
VLOG_IF(1, !pa_stream_readable_size_ptr) << "Couldn't load pa_stream_readable_size, dlerror() says:\n" |
579 |
<< dlerror(); |
579 |
<< dlerror(); |
Lines 608-614
Link Here
|
608 |
VLOG_IF(1, !pa_stream_unref_ptr) << "Couldn't load pa_stream_unref, dlerror() says:\n" |
608 |
VLOG_IF(1, !pa_stream_unref_ptr) << "Couldn't load pa_stream_unref, dlerror() says:\n" |
609 |
<< dlerror(); |
609 |
<< dlerror(); |
610 |
pa_context_errno_ptr = |
610 |
pa_context_errno_ptr = |
611 |
reinterpret_cast<int (*)(pa_context *c)>( |
611 |
reinterpret_cast<int (*)(const pa_context *c)>( |
612 |
dlsym(module, "pa_context_errno")); |
612 |
dlsym(module, "pa_context_errno")); |
613 |
VLOG_IF(1, !pa_context_errno_ptr) << "Couldn't load pa_context_errno, dlerror() says:\n" |
613 |
VLOG_IF(1, !pa_context_errno_ptr) << "Couldn't load pa_context_errno, dlerror() says:\n" |
614 |
<< dlerror(); |
614 |
<< dlerror(); |