aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* added comments for translatorsMax Kellermann2008-12-251-0/+11
| | | | Give translators hints about the meaning of some difficult messages.
* conf: improved error messagesMax Kellermann2008-12-251-10/+8
|
* conf: simplified parse_key_value()Max Kellermann2008-12-251-68/+14
| | | | | | Removed the state machine stuff, and use strtol() if the first character is not a single quote. strtol() will do the error checking.
* conf: don't pass length to parse_key_value()Max Kellermann2008-12-251-10/+7
| | | | We have a null-terminated string, no need to pass the length around.
* conf: optimized parse_color() with strchr()Max Kellermann2008-12-251-56/+62
| | | | The same for parse_color_definition(). Use strtol() directly there.
* conf: use GLib's string stripping functionsMax Kellermann2008-12-251-23/+3
|
* conf: use buffered I/O for reading the config fileMax Kellermann2008-12-251-16/+7
| | | | | Don't read byte by byte until a newline is found. Use fgets() instead.
* conf: don't free filename in read_rc_file()Max Kellermann2008-12-251-6/+0
| | | | The code was unused, because free_filename was always 0.
* conf: moved code to parse_line()Max Kellermann2008-12-251-134/+141
|
* conf: simplified translation stringsMax Kellermann2008-12-251-21/+23
| | | | | Removed the "Error: " prefix and the newline. Separated the format string.
* options: don't store disabled optionsMax Kellermann2008-11-071-0/+8
| | | | | Options which are disabled at compile time shouldn't reserve space for their values in the options struct.
* options: don't pass the "options" pointer aroundMax Kellermann2008-10-031-42/+41
| | | | | Just make everybody use the global "options" variable. This eliminates namespace confusion and the NO_GLOBAL_OPTIONS hack.
* colors: make color support optional at compile timeMax Kellermann2008-10-031-0/+14
| | | | | Default is colors disabled. Those who love colorful terminals have the option to enable it with --enable-colors.
* code style, indent with tabs XIMax Kellermann2008-10-031-359/+284
| | | | Follow the same code style als MPD itself.
* use g_ascii_isspace() instead of IS_WHITESPACE()Max Kellermann2008-10-031-11/+11
| | | | Don't duplicate code which is already provided by glib.
* use g_ascii_strdown() instead of the custom lowerstr()Max Kellermann2008-10-031-5/+6
| | | | Don't duplicate code which is already provided by glib.
* moved i18n macros to i18n.hMax Kellermann2008-10-021-1/+1
| | | | | Don't make everybody include ncmpc.h just to have generic features. Move generic i18n macros to a separate header.
* options: use stdboolMax Kellermann2008-10-021-5/+3
| | | | | Use the standard "bool" type instead of glib's "gboolean". This way, options.h doesn't have to include the fat glib.h.
* moved default value macros to defaults.hMax Kellermann2008-10-021-0/+1
| | | | | These macros are only used by options.c and conf.c. Move them to a common internal header.
* removed the debugging function D()Max Kellermann2008-10-021-7/+0
| | | | gdb is for debugging. We don't need D() calls littered all over.
* screen: pass screen_functions pointer to switch_screen_mode()Max Kellermann2008-09-251-5/+2
| | | | | Trying to get rid of the screen ids. A pointer to screen_functions is better for identifying a screen.
* added option "welcome-screen-list"David Shakaryan2008-09-221-0/+5
| | | | | "welcome-screen-list" shows the screen list in the top row shortly after startup, and is enabled by default.
* added optional bitrate display to status barJ. Alexander Treuman2008-09-211-0/+5
| | | | | If visible-bitrate is enabled, then the current bitrate will be drawn next to the song time in the status bar. By default it will not be displayed.
* don't declare local variable "options"Max Kellermann2008-09-151-0/+1
| | | | | | | | | In main.c, the global variable "options" is used all over, except in main(), which contains a shadowing declaration of it. Remove this local variable, and use the global "options" instead. Also don't pollute conf.c's namespace with the global variable with a CPP hack (to be removed when we have fixed more of ncmpc's namespace pollution).
* use size_t and unsigned integersMax Kellermann2008-09-151-5/+6
|
* fix shadow warningsMax Kellermann2008-09-151-5/+5
| | | | | Rename local variables and function parameters, so they don't shadow global variables.
* include cleanupMax Kellermann2008-09-151-10/+7
| | | | | | A header should include all headers which he needs. Move local includes on top, and let foo.c include foo.h in the first line, to automatically test its dependencies.
* const pointersMax Kellermann2008-09-151-4/+4
| | | | | Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
* code style, indent with tabsMax Kellermann2008-09-151-243/+228
| | | | | | | Follow the same code style als MPD itself. This patch only fixes parts of the code which are going to be touched in the following bunch of patches, i.e. there will be more "code style" patches in the future.
* splash: removed the useless splash screenMax Kellermann2008-09-151-9/+1
| | | | | The code looks strange and spews lots of warnings. Since it does nothing useful, and wastes the user's precious time, simply remove it.
* way too much stuff to describe hereAndreas Obergrusberger2007-02-161-0/+11
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* http://musicpd.org/mantis/view.php?id=1324Andreas Obergrusberger2006-09-091-1/+6
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4757 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* due to bensonk's demand i added a splash screen.Andreas Obergrusberger2006-09-071-1/+6
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4741 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* spelling fixes by avutonAndreas Obergrusberger2006-08-121-1/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4615 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* the updated sourcesAndreas Obergrusberger2006-08-041-3/+15
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4543 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* included patch from Jonathan ForsKalle Wallin2006-01-161-1/+20
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3832 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* New configuraton option: find-show-lastKalle Wallin2005-06-151-0/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3359 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* New configuraton option: screen-listKalle Wallin2005-06-151-1/+48
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3358 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* seek-time can now be defined in the conf fileKalle Wallin2005-06-031-0/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3308 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added a "hide cursor" feature #0000417Kalle Wallin2005-06-031-0/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3307 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added a search screenKalle Wallin2004-11-151-0/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2668 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Crossfade time can now be definied in the rc file (crossfade-time)Kalle Wallin2004-07-131-0/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1865 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Use my_wgetch() instead of wgetch(), added --[no-]mouse optionKalle Wallin2004-07-131-3/+3
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1864 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Mouse support is now optional (enable-mouse)Kalle Wallin2004-07-121-0/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1861 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Removed support for the old configuration syntaxKalle Wallin2004-07-121-83/+2
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1853 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Cleaned up the conf debug codeKalle Wallin2004-07-031-7/+2
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1781 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Made the xterm title dynamic, added configuration option xterm-title-formatKalle Wallin2004-06-241-0/+8
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1647 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added configuration option - set-xterm-titleKalle Wallin2004-06-241-1/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1644 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added options: audible-bell, visible-bell, wrap-around, find-wrapKalle Wallin2004-06-221-7/+30
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1611 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added list-format and status-format conf optionsKalle Wallin2004-06-151-12/+63
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1496 09075e82-0dd4-0310-85a5-a0d7c8717e4f