Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-01-01 | Copyright year 2015 | Max Kellermann | 1 | -1/+1 | |
2014-12-17 | LogInit: make stderr line-buffered | Max Kellermann | 1 | -0/+3 | |
Make sure everything gets logged right away. No delays because stdio's buffer is not yet full. | |||||
2014-04-25 | LogInit: fix file descriptor leak in SIGHUP handler | Max Kellermann | 1 | -0/+2 | |
2014-02-22 | LogBackend: use __android_log_print() on Android | Max Kellermann | 1 | -1/+30 | |
2014-02-18 | LogInit: disable SetLogCharset() without GLib | Max Kellermann | 1 | -0/+2 | |
2014-01-24 | Config*: move to config/ | Max Kellermann | 1 | -3/+3 | |
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2013-12-15 | configure.ac: add option "--disable-glib" | Max Kellermann | 1 | -1/+6 | |
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core. | |||||
2013-12-15 | LogInit: move backend code to LogBackend.cxx | Max Kellermann | 1 | -167/+33 | |
2013-11-28 | include cleanup using iwyu | Max Kellermann | 1 | -6/+0 | |
2013-10-19 | *: use nullptr instead of NULL | Max Kellermann | 1 | -12/+13 | |
2013-10-19 | Util/CharUtil: new library replacing g_ascii_isX() | Max Kellermann | 1 | -1/+2 | |
2013-10-17 | fs/Path: rename to AllocatedPath | Max Kellermann | 1 | -3/+3 | |
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-15 | ConfigData: use std::string for config_param::value | Max Kellermann | 1 | -2/+3 | |
2013-10-02 | Log: new logging library API | Max Kellermann | 1 | -7/+6 | |
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. | |||||
2013-09-05 | mpd_error.h: remove obsolete header | Max Kellermann | 1 | -3/+3 | |
Migrate the remaining callers to FatalError(). | |||||
2013-09-05 | conf.h: remove obsolete header | Max Kellermann | 1 | -1/+3 | |
Use only ConfigData.hxx in plugin sources to reduce header dependencies. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -18/+21 | |
Replaces GLib's GError. | |||||
2013-08-07 | ConfigPath: return a Path object | Max Kellermann | 1 | -14/+20 | |
Migrate all callers to use Path directly, instead of doing the conversion in each caller. | |||||
2013-08-07 | Makefile.am: move sources to libsystem.a | Max Kellermann | 1 | -2/+2 | |
2013-08-07 | FatalError: new library to replace mpd_error.h | Max Kellermann | 1 | -2/+3 | |
2013-08-04 | *: use gcc.h macros instead of GLib | Max Kellermann | 1 | -2/+2 | |
2013-01-30 | ConfigFile: add enum ConfigOption | Max Kellermann | 1 | -2/+1 | |
Look up top-level config options by enum (= integer), not by name string. | |||||
2013-01-10 | Log, ...: include cleanup | Max Kellermann | 1 | -1/+0 | |
2013-01-09 | sig_handlers, log: convert to C++ | Max Kellermann | 1 | -2/+2 | |
2012-08-14 | log: store duplicated path string | Max Kellermann | 1 | -28/+28 | |
Don't free the string right after calling log_init_file(). Add a new function log_deinit() that frees the string on shutdown. This fixes cycling the log file after SIGHUP (Mantis ticket 0003524). | |||||
2011-11-28 | log: print reason for failure | Max Kellermann | 1 | -2/+2 | |
2011-09-09 | conf: turn config_get_path() into config_dup_path() | Max Kellermann | 1 | -4/+12 | |
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-09 | log: print detailed errno message on open() failure | Max Kellermann | 1 | -2/+2 | |
2011-09-09 | log: return GError on initialization failure | Max Kellermann | 1 | -9/+19 | |
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2010-09-25 | eliminate g_error() usage | Thomas Jansen | 1 | -8/+9 | |
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007. | |||||
2010-05-08 | log: /dev/null doesn't exist on win32. | Avuton Olrich | 1 | -0/+2 | |
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-11-12 | include config.h in all sources | Max Kellermann | 1 | -1/+1 | |
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue. | |||||
2009-11-10 | fd_util: removed creat_cloexec() | Max Kellermann | 1 | -1/+1 | |
Add a "mode" argument to open_cloexec() instead. | |||||
2009-11-07 | set the close-on-exec flag on all file descriptors | Max Kellermann | 1 | -1/+2 | |
Added the "fd_util" library, which attempts to use the new thread-safe Linux system calls pipe2(), accept4() and the options O_CLOEXEC, SOCK_CLOEXEC. Without these, it falls back to FD_CLOEXEC, which is not thread safe. This is particularly important for the "pipe" output plugin (and others, such as JACK/PulseAudio), because we were heavily leaking file descriptors to child processes. | |||||
2009-11-07 | log: redirect stdout/stderr to /dev/null if syslog is used | Max Kellermann | 1 | -1/+4 | |
Don't hold a file descriptor on root's tty when syslog is used for logging. | |||||
2009-07-05 | log: fix double free() bug during shutdown | Max Kellermann | 1 | -6/+2 | |
Don't free an internal configuration value in log_init(). Call config_get_path() instead of manually calling parsePath(). | |||||
2009-04-10 | log: removed "unused" attribute from log_level parameter | Max Kellermann | 1 | -1/+1 | |
2009-03-15 | log: removed DEBUG() and FATAL() | Max Kellermann | 1 | -24/+0 | |
Use GLib the logging functions g_debug(), g_error() instead. | |||||
2009-03-13 | all: Update copyright header. | Avuton Olrich | 1 | -6/+7 | |
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy. | |||||
2009-02-19 | added G_LOG_DOMAIN macros to several libraries | Max Kellermann | 1 | -0/+3 | |
Define the GLib logging domain in the following libraries: conf, daemon, event_pipe, log. | |||||
2009-02-19 | log: added log_early_init() for early debug messages | Max Kellermann | 1 | -0/+9 | |
2009-01-25 | conf: const pointers in block get functions | Max Kellermann | 1 | -3/+2 | |
All config_get_block_*() functions should accept constant config_param pointers. | |||||
2009-01-17 | conf: no CamelCase, part I | Max Kellermann | 1 | -3/+3 | |
Renamed functions, types, variables. | |||||
2009-01-15 | log, pcm_convert: added return statements after g_error() | Max Kellermann | 1 | -1/+3 | |
gcc doesn't know that g_error() never returns. Work around the gcc warning. | |||||
2009-01-03 | log: don't call closelog() on !HAVE_SYSLOG | Max Kellermann | 1 | -0/+2 | |
2008-12-29 | log: removed unused logging wrappers | Max Kellermann | 1 | -4/+0 | |
Removed GLib logging wrappers which are not used anymore. | |||||
2008-12-29 | log: automatically append newline | Max Kellermann | 1 | -4/+19 | |
If a log message does not include a newline character, append it. |