1 /* 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 TALK_SOUND_PULSEAUDIOSYMBOLTABLE_H_ 29 #define TALK_SOUND_PULSEAUDIOSYMBOLTABLE_H_ 30 31 #include <pulse/context.h> 32 #include <pulse/def.h> 33 #include <pulse/error.h> 34 #include <pulse/introspect.h> 35 #include <pulse/stream.h> 36 #include <pulse/thread-mainloop.h> 37 38 #include "talk/base/latebindingsymboltable.h" 39 40 namespace cricket { 41 42 #define PULSE_AUDIO_SYMBOLS_CLASS_NAME PulseAudioSymbolTable 43 // The PulseAudio symbols we need, as an X-Macro list. 44 // This list must contain precisely every libpulse function that is used in 45 // pulseaudiosoundsystem.cc. 46 #define PULSE_AUDIO_SYMBOLS_LIST \ 47 X(pa_bytes_per_second) \ 48 X(pa_context_connect) \ 49 X(pa_context_disconnect) \ 50 X(pa_context_errno) \ 51 X(pa_context_get_protocol_version) \ 52 X(pa_context_get_server_info) \ 53 X(pa_context_get_sink_info_list) \ 54 X(pa_context_get_sink_input_info) \ 55 X(pa_context_get_source_info_by_index) \ 56 X(pa_context_get_source_info_list) \ 57 X(pa_context_get_state) \ 58 X(pa_context_new) \ 59 X(pa_context_set_sink_input_volume) \ 60 X(pa_context_set_source_volume_by_index) \ 61 X(pa_context_set_state_callback) \ 62 X(pa_context_unref) \ 63 X(pa_cvolume_set) \ 64 X(pa_operation_get_state) \ 65 X(pa_operation_unref) \ 66 X(pa_stream_connect_playback) \ 67 X(pa_stream_connect_record) \ 68 X(pa_stream_disconnect) \ 69 X(pa_stream_drop) \ 70 X(pa_stream_get_device_index) \ 71 X(pa_stream_get_index) \ 72 X(pa_stream_get_latency) \ 73 X(pa_stream_get_sample_spec) \ 74 X(pa_stream_get_state) \ 75 X(pa_stream_new) \ 76 X(pa_stream_peek) \ 77 X(pa_stream_readable_size) \ 78 X(pa_stream_set_buffer_attr) \ 79 X(pa_stream_set_overflow_callback) \ 80 X(pa_stream_set_read_callback) \ 81 X(pa_stream_set_state_callback) \ 82 X(pa_stream_set_underflow_callback) \ 83 X(pa_stream_set_write_callback) \ 84 X(pa_stream_unref) \ 85 X(pa_stream_writable_size) \ 86 X(pa_stream_write) \ 87 X(pa_strerror) \ 88 X(pa_threaded_mainloop_free) \ 89 X(pa_threaded_mainloop_get_api) \ 90 X(pa_threaded_mainloop_lock) \ 91 X(pa_threaded_mainloop_new) \ 92 X(pa_threaded_mainloop_signal) \ 93 X(pa_threaded_mainloop_start) \ 94 X(pa_threaded_mainloop_stop) \ 95 X(pa_threaded_mainloop_unlock) \ 96 X(pa_threaded_mainloop_wait) 97 98 #define LATE_BINDING_SYMBOL_TABLE_CLASS_NAME PULSE_AUDIO_SYMBOLS_CLASS_NAME 99 #define LATE_BINDING_SYMBOL_TABLE_SYMBOLS_LIST PULSE_AUDIO_SYMBOLS_LIST 100 #include "talk/base/latebindingsymboltable.h.def" 101 102 } // namespace cricket 103 104 #endif // TALK_SOUND_PULSEAUDIOSYMBOLTABLE_H_ 105