summaryrefslogtreecommitdiffstats
path: root/src/sydney.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-03-25 23:45:07 +0000
committerLennart Poettering <lennart@poettering.net>2008-03-25 23:45:07 +0000
commit09ac85ba0a7b0fdfa52f460e24d86795fbb12032 (patch)
tree6a83f253cd5b587c6aa2e7e1eeb38bc3810e36ef /src/sydney.h
parentb82b30d383407e8be1bb321d442c170d53a1d257 (diff)
basic c++ compat
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@42 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
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