-void http_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 *);