Function
DexStateTransitionFunc
Declaration
gboolean
(* DexStateTransitionFunc) (
guint from,
guint* to,
gpointer user_data,
GError** error
)
Description [src]
Callback used to execute a transition edge.
On entry, to contains the declared target for the edge being executed. If
the callback succeeds and leaves to unchanged, the transition completes at
that state. If the callback changes to, DexStateMachine commits
the changed state instead. The changed state must be a valid value in the
state enum.
Parameters
from-
Type:
guintThe current state.
to-
Type:
guint*The target state for the current edge.
The argument will be modified by the function. user_data-
Type:
gpointerUser data provided to
dex_state_machine_new().The argument can be NULL.The data is owned by the caller of the function. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the function if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.