summaryrefslogtreecommitdiff
path: root/src/completion.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2015-09-19 20:47:37 +0200
committerDaniel Carl <danielcarl@gmx.de>2016-03-30 23:32:23 +0200
commit6608f8fc19ef4b587596c9ed3cb3b3fcc37c1eb6 (patch)
tree12f055b9e671cb41ea8097add3e3833890a65fe8 /src/completion.h
parente3ea1d3081cc7dbe86f95ee0888660c292c355eb (diff)
Startup webkit2 branch from the scratch.
Diffstat (limited to 'src/completion.h')
-rw-r--r--src/completion.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/completion.h b/src/completion.h
index 26b057d..e353ecb 100644
--- a/src/completion.h
+++ b/src/completion.h
@@ -20,8 +20,12 @@
#ifndef _COMPLETION_H
#define _COMPLETION_H
+#include <glib.h>
+
#include "main.h"
+typedef void (*CompletionSelectFunc) (Client *c, char *match);
+
enum {
COMPLETION_STORE_FIRST,
#ifdef FEATURE_TITLE_IN_COMPLETION
@@ -30,11 +34,13 @@ enum {
COMPLETION_STORE_NUM
};
-typedef void (*CompletionSelectFunc) (char *match);
-gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc,
- gboolean back);
-void completion_clean(void);
-gboolean completion_next(gboolean back);
+void completion_clean(Client *c);
+void completion_cleanup(Client *c);
+gboolean completion_create(Client *c, GtkTreeModel *model,
+ CompletionSelectFunc selfunc, gboolean back);
+void completion_init(Client *c);
+gboolean completion_next(Client *c, gboolean back);
+gboolean completion_fill(GtkListStore *store, const char *input, GList *src);
#endif /* end of include guard: _COMPLETION_H */