X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh_common.c;h=5b6301b5f3d06405930df8fbcc64c7095f7ece06;hp=0d54eea132d8b91973e01971ab945411865ca2bc;hb=91352f3511e963b4d46e3168654f0027c6fee291;hpb=1cefe6a503c74d609db4e99e689d46575a5e40fd diff --git a/afh_common.c b/afh_common.c index 0d54eea1..5b6301b5 100644 --- a/afh_common.c +++ b/afh_common.c @@ -33,6 +33,10 @@ void mp3_init(struct audio_format_handler *); #endif void wma_afh_init(struct audio_format_handler *); + +/** The list of all status items */ +const char *status_item_list[] = {STATUS_ITEM_ARRAY}; + /** * The list of supported audio formats. * @@ -217,6 +221,26 @@ success: return ret; } +/** + * Deallocate contents of a filled-in ahi structure + * + * \param afhi The structure to clear. + * + * The given pointer is kept, everything else is freed. + */ +void clear_afhi(struct afh_info *afhi) +{ + if (!afhi) + return; + free(afhi->chunk_table); + free(afhi->techinfo); + free(afhi->tags.artist); + free(afhi->tags.title); + free(afhi->tags.year); + free(afhi->tags.album); + free(afhi->tags.comment); +} + /** * Get the name of the given audio format. *