struct audio_format_handler: use proper pointer type for the init function
[paraslash.git] / http_send.c
index ea88bd4a8cdfbcdad902d36d7717702318279e73..f9345acedb0e76ef8ef0487cd24ec411a35ea53f 100644 (file)
@@ -206,7 +206,7 @@ static int send_queued_packets(struct http_client *hc)
        return 1;
 }
 
        return 1;
 }
 
-static void http_send(__a_unused struct audio_format *af,
+static void http_send(__a_unused struct audio_format_handler *af,
                long unsigned current_chunk,
                __a_unused long unsigned chunks_sent, const char *buf, size_t len)
 {
                long unsigned current_chunk,
                __a_unused long unsigned chunks_sent, const char *buf, size_t len)
 {
@@ -267,7 +267,7 @@ static int host_in_access_perm_list(struct http_client *hc)
        return 0;
 }
 
        return 0;
 }
 
-static void http_post_select(__a_unused struct audio_format *af, fd_set *rfds,
+static void http_post_select(__a_unused struct audio_format_handler *af, fd_set *rfds,
                fd_set *wfds)
 {
        int i = -1, match;
                fd_set *wfds)
 {
        int i = -1, match;
@@ -347,8 +347,8 @@ err_out:
        free(hc);
 }
 
        free(hc);
 }
 
-static void http_pre_select(struct audio_format *af, int *max_fileno, fd_set *rfds,
-               fd_set *wfds)
+static void http_pre_select(struct audio_format_handler *af, int *max_fileno,
+       fd_set *rfds, fd_set *wfds)
 {
        struct http_client *hc, *tmp;
 
 {
        struct http_client *hc, *tmp;