Only define LUA when lua is actually on the PATH
[notion/jeffpc.git] / ioncore / names.h
blobb545f8ff0c3b04b2bf4d2104ba20a83ddb2cb793
1 /*
2 * ion/ioncore/names.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_IONCORE_NAMES_H
10 #define ION_IONCORE_NAMES_H
12 #include "region.h"
13 #include "clientwin.h"
14 #include "gr.h"
15 #include <libextl/extl.h>
18 typedef struct{
19 /** Names, keyed by WRegionNameInfo's */
20 struct rb_node *rb;
21 bool initialised;
22 } WNamespace;
25 extern WNamespace ioncore_internal_ns;
26 extern WNamespace ioncore_clientwin_ns;
29 /** Register a region (but not a clientwin) to the naming registry */
30 extern bool region_register(WRegion *reg);
31 extern bool region_set_name(WRegion *reg, const char *name);
32 extern bool region_set_name_exact(WRegion *reg, const char *name);
34 extern bool clientwin_register(WClientWin *cwin);
35 extern bool clientwin_set_name(WClientWin *cwin, const char *name);
37 extern void region_unregister(WRegion *reg);
38 extern void region_do_unuse_name(WRegion *reg, bool insert_unnamed);
40 extern const char *region_name(WRegion *reg);
41 DYNFUN const char *region_displayname(WRegion *reg);
43 extern char *region_make_label(WRegion *reg, int maxw, GrBrush *brush);
45 extern bool ioncore_region_i(ExtlFn fn, const char *typenam);
46 extern bool ioncore_clientwin_i(ExtlFn fn);
47 /**
48 * Look up a region (internal windows, not client windows) by name and type
49 * name.
51 * As region names are unique, the 'typename' parameter is only used to filter
52 * out regions that do not have the expected type.
54 extern WRegion *ioncore_lookup_region(const char *cname, const char *typenam);
55 extern WClientWin *ioncore_lookup_clientwin(const char *cname);
57 #endif /* ION_IONCORE_NAMES_H */