]> git.decadent.org.uk Git - ion3.git/blob - mod_query/complete.h
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / mod_query / complete.h
1 /*
2  * ion/mod_query/complete.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_MOD_QUERY_COMPLETE_H
10 #define ION_MOD_QUERY_COMPLETE_H
11
12 #include <libtu/obj.h>
13 #include <libextl/extl.h>
14 #include <ioncore/common.h>
15 #include "edln.h"
16 #include "wedln.h"
17
18 INTRCLASS(WComplProxy);
19
20 DECLCLASS(WComplProxy){
21     Obj o;
22     Watch wedln_watch;
23     int id;
24     int cycle;
25 };
26
27
28 extern WComplProxy *create_complproxy(WEdln *wedln, int id, int cycle);
29
30 extern bool complproxy_set_completions(WComplProxy *proxy, ExtlTab compls);
31
32
33 extern int edln_do_completions(Edln *edln, char **completions, int ncomp,
34                                const char *beg, const char *end,
35                                bool setcommon, bool nosort);
36 extern void edln_set_completion(Edln *edln, const char *comp, 
37                                 const char *beg, const char *end);
38
39 #endif /* ION_MOD_QUERY_COMPLETE_H */