projects
/
prss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[prss.git]
/
src
/
ttrss.h
diff --git
a/src/ttrss.h
b/src/ttrss.h
index
817be41
..
8fbe148
100644
(file)
--- a/
src/ttrss.h
+++ b/
src/ttrss.h
@@
-20,29
+20,18
@@
#ifndef _TTRSS_H_
#define _TTRSS_H_
#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 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 *);
const char *ttrss_get_headline_content(struct headline *);
-
void ttrss_set_article_unread(int id, int unread);
void ttrss_set_article_unread(int id, int unread);
+
+struct headline *ttrss_get_headline(int id);
+
+void ttrs_set_config(const char *url, const char *user, const char *pwd);
+int ws_open_session();
+
#endif
#endif