Mercurial > molko
diff examples/example-label/example-label.c @ 469:0d6206cee6b9
core: state -> mlk_state
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 11:11:23 +0100 |
parents | 01f5580e43d1 |
children | ca30ff96bbe0 |
line wrap: on
line diff
--- a/examples/example-label/example-label.c Mon Feb 27 11:08:28 2023 +0100 +++ b/examples/example-label/example-label.c Mon Feb 27 11:11:23 2023 +0100 @@ -101,7 +101,7 @@ .text = "This one follows your mouse and is not aligned." }; -static struct state *states[1]; +static struct mlk_state *states[1]; static void init(void) @@ -129,7 +129,7 @@ } static void -handle(struct state *st, const union mlk_event *ev) +handle(struct mlk_state *st, const union mlk_event *ev) { (void)st; @@ -147,7 +147,7 @@ } static void -draw(struct state *st) +draw(struct mlk_state *st) { (void)st; @@ -164,7 +164,7 @@ static void run(void) { - struct state state = { + struct mlk_state state = { .handle = handle, .draw = draw };