jpayne@69: /** jpayne@69: * \file include/pcm_external.h jpayne@69: * \brief External PCM plugin SDK jpayne@69: * \author Takashi Iwai jpayne@69: * \date 2005 jpayne@69: * jpayne@69: * Extern PCM plugin SDK. jpayne@69: */ jpayne@69: jpayne@69: /* jpayne@69: * This library is free software; you can redistribute it and/or modify jpayne@69: * it under the terms of the GNU Lesser General Public License as jpayne@69: * published by the Free Software Foundation; either version 2.1 of jpayne@69: * the License, or (at your option) any later version. jpayne@69: * jpayne@69: * This program is distributed in the hope that it will be useful, jpayne@69: * but WITHOUT ANY WARRANTY; without even the implied warranty of jpayne@69: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jpayne@69: * GNU Lesser General Public License for more details. jpayne@69: * jpayne@69: * You should have received a copy of the GNU Lesser General Public jpayne@69: * License along with this library; if not, write to the Free Software jpayne@69: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA jpayne@69: * jpayne@69: */ jpayne@69: #ifndef __ALSA_PCM_EXTERNAL_H jpayne@69: #define __ALSA_PCM_EXTERNAL_H jpayne@69: jpayne@69: #include "pcm.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * \defgroup Plugin_SDK External PCM plugin SDK jpayne@69: * \{ jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * Define the object entry for external PCM plugins jpayne@69: */ jpayne@69: #define SND_PCM_PLUGIN_ENTRY(name) _snd_pcm_##name##_open jpayne@69: jpayne@69: /** jpayne@69: * Define the symbols of the given plugin with versions jpayne@69: */ jpayne@69: #define SND_PCM_PLUGIN_SYMBOL(name) SND_DLSYM_BUILD_VERSION(SND_PCM_PLUGIN_ENTRY(name), SND_PCM_DLSYM_VERSION); jpayne@69: jpayne@69: /** jpayne@69: * Define the plugin jpayne@69: */ jpayne@69: #define SND_PCM_PLUGIN_DEFINE_FUNC(plugin) \ jpayne@69: int SND_PCM_PLUGIN_ENTRY(plugin) (snd_pcm_t **pcmp, const char *name,\ jpayne@69: snd_config_t *root, snd_config_t *conf, \ jpayne@69: snd_pcm_stream_t stream, int mode) jpayne@69: jpayne@69: #include "pcm_ioplug.h" jpayne@69: #include "pcm_extplug.h" jpayne@69: jpayne@69: int snd_pcm_parse_control_id(snd_config_t *conf, snd_ctl_elem_id_t *ctl_id, int *cardp, jpayne@69: int *cchannelsp, int *hwctlp); jpayne@69: jpayne@69: /** \} */ jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif /* __ALSA_PCM_EXTERNAL_H */