blob: 050914cd39a6f4106018a9516ab0db205c61f720 (
plain) (
tree)
|
|
#ifdef SALTICIDAE_CBINDINGS
#include "salticidae/event.h"
extern "C" {
eventcontext_t *eventcontext_new() { return new eventcontext_t(); }
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; }
void sigev_new(const eventcontext_t *self, sigev_callback_t cb) {
return new SigEvent(*self, cb);
}
void sigev_add(sigev_t *self, int sig) { self->add(sig); }
void sigev_delete() { delete self; }
}
#endif
|