X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fttrss.h;h=28370f3c415e507cc11d67cadd6a546e0b81fc24;hb=48e7c0631ee3371b5cf6503417b4ec1c2b733176;hp=4c7f67e75ca6a0190d6d7a8782cacf50034989f7;hpb=6ad7426a45d5a4e76cbd67d2759b9f5e236443f6;p=prss.git diff --git a/src/ttrss.h b/src/ttrss.h index 4c7f67e..28370f3 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,24 +20,16 @@ #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; - int unread; - - struct headline **headlines; -}; - -void ttrss_login(const char *url, const char *user, const char *password); +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 ttrs_set_config(const char *url, const char *user, const char *pwd); +int ws_open_session(); #endif