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

@ -247,6 +247,20 @@ static inline int snd_open_device(const char *filename, int fmode)
#define snd_open_device(filename, fmode) open(filename, fmode);
#endif
/* make local functions really local */
#define snd_dlobj_cache_lookup \
snd1_dlobj_cache_lookup
#define snd_dlobj_cache_add \
snd1_dlobj_cache_add
#define snd_dlobj_cache_cleanup \
snd1_dlobj_cache_cleanup
#define snd_config_set_hop \
snd1_config_set_hop
#define snd_config_check_hop \
snd1_config_check_hop
#define snd_config_search_alias_hooks \
snd1_config_search_alias_hooks
/* dlobj cache */
void *snd_dlobj_cache_lookup(const char *name);
int snd_dlobj_cache_add(const char *name, void *dlobj, void *open_func);