diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 13:18:58 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 13:18:58 +0100 |
commit | 4c6079008803ebe11ad05051a2c220a9347feea0 (patch) | |
tree | 2b0bcb7d3ca61d4df2fe5f5544050575e8fd541f /src/libxineadec/fooaudio.c | |
parent | a446e560469e1c071d8bbbc2e8805c3328fbb1c6 (diff) | |
download | xine-lib-4c6079008803ebe11ad05051a2c220a9347feea0.tar.gz xine-lib-4c6079008803ebe11ad05051a2c220a9347feea0.tar.bz2 |
Update all audio decoder plugins to the new identifier/description interface. Add _() where missing, for i18n.
Diffstat (limited to 'src/libxineadec/fooaudio.c')
-rw-r--r-- | src/libxineadec/fooaudio.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/libxineadec/fooaudio.c b/src/libxineadec/fooaudio.c index 5ab4fa1f6..cfcaabc50 100644 --- a/src/libxineadec/fooaudio.c +++ b/src/libxineadec/fooaudio.c @@ -283,18 +283,6 @@ static audio_decoder_t *open_plugin (audio_decoder_class_t *class_gen, xine_stre return &this->audio_decoder; } -/* This function returns a brief string that describes (usually with the - * decoder's most basic name) the audio decoder plugin. */ -static char *get_identifier (audio_decoder_class_t *this) { - return "fooaudio"; -} - -/* This function returns a slightly longer string describing the audio - * decoder plugin. */ -static char *get_description (audio_decoder_class_t *this) { - return "fooaudio: reference xine audio decoder plugin"; -} - /* This function frees the audio decoder class and any other memory that was * allocated. */ static void dispose_class (audio_decoder_class_t *this_gen) { @@ -313,8 +301,8 @@ static void *init_plugin (xine_t *xine, void *data) { this = (fooaudio_class_t *) xine_malloc (sizeof (fooaudio_class_t)); this->decoder_class.open_plugin = open_plugin; - this->decoder_class.get_identifier = get_identifier; - this->decoder_class.get_description = get_description; + this->decoder_class.identifier = "fooaudio"; + this->decoder_class.description = _("fooaudio: reference xine audio decoder plugin"); this->decoder_class.dispose = dispose_class; return this; |