ALSA project - the C library reference
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
input.h
Go to the documentation of this file.
1
11
/*
12
* This library is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License as
14
* published by the Free Software Foundation; either version 2.1 of
15
* the License, or (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public
23
* License along with this library; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*
26
*/
27
28
#ifndef __ALSA_INPUT_H
29
#define __ALSA_INPUT_H
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
54
typedef
struct
_snd_input
snd_input_t
;
55
57
typedef
enum
_snd_input_type {
59
SND_INPUT_STDIO
,
61
SND_INPUT_BUFFER
62
}
snd_input_type_t
;
63
64
int
snd_input_stdio_open
(
snd_input_t
**inputp,
const
char
*file,
const
char
*mode);
65
int
snd_input_stdio_attach
(
snd_input_t
**inputp, FILE *fp,
int
_close);
66
int
snd_input_buffer_open
(
snd_input_t
**inputp,
const
char
*buffer, ssize_t size);
67
int
snd_input_close
(
snd_input_t
*input);
68
int
snd_input_scanf
(
snd_input_t
*input,
const
char
*format, ...)
69
#ifndef DOC_HIDDEN
70
__attribute__ ((format (scanf, 2, 3)))
71
#endif
72
;
73
char
*
snd_input_gets
(
snd_input_t
*input,
char
*str,
size_t
size);
74
int
snd_input_getc
(
snd_input_t
*input);
75
int
snd_input_ungetc
(
snd_input_t
*input,
int
c);
76
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
/* __ALSA_INPUT_H */
Generated on Tue Apr 7 2015 16:21:42 for ALSA project - the C library reference by
1.8.3.1