aboutsummaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.cpp')
-rw-r--r--src/event.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 0daa498..6078c37 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -6,19 +6,19 @@ extern "C" {
eventcontext_t *eventcontext_new() { return new eventcontext_t(); }
+void eventcontext_free(eventcontext_t *self) { delete self; }
+
void eventcontext_dispatch(eventcontext_t *self) { return self->dispatch(); }
void eventcontext_stop(eventcontext_t *self) { return self->stop(); }
-void eventcontext_free(eventcontext_t *self) { delete self; }
-
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_free(sigev_t *self) { delete self; }
-void sigev_delete(sigev_t *self) { delete self; }
+void sigev_add(sigev_t *self, int sig) { self->add(sig); }
}