aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/UpdateGlue.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-31db/update: convert runtime check to assertionMax Kellermann1-4/+1
2014-01-30db/update: convert to OO APIMax Kellermann1-54/+28
Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.
2014-01-24Database*: move to db/Max Kellermann1-1/+1
2014-01-24Update*: move to update/Max Kellermann1-0/+0
2014-01-14UpdateGlue: let the update thread run at "idle" priorityMax Kellermann1-0/+3
The update thread should not affect the rest of the system, therefore set "idle" priority, and let it only run when nobody else is using the resources.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-11UpdateGlue: move stats_invalidate() call to Instance::DatabaseModified()Max Kellermann1-3/+0
2014-01-10Stats: lazy initializationMax Kellermann1-1/+1
Ask the DatabasePlugin for stats when the first client requests them, not at startup.
2013-10-17UpdateGlue: handle update id managementMax Kellermann1-10/+20
Add UpdateQueueItem::id to keep track of the id in every item. Replaces thhe hack in update_queue_push().
2013-10-17UpdateGlue: pass UpdateQueueItem aroundMax Kellermann1-20/+16
Fixes a few kludges and avoids GLib allocation.
2013-10-17UpdateQueue: use std::string and std::queueMax Kellermann1-6/+4
2013-10-17Thread/Thread: replacement library for GThreadMax Kellermann1-12/+8
2013-10-17Main: use ThreadId instead of GThread*Max Kellermann1-2/+3
2013-10-02Stats: rename stats.h to Stats.hxxMax Kellermann1-5/+1
2013-10-02Log: new logging library APIMax Kellermann1-11/+10
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-04util/Error: new error passing libraryMax Kellermann1-5/+4
Replaces GLib's GError.
2013-08-07Makefile.am: move sources to libsystem.aMax Kellermann1-1/+1
2013-08-07FatalError: new library to replace mpd_error.hMax Kellermann1-2/+2
2013-04-17Main: move global variables to struct InstanceMax Kellermann1-5/+3
More preparations for multi-player support.
2013-04-17use g_thread_new() if GLib is recent enoughMax Kellermann1-2/+5
Fixes deprecation warnings.
2013-01-21UpdateRemove: Mutex/Cond instead of GMutex/GCondMax Kellermann1-1/+0
2013-01-09EventPipe: rename to GlobalEventsMax Kellermann1-3/+3
2013-01-09event_pipe.h: convert to C++Max Kellermann1-1/+1
2013-01-09Playlist: move playlist_increment_version_all() into the classMax Kellermann1-1/+1
2013-01-09idle: convert to C++Max Kellermann1-1/+1
2013-01-05Partition: new class, container for Playlist and PlayerControlMax Kellermann1-2/+2
This is the beginning of multi-player support. There will be support for multiple Partition objects in one MPD process.
2013-01-04playlist: convert to C++Max Kellermann1-2/+2
2013-01-03database.h: rename to DatabaseSimple.hxxMax Kellermann1-1/+1
2013-01-02mapper: convert to C++Max Kellermann1-1/+1
2013-01-02update: convert to C++Max Kellermann1-7/+9
2012-09-28main: use C++ compilerMax Kellermann1-1/+1
2012-08-08DatabaseGlue: add function db_is_simple()Max Kellermann1-1/+1
Preparing for non-"simple" database plugins.
2012-06-13update_internal.h: split headerMax Kellermann1-1/+6
2012-02-12update_remove: add header update_remove.hMax Kellermann1-0/+1
2011-09-09database: return GError on failureMax Kellermann1-2/+8
2011-01-31update: log all file permission problemsMax Kellermann1-0/+6
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-09-25eliminate g_error() usageThomas Jansen1-1/+2
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
2010-02-27update: log start/finish of the update threadMax Kellermann1-1/+11
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-1/+1
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
2009-11-11added missing config.h includes for extended LFS supportMax Kellermann1-1/+0
All sources which might work with large files must include config.h, to get Large File Support on 32 bit platforms.
2009-11-02update: removed unused variable "update_notify"Max Kellermann1-8/+0
That variable has been superseded by "remove_notify" (defined in update_remove.c).
2009-10-27update: delete ignored symlinks from databaseMax Kellermann1-1/+5
When you disable the "follow_outside_symlinks" or the "follow_inside_symlinks" setting, the next update should remove the now-ignored files from the database.
2009-10-16update: fixed memory leak during container scanMax Kellermann1-3/+6
The return value of map_directory_child_fs() must be freed.
2009-10-16update: song_file_new() cannot failMax Kellermann1-3/+0
Removed the NULL check. If that NULL check was correct, that would have been a memory leak (vtrack).
2009-09-24command: added command "rescan"Max Kellermann1-4/+8
"rescan" is the same as "update", but it discards existing songs in the database.
2009-09-24update: splitted update.c into several sourcesMax Kellermann1-770/+17
2009-09-24update: pass const string to update_enqueue()Max Kellermann1-7/+11
Duplicate the path string within update.c, do not expect an allocated string as parameter.
2009-09-24update: renamed directory_update_init() to update_enqueue()Max Kellermann1-1/+1