Add manpage for notionflux
[notion/jeffpc.git] / libmainloop / defer.h
blobce3e1d76aff6b0be6f1eef299d21409d6d0b9a57
1 /*
2 * ion/libmainloop/defer.c
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_LIBMAINLOOP_DEFER_H
10 #define ION_LIBMAINLOOP_DEFER_H
12 #include <libtu/types.h>
13 #include <libtu/obj.h>
14 #include <libextl/extl.h>
16 INTRSTRUCT(WDeferred);
18 typedef void WDeferredAction(Obj*);
20 extern void mainloop_execute_deferred();
21 extern void mainloop_execute_deferred_on_list(WDeferred **list);
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);
27 extern bool mainloop_defer_destroy(Obj *obj);
29 extern bool mainloop_defer_extl(ExtlFn fn);
30 extern bool mainloop_defer_extl_on_list(ExtlFn fn, WDeferred **list);
32 #endif /* ION_LIBMAINLOOP_DEFER_H */