X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fhttp.h;h=985187d3b75d762622c421a5998905c1eab9b83f;hp=dd78640a11dde556a457b44b70457c785e38b5a6;hb=d278b66d10ef96b5af22cec6fb8c7d12be855b93;hpb=4c8273864b951d26b002c8f2ec6e92a9a13799b6 diff --git a/src/http.h b/src/http.h index dd78640..985187d 100644 --- a/src/http.h +++ b/src/http.h @@ -20,10 +20,15 @@ #ifndef _PRSS_HTTP_H_ #define _PRSS_HTTP_H_ +#include #include -void http_init(); -void http_cleanup(); -json_object *http_json_get(const char *url, struct json_object *); +struct http_session; + +struct http_session *http_session_new(); +void http_session_free(struct http_session *); + +json_object * +http_json_get(struct http_session *, const char *, struct json_object *); #endif