diff options
Diffstat (limited to 'btpd/http.h')
| -rw-r--r-- | btpd/http.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/btpd/http.h b/btpd/http.h deleted file mode 100644 index 9f03614..0000000 --- a/btpd/http.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef BTPD_HTTP_H -#define BTPD_HTTP_H - -struct http; - -enum http_status { - HRES_OK, - HRES_FAIL, - HRES_CANCEL -}; - -struct http_res { - enum http_status res; - long code; - const char *errmsg; - char *content; - size_t length; -}; - -__attribute__((format (printf, 4, 5))) -int http_get(struct http **ret, - void (*cb)(struct http *, struct http_res *, void *), - void *arg, - const char *fmt, ...); -void http_cancel(struct http *http); -int http_succeeded(struct http_res *res); - -long http_server_busy_time(const char *url, long s); - -void http_init(void); - -#endif |