]> git.decadent.org.uk Git - ion3.git/blob - libmainloop/defer.h
[svn-upgrade] Integrating new upstream version, ion3 (20071130)
[ion3.git] / libmainloop / defer.h
1 /*
2  * ion/libmainloop/defer.c
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_LIBMAINLOOP_DEFER_H
10 #define ION_LIBMAINLOOP_DEFER_H
11
12 #include <libtu/types.h>
13 #include <libtu/obj.h>
14 #include <libextl/extl.h>
15
16 INTRSTRUCT(WDeferred);
17
18 typedef void WDeferredAction(Obj*);
19
20 extern void mainloop_execute_deferred();
21 extern void mainloop_execute_deferred_on_list(WDeferred **list);
22
23 extern bool mainloop_defer_action(Obj *obj, WDeferredAction *action);
24 extern bool mainloop_defer_action_on_list(Obj *obj, WDeferredAction *action,
25                                           WDeferred **list);
26
27 extern bool mainloop_defer_destroy(Obj *obj);
28
29 extern bool mainloop_defer_extl(ExtlFn fn);
30 extern bool mainloop_defer_extl_on_list(ExtlFn fn, WDeferred **list);
31
32 #endif /* ION_LIBMAINLOOP_DEFER_H */