X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh_common.c;h=edfc8d1d08e79f333afce711aa814a374c8f1faf;hp=fc0df417fbc8405a21359ecd389075322f96f979;hb=4f112bad9a4b61b8e1ce54cf2cb24285d9c81a6b;hpb=1c12b35b710ff503d3ccfb969f65a63ecc5652f0 diff --git a/afh_common.c b/afh_common.c index fc0df417..edfc8d1d 100644 --- a/afh_common.c +++ b/afh_common.c @@ -15,27 +15,10 @@ #include "string.h" #include "afh.h" -/* The mp3 audio format handler does not need any libs. */ -void mp3_init(struct audio_format_handler *); - -#ifdef HAVE_OGGVORBIS - void ogg_init(struct audio_format_handler *); -#endif -#ifdef HAVE_FAAD - void aac_afh_init(struct audio_format_handler *); -#endif -#ifdef HAVE_SPEEX - void spx_afh_init(struct audio_format_handler *); -#endif -#ifdef HAVE_FLAC - void flac_afh_init(struct audio_format_handler *); -#endif - -#ifdef HAVE_OPUS - void opus_afh_init(struct audio_format_handler *); -#endif - -void wma_afh_init(struct audio_format_handler *); +typedef void afh_init_func(struct audio_format_handler *); +/* It does not hurt to declare init functions which are not available. */ +extern afh_init_func mp3_init, ogg_init, aac_afh_init, wma_afh_init, + spx_afh_init, flac_afh_init, opus_afh_init; /** The list of all status items */ const char *status_item_list[] = {STATUS_ITEM_ARRAY};