X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=dcc68f1388b9d1779344f4e97f3555c1f9921f46;hp=020d77a4292f7d09852a39e2be3c74d793a22daa;hb=ba998dd7b5a61fc2a1fa25538dc370eff0368c2c;hpb=28bfd5f51b7a9418a0b8cc1f7749b4dff0f027f8 diff --git a/src/ttrss.h b/src/ttrss.h index 020d77a..dcc68f1 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,27 +20,18 @@ #ifndef _TTRSS_H_ #define _TTRSS_H_ -struct headline { - int id; +#include "ttrss_model.h" - char *title; - char *excerpt; - char *content; - int unread; -}; - -struct feed { - char *title; - char *url; - int id; - int unread; +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(struct feed *); -const char *ttrss_get_headline_content(struct headline *); +void ttrs_set_config(const char *url, const char *user, const char *pwd); +int ws_open_session(); #endif