Function silc_fsm_next
SYNOPSIS
void silc_fsm_next(void *fsm, SilcFSMStateCallback next_state);
DESCRIPTION
Set the next state to be executed. If the state function that
call this function returns SILC_FSM_CONTINUE, the `next_state'
will be executed immediately. If it returns SILC_FSM_YIELD it
yields the thread and the `next_state' will be run after other
threads have run first. This function must always be used to set
the next state in the machine or thread. This function is used
with both SilcFSM and SilcFSMThread contexts.
EXAMPLE
// Move to next state
silc_fsm_next(fsm, next_state);
return SILC_FSM_CONTINUE;
|