diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-10-12 16:33:25 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-10-12 16:33:25 +0200 |
commit | 01459045aa4d51db22683ca6e75c4c9611e0afda (patch) | |
tree | 9a2a7be6c430cb283bab0f674e85f002d987c277 | |
parent | 602d7e4b7b280a17b819da6bf04458e505dcc13a (diff) | |
download | salsa-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.am | 1 | ||||
-rw-r--r-- | src/conf.h | 14 |
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 @@ -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) |