summaryrefslogtreecommitdiffstats
path: root/src/sydney.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sydney.h')
-rw-r--r--src/sydney.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/sydney.h b/src/sydney.h
index 00887f9..eb1a7ec 100644
--- a/src/sydney.h
+++ b/src/sydney.h
@@ -1,6 +1,10 @@
#ifndef foosydneyhfoo
#define foosydneyhfoo
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Requirements:
- In sync mode, the device will automatically write data so that an initial read causes writes
@@ -88,7 +92,7 @@ typedef enum {
SA_MODE_WRONLY = 1,
SA_MODE_RDONLY = 2,
SA_MODE_RDWR = 3,
- _SA_MODE_MAX = 4,
+ _SA_MODE_MAX = 4
} sa_mode_t;
/** Error codes */
@@ -205,7 +209,7 @@ typedef enum {
SA_STATE_RUNNING,
SA_STATE_STOPPED,
/* put more stuff */
- _SA_STATE_MAX,
+ _SA_STATE_MAX
} sa_state_t;
typedef enum {
@@ -217,7 +221,7 @@ typedef enum {
typedef enum {
SA_ADJUST_UP = 1,
SA_ADJUST_DOWN = -1,
- SA_ADJUST_NONE = 0,
+ SA_ADJUST_NONE = 0
} sa_adjust_t;
/* Some kind of meta information. */
@@ -375,4 +379,8 @@ int sa_stream_drain(sa_stream_t *s);
/** Return a human readable error */
const char *sa_strerror(int code);
+#ifdef __cplusplus
+}
+#endif
+
#endif