X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=4e9f3a51d4c066c6b8099ae63f1aac731ef270c7;hp=78427eb4c8e003f54320e3ed2902977d025f02ac;hb=03759c1d9512afb87624c268481d5c9c499e8275;hpb=0d88bb9ed245be97f3120dad9c3c1604cd9c4183 diff --git a/src/ttrss.h b/src/ttrss.h index 78427eb..4e9f3a5 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,32 +20,19 @@ #ifndef _TTRSS_H_ #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; -}; +#include "ttrss_model.h" +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 *); -const char *ttrss_get_headline_content(struct headline *); +struct feed *ttrss_get_feed(int id); +struct headline **ttrss_feed_get_headlines(struct feed *); +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(); +struct headline *ttrss_get_headline(int id); + +void ttrs_set_config(const char *url, const char *user, const char *pwd); +void ttrs_download_headline_content(struct feed **); #endif