diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 20:36:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 21:08:12 +0200 |
commit | 13e9f18403b98f8123b1b983c4680957d684e47b (patch) | |
tree | ef732995e8bbad81f41597fab84c5640004f22fd /src/DecoderPlugin.cxx | |
parent | 875821f2ba0beeb9556962a536c4c0011913ff15 (diff) | |
download | mpd-13e9f18403b98f8123b1b983c4680957d684e47b.tar.gz mpd-13e9f18403b98f8123b1b983c4680957d684e47b.tar.xz mpd-13e9f18403b98f8123b1b983c4680957d684e47b.zip |
DecoderPlugin: move functions into the struct
Diffstat (limited to '')
-rw-r--r-- | src/DecoderPlugin.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
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 <assert.h> 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); } |