Make local functions really local

Rename the local functions to snd1_* so that they won't be exported
out of alsa-lib.

Some functions are still kept because aserver requires them.  Sigh.
This commit is contained in:
Takashi Iwai 2007-11-30 18:26:13 +01:00
parent e68bd91cf9
commit 7dca3ab1ea
9 changed files with 324 additions and 0 deletions

View file

@ -51,6 +51,16 @@ typedef struct {
snd_atomic_write_t watom;
} snd_pcm_plugin_t;
/* make local functions really local */
#define snd_pcm_plugin_init \
snd1_pcm_plugin_init
#define snd_pcm_plugin_fast_ops \
snd1_pcm_plugin_fast_ops
#define snd_pcm_plugin_undo_read_generic \
snd1_pcm_plugin_undo_read_generic
#define snd_pcm_plugin_undo_write_generic \
snd1_pcm_plugin_undo_write_generic
void snd_pcm_plugin_init(snd_pcm_plugin_t *plugin);
extern snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops;
@ -69,6 +79,21 @@ snd_pcm_sframes_t snd_pcm_plugin_undo_write_generic
snd_pcm_uframes_t res_size, /* size of result areas */
snd_pcm_uframes_t slave_undo_size);
/* make local functions really local */
#define snd_pcm_linear_get_index snd1_pcm_linear_get_index
#define snd_pcm_linear_put_index snd1_pcm_linear_put_index
#define snd_pcm_linear_get32_index snd1_pcm_linear_get32_index
#define snd_pcm_linear_put32_index snd1_pcm_linear_put32_index
#define snd_pcm_linear_convert_index snd1_pcm_linear_convert_index
#define snd_pcm_linear_convert snd1_pcm_linear_convert
#define snd_pcm_linear_getput snd1_pcm_linear_getput
#define snd_pcm_alaw_decode snd1_pcm_alaw_decode
#define snd_pcm_alaw_encode snd1_pcm_alaw_encode
#define snd_pcm_mulaw_decode snd1_pcm_mulaw_decode
#define snd_pcm_mulaw_encode snd1_pcm_mulaw_encode
#define snd_pcm_adpcm_decode snd1_pcm_adpcm_decode
#define snd_pcm_adpcm_encode snd1_pcm_adpcm_encode
int snd_pcm_linear_get_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format);
int snd_pcm_linear_put_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format);
int snd_pcm_linear_get32_index(snd_pcm_format_t src_format, snd_pcm_format_t dst_format);