VirtualBox

source: vbox/trunk/src/VBox/Devices/Audio/alsa_mangling.h@ 46757

Last change on this file since 46757 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: 3.4 KB
Line 
1/** @file
2 *
3 * Mangle libasound 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_ALSA_MANGLING_H
20#define AUDIO_ALSA_MANGLING_H
21
22#define ALSA_MANGLER(symbol) VBox_##symbol
23
24#define snd_pcm_hw_params_any ALSA_MANGLER(snd_pcm_hw_params_any)
25#define snd_pcm_close ALSA_MANGLER(snd_pcm_close)
26#define snd_pcm_avail_update ALSA_MANGLER(snd_pcm_avail_update)
27#define snd_pcm_hw_params_set_channels_near ALSA_MANGLER(snd_pcm_hw_params_set_channels_near)
28#define snd_pcm_hw_params_set_period_time_near ALSA_MANGLER(snd_pcm_hw_params_set_period_time_near)
29#define snd_pcm_prepare ALSA_MANGLER(snd_pcm_prepare)
30#define snd_pcm_sw_params_sizeof ALSA_MANGLER(snd_pcm_sw_params_sizeof)
31#define snd_pcm_hw_params_set_period_size_near ALSA_MANGLER(snd_pcm_hw_params_set_period_size_near)
32#define snd_pcm_hw_params_get_period_size ALSA_MANGLER(snd_pcm_hw_params_get_period_size)
33#define snd_pcm_hw_params ALSA_MANGLER(snd_pcm_hw_params)
34#define snd_pcm_hw_params_sizeof ALSA_MANGLER(snd_pcm_hw_params_sizeof)
35#define snd_pcm_state ALSA_MANGLER(snd_pcm_state)
36#define snd_pcm_open ALSA_MANGLER(snd_pcm_open)
37#define snd_lib_error_set_handler ALSA_MANGLER(snd_lib_error_set_handler)
38#define snd_pcm_sw_params ALSA_MANGLER(snd_pcm_sw_params)
39#define snd_pcm_hw_params_get_period_size_min ALSA_MANGLER(snd_pcm_hw_params_get_period_size_min)
40#define snd_pcm_writei ALSA_MANGLER(snd_pcm_writei)
41#define snd_pcm_readi ALSA_MANGLER(snd_pcm_readi)
42#define snd_strerror ALSA_MANGLER(snd_strerror)
43#define snd_pcm_drop ALSA_MANGLER(snd_pcm_drop)
44#define snd_pcm_resume ALSA_MANGLER(snd_pcm_resume)
45#define snd_pcm_hw_params_get_buffer_size ALSA_MANGLER(snd_pcm_hw_params_get_buffer_size)
46#define snd_pcm_hw_params_set_rate_near ALSA_MANGLER(snd_pcm_hw_params_set_rate_near)
47#define snd_pcm_hw_params_set_access ALSA_MANGLER(snd_pcm_hw_params_set_access)
48#define snd_pcm_hw_params_set_buffer_time_near ALSA_MANGLER(snd_pcm_hw_params_set_buffer_time_near)
49#define snd_pcm_hw_params_set_buffer_size_near ALSA_MANGLER(snd_pcm_hw_params_set_buffer_size_near)
50#define snd_pcm_hw_params_get_buffer_size_min ALSA_MANGLER(snd_pcm_hw_params_get_buffer_size_min)
51#define snd_pcm_hw_params_set_format ALSA_MANGLER(snd_pcm_hw_params_set_format)
52#define snd_pcm_sw_params_current ALSA_MANGLER(snd_pcm_sw_params_current)
53#define snd_pcm_sw_params_set_start_threshold ALSA_MANGLER(snd_pcm_sw_params_set_start_threshold)
54
55#endif /* !AUDIO_ALSA_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