ncmpc  0.29
options.h
Go to the documentation of this file.
1 /* ncmpc (Ncurses MPD Client)
2  * (c) 2004-2017 The Music Player Daemon Project
3  * Project homepage: http://musicpd.org
4  *
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.
9  *
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.
14  *
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.
18  */
19 
20 #ifndef OPTIONS_H
21 #define OPTIONS_H
22 
23 #include "config.h"
24 
25 #include <stdbool.h>
26 #include <glib.h>
27 
28 typedef struct {
29  char *host;
30  char *username;
31  char *password;
32  char *config_file;
33  char *key_file;
34  char *list_format;
37 #ifndef NCMPC_MINI
39  char *scroll_sep;
40 #endif
41  char **screen_list;
43  int port;
48  int seek_time;
49 #ifdef ENABLE_LYRICS_SCREEN
50  int lyrics_timeout;
51  bool lyrics_autosave;
52  bool lyrics_show_plugin;
53  char *text_editor;
54  bool text_editor_ask;
55 #endif
56 #ifdef ENABLE_CHAT_SCREEN
57  char *chat_prefix;
58 #endif
59  bool find_wrap;
61  bool list_wrap;
66 
67 #ifdef ENABLE_COLORS
68  bool enable_colors;
69 #endif
74 #ifndef NCMPC_MINI
76 #endif
77 #ifdef HAVE_GETMOUSE
78  bool enable_mouse;
79 #endif
80 #ifndef NCMPC_MINI
81  bool scroll;
86 #endif
87 } options_t;
88 
89 extern options_t options;
90 
91 void options_init(void);
92 void options_deinit(void);
93 
94 void options_parse(int argc, const char **argv);
95 
96 #endif
bool auto_center
Definition: options.h:63
bool find_wrap
Definition: options.h:59
Definition: options.h:28
bool welcome_screen_list
Definition: options.h:83
int scroll_offset
Definition: options.h:62
int timeout_ms
Definition: options.h:44
int seek_time
Definition: options.h:48
bool enable_xterm_title
Definition: options.h:75
char * config_file
Definition: options.h:32
bool display_remaining_time
Definition: options.h:42
char ** screen_list
Definition: options.h:41
char * list_format
Definition: options.h:34
bool audible_bell
Definition: options.h:70
void options_init(void)
bool bell_on_wrap
Definition: options.h:72
int hide_cursor
Definition: options.h:47
bool find_show_last_pattern
Definition: options.h:60
int crossfade_time
Definition: options.h:45
char * password
Definition: options.h:31
char * key_file
Definition: options.h:33
bool second_column
Definition: options.h:85
bool hardware_cursor
Definition: options.h:65
options_t options
GTime status_message_time
Definition: options.h:73
char * status_format
Definition: options.h:36
char * scroll_sep
Definition: options.h:39
bool jump_prefix_only
Definition: options.h:84
char * xterm_title_format
Definition: options.h:38
bool visible_bitrate
Definition: options.h:82
void options_parse(int argc, const char **argv)
char * host
Definition: options.h:29
void options_deinit(void)
int port
Definition: options.h:43
bool visible_bell
Definition: options.h:71
bool scroll
Definition: options.h:81
bool wide_cursor
Definition: options.h:64
bool list_wrap
Definition: options.h:61
char * search_format
Definition: options.h:35
int search_mode
Definition: options.h:46
char * username
Definition: options.h:30