aboutsummaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-04 22:17:17 -0400
committerDeterminant <[email protected]>2019-06-04 22:17:17 -0400
commitdab48a1825aed9c810ce83ea8054fa435ecb41be (patch)
treee0a3f9587e3606350dedb291a22a70a9ba5b7e44 /src/event.cpp
parentda42ddf96c78a73b4cf5f8854e98e009f4f174a4 (diff)
...
Diffstat (limited to 'src/event.cpp')
-rw-r--r--src/event.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 050914c..0daa498 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -1,3 +1,4 @@
+#include "salticidae/config.h"
#ifdef SALTICIDAE_CBINDINGS
#include "salticidae/event.h"
@@ -11,13 +12,13 @@ void eventcontext_stop(eventcontext_t *self) { return self->stop(); }
void eventcontext_free(eventcontext_t *self) { delete self; }
-void sigev_new(const eventcontext_t *self, sigev_callback_t cb) {
- return new SigEvent(*self, cb);
+sigev_t *sigev_new(const eventcontext_t *self, sigev_callback_t cb) {
+ return new sigev_t(*self, cb);
}
void sigev_add(sigev_t *self, int sig) { self->add(sig); }
-void sigev_delete() { delete self; }
+void sigev_delete(sigev_t *self) { delete self; }
}