projects
/
prss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added status bar containing the target url
[prss.git]
/
src
/
http.h
diff --git
a/src/http.h
b/src/http.h
index
dd78640
..
985187d
100644
(file)
--- a/
src/http.h
+++ b/
src/http.h
@@
-20,10
+20,15
@@
#ifndef _PRSS_HTTP_H_
#define _PRSS_HTTP_H_
#ifndef _PRSS_HTTP_H_
#define _PRSS_HTTP_H_
+#include <curl/curl.h>
#include <json/json.h>
#include <json/json.h>
-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
#endif