Code

fix function prototypes
[ncmpc.git] / src / ncmpc.h
1 #ifndef NCMPC_H
2 #define NCMPC_H
4 #ifndef PACKAGE
5 #include "config.h"
6 #endif
8 #ifndef DISABLE_ARTIST_SCREEN
9 #define ENABLE_ARTIST_SCREEN 1
10 #endif
11 #ifndef DISABLE_SEARCH_SCREEN
12 #define ENABLE_SEARCH_SCREEN 1
13 #endif
14 #ifndef DISABLE_KEYDEF_SCREEN
15 #define ENABLE_KEYDEF_SCREEN 1
16 #endif
17 #ifndef DISABLE_CLOCK_SCREEN
18 #define ENABLE_CLOCK_SCREEN 1
19 #endif
20 #ifndef DISABLE_LYRICS_SCREEN
21 #define ENABLE_LYRICS_SCREEN 1
22 #endif
24 #ifndef NDEBUG
25 void D(const char *format, ...);
26 #else
27 #define D(...)
28 #endif
30 /* i18n */
31 #ifdef HAVE_LOCALE_H
32 #include <locale.h>
33 #endif
34 #ifdef ENABLE_NLS
35 #include <libintl.h>
36 #include <glib/gi18n.h>
37 #else
38 #define  _(x) x
39 #define N_(x) x
40 #endif
42 #define YES   _("y")
43 #define NO    _("n")
45 /* mpd crossfade time [s] */
46 #define DEFAULT_CROSSFADE_TIME 10
48 /* welcome message time [s] */
49 #define SCREEN_WELCOME_TIME 10
51 /* screen list */
52 #define DEFAULT_SCREEN_LIST "playlist browse"
54 /* status message time [s] */
55 #define SCREEN_STATUS_MESSAGE_TIME 3
57 /* getch() timeout for non blocking read [ms] */
58 #define SCREEN_TIMEOUT 500
60 /* minumum window size */
61 #define SCREEN_MIN_COLS 14
62 #define SCREEN_MIN_ROWS  5
64 /* time between mpd updates [s] */
65 #define MPD_UPDATE_TIME 0.5
67 /* time before trying to reconnect [ms] */
68 #define MPD_RECONNECT_TIME  1500
70 /* song format - list window */
71 #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
72 #define LIST_FORMAT (options.list_format ? options.list_format : \
73                                            DEFAULT_LIST_FORMAT)
75 /* song format - status window */
76 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
77 #define STATUS_FORMAT (options.status_format ? options.status_format : \
78                                                DEFAULT_STATUS_FORMAT)
79                                                                                            
80 #define DEFAULT_LYRICS_TIMEOUT 100
82 #define DEFAULT_SCROLL TRUE
83 #define DEFAULT_SCROLL_SEP " *** "
85 void
86 sigstop(void);
88 #endif /* NCMPC_H */