blob: f0d6d3858d8871559e23fc5505bc5158e977f0c5 [file] [log] [blame]
xians@google.com68efa212011-08-11 12:41:56 +00001/*
2 * libjingle
3 * Copyright 2004--2010, Google Inc.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#ifndef WEBRTC_AUDIO_DEVICE_PULSEAUDIOSYMBOLTABLE_LINUX_H
29#define WEBRTC_AUDIO_DEVICE_PULSEAUDIOSYMBOLTABLE_LINUX_H
30
pbos@webrtc.org811269d2013-07-11 13:24:38 +000031#include "webrtc/modules/audio_device/linux/latebindingsymboltable_linux.h"
xians@google.com68efa212011-08-11 12:41:56 +000032
kwiberg6daffe22017-04-18 01:26:40 -070033namespace webrtc {
34namespace adm_linux_pulse {
xians@google.com68efa212011-08-11 12:41:56 +000035
36// The PulseAudio symbols we need, as an X-Macro list.
37// This list must contain precisely every libpulse function that is used in
38// the ADM LINUX PULSE Device and Mixer classes
39#define PULSE_AUDIO_SYMBOLS_LIST \
40 X(pa_bytes_per_second) \
41 X(pa_context_connect) \
42 X(pa_context_disconnect) \
43 X(pa_context_errno) \
44 X(pa_context_get_protocol_version) \
45 X(pa_context_get_server_info) \
46 X(pa_context_get_sink_info_list) \
47 X(pa_context_get_sink_info_by_index) \
48 X(pa_context_get_sink_info_by_name) \
49 X(pa_context_get_sink_input_info) \
50 X(pa_context_get_source_info_by_index) \
51 X(pa_context_get_source_info_by_name) \
52 X(pa_context_get_source_info_list) \
53 X(pa_context_get_state) \
54 X(pa_context_new) \
55 X(pa_context_set_sink_input_volume) \
56 X(pa_context_set_sink_input_mute) \
57 X(pa_context_set_source_volume_by_index) \
58 X(pa_context_set_source_mute_by_index) \
59 X(pa_context_set_state_callback) \
60 X(pa_context_unref) \
61 X(pa_cvolume_set) \
62 X(pa_operation_get_state) \
63 X(pa_operation_unref) \
64 X(pa_stream_connect_playback) \
65 X(pa_stream_connect_record) \
66 X(pa_stream_disconnect) \
67 X(pa_stream_drop) \
68 X(pa_stream_get_device_index) \
69 X(pa_stream_get_index) \
70 X(pa_stream_get_latency) \
71 X(pa_stream_get_sample_spec) \
72 X(pa_stream_get_state) \
73 X(pa_stream_new) \
74 X(pa_stream_peek) \
75 X(pa_stream_readable_size) \
76 X(pa_stream_set_buffer_attr) \
77 X(pa_stream_set_overflow_callback) \
78 X(pa_stream_set_read_callback) \
79 X(pa_stream_set_state_callback) \
80 X(pa_stream_set_underflow_callback) \
81 X(pa_stream_set_write_callback) \
82 X(pa_stream_unref) \
83 X(pa_stream_writable_size) \
84 X(pa_stream_write) \
85 X(pa_strerror) \
86 X(pa_threaded_mainloop_free) \
87 X(pa_threaded_mainloop_get_api) \
88 X(pa_threaded_mainloop_lock) \
89 X(pa_threaded_mainloop_new) \
90 X(pa_threaded_mainloop_signal) \
91 X(pa_threaded_mainloop_start) \
92 X(pa_threaded_mainloop_stop) \
93 X(pa_threaded_mainloop_unlock) \
94 X(pa_threaded_mainloop_wait)
95
96LATE_BINDING_SYMBOL_TABLE_DECLARE_BEGIN(PulseAudioSymbolTable)
97#define X(sym) \
98 LATE_BINDING_SYMBOL_TABLE_DECLARE_ENTRY(PulseAudioSymbolTable, sym)
99PULSE_AUDIO_SYMBOLS_LIST
100#undef X
101LATE_BINDING_SYMBOL_TABLE_DECLARE_END(PulseAudioSymbolTable)
102
kwiberg6daffe22017-04-18 01:26:40 -0700103} // namespace adm_linux_pulse
104} // namespace webrtc
xians@google.com68efa212011-08-11 12:41:56 +0000105
106#endif // WEBRTC_AUDIO_DEVICE_PULSEAUDIOSYMBOLTABLE_LINUX_H