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
output.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_OUTPUT_H
29
#define __ALSA_OUTPUT_H
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
54
typedef
struct
_snd_output
snd_output_t
;
55
57
typedef
enum
_snd_output_type {
59
SND_OUTPUT_STDIO
,
61
SND_OUTPUT_BUFFER
62
}
snd_output_type_t
;
63
64
int
snd_output_stdio_open
(
snd_output_t
**outputp,
const
char
*file,
const
char
*mode);
65
int
snd_output_stdio_attach
(
snd_output_t
**outputp, FILE *fp,
int
_close);
66
int
snd_output_buffer_open
(
snd_output_t
**outputp);
67
size_t
snd_output_buffer_string
(
snd_output_t
*output,
char
**buf);
68
int
snd_output_close
(
snd_output_t
*output);
69
int
snd_output_printf
(
snd_output_t
*output,
const
char
*format, ...)
70
#ifndef DOC_HIDDEN
71
__attribute__ ((format (printf, 2, 3)))
72
#endif
73
;
74
int
snd_output_vprintf
(
snd_output_t
*output,
const
char
*format, va_list args);
75
int
snd_output_puts
(
snd_output_t
*output,
const
char
*str);
76
int
snd_output_putc
(
snd_output_t
*output,
int
c);
77
int
snd_output_flush
(
snd_output_t
*output);
78
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
/* __ALSA_OUTPUT_H */
86
Generated on Tue Apr 7 2015 16:21:42 for ALSA project - the C library reference by
1.8.3.1