mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added stuff for C++ compilation
This commit is contained in:
parent
c07201926b
commit
d44c657826
2 changed files with 16 additions and 0 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _snd_input snd_input_t;
|
typedef struct _snd_input snd_input_t;
|
||||||
|
|
||||||
typedef enum _snd_input_type {
|
typedef enum _snd_input_type {
|
||||||
|
|
@ -13,3 +17,7 @@ int snd_input_close(snd_input_t *input);
|
||||||
int snd_input_scanf(snd_input_t *input, const char *format, ...) __attribute__ ((format (scanf, 2, 3)));
|
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);
|
char *snd_input_gets(snd_input_t *input, char *str, size_t size);
|
||||||
int snd_input_getc(snd_input_t *input);
|
int snd_input_getc(snd_input_t *input);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _snd_output snd_output_t;
|
typedef struct _snd_output snd_output_t;
|
||||||
|
|
||||||
typedef enum _snd_output_type {
|
typedef enum _snd_output_type {
|
||||||
|
|
@ -15,3 +19,7 @@ int snd_output_printf(snd_output_t *output, const char *format, ...) __attribute
|
||||||
int snd_output_puts(snd_output_t *output, const char *str);
|
int snd_output_puts(snd_output_t *output, const char *str);
|
||||||
int snd_output_putc(snd_output_t *output, int c);
|
int snd_output_putc(snd_output_t *output, int c);
|
||||||
int snd_output_flush(snd_output_t *output);
|
int snd_output_flush(snd_output_t *output);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue