X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=4e9f3a51d4c066c6b8099ae63f1aac731ef270c7;hp=20243d20af8c2e66952a95931961a486f5ca74a9;hb=05d4d920a38f57f2afc0ef349d8f4c96a5852878;hpb=a7e89c999775c195f8b7759f4c283fcedb041a9e diff --git a/src/ttrss.h b/src/ttrss.h index 20243d2..4e9f3a5 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,22 +20,19 @@ #ifndef _TTRSS_H_ #define _TTRSS_H_ -struct headline { - char *title; - char *excerpt; - char *content; -}; +#include "ttrss_model.h" -struct feed { - char *title; - char *url; - int id; +void ttrss_set_config(const char *url, const char *user, const char *pwd); +struct feed **ttrss_get_feeds(); +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); - struct headline **headlines; -}; +struct headline *ttrss_get_headline(int id); -void ttrss_login(const char *url, const char *user, const char *password); -struct feed **ttrss_get_feeds(); -struct headline **ttrss_get_headlines(int); +void ttrs_set_config(const char *url, const char *user, const char *pwd); + +void ttrs_download_headline_content(struct feed **); #endif