X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fttrss.c;h=9b762951a8cf618fe0e6e3993fd62a0a0b36c4a4;hb=05d4d920a38f57f2afc0ef349d8f4c96a5852878;hp=9833040b23af9fa7fa7ba9f652f14a241577b7fd;hpb=40d30b549ad41af63da74a3c7cb36db7f5e089e7;p=prss.git diff --git a/src/ttrss.c b/src/ttrss.c index 9833040..9b76295 100644 --- a/src/ttrss.c +++ b/src/ttrss.c @@ -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++; + } + } +}