main: remove useless "Connected to ..." message
[ncmpc.git] / src / options.h
blob74dfd4284657a31d3066742ea040c69b6b17d823
1 /* ncmpc (Ncurses MPD Client)
2 * (c) 2004-2010 The Music Player Daemon Project
3 * Project homepage: http://musicpd.org
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef OPTIONS_H
21 #define OPTIONS_H
23 #include "config.h"
25 #include <stdbool.h>
26 #include <glib.h>
28 typedef struct {
29 char *host;
30 char *username;
31 char *password;
32 char *config_file;
33 char *key_file;
34 char *list_format;
35 char *status_format;
36 #ifndef NCMPC_MINI
37 char *xterm_title_format;
38 char *scroll_sep;
39 #endif
40 char **screen_list;
41 bool display_remaining_time;
42 int port;
43 int timeout_ms;
44 int crossfade_time;
45 int search_mode;
46 int hide_cursor;
47 int seek_time;
48 #ifdef ENABLE_LYRICS_SCREEN
49 int lyrics_timeout;
50 bool lyrics_autosave;
51 bool lyrics_show_plugin;
52 char *text_editor;
53 bool text_editor_ask;
54 #endif
55 #ifdef ENABLE_CHAT_SCREEN
56 char *chat_prefix;
57 #endif
58 bool find_wrap;
59 bool find_show_last_pattern;
60 bool list_wrap;
61 int scroll_offset;
62 bool auto_center;
63 bool wide_cursor;
64 bool hardware_cursor;
66 #ifdef ENABLE_COLORS
67 bool enable_colors;
68 #endif
69 bool audible_bell;
70 bool visible_bell;
71 bool bell_on_wrap;
72 GTime status_message_time;
73 #ifndef NCMPC_MINI
74 bool enable_xterm_title;
75 #endif
76 #ifdef HAVE_GETMOUSE
77 bool enable_mouse;
78 #endif
79 #ifndef NCMPC_MINI
80 bool scroll;
81 bool visible_bitrate;
82 bool welcome_screen_list;
83 bool display_time;
84 bool jump_prefix_only;
85 bool second_column;
86 #endif
87 } options_t;
89 extern options_t options;
91 void options_init(void);
92 void options_deinit(void);
94 void options_parse(int argc, const char **argv);
96 #endif