eid-viewer
eid-viewer library
state.h
1 #ifndef EID_VWR_STATE_H
2 #define EID_VWR_STATE_H
3 
4 enum eid_vwr_state_event {
5  EVENT_SET_CALLBACKS,
6  EVENT_OPEN_FILE,
7  EVENT_CLOSE_FILE,
8  EVENT_SERIALIZE,
9  EVENT_TOKEN_INSERTED,
10  EVENT_TOKEN_REMOVED,
11  EVENT_READ_READY,
12  EVENT_DO_PINOP,
13  EVENT_DATA_INVALID,
14  EVENT_STATE_ERROR,
15  EVENT_READER_FOUND,
16 
17  EVENT_COUNT
18 };
19 
20 void sm_init();
21 void sm_handle_event(enum eid_vwr_state_event e, void* data, void(*freefunc)(void*), void(*donefunc)(void*));
22 void sm_handle_event_onthread(enum eid_vwr_state_event e, void* data);
23 void sm_start_thread();
24 void sm_stop_thread();
25 
26 #endif