aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-10-12 16:33:25 +0200
committerTakashi Iwai <tiwai@suse.de>2021-10-12 16:33:25 +0200
commit01459045aa4d51db22683ca6e75c4c9611e0afda (patch)
tree9a2a7be6c430cb283bab0f674e85f002d987c277
parent602d7e4b7b280a17b819da6bf04458e505dcc13a (diff)
downloadsalsa-lib-01459045aa4d51db22683ca6e75c4c9611e0afda.tar.gz
conf: Add dummy snd_config_update_ref() and snd_config_update_unref()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--Makefile.am1
-rw-r--r--src/conf.h14
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index a0752b3..93612bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,7 @@
SUBDIRS = src
EXTRA_DIST = alsa.m4 alsa.pc.in README.md
+AUTOMAKE_OPTIONS = foreign
aclocaldir=$(datadir)/aclocal
aclocal_DATA=alsa.m4
diff --git a/src/conf.h b/src/conf.h
index 854ca61..56858e7 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -65,6 +65,20 @@ int snd_config_update_free(snd_config_update_t *update)
return 0;
}
+__SALSA_EXPORT_FUNC
+int snd_config_update_ref(snd_config_t **top)
+{
+ /* an invalid address, but just mark to be non-NULL */
+ top = (snd_config_t*)1;
+ snd_config_update();
+ return 0;
+}
+
+__SALSA_EXPORT_FUNC
+void snd_config_unref(snd_config_t *cfg)
+{
+}
+
#if SALSA_HAS_DUMMY_CONF
__SALSA_EXPORT_FUNC
int snd_config_update_free_global(void)