(no commit message)
[prss.git] / src / http.h
index 3c717c9..985187d 100644 (file)
  * 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 <curl/curl.h>
+#include <json/json.h>
+
+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