aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2014-02-07Main: check the music directoryMax Kellermann1-1/+4
Move call from Mapper.cxx.
2014-02-07Main: chop separators from music directoryMax Kellermann1-0/+3
Move call from Mapper.cxx.
2014-02-07Main: create Storage instance in glue_mapper_init()Max Kellermann1-5/+12
Don't use the obsolete Mapper library to create it.
2014-02-07Main: allow playlist directory without music directoryMax Kellermann1-4/+1
2014-02-07InotifyUpdate: use class Storage instead of Mapper.cxxMax Kellermann1-1/+4
2014-02-07storage/local: hide the class declarationsMax Kellermann1-2/+2
Hide inside CreateLocalStorage().
2014-02-05storage/local: move to src/storage/plugins/Max Kellermann1-1/+1
2014-02-05db/UpdateWalk: move LocalStorage to InstanceMax Kellermann1-0/+4
Keep only a reference.
2014-02-05Main: remove unused global variable "main_thread"Max Kellermann1-4/+0
2014-02-05Instance: add attribute "event_loop"Max Kellermann1-14/+16
Replaces global variable "main_loop".
2014-02-05MixerPlugin: add EventLoop& init() parameterMax Kellermann1-1/+2
2014-02-05event/Loop: remove the dummy constructor argumentMax Kellermann1-1/+1
2014-02-04db/update/Service: use DatabaseListener instead of InstanceMax Kellermann1-1/+1
Don't use the global variable "instance".
2014-02-04Instance: add Database attributeMax Kellermann1-7/+11
Move from db/DatabaseGlue.cxx, eliminating global variable.
2014-02-04Main: create UpdateService instance in glue_db_init_and_load()Max Kellermann1-5/+6
2014-02-04db/update/Service: add SimpleDatabase referenceMax Kellermann1-1/+2
Don't use the global variables from the DatabaseSimple library.
2014-02-01Main: don't measure DatabaseGlobalDeinit() timeMax Kellermann1-4/+0
Useless information.
2014-01-30db: add compile-time option to disable databaseMax Kellermann1-3/+20
2014-01-30db/update: convert to OO APIMax Kellermann1-6/+11
Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.
2014-01-30Main, OutputThread: increase kernel timer slack (Linux)Max Kellermann1-0/+5
Allows the kernel to combine timer wakeups with other processes, reducing power usage.
2014-01-29InotifyUpdate: pass EventLoop to mpd_inotify_init()Max Kellermann1-1/+2
2014-01-29Listen: pass EventLoop to listen_global_init()Max Kellermann1-1/+1
Don't use global variables.
2014-01-28OutputAll: convert to class, move instance to class PartitionMax Kellermann1-4/+2
Another big chunk of code for multi-player support.
2014-01-26neighbor: new subsystem to detect file servers on the local networkMax Kellermann1-0/+30
This commit adds the NeighborPlugin API which can be used to detect nearby file servers that can be used by input plugins. This list of servers is exported using the new "listneighbors" command. The idle even "neighbor" notifies interested clients when a new neighbor is found or an existing one is lost. There's a lot missing currently: protocol&user documentation, and a way to "mount" remote servers into the music database. Obviously, some code from the UPnP database plugin can be moved to a neighbor plugin.
2014-01-24Mixer*: move to mixer/Max Kellermann1-1/+1
2014-01-24Database*: move to db/Max Kellermann1-4/+4