aboutsummaryrefslogtreecommitdiffstats
path: root/lib/http_client.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-17 00:11:37 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-17 00:11:37 +0100
commit516a9c69222bed3d6fee7aefb439b461e4173da0 (patch)
treee3a0fcb218add909a37e153cd99651fcb65809f8 /lib/http_client.h
parent7885d0f3dc255cd7900ee1d398366636c48bcda1 (diff)
No idea why http_dorequest() ever returned void*. Don't hide the type, it's
not a secret (the pointer is shared with a type later anyway).
Diffstat (limited to 'lib/http_client.h')
-rw-r--r--lib/http_client.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/http_client.h b/lib/http_client.h
index 726c97a6..27c484ff 100644
--- a/lib/http_client.h
+++ b/lib/http_client.h
@@ -80,7 +80,5 @@ struct http_request
version is probably only useful if you want to do POST requests or if
you want to add some extra headers. As you can see, HTTPS connections
are also supported (using ssl_client). */
-void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data );
-void *http_dorequest_url( char *url_string, http_input_function func, gpointer data );
-
-void http_free( struct http_request *req );
+struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data );
+struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data );