![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Represent a particular state machine
typedef struct {
unsigned state;
int (*enter)(void *data, unsigned old_state, unsigned
new_state);
int (*leave)(void *data, unsigned old_state, unsigned
new_state);
unsigned (*check)(void *data, unsigned cur_state);
} pmm_state_t;
The pmm_state_t structure represents a particular state machine:
The library attaches no meaning to this value, and only requires that the state value for all states within a single state machine are unique.
A check() function must be defined for each pmm_state_t in a state machine.
![]() |
![]() |
![]() |