eid-viewer
eid-viewer library
Loading...
Searching...
No Matches
state.h
1
#ifndef EID_VWR_STATE_H
2
#define EID_VWR_STATE_H
3
4
enum
eid_vwr_state_event
5
{
6
EVENT_SET_CALLBACKS,
7
EVENT_OPEN_FILE,
8
EVENT_CLOSE_FILE,
9
EVENT_SERIALIZE,
10
EVENT_TOKEN_INSERTED,
11
EVENT_TOKEN_REMOVED,
12
EVENT_READ_READY,
13
EVENT_DO_PINOP,
14
EVENT_SERIALIZE_READY,
15
EVENT_PINOP_READY,
16
EVENT_DATA_INVALID,
17
EVENT_STATE_ERROR,
18
EVENT_READER_FOUND,
19
EVENT_DEVICE_CHANGED,
20
EVENT_READER_LOST,
21
EVENT_DO_CHALLENGE,
22
EVENT_CHALLENGE_READY,
23
24
EVENT_COUNT
25
};
26
27
struct
error_data
{
28
int
from;
29
enum
{
30
SM_ENTER,
31
SM_LEAVE
32
} which;
33
int
error;
34
};
35
36
void
sm_init(
void
);
37
void
sm_handle_event(
enum
eid_vwr_state_event e,
void
*data,
38
void
(*freefunc) (
void
*),
void
(*donefunc) (
void
*));
39
void
sm_handle_event_onthread(
enum
eid_vwr_state_event e,
void
*data);
40
void
sm_start_thread(
void
);
41
void
sm_stop_thread(
void
);
42
43
#endif
error_data
Definition
state.h:27
Generated by
1.9.8