/* Called when the main loop requests a state change. Called from
* main loop context. If returns -1 the state change will be
* inhibited */
/* Called when the main loop requests a state change. Called from
* main loop context. If returns -1 the state change will be
* inhibited */