Code

6bbb745fbbcee19bb081d67a8c3a6dca464b3b20
[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 #define D(x, args...) fprintf(stderr, x,  ##args)
10 #else
11 #define D(x,...)
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 /* welcome message time [s] */
27 #define SCREEN_WELCOME_TIME 10
29 /* getch() timeout for non blocking read [ms] */
30 #define SCREEN_TIMEOUT 500
32 /* time in seconds between mpd updates (double) */
33 #define MPD_UPDATE_TIME        0.5
35 /* time in milliseconds before trying to reconnect (int) */
36 #define MPD_RECONNECT_TIME  1000
38 /* song format - list window */
39 #define LIST_FORMAT "%name%|[%artist% - ]%title%|%file%"
41 /* song format - status window */
42 #define STATUS_FORMAT "[%artist% - ]%title%|%basename%"
44 #endif /* NCMPC_H */