X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.c;h=9b762951a8cf618fe0e6e3993fd62a0a0b36c4a4;hp=9833040b23af9fa7fa7ba9f652f14a241577b7fd;hb=05d4d920a38f57f2afc0ef349d8f4c96a5852878;hpb=5bb795e97e53ef92cb7b28ee3598ad2aa4ec65d3 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++; + } + } +}