decoder_list: moved suffix/mime_type checks to decoder_plugin.c

This commit is contained in:
Max Kellermann
2009-11-07 15:14:11 +01:00
parent bb862a8ceb
commit e3da174fca
4 changed files with 65 additions and 4 deletions

View File

@@ -161,4 +161,18 @@ decoder_plugin_container_scan( const struct decoder_plugin *plugin,
return plugin->container_scan(pathname, tnum);
}
/**
* Does the plugin announce the specified file name suffix?
*/
bool
decoder_plugin_supports_suffix(const struct decoder_plugin *plugin,
const char *suffix);
/**
* Does the plugin announce the specified MIME type?
*/
bool
decoder_plugin_supports_mime_type(const struct decoder_plugin *plugin,
const char *mime_type);
#endif