Commit e86e77ad authored by Max Kellermann's avatar Max Kellermann

idle: convert to C++

parent 3c4bb9ff
...@@ -61,7 +61,6 @@ mpd_headers = \ ...@@ -61,7 +61,6 @@ mpd_headers = \
src/filter/convert_filter_plugin.h \ src/filter/convert_filter_plugin.h \
src/filter/volume_filter_plugin.h \ src/filter/volume_filter_plugin.h \
src/command.h \ src/command.h \
src/idle.h \
src/conf.h \ src/conf.h \
src/decoder_plugin.h \ src/decoder_plugin.h \
src/decoder_command.h \ src/decoder_command.h \
...@@ -185,7 +184,7 @@ src_mpd_SOURCES = \ ...@@ -185,7 +184,7 @@ src_mpd_SOURCES = \
src/OutputCommands.cxx src/OutputCommands.hxx \ src/OutputCommands.cxx src/OutputCommands.hxx \
src/MessageCommands.cxx src/MessageCommands.hxx \ src/MessageCommands.cxx src/MessageCommands.hxx \
src/OtherCommands.cxx src/OtherCommands.hxx \ src/OtherCommands.cxx src/OtherCommands.hxx \
src/idle.c \ src/Idle.cxx src/Idle.hxx \
src/CommandLine.cxx src/CommandLine.hxx \ src/CommandLine.cxx src/CommandLine.hxx \
src/conf.c \ src/conf.c \
src/CrossFade.cxx src/CrossFade.hxx \ src/CrossFade.cxx src/CrossFade.hxx \
......
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
#include "ClientIdle.hxx" #include "ClientIdle.hxx"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "ClientList.hxx" #include "ClientList.hxx"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#include <assert.h> #include <assert.h>
......
...@@ -20,10 +20,7 @@ ...@@ -20,10 +20,7 @@
#include "ClientSubscribe.hxx" #include "ClientSubscribe.hxx"
#include "ClientIdle.hxx" #include "ClientIdle.hxx"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
/* /*
* Copyright (C) 2003-2011 The Music Player Daemon Project * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -23,8 +23,11 @@ ...@@ -23,8 +23,11 @@
*/ */
#include "config.h" #include "config.h"
#include "idle.h" #include "Idle.hxx"
extern "C" {
#include "event_pipe.h" #include "event_pipe.h"
}
#include <assert.h> #include <assert.h>
#include <glib.h> #include <glib.h>
......
/* /*
* Copyright (C) 2003-2011 The Music Player Daemon Project * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
* *
*/ */
#ifndef MPD_IDLE_H #ifndef MPD_IDLE_HXX
#define MPD_IDLE_H #define MPD_IDLE_HXX
enum { enum {
/** song database has been updated*/ /** song database has been updated*/
......
...@@ -39,11 +39,11 @@ ...@@ -39,11 +39,11 @@
#include "tag.h" #include "tag.h"
#include "conf.h" #include "conf.h"
#include "replay_gain_config.h" #include "replay_gain_config.h"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "daemon.h" #include "daemon.h"
#include "io_thread.h" #include "io_thread.h"
#include "idle.h"
#include "path.h" #include "path.h"
#include "stats.h" #include "stats.h"
#include "sig_handlers.h" #include "sig_handlers.h"
......
...@@ -44,10 +44,7 @@ extern "C" { ...@@ -44,10 +44,7 @@ extern "C" {
#include "ClientIdle.hxx" #include "ClientIdle.hxx"
#include "ClientFile.hxx" #include "ClientFile.hxx"
#include "Client.hxx" #include "Client.hxx"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#ifdef ENABLE_SQLITE #ifdef ENABLE_SQLITE
#include "StickerDatabase.hxx" #include "StickerDatabase.hxx"
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
#include "OutputCommand.hxx" #include "OutputCommand.hxx"
#include "OutputAll.hxx" #include "OutputAll.hxx"
#include "PlayerControl.hxx" #include "PlayerControl.hxx"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "output_internal.h" #include "output_internal.h"
#include "output_plugin.h" #include "output_plugin.h"
#include "mixer_control.h" #include "mixer_control.h"
#include "idle.h"
} }
extern unsigned audio_output_state_version; extern unsigned audio_output_state_version;
......
...@@ -19,11 +19,7 @@ ...@@ -19,11 +19,7 @@
#include "config.h" #include "config.h"
#include "PlayerControl.hxx" #include "PlayerControl.hxx"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#include "song.h" #include "song.h"
#include "DecoderControl.hxx" #include "DecoderControl.hxx"
#include "Main.hxx" #include "Main.hxx"
......
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
#include "PlayerControl.hxx" #include "PlayerControl.hxx"
#include "OutputAll.hxx" #include "OutputAll.hxx"
#include "tag.h" #include "tag.h"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "event_pipe.h" #include "event_pipe.h"
#include "idle.h"
} }
#include <cmath> #include <cmath>
......
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
#include "Playlist.hxx" #include "Playlist.hxx"
#include "PlayerControl.hxx" #include "PlayerControl.hxx"
#include "song.h" #include "song.h"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#include <glib.h> #include <glib.h>
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
extern "C" { extern "C" {
#include "uri.h" #include "uri.h"
#include "song.h" #include "song.h"
#include "idle.h"
} }
#include "Idle.hxx"
#include "DatabaseGlue.hxx" #include "DatabaseGlue.hxx"
#include "DatabasePlugin.hxx" #include "DatabasePlugin.hxx"
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
#include "Mapper.hxx" #include "Mapper.hxx"
#include "TextFile.hxx" #include "TextFile.hxx"
#include "conf.h" #include "conf.h"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "path.h" #include "path.h"
#include "uri.h" #include "uri.h"
#include "idle.h"
} }
#include "glib_compat.h" #include "glib_compat.h"
......
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
#include "Playlist.hxx" #include "Playlist.hxx"
#include "song.h" #include "song.h"
#include "Mapper.hxx" #include "Mapper.hxx"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "path.h" #include "path.h"
#include "uri.h" #include "uri.h"
#include "idle.h"
} }
#include "glib_compat.h" #include "glib_compat.h"
......
...@@ -19,11 +19,7 @@ ...@@ -19,11 +19,7 @@
#include "config.h" #include "config.h"
#include "replay_gain_config.h" #include "replay_gain_config.h"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#include "conf.h" #include "conf.h"
#include "Playlist.hxx" #include "Playlist.hxx"
#include "mpd_error.h" #include "mpd_error.h"
......
...@@ -19,10 +19,7 @@ ...@@ -19,10 +19,7 @@
#include "config.h" #include "config.h"
#include "StickerDatabase.hxx" #include "StickerDatabase.hxx"
#include "Idle.hxx"
extern "C" {
#include "idle.h"
}
#include <string> #include <string>
#include <map> #include <map>
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include "UpdateRemove.hxx" #include "UpdateRemove.hxx"
#include "Mapper.hxx" #include "Mapper.hxx"
#include "DatabaseSimple.hxx" #include "DatabaseSimple.hxx"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "event_pipe.h" #include "event_pipe.h"
#include "idle.h"
#include "stats.h" #include "stats.h"
} }
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
#include "config.h" #include "config.h"
#include "Volume.hxx" #include "Volume.hxx"
#include "MixerAll.hxx" #include "MixerAll.hxx"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "idle.h"
#include "event_pipe.h" #include "event_pipe.h"
} }
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "config.h" #include "config.h"
#include "OutputControl.hxx" #include "OutputControl.hxx"
#include "conf.h" #include "conf.h"
#include "Idle.hxx"
extern "C" { extern "C" {
#include "output_plugin.h" #include "output_plugin.h"
...@@ -29,7 +30,6 @@ extern "C" { ...@@ -29,7 +30,6 @@ extern "C" {
#include "filter_registry.h" #include "filter_registry.h"
#include "pcm_convert.h" #include "pcm_convert.h"
#include "event_pipe.h" #include "event_pipe.h"
#include "idle.h"
} }
#include "PlayerControl.hxx" #include "PlayerControl.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment