db/update: convert to OO API

Move global variables into the new classes.  That may allow multiple
update threads for multiple databases one day.
This commit is contained in:
Max Kellermann
2014-01-29 20:16:43 +01:00
parent a31738f6f1
commit c6725884bc
29 changed files with 514 additions and 520 deletions

View File

@@ -20,7 +20,7 @@
#include "config.h"
#include "InotifyQueue.hxx"
#include "InotifyDomain.hxx"
#include "UpdateGlue.hxx"
#include "Service.hxx"
#include "Log.hxx"
#include <string.h>
@@ -40,7 +40,7 @@ InotifyQueue::OnTimeout()
while (!queue.empty()) {
const char *uri_utf8 = queue.front().c_str();
id = update_enqueue(uri_utf8, false);
id = update.Enqueue(uri_utf8, false);
if (id == 0) {
/* retry later */
ScheduleSeconds(INOTIFY_UPDATE_DELAY_S);