aboutsummaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-04 23:00:55 -0400
committerDeterminant <[email protected]>2019-06-04 23:00:55 -0400
commitfad6446ce15bcd1303fdd162d6938ab30046467e (patch)
tree524e713d3574042176c1021bbfd610a885e950a2 /src/event.cpp
parentdab48a1825aed9c810ce83ea8054fa435ecb41be (diff)
finish the minimal working example
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); }
}