Code

64160531f2f310aa9f75c7448162d52476ea2ca9
[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 #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%|%file%"
43 #define LIST_FORMAT (options.list_format ? options.list_format : DEFAULT_LIST_FORMAT)
45 /* song format - status window */
46 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%basename%"
47 #define STATUS_FORMAT (options.status_format ? options.status_format : DEFAULT_STATUS_FORMAT)
49 #endif /* NCMPC_H */