/builddir/build/BUILD/alsa-lib-1.0.14rc3/include/output.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_OUTPUT_H
00029 #define __ALSA_OUTPUT_H
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00054 typedef struct _snd_output snd_output_t;
00055 
00057 typedef enum _snd_output_type {
00059         SND_OUTPUT_STDIO,
00061         SND_OUTPUT_BUFFER
00062 } snd_output_type_t;
00063 
00064 int snd_output_stdio_open(snd_output_t **outputp, const char *file, const char *mode);
00065 int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int _close);
00066 int snd_output_buffer_open(snd_output_t **outputp);
00067 size_t snd_output_buffer_string(snd_output_t *output, char **buf);
00068 int snd_output_close(snd_output_t *output);
00069 int snd_output_printf(snd_output_t *output, const char *format, ...)
00070 #ifndef DOC_HIDDEN
00071         __attribute__ ((format (printf, 2, 3)))
00072 #endif
00073         ;
00074 int snd_output_vprintf(snd_output_t *output, const char *format, va_list args);
00075 int snd_output_puts(snd_output_t *output, const char *str);
00076 int snd_output_putc(snd_output_t *output, int c);
00077 int snd_output_flush(snd_output_t *output);
00078 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 #endif /* __ALSA_OUTPUT_H */
00086 

Generated on Tue Apr 10 08:32:00 2007 for ALSA project - the C library reference by  doxygen 1.5.1