X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fhttp.h;h=985187d3b75d762622c421a5998905c1eab9b83f;hp=16c25cca44ea7e338e41704739adeb14b569b068;hb=f12d31760b4945f8b4978e7d629bb036a626beba;hpb=78ac024c7f47e3e7ca301ab983f688bc3d6e686e diff --git a/src/http.h b/src/http.h index 16c25cc..985187d 100644 --- a/src/http.h +++ b/src/http.h @@ -20,9 +20,15 @@ #ifndef _PRSS_HTTP_H_ #define _PRSS_HTTP_H_ -void http_init(); -void http_cleanup(); -json_object *get_json_object(const char *url); -json_object *post_json_object(const char *url, struct json_object *); +#include +#include + +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