X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=vss.c;h=4a395593f3aa1a6a5038b3d3c23330c6b0ea5610;hb=ae98d764c5a593eb08414d8f12331c9719398d86;hp=f9e2d6c2aef98a29d1bc0aecc1680b22851e7e00;hpb=dc4030458f9af07d5719cfbff0a47cd16f1847f7;p=paraslash.git diff --git a/vss.c b/vss.c index f9e2d6c2..4a395593 100644 --- a/vss.c +++ b/vss.c @@ -82,6 +82,8 @@ static struct audio_format_handler afl[] = { .name = NULL, } }; + +/** iterate over each supported audio format */ #define FOR_EACH_AUDIO_FORMAT(i) for (i = 0; afl[i].name; i++) /** @@ -406,6 +408,14 @@ char *vss_get_header(int *header_len) return NULL; return afl[mmd->audio_format].get_header_info(header_len); } + +/** + * get the list of all supported audio formats + * + * \return a space separated list of all supported audio formats + * It is not allocated at runtime, i.e. there is no need to free + * the returned string in the caller. + */ const char *supported_audio_formats(void) { return SUPPORTED_AUDIO_FORMATS;