- 05 Jan, 2009 1 commit
-
-
Max Kellermann authored
AC_CHECK_HEADERS defines HAVE_LOCALE_H, so we don't have to manually define HAVE_LOCALE.
-
- 04 Jan, 2009 3 commits
-
-
Max Kellermann authored
Make db_load(), db_save() and db_check() return bool instead of int.
-
Max Kellermann authored
For updating the database, directory_update_init() should be called explicitly.
-
Max Kellermann authored
Start the daemon after --create-db. This makes --create-db a flag which discards the old database and starts with a fresh one.
-
- 03 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 02 Jan, 2009 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
There is only one location using PIPE_EVENT_SIGNAL: to synchronize player_command() with player_command_finished(). Use the "notify" library instead of the event_pipe here.
-
- 01 Jan, 2009 3 commits
-
-
Max Kellermann authored
Make the event_pipe (formerly main_notify) send/receive a set of events, with a callback for each one. The default event PIPE_EVENT_SIGNAL does not have a callback. It is still there for waking up the main thread, when it is waiting for the player thread.
-
Max Kellermann authored
Continuing the previous patch.
-
Max Kellermann authored
We are going to migrate away from the concept of notifying the main thread. There should be events sent to it instead. This patch starts a series to implement that.
-
- 31 Dec, 2008 2 commits
-
-
Viliam Mateicka authored
-
Max Kellermann authored
With the GLib main loop, the client manager can install its own event in case a client is expired. No need for main.c to call client_manager_expire() manually.
-
- 30 Dec, 2008 4 commits
-
-
Max Kellermann authored
Other libraries may need to access the main_loop reference, to add or remove events, or to call g_main_loop_quit().
-
Max Kellermann authored
This is a rather huge patch, which unfortunately cannot be splitted. Instead of using our custom ioops.h library, convert everything to use the GLib main loop.
-
Max Kellermann authored
redirect_stdin() is a daemonization function, and disconnecting from the standard input is always a good idea for MPD.
-
Max Kellermann authored
-
- 29 Dec, 2008 4 commits
-
-
Max Kellermann authored
Disable changeToUser(), daemonize(), killFromPidFile().
-
Max Kellermann authored
Removed the fallback setenv() implementation for solaris.
-
Max Kellermann authored
-
Max Kellermann authored
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
-
- 28 Dec, 2008 5 commits
-
-
Thomas Jansen authored
-
Thomas Jansen authored
-
Thomas Jansen authored
-
Thomas Jansen authored
-
Max Kellermann authored
The logging library currently has 3 constructor functions: initLog(), open_log_files(), setup_log_output(), called in this order. Merged the first two.
-
- 27 Dec, 2008 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
When there are no archive plugins, we do not need the archive API at all. Drop all its overhead.
-
- 16 Dec, 2008 1 commit
-
-
Viliam Mateicka authored
-
- 27 Nov, 2008 1 commit
-
-
Max Kellermann authored
Those two functions are called when MPD starts and exits. It allows the update library to perform global initialization and deinitialization. The implementations are currently empty.
-
- 25 Nov, 2008 1 commit
-
-
Max Kellermann authored
Make valgrind happier.
-
- 21 Nov, 2008 1 commit
-
-
Max Kellermann authored
When MPD quits in a non-clean way, the state file isn't written, and on the next start, MPD time warps to the previous clean shutdown. Save the state file every 5 minutes; this will probably be configurable at a later time. Note that we don't set a wakeup timer for that: when there is no MPD traffic, MPD won't wake up to save the state file. This minor bug is tolerated, because usually there is no change in MPD's state when the main thread is idle.
-
- 11 Nov, 2008 2 commits
-
-
Max Kellermann authored
Renamed functions and variables.
-
Max Kellermann authored
No CamelCase file names.
-
- 05 Nov, 2008 6 commits
-
-
Max Kellermann authored
Using the logging library here is inappropriate.
-
Max Kellermann authored
The warning buffer is a complex piece of code for no good reason. Remove it and find a better solution, e.g. open the log file earlier.
-
Max Kellermann authored
Initialize libc's locale functions. Currently, we are only interested in LC_CTYPE (character classification), because this is what is used by GLib's g_get_charset().
-
Max Kellermann authored
Rename variables and functions.
-
Max Kellermann authored
Call g_thread_init() from main() to enable the GLib features which make it thread safe.
-
Max Kellermann authored
Removed closeAllFDs(). The caller is responsible for closing all file handles.
-
- 02 Nov, 2008 1 commit
-
-
Max Kellermann authored
Rename all functions to the new prefix.
-