diff options
Diffstat (limited to 'src/event.cpp')
-rw-r--r-- | src/event.cpp | 7 |
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; } } |