mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added I/O classes
This commit is contained in:
parent
da4d6f5ee8
commit
e283a3f642
32 changed files with 1882 additions and 226 deletions
15
include/input.h
Normal file
15
include/input.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
typedef struct _snd_input snd_input_t;
|
||||
|
||||
typedef enum _snd_input_type {
|
||||
SND_INPUT_STDIO,
|
||||
SND_INPUT_BUFFER,
|
||||
} snd_input_type_t;
|
||||
|
||||
int snd_input_stdio_open(snd_input_t **inputp, const char *file);
|
||||
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, int size);
|
||||
int snd_input_close(snd_input_t *input);
|
||||
int snd_input_scanf(snd_input_t *input, const char *format, ...) __attribute__ ((format (scanf, 2, 3)));
|
||||
char *snd_input_gets(snd_input_t *input, char *str, size_t size);
|
||||
int snd_input_getc(snd_input_t *input);
|
||||
Loading…
Add table
Add a link
Reference in a new issue