Add comments to fork() logic for readibility
[notion/jeffpc.git] / ioncore / navi.h
blobedb7f628a34841fdaef3d8b2dda91ffc4194cc35
1 /*
2 * ion/ioncore/navi.h
4 * Copyright (c) Tuomo Valkonen 2006-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_IONCORE_NAVI_H
10 #define ION_IONCORE_NAVI_H
12 #include "common.h"
13 #include "region.h"
16 typedef enum{
17 REGION_NAVI_ANY,
18 REGION_NAVI_BEG, /* FIRST, PREV */
19 REGION_NAVI_END, /* LAST, NEXT */
20 REGION_NAVI_LEFT,
21 REGION_NAVI_RIGHT,
22 REGION_NAVI_TOP,
23 REGION_NAVI_BOTTOM
24 } WRegionNavi;
26 INTRSTRUCT(WRegionNaviData);
28 DYNFUN WRegion *region_navi_next(WRegion *reg, WRegion *rel, WRegionNavi nh,
29 WRegionNaviData *data);
30 DYNFUN WRegion *region_navi_first(WRegion *reg, WRegionNavi nh,
31 WRegionNaviData *data);
33 extern WRegion *region_navi_cont(WRegion *reg, WRegion *res,
34 WRegionNaviData *data);
36 extern bool ioncore_string_to_navi(const char *str, WRegionNavi *nv);
38 extern WRegionNavi ioncore_navi_reverse(WRegionNavi nh);
40 extern WRegion *ioncore_goto_next(WRegion *reg, const char *dirstr,
41 ExtlTab param);
42 extern WRegion *ioncore_goto_first(WRegion *reg, const char *dirstr,
43 ExtlTab param);
44 extern WRegion *ioncore_navi_next(WRegion *reg, const char *dirstr,
45 ExtlTab param);
46 extern WRegion *ioncore_navi_first(WRegion *reg, const char *dirstr,
47 ExtlTab param);
49 #endif /* ION_IONCORE_NAVI_H */