(no commit message)
[prss.git] / src / ttrss.c
index d01aac4..9b76295 100644 (file)
@@ -113,7 +113,7 @@ void ttrss_set_config(const char *url, const char *user, const char *pwd)
 {
        feeds_free(data);
        data = NULL;
-       ws_init(url, user, pwd);
+       ws_set_config(url, user, pwd);
 }
 
 struct feed *ttrss_get_feed(int id)
@@ -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++;
+               }
+       }
+}