Include notionflux in the main repo instead of its own submodule
[notion/jeffpc.git] / ioncore / activity.h
blob25f301e95855974f5fcd0bb566c141601b02f36f
1 /*
2 * ion/ioncore/activity.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_IONCORE_ACTIVITY_H
10 #define ION_IONCORE_ACTIVITY_H
12 #include <libtu/setparam.h>
13 #include <libmainloop/hooks.h>
14 #include <libextl/extl.h>
15 #include "region.h"
17 /**
18 * Manipulate the 'activity' flag of this region. If the region is already
19 * active the 'activity'-flag will remain off.
21 * @param sp SET, UNSET or TOGGLE
22 * @returns the new value of the 'activity' flag
24 extern bool region_set_activity(WRegion *reg, int sp);
25 extern bool region_is_activity(WRegion* re);
26 extern bool region_is_activity_r(WRegion *reg);
28 extern void region_mark_mgd_activity(WRegion *mgr);
29 extern void region_clear_mgd_activity(WRegion *mgr);
31 extern bool ioncore_activity_i(ExtlFn fn);
32 extern WRegion *ioncore_activity_first();
33 extern bool ioncore_goto_activity();
34 extern ObjList *ioncore_activity_list();
36 #endif /* ION_IONCORE_ACTIVITY_H */