Makefile.in: use CPPFLAGS also for target mysql.o
[paraslash.git] / afh.h
diff --git a/afh.h b/afh.h
index 0ead11e0e997879a6e4ed98cc05770871cb3917f..77874108a056c73707f2b39516168558bf1b4e80 100644 (file)
--- a/afh.h
+++ b/afh.h
@@ -90,10 +90,11 @@ struct audio_format_handler {
         * this audio format. A negative return value indicates that this audio format
         * handler did not recognize the given file. On success, the function is
         * expected to return a positive value and to fill in \arg info_str, \arg
-        * chunks and \arg seconds appropriately.
+        * chunks and \arg seconds appropriately and to return the chunk table
+        * via \a vss_chunk_table.
        */
        int (*get_file_info)(FILE *audio_file, char *info_str,
-               long unsigned *chunks, int *seconds);
+               long unsigned *chunks, int *seconds, size_t **vss_chunk_table);
        /**
         * cleanup function of this audio format handler
         *
@@ -102,16 +103,4 @@ struct audio_format_handler {
         * for closing the file handle. It is assumed to succeed.
        */
        void (*close_audio_file)(void);
-       /**
-        * function responsible for reading one data chunk.
-        *
-        * \a read_chunk() must return a pointer to the next chunk of data that should
-        * be sent out, or \p NULL on errors or if the end of the file was encountered.
-        *
-        * If it returns non-NULL, \a len must contain the length of the returned
-        * buffer (which may be zero if nothing has to be sent for some reason).
-        * Otherwise, \a len is used to distinguish between the eof and the error case:
-        * It must be zero in the eof case, or negative if an error occcured.
-       */
-       char * (*read_chunk)(long unsigned chunk_num, ssize_t *len);
 };