comparison libcore/core/wait.h @ 136:30b68089ae70

core: rework actions and a bit of drawables, closes #2492 In the effort of having as less as possible memory allocation in libcore, the usage of actions and drawable no longer copy the original source parameter to let user pass a heap allocated variable or a static storage one. Update predefined drawable and actions to match these new needs.
author David Demelier <markand@malikania.fr>
date Tue, 13 Oct 2020 09:38:44 +0200
parents 789b23e01f52
children b386d25832c8
comparison
equal deleted inserted replaced
135:eadfed7674ac 136:30b68089ae70
83 wait_update(struct wait *w, unsigned int ticks); 83 wait_update(struct wait *w, unsigned int ticks);
84 84
85 /** 85 /**
86 * Create an action from the wait object. 86 * Create an action from the wait object.
87 * 87 *
88 * The wait action must be kept alive until the action completes.
89 *
88 * \pre w != NULL 90 * \pre w != NULL
89 * \pre a != NULL 91 * \pre act != NULL
90 * \param w the wait object to copy from 92 * \param w the wait object to copy from
91 * \param a the action to fill 93 * \param act the action to fill
92 */ 94 */
93 void 95 void
94 wait_action(const struct wait *w, struct action *a); 96 wait_action(struct wait *w, struct action *act);
95 97
96 #endif /* !MOLKO_WAIT_H */ 98 #endif /* !MOLKO_WAIT_H */