2001-01-17 11:00:32 +00:00
|
|
|
|
|
|
|
typedef struct _snd_input snd_input_t;
|
|
|
|
|
2001-02-05 15:44:42 +00:00
|
|
|
enum _snd_input_type {
|
2001-01-17 11:00:32 +00:00
|
|
|
SND_INPUT_STDIO,
|
|
|
|
SND_INPUT_BUFFER,
|
2001-02-05 15:44:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef SND_ENUM_TYPECHECK
|
|
|
|
typedef struct __snd_input_type *snd_input_type_t;
|
|
|
|
#else
|
|
|
|
typedef enum _snd_input_type snd_input_type_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SND_INPUT_STDIO ((snd_input_type_t) SND_INPUT_STDIO)
|
|
|
|
#define SND_INPUT_BUFFER ((snd_input_type_t) SND_INPUT_BUFFER)
|
2001-01-17 11:00:32 +00:00
|
|
|
|
2001-02-01 07:52:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2001-01-17 11:00:32 +00:00
|
|
|
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);
|
2001-01-29 08:29:52 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|