MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / decoder_plugin_print

Function decoder_plugin_print

src/decoder/DecoderPrint.cxx:14–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <functional>
13
14static void
15decoder_plugin_print(Response &r,
16 const DecoderPlugin &plugin)
17{
18 const char *const*p;
19
20 assert(plugin.name != nullptr);
21
22 r.Fmt("plugin: {}\n", plugin.name);
23
24 if (plugin.suffixes != nullptr)
25 for (p = plugin.suffixes; *p != nullptr; ++p)
26 r.Fmt("suffix: {}\n", *p);
27
28 if (plugin.suffixes_function != nullptr)
29 for (const auto &i : plugin.suffixes_function())
30 r.Fmt("suffix: {}\n", i);
31
32 if (plugin.mime_types != nullptr)
33 for (p = plugin.mime_types; *p != nullptr; ++p)
34 r.Fmt("mime_type: {}\n", *p);
35}
36
37void
38decoder_list_print(Response &r)

Callers 1

decoder_list_printFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected