From 72af3c0489f8bc417189b6dd48b8db4f380e4ba3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Oct 2013 20:31:34 +0200 Subject: decoder_plugin: rename struct to DecoderPlugin --- src/DecoderPlugin.hxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/DecoderPlugin.hxx') diff --git a/src/DecoderPlugin.hxx b/src/DecoderPlugin.hxx index 0bfae90e1..aaf7e5152 100644 --- a/src/DecoderPlugin.hxx +++ b/src/DecoderPlugin.hxx @@ -31,7 +31,7 @@ struct tag_handler; */ struct decoder; -struct decoder_plugin { +struct DecoderPlugin { const char *name; /** @@ -111,7 +111,7 @@ struct decoder_plugin { * the plugin is not available */ static inline bool -decoder_plugin_init(const decoder_plugin &plugin, +decoder_plugin_init(const DecoderPlugin &plugin, const config_param ¶m) { return plugin.init != nullptr @@ -123,7 +123,7 @@ decoder_plugin_init(const decoder_plugin &plugin, * Deinitialize a decoder plugin which was initialized successfully. */ static inline void -decoder_plugin_finish(const decoder_plugin &plugin) +decoder_plugin_finish(const DecoderPlugin &plugin) { if (plugin.finish != nullptr) plugin.finish(); @@ -133,7 +133,7 @@ decoder_plugin_finish(const decoder_plugin &plugin) * Decode a stream. */ static inline void -decoder_plugin_stream_decode(const decoder_plugin &plugin, +decoder_plugin_stream_decode(const DecoderPlugin &plugin, struct decoder *decoder, struct input_stream *is) { plugin.stream_decode(decoder, is); @@ -143,7 +143,7 @@ decoder_plugin_stream_decode(const decoder_plugin &plugin, * Decode a file. */ static inline void -decoder_plugin_file_decode(const decoder_plugin &plugin, +decoder_plugin_file_decode(const DecoderPlugin &plugin, struct decoder *decoder, const char *path_fs) { plugin.file_decode(decoder, path_fs); @@ -153,7 +153,7 @@ decoder_plugin_file_decode(const decoder_plugin &plugin, * Read the tag of a file. */ static inline bool -decoder_plugin_scan_file(const decoder_plugin &plugin, +decoder_plugin_scan_file(const DecoderPlugin &plugin, const char *path_fs, const struct tag_handler *handler, void *handler_ctx) { @@ -166,7 +166,7 @@ decoder_plugin_scan_file(const decoder_plugin &plugin, * Read the tag of a stream. */ static inline bool -decoder_plugin_scan_stream(const decoder_plugin &plugin, +decoder_plugin_scan_stream(const DecoderPlugin &plugin, struct input_stream *is, const struct tag_handler *handler, void *handler_ctx) @@ -180,7 +180,7 @@ decoder_plugin_scan_stream(const decoder_plugin &plugin, * return "virtual" tracks in a container */ static inline char * -decoder_plugin_container_scan( const decoder_plugin &plugin, +decoder_plugin_container_scan( const DecoderPlugin &plugin, const char* pathname, const unsigned int tnum) { @@ -191,14 +191,14 @@ decoder_plugin_container_scan( const decoder_plugin &plugin, * Does the plugin announce the specified file name suffix? */ bool -decoder_plugin_supports_suffix(const decoder_plugin &plugin, +decoder_plugin_supports_suffix(const DecoderPlugin &plugin, const char *suffix); /** * Does the plugin announce the specified MIME type? */ bool -decoder_plugin_supports_mime_type(const decoder_plugin &plugin, +decoder_plugin_supports_mime_type(const DecoderPlugin &plugin, const char *mime_type); #endif -- cgit v1.2.3