X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=d23c6e230bc04cee952f6237c8fa3a820f27a4dc;hp=801485e6f627fb9d20c965ea466834dcb72764e4;hb=4e8c884a282bcf16f486d06164ee187faa8a2610;hpb=fd2d79da502acb8dcb4589413b7f529c762997f1 diff --git a/src/ttrss.h b/src/ttrss.h index 801485e..d23c6e2 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,28 +20,15 @@ #ifndef _TTRSS_H_ #define _TTRSS_H_ -struct headline { - int id; +#include "ttrss_model.h" - 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); +void ttrss_set_config(const char *url, const char *user, const char *pwd); struct feed **ttrss_get_feeds(); -struct headline **ttrss_get_headlines(struct feed *); +struct headline **ttrss_feed_get_headlines(struct feed *); const char *ttrss_get_headline_content(struct headline *); +void ttrss_set_article_unread(int id, int unread); + +void ttrs_set_config(const char *url, const char *user, const char *pwd); +int ws_open_session(); #endif