X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Foptions.h;h=fc9f7a1e1c99682f4f7099568b3fe94dc2d2f883;hb=549fcb39eb7d3d229550af78b03b53cfcad299b8;hp=a0c90bf21fa70220399bdf73d3e8b69e6c66f359;hpb=7ab9b9714f8710c4498c3296eed6e8a91eb67c65;p=ncmpc.git diff --git a/src/options.h b/src/options.h index a0c90bf..fc9f7a1 100644 --- a/src/options.h +++ b/src/options.h @@ -1,6 +1,6 @@ -/* - * (c) 2004-2008 The Music Player Daemon Project - * http://www.musicpd.org/ +/* ncmpc (Ncurses MPD Client) + * (c) 2004-2010 The Music Player Daemon Project + * Project homepage: http://musicpd.org * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -11,10 +11,10 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef OPTIONS_H @@ -23,9 +23,7 @@ #include "config.h" #include - -#define MPD_HOST_ENV "MPD_HOST" -#define MPD_PORT_ENV "MPD_PORT" +#include typedef struct { char *host; @@ -40,7 +38,7 @@ typedef struct { char *scroll_sep; #endif char **screen_list; - char *timedisplay_type; + bool display_remaining_time; int port; int crossfade_time; int search_mode; @@ -48,17 +46,25 @@ typedef struct { int seek_time; #ifdef ENABLE_LYRICS_SCREEN int lyrics_timeout; + bool lyrics_autosave; + bool lyrics_show_plugin; + char *text_editor; #endif bool find_wrap; bool find_show_last_pattern; bool list_wrap; + int scroll_offset; bool auto_center; bool wide_cursor; + bool hardware_cursor; + #ifdef ENABLE_COLORS bool enable_colors; #endif bool audible_bell; bool visible_bell; + bool bell_on_wrap; + GTime status_message_time; #ifndef NCMPC_MINI bool enable_xterm_title; #endif @@ -69,12 +75,17 @@ typedef struct { bool scroll; bool visible_bitrate; bool welcome_screen_list; + bool display_time; + bool jump_prefix_only; + bool second_column; #endif } options_t; extern options_t options; void options_init(void); +void options_deinit(void); + void options_parse(int argc, const char **argv); #endif