X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fwreadln.h;h=d448f4119bd71e105597f160cc3ab57c3b2b360f;hb=76a8fab4adc293982f355609b89dde88d5f355e0;hp=72ef411c4402a034ab3c000c3c1e22c734ad7bb8;hpb=2d1cbdd3535af0e660129ad3af3121c595e8c3a8;p=ncmpc.git diff --git a/src/wreadln.h b/src/wreadln.h index 72ef411..d448f41 100644 --- a/src/wreadln.h +++ b/src/wreadln.h @@ -26,13 +26,20 @@ 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! */ gchar *wreadln(WINDOW *w, /* the curses window to use */ - gchar *prompt, /* the prompt string or NULL */ - gchar *initial_value, /* initial value or NULL for a empty line + const gchar *prompt, /* the prompt string or NULL */ + const gchar *initial_value, /* initial value or NULL for a empty line * (char *) -1 = get value from history */ gint x1, /* the maximum x position or 0 */ GList **history, /* a pointer to a history list or NULL */ GCompletion *gcmp /* a GCompletion structure or NULL */ ); +gchar * +wreadln_masked(WINDOW *w, + const gchar *prompt, + const gchar *initial_value, + gint x1, + GList **history, + GCompletion *gcmp); #endif