Code

configure.ac: remove misplaced comma
[ncmpc.git] / src / screen_utils.h
1 #ifndef SCREEN_UTILS_H
2 #define SCREEN_UTILS_H
4 #include "config.h"
5 #include "list_window.h"
6 #include "command.h"
8 #ifdef HAVE_NCURSESW_NCURSES_H
9 #include <ncursesw/ncurses.h>
10 #else
11 #include <ncurses.h>
12 #endif
14 struct mpdclient;
16 /* sound an audible and/or visible bell */
17 void screen_bell(void);
19 /* read a characher from the status window */
20 int screen_getch(WINDOW *w, const char *prompt);
22 /* read a string from the status window */
23 char *screen_getstr(WINDOW *w, const char *prompt);
24 char *screen_readln(WINDOW *w, const char *prompt, const char *value,
25                     GList **history, GCompletion *gcmp);
26 char *screen_readln_masked(WINDOW *w, const char *prompt);
27 char *screen_read_pasword(WINDOW *w, const char *prompt);
28 /* query user for a string and find it in a list window */
29 int screen_find(struct list_window *lw,
30                 int rows,
31                 command_t findcmd,
32                 list_window_callback_fn_t callback_fn,
33                 void *callback_data);
35 gint screen_auth(struct mpdclient *c);
37 void screen_display_completion_list(GList *list);
39 void set_xterm_title(const char *format, ...);
41 #endif