Mercurial > molko
diff libmlk-core/mlk/core/action-stack.c @ 509:a11cd7ea3a37
core: doxygenize action
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 08:52:57 +0100 |
parents | 7f7602bae0bd |
children | daf085bf8a8c |
line wrap: on
line diff
--- a/libmlk-core/mlk/core/action-stack.c Fri Mar 03 19:45:00 2023 +0100 +++ b/libmlk-core/mlk/core/action-stack.c Sat Mar 04 08:52:57 2023 +0100 @@ -66,6 +66,20 @@ mlk_action_start(act); } +int +mlk_action_stack_completed(const struct mlk_action_stack *st) +{ + assert(st); + + struct mlk_action *act; + + FOREACH(st, act) + if (act) + return 0; + + return 1; +} + void mlk_action_stack_handle(struct mlk_action_stack *st, const union mlk_event *ev) { @@ -115,20 +129,6 @@ mlk_action_draw(act); } -int -mlk_action_stack_completed(const struct mlk_action_stack *st) -{ - assert(st); - - struct mlk_action *act; - - FOREACH(st, act) - if (act) - return 0; - - return 1; -} - void mlk_action_stack_finish(struct mlk_action_stack *st) {