aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* MixerPlugin: add EventLoop& init() parameterMax Kellermann2014-02-0514-29/+44
|
* event/Loop: remove the dummy constructor argumentMax Kellermann2014-02-053-5/+3
|
* db/DatabaseListener: add method OnDatabaseSongRemoved()Max Kellermann2014-02-049-38/+45
| | | | Decouples db/update/Remove.cpp from global variables.
* db/proxy: include cleanupMax Kellermann2014-02-041-1/+0
|
* Instance: merge DatabaseModified() into OnDatabaseModified()Max Kellermann2014-02-042-18/+7
|
* db/update/Service: use DatabaseListener instead of InstanceMax Kellermann2014-02-043-6/+12
| | | | Don't use the global variable "instance".
* db/update/Service: use EventLoop::IsInside()Max Kellermann2014-02-041-2/+6
| | | | Don't use the global variable "main_thread".
* {Message,Neighbor}Commands: use Client::partition instead of Main.hxxMax Kellermann2014-02-044-13/+17
|
* ClientMessage: undefine GetMessage on WIN32Max Kellermann2014-02-041-0/+6
|
* GlobalEvents: remove obsolete event DELETEMax Kellermann2014-02-041-3/+0
|
* Instance: add Database attributeMax Kellermann2014-02-0419-149/+97
| | | | Move from db/DatabaseGlue.cxx, eliminating global variable.
* Main: create UpdateService instance in glue_db_init_and_load()Max Kellermann2014-02-042-5/+12
|
* db/update/Service: initialize "progress" and "update_task_id"Max Kellermann2014-02-041-1/+3
| | | | | Database update was randomly broken due to these uninitialized variables.
* StateFile: pass Database to SongLoaderMax Kellermann2014-02-041-1/+2
| | | | | Fixes loading database songs from state file (regression by commit 29072797c).
* db/update/Service: add SimpleDatabase referenceMax Kellermann2014-02-046-41/+24
| | | | Don't use the global variables from the DatabaseSimple library.
* db/update/Walk: add Directory reference parameterMax Kellermann2014-02-043-14/+14
| | | | Remove dependency on the DatabaseSimple library.
* db/Simple: remove unused function db_get_directory()Max Kellermann2014-02-043-22/+0
|
* SongSticker: add Database reference parameterMax Kellermann2014-02-043-8/+5
|
* db/DatabasePlaylist: pass Database reference aroundMax Kellermann2014-02-048-23/+47
| | | | Reduce global variable usage, move to frontend code.
* db/LightSong: make "real_uri" a pointerMax Kellermann2014-02-043-3/+4
| | | | | Reduce overhead. LightSong can always point to the "real" allocated string.
* PlaylistFile: use class SongLoaderMax Kellermann2014-02-033-25/+16
|
* PlaylistFile: switch spl_append_uri() argumentsMax Kellermann2014-02-033-3/+3
| | | | | Playlist file name first, to be consistent with the other functions in this library.
* QueueSave: use class SongLoaderMax Kellermann2014-02-035-20/+25
|
* SongLoader: new class that merges duplicate codeMax Kellermann2014-02-0313-169/+235
| | | | | There was quite a lot of duplicate code for loading DetachedSong objects, with different semantics for "securely" loading local files.
* FileCommands: use PathTraitsUTF8::IsAbsolute()Max Kellermann2014-02-031-1/+1
|
* PlaylistSave: remove redundant backslash conversionMax Kellermann2014-02-031-16/+3
| | | | | This is already being done by FixSeparators(), called from PathToUTF8().
* ClientFile: move client_allow_file() into the Client classMax Kellermann2014-02-026-51/+18
|
* Playlist: pass Database to DatabaseModified()Max Kellermann2014-02-015-13/+9
| | | | Don't use global variable.
* Partition: disable DatabaseModified() if not ENABLE_DATABASEMax Kellermann2014-02-013-0/+8
|
* Main: don't measure DatabaseGlobalDeinit() timeMax Kellermann2014-02-011-4/+0
| | | | Useless information.
* Stats: pass Database reference aroundMax Kellermann2014-02-011-9/+8
| | | | Call GetDatabase() only once.
* Stats: remove obsolete "simple" plugin special caseMax Kellermann2014-02-011-8/+0
| | | | The proxy plugin has now implemented the "idle" event listener.
* Stats: return false if update has failedMax Kellermann2014-02-011-1/+1
|
* Mapper: assert that Song::parent is not nullptrMax Kellermann2014-01-311-18/+3
|
* db/update/Archive: delete archive from database on errorMax Kellermann2014-01-311-0/+2
|
* db/update/Editor: add locking method variantsMax Kellermann2014-01-315-27/+36
|
* db/update: convert runtime check to assertionMax Kellermann2014-01-311-4/+1
|
* fs/AllocatedPath: add conversion constructor from PathMax Kellermann2014-01-301-0/+2
|
* fs/DirectoryReader: GetEntry() returns Path, not AllocatedPathMax Kellermann2014-01-301-3/+3
| | | | Reduce overhead, don't duplicate the string.
* update/Walk: declare std::string at assignmentMax Kellermann2014-01-301-4/+2
| | | | Reduce overhead.
* PlaylistFile: narrow LoadPlaylistFileInfo() API to accept PathMax Kellermann2014-01-301-2/+2
|
* fs/AllocatedPath: add Build() overlays with Path argumentsMax Kellermann2014-01-301-0/+10
|
* db: add compile-time option to disable databaseMax Kellermann2014-01-3023-17/+222
|
* OtherCommands: merge duplicate code from handle_update(), handle_rescan()Max Kellermann2014-01-301-31/+10
|
* db/update: convert to OO APIMax Kellermann2014-01-3028-511/+505
| | | | | Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.
* Main, OutputThread: increase kernel timer slack (Linux)Max Kellermann2014-01-303-0/+61
| | | | | Allows the kernel to combine timer wakeups with other processes, reducing power usage.
* ExcludeList: move to db/update/Max Kellermann2014-01-302-0/+0
|
* InotifyUpdate: pass EventLoop to mpd_inotify_init()Max Kellermann2014-01-293-7/+10
|
* Listen: pass EventLoop to listen_global_init()Max Kellermann2014-01-293-8/+7
| | | | Don't use global variables.
* db/Directory: move isRootDirectory() to Uri.hxxMax Kellermann2014-01-295-7/+32
| | | | Decouple command/OtherCommands.cxx from the "simple" database plugin.