mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	 92fff4e9d0
			
		
	
	
		92fff4e9d0
		
	
	
	
	
		
			
			Fixes a build error with alsa-utils when build with a uClibc toolchain:
alsa-utils/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/alsa/output.h:75:66:
 error: unknown type name ‘va_list’
   75 | int snd_output_vprintf(snd_output_t *output, const char *format, va_list args);
      |                                                                  ^~~~~~~
alsa-utils/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/alsa/output.h:1:1:
 note: ‘va_list’ is defined in header ‘<stdarg.h>’; did you forget to ‘#include <stdarg.h>’?
Fixes: https://github.com/alsa-project/alsa-lib/pull/237
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
		
	
			
		
			
				
	
	
		
			85 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /**
 | |
|  * \file include/input.h
 | |
|  * \brief Application interface library for the ALSA driver
 | |
|  * \author Jaroslav Kysela <perex@perex.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 Lesser General Public License as
 | |
|  *   published by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
 | |
|  *
 | |
|  *   You should have received a copy of the GNU Lesser General Public
 | |
|  *   License along with this library; if not, write to the Free Software
 | |
|  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 | |
|  *
 | |
|  */
 | |
| 
 | |
| #ifndef __ALSA_INPUT_H
 | |
| #define __ALSA_INPUT_H
 | |
| 
 | |
| #include <stdarg.h>
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| /**
 | |
|  *  \defgroup Input Input Interface
 | |
|  *
 | |
|  *  The input functions present an interface similar to the stdio functions
 | |
|  *  on top of different underlying input sources.
 | |
|  *
 | |
|  *  The #snd_config_load function uses such an input handle to be able to
 | |
|  *  load configurations not only from standard files but also from other
 | |
|  *  sources, e.g. from memory buffers.
 | |
|  *
 | |
|  *  \{
 | |
|  */
 | |
| 
 | |
| /**
 | |
|  * \brief Internal structure for an input object.
 | |
|  *
 | |
|  * The ALSA library uses a pointer to this structure as a handle to an
 | |
|  * input object. Applications don't access its contents directly.
 | |
|  */
 | |
| typedef struct _snd_input snd_input_t;
 | |
| 
 | |
| /** Input type. */
 | |
| typedef enum _snd_input_type {
 | |
| 	/** Input from a stdio stream. */
 | |
| 	SND_INPUT_STDIO,
 | |
| 	/** Input from a memory buffer. */
 | |
| 	SND_INPUT_BUFFER
 | |
| } snd_input_type_t;
 | |
| 
 | |
| int snd_input_stdio_open(snd_input_t **inputp, const char *file, const char *mode);
 | |
| int snd_input_stdio_attach(snd_input_t **inputp, FILE *fp, int _close);
 | |
| int snd_input_buffer_open(snd_input_t **inputp, const char *buffer, ssize_t size);
 | |
| int snd_input_close(snd_input_t *input);
 | |
| int snd_input_scanf(snd_input_t *input, const char *format, ...)
 | |
| #ifndef DOC_HIDDEN
 | |
| 	__attribute__ ((format (scanf, 2, 3)))
 | |
| #endif
 | |
| 	;
 | |
| char *snd_input_gets(snd_input_t *input, char *str, size_t size);
 | |
| int snd_input_getc(snd_input_t *input);
 | |
| int snd_input_ungetc(snd_input_t *input, int c);
 | |
| 
 | |
| /** \} */
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* __ALSA_INPUT_H */
 |