Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Event.h
- #ifndef _EVENT_h
- #define _EVENT_h
- #if defined(ARDUINO) && ARDUINO >= 100
- #include "arduino.h"
- #else
- #include "WProgram.h"
- #endif
- #define INITIAL_EVENT_CAP 2
- typedef struct
- {
- char* eventName;
- void **callbacks;
- short size;
- short capacity;
- } Event;
- void event_create(Event *event_s, char *eventName);
- void event_send(Event *event_s, void *context);
- void event_add(Event *event_s, void(*callback)(void *));
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement