aboutsummaryrefslogblamecommitdiff
path: root/src/event.cpp
blob: 6078c37c25a65e2bd41eec434bddd5bbc7dd7ca0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                              






                                                                   

                                                             



                                                                             

                                                                     

 
                                               
 
                                                          



      
#include "salticidae/config.h"
#ifdef SALTICIDAE_CBINDINGS
#include "salticidae/event.h"

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(); }

sigev_t *sigev_new(const eventcontext_t *self, sigev_callback_t cb) {
    return new sigev_t(*self, cb);
}

void sigev_free(sigev_t *self) { delete self; }

void sigev_add(sigev_t *self, int sig) { self->add(sig); }

}

#endif