X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fttrss.h;h=f200e599019c506b98b8f0ea00da9bd1a93f557c;hb=a0736fce0f13ccf8ae96f00b5ed65af316c7571a;hp=20243d20af8c2e66952a95931961a486f5ca74a9;hpb=a7e89c999775c195f8b7759f4c283fcedb041a9e;p=prss.git diff --git a/src/ttrss.h b/src/ttrss.h index 20243d2..f200e59 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -21,21 +21,31 @@ #define _TTRSS_H_ struct headline { + int id; + + char *url; char *title; char *excerpt; char *content; + int unread; }; struct feed { char *title; char *url; int id; + int unread; struct headline **headlines; }; -void ttrss_login(const char *url, const char *user, const char *password); struct feed **ttrss_get_feeds(); -struct headline **ttrss_get_headlines(int); +struct headline **ttrss_get_headlines(struct feed *); +const char *ttrss_get_headline_content(struct headline *); + +void ttrss_set_article_unread(int id, int unread); + +void ws_init(const char *url, const char *user, const char *pwd); +int ws_open_session(); #endif