X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=dcc68f1388b9d1779344f4e97f3555c1f9921f46;hp=a6835bfc9f7ce7db8ad05924d08aed353a763bd3;hb=ba998dd7b5a61fc2a1fa25538dc370eff0368c2c;hpb=b3abedbd3dbfa1d6362c028241142d2f7a850ddf diff --git a/src/ttrss.h b/src/ttrss.h index a6835bf..dcc68f1 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,23 +20,18 @@ #ifndef _TTRSS_H_ #define _TTRSS_H_ -struct headline { - char *title; - char *excerpt; - char *content; - int unread; -}; +#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); +int ws_open_session(); #endif