aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-02-04Instance: merge DatabaseModified() into OnDatabaseModified()Max Kellermann2-18/+7
2014-02-04db/update/Service: use DatabaseListener instead of InstanceMax Kellermann3-6/+12
Don't use the global variable "instance".
2014-02-04db/update/Service: use EventLoop::IsInside()Max Kellermann1-2/+6
Don't use the global variable "main_thread".
2014-02-04{Message,Neighbor}Commands: use Client::partition instead of Main.hxxMax Kellermann4-13/+17
2014-02-04ClientMessage: undefine GetMessage on WIN32Max Kellermann1-0/+6
2014-02-04GlobalEvents: remove obsolete event DELETEMax Kellermann1-3/+0
2014-02-04Instance: add Database attributeMax Kellermann19-149/+97
Move from db/DatabaseGlue.cxx, eliminating global variable.
2014-02-04Main: create UpdateService instance in glue_db_init_and_load()Max Kellermann2-5/+12
2014-02-04db/update/Service: initialize "progress" and "update_task_id"Max Kellermann1-1/+3
Database update was randomly broken due to these uninitialized variables.
2014-02-04StateFile: pass Database to SongLoaderMax Kellermann1-1/+2
Fixes loading database songs from state file (regression by commit 29072797c).
2014-02-04db/update/Service: add SimpleDatabase referenceMax Kellermann6-41/+24
Don't use the global variables from the DatabaseSimple library.
2014-02-04db/update/Walk: add Directory reference parameterMax Kellermann3-14/+14
Remove dependency on the DatabaseSimple library.
2014-02-04db/Simple: remove unused function db_get_directory()Max Kellermann3-22/+0
2014-02-04SongSticker: add Database reference parameterMax Kellermann3-8/+5
2014-02-04db/DatabasePlaylist: pass Database reference aroundMax Kellermann8-23/+47
Reduce global variable usage, move to frontend code.
2014-02-04db/LightSong: make "real_uri" a pointerMax Kellermann3-3/+4
Reduce overhead. LightSong can always point to the "real" allocated string.
2014-02-03PlaylistFile: use class SongLoaderMax Kellermann3-25/+16
2014-02-03PlaylistFile: switch spl_append_uri() argumentsMax Kellermann3-3/+3
Playlist file name first, to be consistent with the other functions in this library.
2014-02-03QueueSave: use class SongLoaderMax Kellermann5-20/+25
2014-02-03SongLoader: new class that merges duplicate codeMax Kellermann13-169/+235
There was quite a lot of duplicate code for loading DetachedSong objects, with different semantics for "securely" loading local files.
2014-02-03FileCommands: use PathTraitsUTF8::IsAbsolute()Max Kellermann1-1/+1
2014-02-03PlaylistSave: remove redundant backslash conversionMax Kellermann1-16/+3
This is already being done by FixSeparators(), called from PathToUTF8().
2014-02-02ClientFile: move client_allow_file() into the Client classMax Kellermann6-51/+18
2014-02-01Playlist: pass Database to DatabaseModified()Max Kellermann5-13/+9
Don't use global variable.
2014-02-01Partition: disable DatabaseModified() if not ENABLE_DATABASEMax Kellermann3-0/+8
2014-02-01Main: don't measure DatabaseGlobalDeinit() timeMax Kellermann1-4/+0
Useless information.
2014-02-01Stats: pass Database reference aroundMax Kellermann1-9/+8
Call GetDatabase() only once.
2014-02-01Stats: remove obsolete "simple" plugin special caseMax Kellermann1-8/+0
The proxy plugin has now implemented the "idle" event listener.
2014-02-01Stats: return false if update has failedMax Kellermann1-1/+1
2014-01-31Mapper: assert that Song::parent is not nullptrMax Kellermann1-18/+3
2014-01-31db/update/Archive: delete archive from database on errorMax Kellermann1-0/+2
2014-01-31db/update/Editor: add locking method variantsMax Kellermann5-27/+36
2014-01-31db/update: convert runtime check to assertionMax Kellermann1-4/+1
2014-01-30fs/AllocatedPath: add conversion constructor from PathMax Kellermann1-0/+2
2014-01-30fs/DirectoryReader: GetEntry() returns Path, not AllocatedPathMax Kellermann1-3/+3
Reduce overhead, don't duplicate the string.
2014-01-30update/Walk: declare std::string at assignmentMax Kellermann1-4/+2
Reduce overhead.
2014-01-30PlaylistFile: narrow LoadPlaylistFileInfo() API to accept PathMax Kellermann1-2/+2
2014-01-30fs/AllocatedPath: add Build() overlays with Path argumentsMax Kellermann1-0/+10
2014-01-30db: add compile-time option to disable databaseMax Kellermann23-17/+222
2014-01-30OtherCommands: merge duplicate code from handle_update(), handle_rescan()Max Kellermann1-31/+10
2014-01-30db/update: convert to OO APIMax Kellermann28-511/+505
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 Kellermann3-0/+61
Allows the kernel to combine timer wakeups with other processes, reducing power usage.
2014-01-30ExcludeList: move to db/update/Max Kellermann2-0/+0
2014-01-29InotifyUpdate: pass EventLoop to mpd_inotify_init()Max Kellermann3-7/+10
2014-01-29Listen: pass EventLoop to listen_global_init()Max Kellermann3-8/+7
Don't use global variables.
2014-01-29db/Directory: move isRootDirectory() to Uri.hxxMax Kellermann5-7/+32
Decouple command/OtherCommands.cxx from the "simple" database plugin.
2014-01-29sticker: don't use classes Directory and SongMax Kellermann3-22/+21
Don't depend on the "simple" database plugin. This fixes an assertion failure / crash and allows using stickers with other plugins.
2014-01-29OutputThread: move more functions into the AudioOutput classMax Kellermann2-240/+271
2014-01-29output: rename "chunk" to "current_chunk"Max Kellermann4-28/+30
2014-01-29output: move functions into the AudioOutput structMax Kellermann23-328/+281