Code

screen_browser: added browser_cmd()
[ncmpc.git] / src / ncmpc.h
1 #ifndef NCMPC_H
2 #define NCMPC_H
4 #ifndef PACKAGE
5 #include "config.h"
6 #endif
8 #ifndef NDEBUG
9 void D(const 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 /* mpd crossfade time [s] */
30 #define DEFAULT_CROSSFADE_TIME 10
32 /* welcome message time [s] */
33 #define SCREEN_WELCOME_TIME 10
35 /* screen list */
36 #define DEFAULT_SCREEN_LIST "playlist browse"
38 /* status message time [s] */
39 #define SCREEN_STATUS_MESSAGE_TIME 3
41 /* getch() timeout for non blocking read [ms] */
42 #define SCREEN_TIMEOUT 500
44 /* minumum window size */
45 #define SCREEN_MIN_COLS 14
46 #define SCREEN_MIN_ROWS  5
48 /* time between mpd updates [s] */
49 #define MPD_UPDATE_TIME 0.5
51 /* time before trying to reconnect [ms] */
52 #define MPD_RECONNECT_TIME  1500
54 /* song format - list window */
55 #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
56 #define LIST_FORMAT (options.list_format ? options.list_format : \
57                                            DEFAULT_LIST_FORMAT)
59 /* song format - status window */
60 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
61 #define STATUS_FORMAT (options.status_format ? options.status_format : \
62                                                DEFAULT_STATUS_FORMAT)
63                                                                                            
64 #define DEFAULT_LYRICS_TIMEOUT 100
66 #define DEFAULT_SCROLL TRUE
67 #define DEFAULT_SCROLL_SEP " *** "
69 void
70 sigstop(void);
72 #endif /* NCMPC_H */