src/decoder_list.h File Reference

#include <stdbool.h>

Go to the source code of this file.

Defines

#define decoder_plugins_for_each(plugin)
#define decoder_plugins_for_each_enabled(plugin)

Functions

struct decoder_plugindecoder_plugin_from_suffix (const char *suffix, const struct decoder_plugin *plugin)
 Find the next enabled decoder plugin which supports the specified suffix.
struct decoder_plugindecoder_plugin_from_mime_type (const char *mimeType, unsigned int next)
struct decoder_plugindecoder_plugin_from_name (const char *name)
void decoder_plugin_init_all (void)
void decoder_plugin_deinit_all (void)

Variables

struct decoder_plugin *const decoder_plugins []
bool decoder_plugins_enabled []

Define Documentation

#define decoder_plugins_for_each ( plugin   ) 
Value:
for (const struct decoder_plugin *plugin, \
                *const*decoder_plugin_iterator = &decoder_plugins[0]; \
                (plugin = *decoder_plugin_iterator) != NULL; \
                ++decoder_plugin_iterator)

Definition at line 30 of file decoder_list.h.

#define decoder_plugins_for_each_enabled ( plugin   ) 
Value:
decoder_plugins_for_each(plugin) \
                if (decoder_plugins_enabled[decoder_plugin_iterator - decoder_plugins])

Definition at line 36 of file decoder_list.h.


Function Documentation

void decoder_plugin_deinit_all ( void   ) 
struct decoder_plugin* decoder_plugin_from_mime_type ( const char *  mimeType,
unsigned int  next 
) [read]
struct decoder_plugin* decoder_plugin_from_name ( const char *  name  )  [read]
struct decoder_plugin* decoder_plugin_from_suffix ( const char *  suffix,
const struct decoder_plugin plugin 
) [read]

Find the next enabled decoder plugin which supports the specified suffix.

Parameters:
suffix the file name suffix
plugin the previous plugin, or NULL to find the first plugin
Returns:
a plugin, or NULL if none matches
void decoder_plugin_init_all ( void   ) 

Variable Documentation


Generated on 17 Jul 2013 for MPD by  doxygen 1.6.1