X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fhttp.h;h=985187d3b75d762622c421a5998905c1eab9b83f;hp=3c717c90675169a8c6e037178fa6f1af27938e9c;hb=5bb795e97e53ef92cb7b28ee3598ad2aa4ec65d3;hpb=1087cf87f08c0311004e47b05cae0f6649d835f7 diff --git a/src/http.h b/src/http.h index 3c717c9..985187d 100644 --- a/src/http.h +++ b/src/http.h @@ -17,11 +17,18 @@ * 02110-1301 USA */ -#ifndef _PHTTP_H_ -#define _PHTTP_H_ +#ifndef _PRSS_HTTP_H_ +#define _PRSS_HTTP_H_ -void phttp_init(); -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