aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.h
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2007-08-26 09:05:17 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2007-08-26 09:05:17 +0000
commit2d1cbdd3535af0e660129ad3af3121c595e8c3a8 (patch)
treea22cb1e31544495510fe1e5dab63b4fa763b06ec /src/wreadln.h
parent8ca4dfdb3e3deaa5246c1e339e773c90d2db7451 (diff)
downloadmpd-2d1cbdd3535af0e660129ad3af3121c595e8c3a8.tar.gz
mpd-2d1cbdd3535af0e660129ad3af3121c595e8c3a8.tar.xz
mpd-2d1cbdd3535af0e660129ad3af3121c595e8c3a8.zip
Removed nested functions
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@6811 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/wreadln.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wreadln.h b/src/wreadln.h
index 667740c22..72ef411c4 100644
--- a/src/wreadln.h
+++ b/src/wreadln.h
@@ -11,12 +11,16 @@ extern guint wrln_max_history_length;
typedef int (*wrln_wgetch_fn_t) (WINDOW *w);
extern wrln_wgetch_fn_t wrln_wgetch;
+/* completion callback data */
+extern void *wrln_completion_callback_data;
+
/* called after TAB is pressed but before g_completion_complete */
-typedef void (*wrln_gcmp_pre_cb_t) (GCompletion *gcmp, gchar *buf);
+typedef void (*wrln_gcmp_pre_cb_t) (GCompletion *gcmp, gchar *buf, void *data);
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);
+typedef void (*wrln_gcmp_post_cb_t) (GCompletion *gcmp, gchar *s, GList *l,
+ void *data);
extern wrln_gcmp_post_cb_t wrln_post_completion_callback;
/* Note, wreadln calls curs_set() and noecho(), to enable cursor and