Code

options: initialize options.list_format
[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 /* mpd crossfade time [s] */
24 #define DEFAULT_CROSSFADE_TIME 10
26 /* welcome message time [s] */
27 #define SCREEN_WELCOME_TIME 10
29 /* screen list */
30 #define DEFAULT_SCREEN_LIST "playlist browse"
32 /* status message time [s] */
33 #define SCREEN_STATUS_MESSAGE_TIME 3
35 /* getch() timeout for non blocking read [ms] */
36 #define SCREEN_TIMEOUT 500
38 /* minumum window size */
39 #define SCREEN_MIN_COLS 14
40 #define SCREEN_MIN_ROWS  5
42 /* time between mpd updates [s] */
43 #define MPD_UPDATE_TIME 0.5
45 /* time before trying to reconnect [ms] */
46 #define MPD_RECONNECT_TIME  1500
48 /* song format - list window */
49 #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
50 #define LIST_FORMAT options.list_format
52 /* song format - status window */
53 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
54 #define STATUS_FORMAT options.status_format
56 #define DEFAULT_LYRICS_TIMEOUT 100
58 #define DEFAULT_SCROLL TRUE
59 #define DEFAULT_SCROLL_SEP " *** "
61 void
62 sigstop(void);
64 #endif /* NCMPC_H */