archive/*: convert to C++

This commit is contained in:
Max Kellermann
2013-01-24 19:18:58 +01:00
parent dc2e64c92b
commit 94fffb332b
22 changed files with 202 additions and 162 deletions

View File

@@ -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,
};

View File

@@ -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;