fixed code style
[prss.git] / src / ttrss_model.h
index 6f1a4c1..81f75c2 100644 (file)
@@ -28,6 +28,7 @@ struct headline {
        char *excerpt;
        char *content;
        int unread;
+       time_t date;
 };
 
 struct feed {
@@ -39,13 +40,16 @@ struct feed {
        struct headline **headlines;
 };
 
+struct feed *feed_new(int id, const char *url, const char *title);
 void feed_free(struct feed *feed);
 void feeds_free(struct feed **feed);
+struct feed *feeds_get_feed(struct feed **feed, int i);
 
 struct headline **headlines_add(struct headline **list, struct headline *h);
 struct headline *headline_new(int id, const char *url, const char *title);
 
 struct feed **feeds_add(struct feed **list, struct feed *f);
 struct headline *feed_get_headline(struct feed *feed, int id);
+struct headline *feeds_get_headline(struct feed **feeds, int id);
 
 #endif