From 91c9c8f1b85e69b4bdc94a777d2767c4906c3f47 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 23 Aug 2010 17:05:36 +0200 Subject: general: recoded snd_dlobj_ functions - changed logic to get/put blocks - added mutex locking of the symbol list - added reference counting (do not free used dl handles) Signed-off-by: Jaroslav Kysela --- include/local.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/local.h') diff --git a/include/local.h b/include/local.h index fa3f0b7f..4dc65629 100644 --- a/include/local.h +++ b/include/local.h @@ -254,10 +254,10 @@ static inline int snd_open_device(const char *filename, int fmode) } /* 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_get \ + snd1_dlobj_cache_get +#define snd_dlobj_cache_put \ + snd1_dlobj_cache_put #define snd_dlobj_cache_cleanup \ snd1_dlobj_cache_cleanup #define snd_config_set_hop \ @@ -268,8 +268,8 @@ static inline int snd_open_device(const char *filename, int fmode) 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); +void *snd_dlobj_cache_get(const char *lib, const char *name, const char *version, int verbose); +int snd_dlobj_cache_put(void *open_func); void snd_dlobj_cache_cleanup(void); /* for recursive checks */ -- cgit v1.2.1