2 * ion/mod_query/history.h
4 * Copyright (c) Tuomo Valkonen 1999-2007.
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.
12 #ifndef ION_MOD_QUERY_HISTORY_H
13 #define ION_MOD_QUERY_HISTORY_H
15 #include <ioncore/common.h>
16 #include <libextl/extl.h>
18 extern const char *mod_query_history_get(int n);
19 extern bool mod_query_history_push(const char *s);
20 extern void mod_query_history_push_(char *s);
21 extern void mod_query_history_clear();
22 extern int mod_query_history_search(const char *s, int from, bool bwd,
24 extern uint mod_query_history_complete(const char *s, char ***h_ret);
25 extern ExtlTab mod_query_history_table();
27 #endif /* ION_MOD_QUERY_HISTORY_H */