X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fttrss.h;h=8fbe1486d861a848da14b9b12c1ef6aae028e11a;hb=31f62874654f7fd89e362616db13008f7bfc236a;hp=f200e599019c506b98b8f0ea00da9bd1a93f557c;hpb=1070b8de5c6cdf5e5958675a1b90f0af3e3f4688;p=prss.git diff --git a/src/ttrss.h b/src/ttrss.h index f200e59..8fbe148 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,32 +20,18 @@ #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 *); +struct feed *ttrss_get_feed(int id); +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 ws_init(const char *url, const char *user, const char *pwd); +struct headline *ttrss_get_headline(int id); + +void ttrs_set_config(const char *url, const char *user, const char *pwd); int ws_open_session(); #endif