28e2075280
trunk/talk git-svn-id: http://webrtc.googlecode.com/svn/trunk@4318 4adac7df-926f-26a2-2b94-8c16560cd09d
105 lines
3.8 KiB
C++
105 lines
3.8 KiB
C++
/*
|
|
* libjingle
|
|
* Copyright 2004--2010, Google Inc.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions are met:
|
|
*
|
|
* 1. Redistributions of source code must retain the above copyright notice,
|
|
* this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
* and/or other materials provided with the distribution.
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
* derived from this software without specific prior written permission.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
#ifndef TALK_SOUND_PULSEAUDIOSYMBOLTABLE_H_
|
|
#define TALK_SOUND_PULSEAUDIOSYMBOLTABLE_H_
|
|
|
|
#include <pulse/context.h>
|
|
#include <pulse/def.h>
|
|
#include <pulse/error.h>
|
|
#include <pulse/introspect.h>
|
|
#include <pulse/stream.h>
|
|
#include <pulse/thread-mainloop.h>
|
|
|
|
#include "talk/base/latebindingsymboltable.h"
|
|
|
|
namespace cricket {
|
|
|
|
#define PULSE_AUDIO_SYMBOLS_CLASS_NAME PulseAudioSymbolTable
|
|
// The PulseAudio symbols we need, as an X-Macro list.
|
|
// This list must contain precisely every libpulse function that is used in
|
|
// pulseaudiosoundsystem.cc.
|
|
#define PULSE_AUDIO_SYMBOLS_LIST \
|
|
X(pa_bytes_per_second) \
|
|
X(pa_context_connect) \
|
|
X(pa_context_disconnect) \
|
|
X(pa_context_errno) \
|
|
X(pa_context_get_protocol_version) \
|
|
X(pa_context_get_server_info) \
|
|
X(pa_context_get_sink_info_list) \
|
|
X(pa_context_get_sink_input_info) \
|
|
X(pa_context_get_source_info_by_index) \
|
|
X(pa_context_get_source_info_list) \
|
|
X(pa_context_get_state) \
|
|
X(pa_context_new) \
|
|
X(pa_context_set_sink_input_volume) \
|
|
X(pa_context_set_source_volume_by_index) \
|
|
X(pa_context_set_state_callback) \
|
|
X(pa_context_unref) \
|
|
X(pa_cvolume_set) \
|
|
X(pa_operation_get_state) \
|
|
X(pa_operation_unref) \
|
|
X(pa_stream_connect_playback) \
|
|
X(pa_stream_connect_record) \
|
|
X(pa_stream_disconnect) \
|
|
X(pa_stream_drop) \
|
|
X(pa_stream_get_device_index) \
|
|
X(pa_stream_get_index) \
|
|
X(pa_stream_get_latency) \
|
|
X(pa_stream_get_sample_spec) \
|
|
X(pa_stream_get_state) \
|
|
X(pa_stream_new) \
|
|
X(pa_stream_peek) \
|
|
X(pa_stream_readable_size) \
|
|
X(pa_stream_set_buffer_attr) \
|
|
X(pa_stream_set_overflow_callback) \
|
|
X(pa_stream_set_read_callback) \
|
|
X(pa_stream_set_state_callback) \
|
|
X(pa_stream_set_underflow_callback) \
|
|
X(pa_stream_set_write_callback) \
|
|
X(pa_stream_unref) \
|
|
X(pa_stream_writable_size) \
|
|
X(pa_stream_write) \
|
|
X(pa_strerror) \
|
|
X(pa_threaded_mainloop_free) \
|
|
X(pa_threaded_mainloop_get_api) \
|
|
X(pa_threaded_mainloop_lock) \
|
|
X(pa_threaded_mainloop_new) \
|
|
X(pa_threaded_mainloop_signal) \
|
|
X(pa_threaded_mainloop_start) \
|
|
X(pa_threaded_mainloop_stop) \
|
|
X(pa_threaded_mainloop_unlock) \
|
|
X(pa_threaded_mainloop_wait)
|
|
|
|
#define LATE_BINDING_SYMBOL_TABLE_CLASS_NAME PULSE_AUDIO_SYMBOLS_CLASS_NAME
|
|
#define LATE_BINDING_SYMBOL_TABLE_SYMBOLS_LIST PULSE_AUDIO_SYMBOLS_LIST
|
|
#include "talk/base/latebindingsymboltable.h.def"
|
|
|
|
} // namespace cricket
|
|
|
|
#endif // TALK_SOUND_PULSEAUDIOSYMBOLTABLE_H_
|