]> git.decadent.org.uk Git - ion3.git/blob - mod_query/complete.h
d9c9773e88109de10677d85ee94ff045fec99547
[ion3.git] / mod_query / complete.h
1 /*
2  * ion/mod_query/complete.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_MOD_QUERY_COMPLETE_H
13 #define ION_MOD_QUERY_COMPLETE_H
14
15 #include <libtu/obj.h>
16 #include <libextl/extl.h>
17 #include <ioncore/common.h>
18 #include "edln.h"
19 #include "wedln.h"
20
21 INTRCLASS(WComplProxy);
22
23 DECLCLASS(WComplProxy){
24     Obj o;
25     Watch wedln_watch;
26     int id;
27     int cycle;
28 };
29
30
31 extern WComplProxy *create_complproxy(WEdln *wedln, int id, int cycle);
32
33 extern bool complproxy_set_completions(WComplProxy *proxy, ExtlTab compls);
34
35
36 extern int edln_do_completions(Edln *edln, char **completions, int ncomp,
37                                const char *beg, const char *end,
38                                bool setcommon, bool nosort);
39 extern void edln_set_completion(Edln *edln, const char *comp, 
40                                 const char *beg, const char *end);
41
42 #endif /* ION_MOD_QUERY_COMPLETE_H */