aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/ConfigFile.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-22ConfigFile: fix typo (parser breakage)Max Kellermann1-2/+2
2015-01-21config/Param: split block-specific attributes to new struct ConfigBlockMax Kellermann1-52/+87
The old struct config_param remains only for top-level string options.
2015-01-21config/File: move code to ReadConfigParam()Max Kellermann1-73/+82
2015-01-21fs/io/BufferedReader: count line numbersMax Kellermann1-24/+26
Replaces the dirty code in config/ConfigFile.cxx.
2015-01-21config/File: use FileReader/BufferedReader instead of stdioMax Kellermann1-28/+21
2015-01-21config/Option: convert to strictly-typed enumMax Kellermann1-1/+1
2015-01-21ConfigFile: convert macros to constexprMax Kellermann1-2/+2
2015-01-21ConfigData: rename header fileMax Kellermann1-1/+1
2015-01-21ConfigData: move struct config_param to Param.hxxMax Kellermann1-0/+1
2015-01-21ConfigData: rename struct block_param to BlockParamMax Kellermann1-1/+1
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-08-07util/StringUtil: rename strchug_fast() to StripLeft()Max Kellermann1-4/+4
2014-01-24Config*: move to config/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-3/+0
2013-10-19*: use nullptr instead of NULLMax Kellermann1-9/+9
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann1-1/+1
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-17fs/Path: move MPD_PATH_MAX to Limits.hxxMax Kellermann1-0/+1
2013-10-02Log: new logging library APIMax Kellermann1-6/+2
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+0
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-04util/Error: new error passing libraryMax Kellermann1-59/+50
Replaces GLib's GError.
2013-04-09string_util: convert to C++Max Kellermann1-5/+1
2013-04-08tokenizer: convert to C++Max Kellermann1-13/+17
2013-02-02ConfigFile.cxx: use FOpenModeDenis Krjuchkov1-1/+1
2013-01-30ConfigData: use simple linked list instead of GSListMax Kellermann1-5/+18
2013-01-30ConfigData: move functions into the classMax Kellermann1-2/+2
2013-01-30ConfigData: add constructors/destructorsMax Kellermann1-5/+5
2013-01-30conf.h: move the GQuark to ConfigQuark.hxxMax Kellermann1-0/+1
2013-01-30ConfigFile: simplify error cleanupMax Kellermann1-23/+24
2013-01-30ConfigFile: move code to ConfigGlobal.cxxMax Kellermann1-161/+4
2013-01-30ConfigFile: add struct ConfigDataMax Kellermann1-9/+8
2013-01-30conf: move struct definitions to ConfigData.hxxMax Kellermann1-166/+1
2013-01-30ConfigFile: add enum ConfigOptionMax Kellermann1-26/+22
Look up top-level config options by enum (= integer), not by name string.
2013-01-30ConfigOption: rename to ConfigTemplateMax Kellermann1-3/+3
2013-01-30ConfigFile: move code to ConfigOptions.cxxMax Kellermann1-73/+1
2013-01-30ConfigFile: split config_entryMax Kellermann1-39/+27
The new struct ConfigOption is the compile-time description, and the global array "config_params" contains the actual values.
2013-01-29ConfigFile, CommandLine: use the Path classMax Kellermann1-4/+8
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-17path: convert to C++Max Kellermann1-1/+1
2013-01-10conf: convert to C++Max Kellermann1-63/+73
2012-08-08conf: add a "database" blockMax Kellermann1-0/+1
The new block overrides the "db_file" setting, and allows configuring any database plugin.
2012-07-10require GLib 2.16Max Kellermann1-1/+0
GLib 2.16 was released more than 4 years ago. Let's remove some cruft from the glib_compat.h header, and avoid new cruft to it.
2012-03-06use g_strerror() instead of strerror()Max Kellermann1-1/+1
Make sure we get a UTF-8 encoded string.
2011-09-09conf: export config_param_free()Max Kellermann1-1/+1
2011-09-09conf: _get_next_param() returns a const pointerMax Kellermann1-1/+1
No writers.
2011-09-09conf: add config_dup_block_path()Max Kellermann1-0/+20
2011-09-09utils: parsePath() returns GError on failureMax Kellermann1-4/+4
Better error messages.
2011-09-09conf: turn config_get_path() into config_dup_path()Max Kellermann1-10/+11
config_get_path() was somewhat flawed, because it pretended to be a function, when it really had a side effect. The second flaw was that it did not return the parser error, instead it aborted the whole process, which is bad style. The new function returns a duplicated (modified) string that must be freed by the caller, and returns a GError on failure.
2011-09-09conf: get_block_param() returns a const pointerMax Kellermann1-4/+4
No caller needs to write.
2011-09-09conf: move duplicate check to _read_name_value()Max Kellermann1-14/+13
config_add_block_param() cannot fail, which makes it easier to use.