diff examples/example-audio/example-audio.c @ 469:0d6206cee6b9

core: state -> mlk_state
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 11:11:23 +0100
parents 7420c78018dc
children ca30ff96bbe0
line wrap: on
line diff
--- a/examples/example-audio/example-audio.c	Mon Feb 27 11:08:28 2023 +0100
+++ b/examples/example-audio/example-audio.c	Mon Feb 27 11:11:23 2023 +0100
@@ -38,7 +38,7 @@
 #define W       1280
 #define H       720
 
-static struct state *states[1];
+static struct mlk_state *states[1];
 static struct mlk_music music;
 static struct mlk_sound sound;
 
@@ -77,7 +77,7 @@
 }
 
 static void
-handle(struct state *st, const union mlk_event *ev)
+handle(struct mlk_state *st, const union mlk_event *ev)
 {
 	(void)st;
 
@@ -116,7 +116,7 @@
 }
 
 static void
-draw(struct state *st)
+draw(struct mlk_state *st)
 {
 	(void)st;
 
@@ -130,7 +130,7 @@
 static void
 run(void)
 {
-	struct state state = {
+	struct mlk_state state = {
 		.handle = handle,
 		.draw = draw
 	};