| 12 | #include <functional> |
| 13 | |
| 14 | static void |
| 15 | decoder_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 | |
| 37 | void |
| 38 | decoder_list_print(Response &r) |
no outgoing calls
no test coverage detected