blob: 050914cd39a6f4106018a9516ab0db205c61f720 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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
|