diff options
author | Max Kellermann <max@duempel.org> | 2013-01-24 19:18:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-24 19:18:58 +0100 |
commit | 94fffb332bb40eb4b13ad7a2039109d2a420a8f6 (patch) | |
tree | 6686e1d74a1dcbe4e91c70aef45374256d7acac9 /src/input | |
parent | dc2e64c92b5a61f4c578b5d4c6017b0d5b8037ff (diff) | |
download | mpd-94fffb332bb40eb4b13ad7a2039109d2a420a8f6.tar.gz mpd-94fffb332bb40eb4b13ad7a2039109d2a420a8f6.tar.xz mpd-94fffb332bb40eb4b13ad7a2039109d2a420a8f6.zip |
archive/*: convert to C++
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/ArchiveInputPlugin.cxx (renamed from src/input/archive_input_plugin.c) | 23 | ||||
-rw-r--r-- | src/input/ArchiveInputPlugin.hxx (renamed from src/input/archive_input_plugin.h) | 6 |
2 files changed, 20 insertions, 9 deletions
diff --git a/src/input/archive_input_plugin.c b/src/input/ArchiveInputPlugin.cxx index e608dd4a6..560c65843 100644 --- a/src/input/archive_input_plugin.c +++ b/src/input/ArchiveInputPlugin.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,10 @@ */ #include "config.h" -#include "input/archive_input_plugin.h" -#include "archive_api.h" -#include "archive_list.h" +#include "ArchiveInputPlugin.hxx" +#include "ArchiveLookup.hxx" +#include "ArchiveList.hxx" +#include "ArchivePlugin.hxx" #include "input_plugin.h" #include <glib.h> @@ -78,6 +79,16 @@ input_archive_open(const char *pathname, } const struct input_plugin input_plugin_archive = { - .name = "archive", - .open = input_archive_open, + "archive", + nullptr, + nullptr, + input_archive_open, + nullptr, + nullptr, + nullptr, + nullptr, + nullptr, + nullptr, + nullptr, + nullptr, }; diff --git a/src/input/archive_input_plugin.h b/src/input/ArchiveInputPlugin.hxx index 51095f37f..96fcd0dd1 100644 --- a/src/input/archive_input_plugin.h +++ b/src/input/ArchiveInputPlugin.hxx @@ -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 @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_INPUT_ARCHIVE_H -#define MPD_INPUT_ARCHIVE_H +#ifndef MPD_INPUT_ARCHIVE_HXX +#define MPD_INPUT_ARCHIVE_HXX extern const struct input_plugin input_plugin_archive; |