ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.1.0/include/input.h Source File

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

# /builddir/build/BUILD/alsa-lib-1.1.0/include/input.h

Go to the documentation of this file.

    00001
    00011 /*
    00012  *   This library is free software; you can redistribute it and/or modify
    00013  *   it under the terms of the GNU Lesser General Public License as
    00014  *   published by the Free Software Foundation; either version 2.1 of
    00015  *   the License, or (at your option) any later version.
    00016  *
    00017  *   This program is distributed in the hope that it will be useful,
    00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00020  *   GNU Lesser General Public License for more details.
    00021  *
    00022  *   You should have received a copy of the GNU Lesser General Public
    00023  *   License along with this library; if not, write to the Free Software
    00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    00025  *
    00026  */
    00027
    00028 #ifndef __ALSA_INPUT_H
    00029 #define __ALSA_INPUT_H
    00030
    00031 #ifdef __cplusplus
    00032 extern "C" {
    00033 #endif
    00034
    00054 typedef struct _snd_input snd_input_t;
    00055
    00057 typedef enum _snd_input_type {
    00059         SND_INPUT_STDIO,
    00061         SND_INPUT_BUFFER
    00062 } snd_input_type_t;
    00063
    00064 int snd_input_stdio_open(snd_input_t **inputp, const char *file, const char *mode);
    00065 int snd_input_stdio_attach(snd_input_t **inputp, FILE *fp, int _close);
    00066 int snd_input_buffer_open(snd_input_t **inputp, const char *buffer, ssize_t size);
    00067 int snd_input_close(snd_input_t *input);
    00068 int snd_input_scanf(snd_input_t *input, const char *format, ...)
    00069 #ifndef DOC_HIDDEN
    00070         __attribute__ ((format (scanf, 2, 3)))
    00071 #endif
    00072         ;
    00073 char *snd_input_gets(snd_input_t *input, char *str, size_t size);
    00074 int snd_input_getc(snd_input_t *input);
    00075 int snd_input_ungetc(snd_input_t *input, int c);
    00076
    00079 #ifdef __cplusplus
    00080 }
    00081 #endif
    00082
    00083 #endif /* __ALSA_INPUT_H */

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines