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: guint

The current state.

to

Type: guint*

The target state for the current edge.

The argument will be modified by the function.
user_data

Type: gpointer

User 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 a NULL GError*.
The argument will be left initialized to NULL by 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.

Return value

Type: gboolean

TRUE if the transition succeeded; otherwise FALSE and error is set.