@@ -88,17 +88,6 @@ http_get(struct http **ret, | |||||
return 0; | return 0; | ||||
} | } | ||||
int | |||||
http_redo(struct http **http) | |||||
{ | |||||
int err; | |||||
struct http *ret; | |||||
err = http_get(&ret, (*http)->cb, "%s", (*http)->url); | |||||
http_cancel(*http); | |||||
*http = ret; | |||||
return err; | |||||
} | |||||
void | void | ||||
http_cancel(struct http *http) | http_cancel(struct http *http) | ||||
{ | { | ||||
@@ -20,9 +20,7 @@ int http_get(struct http **ret, | |||||
void (*cb)(struct http *, struct http_res *, void *), | void (*cb)(struct http *, struct http_res *, void *), | ||||
void *arg, | void *arg, | ||||
const char *fmt, ...); | const char *fmt, ...); | ||||
int http_redo(struct http **http); | |||||
void http_cancel(struct http *http); | void http_cancel(struct http *http); | ||||
int http_succeeded(struct http_res *res); | int http_succeeded(struct http_res *res); | ||||
void http_init(void); | void http_init(void); | ||||