void stepDestroy(step_t *s)
Release the resources associated with a step-machine.
stepFunction_t fun
Function that executes this action.
Definition: step.h:133
int stepGotoLabel(step_t *s, int label)
Change the next action to be executed.
int(* stepFunction_t)(step_t *s, stepAction_t *a, void *c)
Type signature of the function associated with each action on the step machine.
Definition: step.h:126
Each action in the step machine.
Definition: step.h:131
int stepRun(step_t *s, void *c)
Execute the step machine.
struct step_t step_t
Opaque type of a handle to a step-machine.
Definition: step.h:107
int label
Label associated with this action.
Definition: step.h:132
Larlib basic definitions.
step_t * stepCreate(stepAction_t *actions, int nactions)
Create a new step machine.
void * param
Place-holder for parameter to fun.
Definition: step.h:134