aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/wreadln.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wreadln.h b/src/wreadln.h
index 270d73fb1..520ba2a6a 100644
--- a/src/wreadln.h
+++ b/src/wreadln.h
@@ -10,6 +10,14 @@ extern unsigned int wrln_max_history_length;
/* a callback function for KEY_RESIZE */
extern GVoidFunc wrln_resize_callback;
+/* called after TAB is pressed but before g_completion_complete */
+typedef void (*wrln_gcmp_pre_cb_t) (GCompletion *gcmp, gchar *buf);
+extern wrln_gcmp_pre_cb_t wrln_pre_completion_callback;
+
+/* post completion callback */
+typedef void (*wrln_gcmp_post_cb_t) (GCompletion *gcmp, gchar *s, GList *l);
+extern wrln_gcmp_post_cb_t wrln_post_completion_callback;
+
/* Note, wreadln calls curs_set() and noecho(), to enable cursor and
* disable echo. wreadln will not restore these settings when exiting! */
char *wreadln(WINDOW *w, /* the curses window to use */