comparison libmlk-core/mlk/core/action.h @ 450:b26dd49f69ff

core: event -> mlk_event (and friends)
author David Demelier <markand@malikania.fr>
date Sat, 18 Feb 2023 13:37:11 +0100
parents 773a082f0b91
children 5729efd23286
comparison
equal deleted inserted replaced
449:f2f0e73ea9da 450:b26dd49f69ff
19 #ifndef MLK_CORE_ACTION_H 19 #ifndef MLK_CORE_ACTION_H
20 #define MLK_CORE_ACTION_H 20 #define MLK_CORE_ACTION_H
21 21
22 #include "core.h" 22 #include "core.h"
23 23
24 union event; 24 union mlk_event;
25 25
26 struct mlk_action { 26 struct mlk_action {
27 void *data; 27 void *data;
28 void (*handle)(struct mlk_action *, const union event *); 28 void (*handle)(struct mlk_action *, const union mlk_event *);
29 int (*update)(struct mlk_action *, unsigned int); 29 int (*update)(struct mlk_action *, unsigned int);
30 void (*draw)(struct mlk_action *); 30 void (*draw)(struct mlk_action *);
31 void (*end)(struct mlk_action *); 31 void (*end)(struct mlk_action *);
32 void (*finish)(struct mlk_action *); 32 void (*finish)(struct mlk_action *);
33 }; 33 };
34 34
35 CORE_BEGIN_DECLS 35 CORE_BEGIN_DECLS
36 36
37 void 37 void
38 mlk_action_handle(struct mlk_action *, const union event *); 38 mlk_action_handle(struct mlk_action *, const union mlk_event *);
39 39
40 int 40 int
41 mlk_action_update(struct mlk_action *, unsigned int); 41 mlk_action_update(struct mlk_action *, unsigned int);
42 42
43 void 43 void