aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 19:22:15 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 19:22:15 +0100
commita654f146d1b39a363cb10853a7670ef099570e54 (patch)
tree2c171646333f0b529655b57bee2c1eb6a3dd7c1c /src/UpdateGlue.cxx
parent67b46a151da4ca6f81fa63d30e2c629da352ec45 (diff)
downloadmpd-a654f146d1b39a363cb10853a7670ef099570e54.tar.gz
mpd-a654f146d1b39a363cb10853a7670ef099570e54.tar.xz
mpd-a654f146d1b39a363cb10853a7670ef099570e54.zip
update: convert to C++
Diffstat (limited to '')
-rw-r--r--src/UpdateGlue.cxx (renamed from src/update.c)16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/update.c b/src/UpdateGlue.cxx
index e47db8f09..203f16b76 100644
--- a/src/update.c
+++ b/src/UpdateGlue.cxx
@@ -18,18 +18,20 @@
*/
#include "config.h"
-#include "update.h"
-#include "update_queue.h"
-#include "update_walk.h"
-#include "update_remove.h"
-#include "update.h"
+#include "UpdateGlue.hxx"
+#include "UpdateQueue.hxx"
+#include "UpdateWalk.hxx"
+#include "UpdateRemove.hxx"
+
+extern "C" {
#include "database.h"
#include "mapper.h"
#include "playlist.h"
#include "event_pipe.h"
-#include "update.h"
#include "idle.h"
#include "stats.h"
+}
+
#include "Main.hxx"
#include "mpd_error.h"
@@ -65,7 +67,7 @@ isUpdatingDB(void)
static void * update_task(void *_path)
{
- const char *path = _path;
+ const char *path = (const char *)_path;
if (path != NULL && *path != 0)
g_debug("starting: %s", path);