diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 10:33:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 11:16:18 +0100 |
commit | 70b87f2eb620bdf1d7e07141914feb2316794fb3 (patch) | |
tree | 427aba509182a185263e00e222c4ee7b0fd0eb87 /src/ClientIdle.cxx | |
parent | 94b2ee627c06679eb2622f2ac2e2fb0240fbab3c (diff) | |
download | mpd-70b87f2eb620bdf1d7e07141914feb2316794fb3.tar.gz mpd-70b87f2eb620bdf1d7e07141914feb2316794fb3.tar.xz mpd-70b87f2eb620bdf1d7e07141914feb2316794fb3.zip |
client: convert to C++
Diffstat (limited to '')
-rw-r--r-- | src/ClientIdle.cxx (renamed from src/client_idle.c) | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client_idle.c b/src/ClientIdle.cxx index 930911d6e..7812c544c 100644 --- a/src/client_idle.c +++ b/src/ClientIdle.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -18,9 +18,12 @@ */ #include "config.h" -#include "client_idle.h" -#include "client_internal.h" +#include "ClientIdle.hxx" +#include "ClientInternal.hxx" + +extern "C" { #include "idle.h" +} #include <assert.h> @@ -68,7 +71,7 @@ client_idle_add(struct client *client, unsigned flags) static void client_idle_callback(gpointer data, gpointer user_data) { - struct client *client = data; + struct client *client = (struct client *)data; unsigned flags = GPOINTER_TO_UINT(user_data); client_idle_add(client, flags); |