(no commit message)
[prss.git] / src / ttrss.h
index 78427eb..71b3cef 100644 (file)
 #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 *);
 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);
+void ttrs_set_config(const char *url, const char *user, const char *pwd);
 int ws_open_session();
 
-
 #endif