X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=78427eb4c8e003f54320e3ed2902977d025f02ac;hp=88cde67c896ad384d7d4194d61626078a4f0bddd;hb=0d88bb9ed245be97f3120dad9c3c1604cd9c4183;hpb=646cde735b54f33fd935535c97bace0d9971beb6 diff --git a/src/ttrss.h b/src/ttrss.h index 88cde67..78427eb 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -21,6 +21,9 @@ #define _TTRSS_H_ struct headline { + int id; + + char *url; char *title; char *excerpt; char *content; @@ -36,8 +39,13 @@ struct feed { 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