]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added stuff for C++ compilation
authorAbramo Bagnara <abramo@alsa-project.org>
Mon, 29 Jan 2001 08:29:52 +0000 (08:29 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Mon, 29 Jan 2001 08:29:52 +0000 (08:29 +0000)
include/input.h
include/output.h

index 2f4c242695cb0a2b1d1a98166ee883a53ece00c1..0925b75a722279e64891fb9a23be699797c9c5ad 100644 (file)
@@ -1,4 +1,8 @@
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct _snd_input snd_input_t;
 
 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)));
 char *snd_input_gets(snd_input_t *input, char *str, size_t size);
 int snd_input_getc(snd_input_t *input);
+
+#ifdef __cplusplus
+}
+#endif
index dd50f9db396fc15fb1701ce256c6ed2c6dda40c9..c2dbf74297187102435e47b0bccca3064f3606c1 100644 (file)
@@ -1,4 +1,8 @@
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct _snd_output snd_output_t;
 
 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_putc(snd_output_t *output, int c);
 int snd_output_flush(snd_output_t *output);
+
+#ifdef __cplusplus
+}
+#endif