Allow jumping to arbitrary state in a SSM

This is looking less and less like a simple state machine now, but it's
proving a useful model!
This commit is contained in:
Daniel Drake
2008-02-15 18:09:14 +00:00
parent 77b5dab04b
commit 0aaffcee33
2 changed files with 15 additions and 1 deletions

View File

@@ -349,6 +349,7 @@ int fpi_ssm_has_completed(struct fpi_ssm *machine);
/* for drivers */
void fpi_ssm_next_state(struct fpi_ssm *machine);
void fpi_ssm_jump_to_state(struct fpi_ssm *machine, int state);
void fpi_ssm_mark_completed(struct fpi_ssm *machine);
void fpi_ssm_mark_aborted(struct fpi_ssm *machine, int error);