]> git.tue.mpg.de Git - paraslash.git/commitdiff
struct audio_format_handler: use proper pointer type for the init function
authorAndre <maan@p133.(none)>
Sun, 14 May 2006 01:48:07 +0000 (03:48 +0200)
committerAndre <maan@p133.(none)>
Sun, 14 May 2006 01:48:07 +0000 (03:48 +0200)
aac_afh.c
afs.h
mp3.c
ogg.c

index 55efeefa1d7dc1b067e23da06294a7fb222e9304..a8d162e4b7de7a895969c53ada0fb67a9c08367e 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -235,7 +235,7 @@ static char *aac_read_chunk(long unsigned current_chunk, ssize_t *len)
 
 static const char* aac_suffixes[] = {"m4a", NULL};
 /** the init function of the aac audio format handler */
-void aac_afh_init(void *p)
+void aac_afh_init(struct audio_format_handler *p)
 {
        af = p;
        af->reposition_stream = aac_reposition_stream;
diff --git a/afs.h b/afs.h
index 3f9c7fc6ba6daacd7412d56aaef1608106010c0f..c34f88176baf1ab8113aa2797433b5cac24b3969 100644 (file)
--- a/afs.h
+++ b/afs.h
@@ -69,7 +69,7 @@ struct audio_format_handler {
         *
         * Must initialize all function pointers and is assumed to succeed.
         */
-       void (*init)(void*);
+       void (*init)(struct audio_format_handler*);
        /**
         * period of time between sending data chunks
        */
diff --git a/mp3.c b/mp3.c
index bac84b6f9ca0e8b0677f7fec691bb42084dff760..d8ec8bec3b592d75419c02e275d9f23ac7b8674c 100644 (file)
--- a/mp3.c
+++ b/mp3.c
@@ -482,7 +482,7 @@ static void mp3_close_audio_file(void)
 }
 
 static const char* mp3_suffixes[] = {"mp3", NULL};
-void mp3_init(void *p)
+void mp3_init(struct audio_format_handler *p)
 {
        af = p;
        af->get_file_info = mp3_get_file_info;
diff --git a/ogg.c b/ogg.c
index fa935d5090abb2a9eddb06fd87676b688fe63fc9..6bdb2306f6c0fb29147d8b63673e804060c2b3cd 100644 (file)
--- a/ogg.c
+++ b/ogg.c
@@ -346,7 +346,7 @@ static char *ogg_get_header_info(int *len)
 }
 
 static const char* ogg_suffixes[] = {"ogg", NULL};
-void ogg_init(void *p)
+void ogg_init(struct audio_format_handler *p)
 {
        af = p;
        af->reposition_stream = ogg_reposition_stream;