Code

moved default value macros to defaults.h
[ncmpc.git] / src / ncmpc.h
1 #ifndef NCMPC_H
2 #define NCMPC_H
4 #ifndef PACKAGE
5 #include "config.h"
6 #endif
8 /* i18n */
9 #ifdef HAVE_LOCALE_H
10 #include <locale.h>
11 #endif
12 #ifdef ENABLE_NLS
13 #include <libintl.h>
14 #include <glib/gi18n.h>
15 #else
16 #define  _(x) x
17 #define N_(x) x
18 #endif
20 #define YES   _("y")
21 #define NO    _("n")
23 /* welcome message time [s] */
24 #define SCREEN_WELCOME_TIME 10
26 /* status message time [s] */
27 #define SCREEN_STATUS_MESSAGE_TIME 3
29 /* getch() timeout for non blocking read [ms] */
30 #define SCREEN_TIMEOUT 500
32 /* minumum window size */
33 #define SCREEN_MIN_COLS 14
34 #define SCREEN_MIN_ROWS  5
36 /* time between mpd updates [s] */
37 #define MPD_UPDATE_TIME 0.5
39 /* time before trying to reconnect [ms] */
40 #define MPD_RECONNECT_TIME  1500
42 #define LIST_FORMAT options.list_format
44 #define STATUS_FORMAT options.status_format
46 void
47 sigstop(void);
49 #endif /* NCMPC_H */