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 55efeef..a8d162e 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 3f9c7fc..c34f881 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 bac84b6..d8ec8be 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 fa935d5..6bdb230 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;