summaryrefslogtreecommitdiff
path: root/include/local.h
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2010-08-23 17:05:36 +0200
committerJaroslav Kysela <perex@perex.cz>2010-08-23 17:10:16 +0200
commit91c9c8f1b85e69b4bdc94a777d2767c4906c3f47 (patch)
treebe3bf40e787639ea45a5a1ff903d337b369b50f4 /include/local.h
parentbe06ab3ee7266c6ca7d2475d45b42cc4f47a20f8 (diff)
downloadalsa-lib-91c9c8f1b85e69b4bdc94a777d2767c4906c3f47.tar.gz
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 <perex@perex.cz>
Diffstat (limited to 'include/local.h')
-rw-r--r--include/local.h12
1 files changed, 6 insertions, 6 deletions
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 */