X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh.h;h=881db3c24217beff8d2885e1d62c05f3419aa404;hp=6dc5a3fc663659b67f658c9ef9b58883adde6266;hb=3685a9093ae12ff9ce02fc58e607eb9b63894443;hpb=9264932e105071a24d843785900e29e70c78d6ae diff --git a/afh.h b/afh.h index 6dc5a3fc..881db3c2 100644 --- a/afh.h +++ b/afh.h @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file afh.h Structures for audio format handling (para_server). */ @@ -84,14 +80,6 @@ struct audio_file_data { * in the other part of this struct. */ struct audio_format_handler { - /** Name of the audio format. */ - const char *name; - /** - * Pointer to the audio format handler's init function. - * - * Must initialize all function pointers and is assumed to succeed. - */ - void (*init)(struct audio_format_handler*); /** Typical file endings for files that can be handled by this afh. */ const char * const *suffixes; /** @@ -103,7 +91,7 @@ struct audio_format_handler { * success, the function must return a positive value and fill in the * given struct afh_info. * - * \sa struct afh_info + * \sa struct \ref afh_info. */ int (*get_file_info)(char *map, size_t numbytes, int fd, struct afh_info *afhi); @@ -139,7 +127,6 @@ struct audio_format_handler { int output_fd, const char *filename); }; -void afh_init(void); int guess_audio_format(const char *name); int compute_afhi(const char *path, char *data, size_t size, int fd, struct afh_info *afhi);