From 13e9f18403b98f8123b1b983c4680957d684e47b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Oct 2013 20:36:34 +0200 Subject: DecoderPlugin: move functions into the struct --- src/DecoderPlugin.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/DecoderPlugin.cxx') diff --git a/src/DecoderPlugin.cxx b/src/DecoderPlugin.cxx index eb83d542d..77ed90882 100644 --- a/src/DecoderPlugin.cxx +++ b/src/DecoderPlugin.cxx @@ -24,22 +24,19 @@ #include bool -decoder_plugin_supports_suffix(const DecoderPlugin &plugin, - const char *suffix) +DecoderPlugin::SupportsSuffix(const char *suffix) const { assert(suffix != nullptr); - return plugin.suffixes != nullptr && - string_array_contains(plugin.suffixes, suffix); + return suffixes != nullptr && string_array_contains(suffixes, suffix); } bool -decoder_plugin_supports_mime_type(const DecoderPlugin &plugin, - const char *mime_type) +DecoderPlugin::SupportsMimeType(const char *mime_type) const { assert(mime_type != nullptr); - return plugin.mime_types != nullptr && - string_array_contains(plugin.mime_types, mime_type); + return mime_types != nullptr && + string_array_contains(mime_types, mime_type); } -- cgit v1.2.3