X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss_ws.h;h=264bbfdefe597a6ee5fd1fd2c74643d2039bbe32;hp=a6d7e924d795334d3d7a2dec67810c0d15c77e36;hb=03759c1d9512afb87624c268481d5c9c499e8275;hpb=95162b13ecc70395c10d3cf79757affe6d0c00cf diff --git a/src/ttrss_ws.h b/src/ttrss_ws.h index a6d7e92..264bbfd 100644 --- a/src/ttrss_ws.h +++ b/src/ttrss_ws.h @@ -22,7 +22,8 @@ #include "ttrss.h" -void ws_init(const char *url, const char *user, const char *pwd); +void ws_init(); +void ws_set_config(const char *url, const char *user, const char *pwd); int ws_open_session(); struct json_object *ws_request_new(const char *op); @@ -33,4 +34,8 @@ int ws_update_headlines(struct feed *feed); char *ws_get_article_content(int id); void ws_set_article_unread(int id, int unread); +struct json_object *ws_request_new_set_article_unread(int id, int unread); +struct json_object *ws_request_new_get_article_content(int id); +const char *ws_reply_get_article_content(struct json_object *); + #endif