diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-31 10:09:37 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-31 10:09:37 +0000 |
| commit | 80dcfecbe5f3909fa24bdbe2f0b013f5ab0f6485 (patch) | |
| tree | 683087a98751260f42ce33b160097464de39a2ad /misc/http_client.h | |
| parent | f939819e286b186e0ff35658187484ac4781e03e (diff) | |
| download | btpd-80dcfecbe5f3909fa24bdbe2f0b013f5ab0f6485.tar.gz btpd-80dcfecbe5f3909fa24bdbe2f0b013f5ab0f6485.zip | |
Rename callback type, add timeouts and and allow any http version in the
reply.
Diffstat (limited to 'misc/http_client.h')
| -rw-r--r-- | misc/http_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |