Go to the source code of this file.
|
#define | bfa_sm_state_decl(oc, st, otype, etype) static void oc ## _sm_ ## st(otype * fsm, etype event) |
|
#define | bfa_sm_set_state(_sm, _state) ((_sm)->sm = (bfa_sm_t)(_state)) |
|
#define | bfa_sm_send_event(_sm, _event) ((_sm)->sm((_sm), (_event))) |
|
#define | bfa_sm_get_state(_sm) ((_sm)->sm) |
|
#define | bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state)) |
|
#define | BFA_SM(_sm) ((bfa_sm_t)(_sm)) |
|
#define | bfa_fsm_state_decl(oc, st, otype, etype) |
|
#define | bfa_fsm_set_state(_fsm, _state) |
|
#define | bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event))) |
|
#define | bfa_fsm_get_state(_fsm) ((_fsm)->fsm) |
|
#define | bfa_fsm_cmp_state(_fsm, _state) ((_fsm)->fsm == (bfa_fsm_t)(_state)) |
|
#define bfa_fsm_cmp_state |
( |
|
_fsm, |
|
|
|
_state |
|
) |
| ((_fsm)->fsm == (bfa_fsm_t)(_state)) |
#define bfa_fsm_get_state |
( |
|
_fsm | ) |
((_fsm)->fsm) |
#define bfa_fsm_send_event |
( |
|
_fsm, |
|
|
|
_event |
|
) |
| ((_fsm)->fsm((_fsm), (_event))) |
#define bfa_fsm_set_state |
( |
|
_fsm, |
|
|
|
_state |
|
) |
| |
#define bfa_fsm_state_decl |
( |
|
oc, |
|
|
|
st, |
|
|
|
otype, |
|
|
|
etype |
|
) |
| |
#define bfa_sm_cmp_state |
( |
|
_sm, |
|
|
|
_state |
|
) |
| ((_sm)->sm == (bfa_sm_t)(_state)) |
#define bfa_sm_get_state |
( |
|
_sm | ) |
((_sm)->sm) |
#define bfa_sm_send_event |
( |
|
_sm, |
|
|
|
_event |
|
) |
| ((_sm)->sm((_sm), (_event))) |
#define bfa_sm_set_state |
( |
|
_sm, |
|
|
|
_state |
|
) |
| ((_sm)->sm = (bfa_sm_t)(_state)) |
typedef void(* bfa_wc_resume_t)(void *cbarg) |