2001-09-13 11:38:32 +00:00
|
|
|
/**
|
|
|
|
* \file <alsa/input.h>
|
|
|
|
* \brief Application interface library for the ALSA driver
|
|
|
|
* \author Jaroslav Kysela <perex@suse.cz>
|
|
|
|
* \author Abramo Bagnara <abramo@alsa-project.org>
|
|
|
|
* \author Takashi Iwai <tiwai@suse.de>
|
|
|
|
* \date 1998-2001
|
|
|
|
*
|
|
|
|
* Application interface library for the ALSA driver
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ALSA_INPUT_H
|
|
|
|
#define __ALSA_INPUT_H
|
|
|
|
|
2001-11-14 11:40:46 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2001-04-24 13:02:58 +00:00
|
|
|
/**
|
|
|
|
* \defgroup Input Input Interface
|
|
|
|
* Input Interface
|
|
|
|
* \{
|
|
|
|
*/
|
2001-01-17 11:00:32 +00:00
|
|
|
|
2001-03-25 14:13:55 +00:00
|
|
|
/** Input handle */
|
2001-01-17 11:00:32 +00:00
|
|
|
typedef struct _snd_input snd_input_t;
|
|
|
|
|
2001-03-25 14:13:55 +00:00
|
|
|
/** Input type */
|
|
|
|
typedef enum _snd_input_type {
|
|
|
|
/** Input from a stdio stream */
|
2001-01-17 11:00:32 +00:00
|
|
|
SND_INPUT_STDIO,
|
2001-03-25 14:13:55 +00:00
|
|
|
/** Input from a memory buffer */
|
2001-01-17 11:00:32 +00:00
|
|
|
SND_INPUT_BUFFER,
|
2001-03-25 14:13:55 +00:00
|
|
|
} snd_input_type_t;
|
2001-01-17 11:00:32 +00:00
|
|
|
|
2001-03-29 09:10:46 +00:00
|
|
|
int snd_input_stdio_open(snd_input_t **inputp, const char *file, const char *mode);
|
2001-03-29 17:50:28 +00:00
|
|
|
int snd_input_stdio_attach(snd_input_t **inputp, FILE *fp, int _close);
|
2001-03-30 13:07:38 +00:00
|
|
|
int snd_input_buffer_open(snd_input_t **inputp, const char *buffer, ssize_t size);
|
2001-01-17 11:00:32 +00:00
|
|
|
int snd_input_close(snd_input_t *input);
|
|
|
|
int snd_input_scanf(snd_input_t *input, const char *format, ...) __attribute__ ((format (scanf, 2, 3)));
|
|
|
|
char *snd_input_gets(snd_input_t *input, char *str, size_t size);
|
|
|
|
int snd_input_getc(snd_input_t *input);
|
2001-03-29 17:50:28 +00:00
|
|
|
int snd_input_ungetc(snd_input_t *input, int c);
|
2001-01-29 08:29:52 +00:00
|
|
|
|
2001-11-14 11:40:46 +00:00
|
|
|
/** \} */
|
|
|
|
|
2001-01-29 08:29:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2001-04-24 13:02:58 +00:00
|
|
|
|
2001-09-13 11:38:32 +00:00
|
|
|
#endif /* __ALSA_INPUT_H */
|