VirtualBox

source: vbox/trunk/src/VBox/Devices/Audio/pulse_mangling.h@ 55043

Last change on this file since 55043 was 45136, checked in by vboxsync, 12 years ago

Devices/Audio: mangle symbols of libasound and libpulse, otherwise they can be resolved by dynamic libraries if -fvisibility is not supported

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1/** @file
2 *
3 * Mangle libpulse symbols. This is necessary on hosts which don't
4 * support the -fvisibility gcc switch.
5 */
6
7/*
8 * Copyright (C) 2013 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef AUDIO_PULSE_MANGLING_H
20#define AUDIO_PULSE_MANGLING_H
21
22#define PULSE_MANGLER(symbol) VBox_##symbol
23
24#define pa_stream_connect_playback PULSE_MANGLER(pa_stream_connect_playback)
25#define pa_stream_connect_record PULSE_MANGLER(pa_stream_connect_record)
26#define pa_stream_disconnect PULSE_MANGLER(pa_stream_disconnect)
27#define pa_stream_get_sample_spec PULSE_MANGLER(pa_stream_get_sample_spec)
28#define pa_stream_set_latency_update_callback PULSE_MANGLER(pa_stream_set_latency_update_callback)
29#define pa_stream_write PULSE_MANGLER(pa_stream_write)
30#define pa_stream_unref PULSE_MANGLER(pa_stream_unref)
31#define pa_stream_get_state PULSE_MANGLER(pa_stream_get_state)
32#define pa_stream_set_state_callback PULSE_MANGLER(pa_stream_set_state_callback)
33#define pa_stream_flush PULSE_MANGLER(pa_stream_flush)
34#define pa_stream_drain PULSE_MANGLER(pa_stream_drain)
35#define pa_stream_trigger PULSE_MANGLER(pa_stream_trigger)
36#define pa_stream_new PULSE_MANGLER(pa_stream_new)
37#define pa_stream_get_buffer_attr PULSE_MANGLER(pa_stream_get_buffer_attr)
38#define pa_stream_peek PULSE_MANGLER(pa_stream_peek)
39#define pa_stream_cork PULSE_MANGLER(pa_stream_cork)
40#define pa_stream_drop PULSE_MANGLER(pa_stream_drop)
41#define pa_stream_writable_size PULSE_MANGLER(pa_stream_writable_size)
42#define pa_context_connect PULSE_MANGLER(pa_context_connect)
43#define pa_context_disconnect PULSE_MANGLER(pa_context_disconnect)
44#define pa_context_get_state PULSE_MANGLER(pa_context_get_state)
45#define pa_context_unref PULSE_MANGLER(pa_context_unref)
46#define pa_context_errno PULSE_MANGLER(pa_context_errno)
47#define pa_context_new PULSE_MANGLER(pa_context_new)
48#define pa_context_set_state_callback PULSE_MANGLER(pa_context_set_state_callback)
49#define pa_threaded_mainloop_stop PULSE_MANGLER(pa_threaded_mainloop_stop)
50#define pa_threaded_mainloop_get_api PULSE_MANGLER(pa_threaded_mainloop_get_api)
51#define pa_threaded_mainloop_free PULSE_MANGLER(pa_threaded_mainloop_free)
52#define pa_threaded_mainloop_signal PULSE_MANGLER(pa_threaded_mainloop_signal)
53#define pa_threaded_mainloop_unlock PULSE_MANGLER(pa_threaded_mainloop_unlock)
54#define pa_threaded_mainloop_new PULSE_MANGLER(pa_threaded_mainloop_new)
55#define pa_threaded_mainloop_wait PULSE_MANGLER(pa_threaded_mainloop_wait)
56#define pa_threaded_mainloop_start PULSE_MANGLER(pa_threaded_mainloop_start)
57#define pa_threaded_mainloop_lock PULSE_MANGLER(pa_threaded_mainloop_lock)
58#define pa_bytes_per_second PULSE_MANGLER(pa_bytes_per_second)
59#define pa_frame_size PULSE_MANGLER(pa_frame_size)
60#define pa_sample_format_to_string PULSE_MANGLER(pa_sample_format_to_string)
61#define pa_sample_spec_valid PULSE_MANGLER(pa_sample_spec_valid)
62#define pa_channel_map_init_auto PULSE_MANGLER(pa_channel_map_init_auto)
63#define pa_operation_unref PULSE_MANGLER(pa_operation_unref)
64#define pa_operation_get_state PULSE_MANGLER(pa_operation_get_state)
65#define pa_operation_cancel PULSE_MANGLER(pa_operation_cancel)
66#define pa_strerror PULSE_MANGLER(pa_strerror)
67#define pa_stream_readable_size PULSE_MANGLER(pa_stream_readable_size)
68
69#endif /* !AUDIO_PULSE_MANGLING_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette