X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.h;h=71b3cef780f50ca1d0b5d55447ae37bff5d28f7e;hp=817be41754fbed6291a5fc9b396e07a25f0c55a8;hb=3b14915e76fc7a05512e0523afd39556c0a14567;hpb=2acb4f4b249348eeb6ca4bf37836889be55418ff diff --git a/src/ttrss.h b/src/ttrss.h index 817be41..71b3cef 100644 --- a/src/ttrss.h +++ b/src/ttrss.h @@ -20,29 +20,15 @@ #ifndef _TTRSS_H_ #define _TTRSS_H_ -struct headline { - int id; +#include "ttrss_model.h" - char *url; - char *title; - char *excerpt; - char *content; - int unread; -}; - -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 *); 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