(no commit message)
[prss.git] / src / ttrss.c
index 9833040..9b76295 100644 (file)
@@ -125,3 +125,18 @@ struct headline *ttrss_get_headline(int id)
 {
        return feeds_get_headline(data, id);
 }
+
+void ttrs_download_headline_content(struct feed **feeds)
+{
+       struct feed **fcur;
+       struct headline **hcur;
+
+       for (fcur = feeds; *fcur; fcur++) {
+               hcur = ttrss_feed_get_headlines(*fcur);
+
+               while (hcur && *hcur) {
+                       free(ttrss_get_headline_content(*hcur));
+                       hcur++;
+               }
+       }
+}