Mercurial > molko
diff src/core/action.h @ 69:5da49274e5fb
core: add new action.end callback for user
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Jan 2020 13:31:24 +0100 |
parents | 52792b863ff7 |
children | 53b217afe122 |
line wrap: on
line diff
--- a/src/core/action.h Mon Jan 27 13:04:36 2020 +0100 +++ b/src/core/action.h Mon Jan 27 13:31:24 2020 +0100 @@ -80,9 +80,20 @@ /** * (RW) * + * Called when the action was completed. + * + * This callback is mostly provided to allow the user doing something + * else once an action is complete. Predefined actions should not use + * this callback by themselves. + */ + void (*end)(struct action *a); + + /** + * (RW) + * * Close the action before removal. */ void (*finish)(struct action *); }; -#endif /* !ACTION_H*/ +#endif /* !ACTION_H */