From: Takashi Iwai Date: Fri, 6 Jun 2008 15:09:07 +0000 (+0200) Subject: Export __snd_pcm_mmap_emul_open() X-Git-Tag: v1.0.17rc2~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=538726cc5533f3cd0fe7e913de7852399b727600;p=alsa-lib.git Export __snd_pcm_mmap_emul_open() Export __snd_pcm_mmap_emul_open() for plug layer. This isn't exported globally, though. Signed-off-by: Takashi Iwai --- diff --git a/src/pcm/pcm_local.h b/src/pcm/pcm_local.h index 72dd437a..b118f4b2 100644 --- a/src/pcm/pcm_local.h +++ b/src/pcm/pcm_local.h @@ -862,6 +862,8 @@ snd_pcm_open_slave(snd_pcm_t **pcmp, snd_config_t *root, int snd_pcm_conf_generic_id(const char *id); int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, int fd, int mmap_emulation, int sync_ptr_ioctl); +int __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, + snd_pcm_t *slave, int close_slave); int snd_pcm_wait_nocheck(snd_pcm_t *pcm, int timeout); diff --git a/src/pcm/pcm_mmap_emul.c b/src/pcm/pcm_mmap_emul.c index f3e8870e..489aa773 100644 --- a/src/pcm/pcm_mmap_emul.c +++ b/src/pcm/pcm_mmap_emul.c @@ -375,8 +375,9 @@ static snd_pcm_fast_ops_t snd_pcm_mmap_emul_fast_ops = { .poll_revents = snd_pcm_generic_poll_revents, }; -static int snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, - snd_pcm_t *slave, int close_slave) +#ifndef DOC_HIDDEN +int __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, + snd_pcm_t *slave, int close_slave) { snd_pcm_t *pcm; mmap_emul_t *map; @@ -406,6 +407,7 @@ static int snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, return 0; } +#endif /*! \page pcm_plugins @@ -473,7 +475,7 @@ int _snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, snd_config_delete(sconf); if (err < 0) return err; - err = snd_pcm_mmap_emul_open(pcmp, name, spcm, 1); + err = __snd_pcm_mmap_emul_open(pcmp, name, spcm, 1); if (err < 0) snd_pcm_close(spcm); return err;