Code

include cleanup
[ncmpc.git] / src / screen_utils.h
1 #ifndef SCREEN_UTILS_H
2 #define SCREEN_UTILS_H
4 #include "screen.h"
5 #include "list_window.h"
6 #include "mpdclient.h"
7 #include "command.h"
9 #include <ncurses.h>
11 /* sound an audible and/or visible bell */
12 void screen_bell(void);
14 /* read a characher from the status window */
15 int screen_getch(WINDOW *w, const char *prompt);
17 /* read a string from the status window */
18 char *screen_getstr(WINDOW *w, const char *prompt);
19 char *screen_readln(WINDOW *w, const char *prompt, const char *value,
20                     GList **history, GCompletion *gcmp);
21 char *screen_readln_masked(WINDOW *w, const char *prompt);
22 char *screen_read_pasword(WINDOW *w, const char *prompt);
23 /* query user for a string and find it in a list window */
24 int screen_find(screen_t *screen,
25                 list_window_t *lw,
26                 int rows,
27                 command_t findcmd,
28                 list_window_callback_fn_t callback_fn,
29                 void *callback_data);
31 gint screen_auth(mpdclient_t *c);
33 void screen_display_completion_list(screen_t *screen, GList *list);
35 void set_xterm_title(const char *format, ...);
37 #endif