aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-03-21Main: notify systemd when MPD is readyMax Kellermann1-0/+8
2015-01-21config/Option: convert to strictly-typed enumMax Kellermann1-14/+16
2015-01-21ConfigData: move struct config_param to Param.hxxMax Kellermann1-1/+1
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-12-05configure.ac: require GLib 2.32 (if enabled)Max Kellermann1-5/+0
Since version 2.32, g_thread_init() is deprecated and a no-op. Let's upgrade that (optional) dependency so we can remove all those g_thread_init() calls.
2014-11-29fs/Charset: add DeinitFSCharset()Max Kellermann1-0/+2
2014-11-29fs/Charset: return Error on SetFSCharset() failureMax Kellermann1-1/+4
Don't abort the process, let the caller decide instead.
2014-11-20configure.ac: add option "--disable-daemon"Max Kellermann1-6/+17
2014-11-11Main: fix compilation on OS X using non-Apple compilersMisty De Meo1-2/+2
Commit d42c0f1dc5063d50a62817b63a1c2a4507c46071 added an OS X-specific method of calling mpd_main_after_fork(), which uses Grand Central Dispatch. Since this uses a block literal, it breaks compilation on compilers which don't support the block extension, e.g. non-Apple compilers. This affects users on older OS X releases with GCD (which depend on older Clang releases, or Apple GCCs, which don't support the C++11 features MPD needs); or which don't support GCD at all (10.5 and lower). This patch changes the #ifdef so that the non-GCD code is used as it was on OS X before this patch if blocks aren't available, via checking __BLOCKS__ macro.
2014-10-31Main: run the OS X native event loop after forkingNanoTech1-0/+27
2014-10-31Revert "Main: run the OS X native event loop"NanoTech1-2/+0
This reverts commit f0be48ff90503d9ffa5b295fd4454eec753950ee (except for the NEWS entry). If libdispatch (GCD) is used before forking, it can't safely be used again after forking.
2014-10-10Main: run the OS X native event loopnanotech1-0/+2
2014-10-09StoragePlugin: pass EventLoop to constructorMax Kellermann1-1/+1
2014-09-16android/Bridge: add shutdown()Thomas Guillem1-0/+9
Break the mainloop and terminate run call.
2014-08-24StateFile: configurable intervalMax Kellermann1-1/+4
2014-08-16PlayerThread: rename player_create() to StartPlayerThread()Max Kellermann1-1/+1
2014-07-30Main: don't require mpd.conf on AndroidMax Kellermann1-1/+3
Don't fail to start if mpd.conf does not exist; just use default values.
2014-06-10Main: delete the Storage instance on shutdownMax Kellermann1-0/+2
2014-06-10lib/icu: add IcuInit(), IcuFinish()Max Kellermann1-3/+3
2014-03-02Main: auto-configure state file on AndroidMax Kellermann1-2/+15
2014-03-02Main: use getExternalStorageDirectory() for locating mpd.confMax Kellermann1-2/+11
2014-03-01db/Configured: store database file in cache directoryMax Kellermann1-1/+9
Add class Context which wraps the Android/Java Context class and add a JNI wrapper for method Context.getCacheDir().
2014-03-01Main: inline mpd_main() on AndroidMax Kellermann1-0/+3
2014-03-01Android: obtain music directory from ↵Max Kellermann1-0/+4
Environment.getExternalStoragePublicDirectory()
2014-03-01java: new helper library for the Android portMax Kellermann1-1/+6
2014-03-01Main: load mpd.conf from /sdcard/ on AndroidMax Kellermann1-0/+3
Hard-coded path. Will be replaced soon.
2014-02-27db/simple: mount pointsMax Kellermann1-1/+1
A SimpleDatabase instance can now "mount" other Database instances at certain locations. This is used to use a new SimpleDatabase instance for each storage mount (issued with the "mount" protocol command). Each such instance has its own database file, stored in the directory that is specified with the "cache_directory" option.
2014-02-27db/update: cancel the update on shutdownMax Kellermann1-0/+3
2014-02-26db/simple: create dedicated directoryMax Kellermann1-1/+1
2014-02-24SongSort, ...: use libicu instead of GLib's g_utf8_*()Max Kellermann1-0/+8
2014-02-24Main: use INT_MAX instead of G_MAXUINTMax Kellermann1-1/+1
2014-02-22first Android releaseMax Kellermann1-0/+19
Finally, MPD runs on Android. For some small value of "runs". Very much work left, too much to describe.
2014-02-22Main: disable command-line parser and signal handlers on AndroidMax Kellermann1-0/+19
2014-02-20Main: initialize Partition before ListenerMax Kellermann1-1/+2
Fixes nullptr dereference (regression by commit df5f9f4a).
2014-02-19Listen: add Partition referenceMax Kellermann1-1/+2
2014-02-19DatabasePlugin: add FLAG_REQUIRE_STORAGEMax Kellermann1-9/+17
Ignore the storage configuration if FLAG_REQUIRE_STORAGE is not set in the DatabasePlugin.
2014-02-19db/Interface: add attribute "plugin"Max Kellermann1-3/+2
The new method IsPlugin() replaces the "is_simple" flag.
2014-02-19Mixer: add class MixerListenerMax Kellermann1-2/+0
Use a listener interface instead of GlobalEvents.
2014-02-18Main: disable inotify check without databaseMax Kellermann1-5/+6
Fix build failure.
2014-02-17Main: initialize Database before StorageMax Kellermann1-5/+12
2014-02-17Main: move code to InitDatabaseAndStorage()Max Kellermann1-6/+12
2014-02-17Main: move code to db/Configured.cxxMax Kellermann1-39/+11
2014-02-17Main: check if database exists before attempting to close itMax Kellermann1-2/+5
Fixes nullptr dereference.
2014-02-17db/DatabaseSimple: remove obsolete headerMax Kellermann1-1/+0
2014-02-09Main: wrap the Storage instance in CompositeStorageMax Kellermann1-2/+11
2014-02-09Main: move code to storage/Configured.cxxMax Kellermann1-29/+3
2014-02-08Main: support arbitrary storage pluginsMax Kellermann1-0/+12
2014-02-07storage/local: remove utf8 path from constructorMax Kellermann1-4/+1
Build the UTF-8 version of the path automatically in the constructor.
2014-02-07Main: move storage initialization to InitStorage()Max Kellermann1-20/+27
2014-02-07Mapper: obtain music directory from StorageMax Kellermann1-1/+1
Eliminate duplicate variable.