make get_file_info() return the chunk table
[paraslash.git] / afh.h
diff --git a/afh.h b/afh.h
index 403b7a55e2e62ade3b8a97a1cb2ec2c1bdc06fa4..35b7a70e4dff72220f4550f4fbecc6dffdc48710 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,14 +103,6 @@ struct audio_format_handler {
         * for closing the file handle. It is assumed to succeed.
        */
        void (*close_audio_file)(void);
-       /**
-        * jump to another position in the current audio file
-        *
-        * This is called if a client issued the ff or jmp command with \a request
-        * being the number of the next chunk that should be sent out. Must return a
-        * positive value on success and a negative value on errors.
-       */
-       int (*reposition_stream)(long unsigned request);
        /**
         * function responsible for reading one data chunk.
         *