Mercurial > molko
diff libmlk-core/mlk/core/state.h @ 469:0d6206cee6b9
core: state -> mlk_state
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 11:11:23 +0100 |
parents | 5729efd23286 |
children | 6e8f6640e05b |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/state.h Mon Feb 27 11:08:28 2023 +0100 +++ b/libmlk-core/mlk/core/state.h Mon Feb 27 11:11:23 2023 +0100 @@ -23,43 +23,43 @@ union mlk_event; -struct state { +struct mlk_state { void *data; - void (*start)(struct state *); - void (*handle)(struct state *, const union mlk_event *); - void (*update)(struct state *, unsigned int); - void (*draw)(struct state *); - void (*suspend)(struct state *); - void (*resume)(struct state *); - void (*end)(struct state *); - void (*finish)(struct state *); + void (*start)(struct mlk_state *); + void (*handle)(struct mlk_state *, const union mlk_event *); + void (*update)(struct mlk_state *, unsigned int); + void (*draw)(struct mlk_state *); + void (*suspend)(struct mlk_state *); + void (*resume)(struct mlk_state *); + void (*end)(struct mlk_state *); + void (*finish)(struct mlk_state *); }; MLK_CORE_BEGIN_DECLS void -state_start(struct state *); +mlk_state_start(struct mlk_state *); void -state_handle(struct state *, const union mlk_event *); +mlk_state_handle(struct mlk_state *, const union mlk_event *); void -state_update(struct state *, unsigned int); +mlk_state_update(struct mlk_state *, unsigned int); void -state_draw(struct state *); +mlk_state_draw(struct mlk_state *); void -state_suspend(struct state *); +mlk_state_suspend(struct mlk_state *); void -state_resume(struct state *); +mlk_state_resume(struct mlk_state *); void -state_end(struct state *); +mlk_state_end(struct mlk_state *); void -state_finish(struct state *); +mlk_state_finish(struct mlk_state *); MLK_CORE_END_DECLS