6 /* Function prototypes */
7 fsmret_t
fsm_init(fsm_t
**state
, size_t size
, unsigned int factor
);
8 fsmret_t
fsm_add_state(fsm_t
*fsm
, unsigned int key
, state_t
*state
);
9 fsmret_t
fsm_free(fsm_t
*fsm
);
10 void fsm_print_states(const fsm_t
*fsm
);
11 fsmret_t
fsm_set_state(fsm_t
*fsm
, unsigned int stkey
);
12 fsmret_t
fsm_process_event(fsm_t
*fsm
, unsigned int evtkey
, void *data
);