aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/ArchiveList.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-08 13:22:13 +0100
committerMax Kellermann <max@duempel.org>2014-02-08 13:22:13 +0100
commit9906daeca71b7e552721f85f3696d9e6a20f7a5b (patch)
tree89c934549bbfb4eb7051fa9af868d4fd4014a001 /src/archive/ArchiveList.cxx
parent5fb54095d22e38662383fc73bc1af56da357756c (diff)
downloadmpd-9906daeca71b7e552721f85f3696d9e6a20f7a5b.tar.gz
mpd-9906daeca71b7e552721f85f3696d9e6a20f7a5b.tar.xz
mpd-9906daeca71b7e552721f85f3696d9e6a20f7a5b.zip
ArchivePlugin: rename struct archive_plugin to ArchivePlugin
Diffstat (limited to 'src/archive/ArchiveList.cxx')
-rw-r--r--src/archive/ArchiveList.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/archive/ArchiveList.cxx b/src/archive/ArchiveList.cxx
index bf6493588..79c3a16fe 100644
--- a/src/archive/ArchiveList.cxx
+++ b/src/archive/ArchiveList.cxx
@@ -28,7 +28,7 @@
#include <string.h>
-const struct archive_plugin *const archive_plugins[] = {
+const ArchivePlugin *const archive_plugins[] = {
#ifdef HAVE_BZ2
&bz2_archive_plugin,
#endif
@@ -48,7 +48,7 @@ static bool archive_plugins_enabled[ARRAY_SIZE(archive_plugins) - 1];
archive_plugins_for_each(plugin) \
if (archive_plugins_enabled[archive_plugin_iterator - archive_plugins])
-const struct archive_plugin *
+const ArchivePlugin *
archive_plugin_from_suffix(const char *suffix)
{
if (suffix == nullptr)
@@ -62,7 +62,7 @@ archive_plugin_from_suffix(const char *suffix)
return nullptr;
}
-const struct archive_plugin *
+const ArchivePlugin *
archive_plugin_from_name(const char *name)
{
archive_plugins_for_each_enabled(plugin)
@@ -75,7 +75,7 @@ archive_plugin_from_name(const char *name)
void archive_plugin_init_all(void)
{
for (unsigned i = 0; archive_plugins[i] != nullptr; ++i) {
- const struct archive_plugin *plugin = archive_plugins[i];
+ const ArchivePlugin *plugin = archive_plugins[i];
if (plugin->init == nullptr || archive_plugins[i]->init())
archive_plugins_enabled[i] = true;
}