Blame include/pcm_external.h

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