aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-01-14StateFile: convert to a classMax Kellermann1-6/+16
2013-01-14Main, IOThread: move GMainLoop setup code to class EventLoopMax Kellermann1-5/+6
2013-01-10io_thread: convert to C++Max Kellermann1-1/+1
2013-01-10input_stream: convert to C++ (internally)Max Kellermann1-1/+1
2013-01-10PlayerThread: use pc.cond instead of main_condMax Kellermann1-4/+0
The main_cond variable was completely unnecessary. The pc.cond object can be used for both main->pc and pc->main.
2013-01-09EventPipe: rename to GlobalEventsMax Kellermann1-7/+7
2013-01-09event_pipe.h: convert to C++Max Kellermann1-1/+1
2013-01-09sig_handlers, log: convert to C++Max Kellermann1-2/+2
2013-01-09Playlist.hxx: move prototype to PlaylistGlobal.hxxMax Kellermann1-0/+1
2013-01-09idle: convert to C++Max Kellermann1-1/+1
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-3/+3
2013-01-07mixer_all: convert to C++Max Kellermann1-1/+1
2013-01-07volume: convert to C++Max Kellermann1-1/+1
2013-01-05Partition: new class, container for Playlist and PlayerControlMax Kellermann1-16/+18
This is the beginning of multi-player support. There will be support for multiple Partition objects in one MPD process.
2013-01-05filter/ReplayGain: add method _set_mode()Max Kellermann1-0/+2
Push the new mode to the filter instead of accessing global variables through replay_gain_get_real_mode().
2013-01-04Playlist: pass max_length to playlist_init()Max Kellermann1-1/+2
Move the configuration lookup to Main.cxx.
2013-01-04PlayerControl: add constructor and destructorMax Kellermann1-2/+3
2013-01-04player_control.h: convert header to C++Max Kellermann1-1/+1
2013-01-04playlist: convert to C++Max Kellermann1-1/+1
2013-01-04buffer, pipe: convert to C++Max Kellermann1-1/+1
2013-01-03cmdline: convert to C++Max Kellermann1-1/+1
2013-01-03client: convert to C++Max Kellermann1-3/+3
2013-01-03listen: convert to C++Max Kellermann1-1/+1
2013-01-03Permission: use std::map instead of GHashTableMax Kellermann1-1/+0
2013-01-03permission: convert to C++Max Kellermann1-1/+1
2013-01-03database.h: rename to DatabaseSimple.hxxMax Kellermann1-1/+1
2013-01-03database.h: move prototypes to DatabaseGlue.hxxMax Kellermann1-3/+4
2013-01-02mapper: convert to C++Max Kellermann1-1/+1
2013-01-02sticker: convert to C++Max Kellermann1-4/+2
2013-01-02{decoder,player}_thread: convert to C++Max Kellermann1-1/+1
2013-01-02db_save, state_file: convert to C++Max Kellermann1-1/+1
2013-01-02update: convert to C++Max Kellermann1-5/+5
2012-09-28main: use C++ compilerMax Kellermann1-4/+12
2012-09-28stored_playlist, playlist_save: use C++ compilerMax Kellermann1-1/+1
2012-09-25command.h: move function prototypes to AllCommands.hMax Kellermann1-1/+1
2012-08-14log: store duplicated path stringMax Kellermann1-1/+1
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).
2012-08-14input_stream, main: remove obsolete GLib version checksMax Kellermann1-2/+0
MPD requires GLib 2.16.
2012-08-08tag_pool: use GStaticMutexMax Kellermann1-3/+0
Eliminates explicit global initialisation.
2012-08-08conf: add a "database" blockMax Kellermann1-6/+18
The new block overrides the "db_file" setting, and allows configuring any database plugin.
2012-08-08DatabaseGlue: pass block to db_init()Max Kellermann1-1/+6
Let the caller take care for legacy conversion.
2012-08-08main: don't call db_init() without databaseMax Kellermann1-1/+0
Useless call.
2012-08-07dbUtils.h: move to DatabaseQueue.hxx, DatabasePlaylist.hxxMax Kellermann1-1/+0
2012-03-26Fix processing of sticker database pathDan McGee1-2/+1
After a previous refactor, the current code fails on paths that need expansion (e.g, '~/.mpd/sticker.db'), because we are not passing the correct path to the sticker database code. Pass the expanded (and previously unused) string instead of the original string. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-15main: handle negative strtol return valueJonathan Neuschäfer1-2/+3
size_t is unsigned most of the time, so we can't really use it to check for negative values. Also handle strtol overflow.
2012-01-21db_lock: new unified lock for songvec and dirvecMax Kellermann1-6/+0
2011-10-10audio: rename audio.[ch] to audio_config.[ch]Max Kellermann1-1/+1
2011-10-08pcm_resample: one-time global initializationMax Kellermann1-0/+8
Load the samplerate_converter on MPD startup. Fail if the converter name is invalid.
2011-09-10db_plugin: introducing a plugin API for the song databaseMax Kellermann1-22/+9
First draft, not really pluggable currently - hard-coded to use the "simple" plugin, and calls several of its internal functions. The API is very simple currently, all searches are still performed over the root "directory" object. Future changes to the API will move those search implementations into the plugin, to allow more efficient implementations, or implementations that don't have the whole tree in memory all the time.
2011-09-09database: return GError on failureMax Kellermann1-2/+3
2011-09-09conf: turn config_get_path() into config_dup_path()Max Kellermann1-23/+78
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.