Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | event/IdleMonitor: new monitor class | Max Kellermann | 2013-08-10 | 3 | -0/+131 | |
| | | ||||||
* | | event/MultiSocketMonitor: add struct SingleFD | Max Kellermann | 2013-08-10 | 2 | -8/+32 | |
| | | | | | | | | Prepare for migrating away from GLib. | |||||
* | | event/MultiSocketMonitor: use uint64_t instead of gint64 | Max Kellermann | 2013-08-10 | 2 | -5/+6 | |
| | | | | | | | | Unsigned and portable. | |||||
* | | event/MultiSocketMonitor: eliminate virtual method CheckSockets() | Max Kellermann | 2013-08-10 | 3 | -36/+16 | |
| | | | | | | | | Handle timeout internally. | |||||
* | | event/MultiSocketMonitor: PrepareSockets() returns timeout | Max Kellermann | 2013-08-10 | 3 | -11/+17 | |
| | | | | | | | | Simplify the API, don't use GLib specific integer type. | |||||
* | | glib_compat.h: use monotonic_clock_us() in g_source_get_time() | Max Kellermann | 2013-08-10 | 1 | -3/+3 | |
| | | ||||||
* | | glib_compat.h: remove unused wrapper g_file_test() | Max Kellermann | 2013-08-10 | 1 | -28/+0 | |
| | | ||||||
* | | decoder/wildmidi: use class Path for the "timidity.cfg" location | Max Kellermann | 2013-08-10 | 1 | -10/+14 | |
| | | ||||||
* | | ConfigData: overload GetBlockPath() with default value | Max Kellermann | 2013-08-10 | 2 | -5/+21 | |
| | | ||||||
* | | ConfigData: use FatalError() instead of MPD_ERROR() | Max Kellermann | 2013-08-10 | 2 | -5/+11 | |
| | | ||||||
* | | system/EPollFD: fix typo in Add() | Max Kellermann | 2013-08-10 | 1 | -1/+1 | |
| | | ||||||
* | | thread/Id: new class replacing GThread pointers | Max Kellermann | 2013-08-10 | 6 | -15/+117 | |
| | | | | | | | | Remove a GLib dependencies from class EventLoop and DatabaseLock. | |||||
* | | event: add function BlockingCall() | Max Kellermann | 2013-08-08 | 6 | -108/+130 | |
| | | | | | | | | | | Replaces io_thread_call(). This approach is more generic and easier to use due to std::function. | |||||
* | | EventLoop: add methodd IsInside() | Max Kellermann | 2013-08-08 | 2 | -2/+26 | |
| | | | | | | | | | | Track which thread runs the EventLoop and provide a check whether we're currently inside. | |||||
* | | EventLoop: un-inline Run() and others | Max Kellermann | 2013-08-08 | 3 | -23/+62 | |
| | | | | | | | | Prepare for adding more code. | |||||
* | | event/*Monitor: add method GetEventLoop() | Max Kellermann | 2013-08-08 | 4 | -1/+16 | |
| | | ||||||
* | | event/SocketMonitor: un-inline Schedule() | Max Kellermann | 2013-08-08 | 2 | -24/+23 | |
| | | | | | | | | Merge with CommitEventFlags(). | |||||
* | | event/SocketMonitor: add assertions | Max Kellermann | 2013-08-08 | 2 | -0/+12 | |
| | | ||||||
* | | output/httpd: use "unsigned" instead of "guint" | Max Kellermann | 2013-08-08 | 1 | -2/+2 | |
| | | ||||||
* | | Client{Event,Write}: add missing include | Max Kellermann | 2013-08-08 | 3 | -0/+6 | |
| | | ||||||
* | | event/BufferedSocket: add missing include | Max Kellermann | 2013-08-08 | 1 | -0/+1 | |
| | | ||||||
* | | os/FileSystem: disable mkfifo() wrapper on WIN32 | Max Kellermann | 2013-08-07 | 1 | -0/+4 | |
| | | ||||||
* | | ConfigPath: return a Path object | Max Kellermann | 2013-08-07 | 19 | -173/+176 | |
| | | | | | | | | | | Migrate all callers to use Path directly, instead of doing the conversion in each caller. | |||||
* | | *: remove remaining __cplusplus checks | Max Kellermann | 2013-08-07 | 8 | -77/+1 | |
| | | ||||||
* | | event/EPollFD: basic support for Linux epoll | Max Kellermann | 2013-08-07 | 4 | -0/+114 | |
| | | ||||||
* | | event/DeferredMonitor: rename Run() to RunDeferred() | Max Kellermann | 2013-08-07 | 3 | -6/+6 | |
| | | ||||||
* | | event/DeferredMonitor: use EventLoop::AddIdle() | Max Kellermann | 2013-08-07 | 5 | -7/+16 | |
| | | ||||||
* | | configure.ac: pass option name to MPD_OPTIONAL_FUNC() | Max Kellermann | 2013-08-07 | 2 | -7/+7 | |
| | | ||||||
* | | event/DeferredMonitor: new class wrapping g_idle_add() | Max Kellermann | 2013-08-07 | 4 | -12/+128 | |
| | | ||||||
* | | mixer/alsa: use AllocatedArray for the pollfd buffer | Max Kellermann | 2013-08-07 | 1 | -3/+5 | |
| | | ||||||
* | | encoder/lame: use ReusableBuffer instead of AllocatedArray | Max Kellermann | 2013-08-07 | 3 | -213/+13 | |
| | | ||||||
* | | PcmBuffer: move code to new class ReusableBuffer | Max Kellermann | 2013-08-07 | 7 | -44/+99 | |
| | | | | | | | | ReusableBuffer is more generic. | |||||
* | | Makefile: fix "distcheck" errors | Max Kellermann | 2013-08-07 | 1 | -6/+6 | |
| | | ||||||
* | | add missing includes | Max Kellermann | 2013-08-07 | 5 | -0/+8 | |
| | | ||||||
* | | filter/Route: don't access PcmBuffer attributes directly | Max Kellermann | 2013-08-07 | 1 | -5/+5 | |
| | | | | | | | | | | Return the pointer given by PcmBuffer::Get() instead of reaching into the PcmBuffer object. | |||||
* | | CommandLine.cxx: look for config file in XDG_CONFIG_HOME too | Alexander Gehrke | 2013-08-07 | 4 | -8/+15 | |
| | | | | | | | | | | Look for "$XDG_CONFIG_HOME/mpd/mpd.conf", similar to where mpd looks for the file under Windows. | |||||
* | | FfmpegDecoderPlugin: Allocate the interleaved buffer as needed instead of ↵ | Alexis Ballier | 2013-08-07 | 1 | -17/+29 | |
| | | | | | | | | | | | | | | | | using an arbitrary big constant. Also, save a memcpy when FFmpeg outputs interleaved audio. Fixes build with FFmpeg 2.0. | |||||
* | | event/EventFD: move to libsystem | Max Kellermann | 2013-08-07 | 6 | -4/+4 | |
| | | ||||||
* | | event/SignalMonitor: use signalfd() if available | Max Kellermann | 2013-08-07 | 5 | -1/+194 | |
| | | ||||||
* | | SignalHandlers: move code to new class SignalMonitor | Max Kellermann | 2013-08-07 | 7 | -18/+234 | |
| | | ||||||
* | | event/Event{Pipe,FD}: auto-create in constructor | Max Kellermann | 2013-08-07 | 4 | -59/+23 | |
| | | | | | | | | Errors are fatal now. This makes the class a lot easier to use. | |||||
* | | Makefile.am: move sources to libsystem.a | Max Kellermann | 2013-08-07 | 43 | -67/+69 | |
| | | ||||||
* | | FatalError: new library to replace mpd_error.h | Max Kellermann | 2013-08-07 | 15 | -76/+222 | |
| | | ||||||
* | | daemon: convert to C++ | Max Kellermann | 2013-08-07 | 4 | -21/+18 | |
| | | ||||||
* | | test/signals: remove obsolete library | Max Kellermann | 2013-08-07 | 2 | -91/+0 | |
| | | ||||||
* | | configure.ac: add option --enable-eventfd | Max Kellermann | 2013-08-06 | 10 | -107/+247 | |
| | | | | | | | | | | | | Remove the runtime check for eventfd(), hard-code the feature once it's been selected at compile time. The class WakeFD is splitted into EventFD and EventPipe, using WakeFD as a macro diversion. | |||||
* | | util/Manual: add missing include <utility> | Max Kellermann | 2013-08-06 | 1 | -0/+1 | |
| | | ||||||
* | | playlist/pls: use std::string instead of GString | Max Kellermann | 2013-08-06 | 1 | -9/+8 | |
| | | ||||||
* | | encoder/lame: dynamic output buffer | Max Kellermann | 2013-08-06 | 3 | -4/+208 | |
| | | ||||||
* | | encoder/lame: use delete instead of g_free() | Max Kellermann | 2013-08-06 | 1 | -1/+1 | |
| | |