From 80dcfecbe5f3909fa24bdbe2f0b013f5ab0f6485 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Tue, 31 Oct 2006 10:09:37 +0000 Subject: Rename callback type, add timeouts and and allow any http version in the reply. --- misc/http_client.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/http_client.h') diff --git a/misc/http_client.h b/misc/http_client.h index 2d0c24a..e6a11af 100644 --- a/misc/http_client.h +++ b/misc/http_client.h @@ -27,12 +27,12 @@ struct http_url { struct http_req; -typedef void (*http_cb)(struct http_req *, struct http_response *, void *); +typedef void (*http_cb_t)(struct http_req *, struct http_response *, void *); struct http_url *http_url_parse(const char *url); void http_url_free(struct http_url *url); int http_get(struct http_req **out, const char *url, const char *hdrs, - http_cb cb, void *arg); + http_cb_t cb, void *arg); void http_cancel(struct http_req *req); #endif -- cgit 1.4.1