aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/event.h
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2019-06-03 17:30:01 -0400
committerDeterminant <tederminant@gmail.com>2019-06-03 17:30:01 -0400
commit9f294eb2e0ae0bed8120fc34fd9782f2f0a9ac74 (patch)
treed5005c9888874bd2b169fcd51418a3fab36fe631 /include/salticidae/event.h
parent9ec5a371f5c05fda8ddeac3470be6fc5c67d44e9 (diff)
WIP: C bindings
Diffstat (limited to 'include/salticidae/event.h')
-rw-r--r--include/salticidae/event.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/salticidae/event.h b/include/salticidae/event.h
index 946dda1..19bd250 100644
--- a/include/salticidae/event.h
+++ b/include/salticidae/event.h
@@ -35,6 +35,7 @@
#include "salticidae/util.h"
#include "salticidae/ref.h"
+#ifdef __cplusplus
namespace salticidae {
struct _event_context_deleter {
@@ -644,4 +645,9 @@ class ThreadCall {
}
+using eventcontext_t = salticidae::EventContext;
+
+#else
+typedef struct eventcontext_t;
+#endif
#endif