Code

Use my_wgetch() instead of wgetch(), added --[no-]mouse option
[ncmpc.git] / src / ncmpc.h
1 #ifndef NCMPC_H
2 #define NCMPC_H
4 #ifndef PACKAGE
5 #include "config.h"
6 #endif
8 #ifdef DEBUG
9 void D(char *format, ...);
10 #else
11 #define D(...)
12 #endif
14 /* i18n */
15 #ifdef HAVE_LOCALE_H
16 #include <locale.h>
17 #endif
18 #ifdef ENABLE_NLS
19 #include <libintl.h>
20 #include <glib/gi18n.h>
21 #else
22 #define  _(x) x
23 #define N_(x) x
24 #endif
26 #define YES   _("y")
27 #define NO    _("n")
29 /* welcome message time [s] */
30 #define SCREEN_WELCOME_TIME 10
32 /* getch() timeout for non blocking read [ms] */
33 #define SCREEN_TIMEOUT 500
35 /* time in seconds between mpd updates (double) */
36 #define MPD_UPDATE_TIME        0.5
38 /* time in milliseconds before trying to reconnect (int) */
39 #define MPD_RECONNECT_TIME  1500
41 /* song format - list window */
42 #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
43 #define LIST_FORMAT (options.list_format ? options.list_format : \
44                                            DEFAULT_LIST_FORMAT)
46 /* song format - status window */
47 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
48 #define STATUS_FORMAT (options.status_format ? options.status_format : \
49                                                DEFAULT_STATUS_FORMAT)
51 #endif /* NCMPC_H */