aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-18 14:21:53 +0000
committerKalle Wallin <kaw@linux.se>2004-06-18 14:21:53 +0000
commit0a40624443576a8929d9f2370d52248cab9245fe (patch)
treea4b8a0dc778f58131edba0aeda6e6e9100ebe1a4 /src/wreadln.h
parent5661324c51dd3af2bd3e3695b09502b65222f3db (diff)
downloadmpd-0a40624443576a8929d9f2370d52248cab9245fe.tar.gz
mpd-0a40624443576a8929d9f2370d52248cab9245fe.tar.xz
mpd-0a40624443576a8929d9f2370d52248cab9245fe.zip
Added completion stuff
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1556 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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 */