diff libmlk-core/mlk/core/action.h @ 480:c1f64d451230

core: mlk_action has a start callback
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 17:26:00 +0100
parents 5729efd23286
children a11cd7ea3a37
line wrap: on
line diff
--- a/libmlk-core/mlk/core/action.h	Mon Feb 27 16:33:33 2023 +0100
+++ b/libmlk-core/mlk/core/action.h	Mon Feb 27 17:26:00 2023 +0100
@@ -25,6 +25,7 @@
 
 struct mlk_action {
 	void *data;
+	void (*start)(struct mlk_action *);
 	void (*handle)(struct mlk_action *, const union mlk_event *);
 	int (*update)(struct mlk_action *, unsigned int);
 	void (*draw)(struct mlk_action *);
@@ -35,6 +36,9 @@
 MLK_CORE_BEGIN_DECLS
 
 void
+mlk_action_start(struct mlk_action *);
+
+void
 mlk_action_handle(struct mlk_action *, const union mlk_event *);
 
 int