+
+static void get_article_content_cbk(int id, const char *content)
+{
+ printf("get_article_content_cbk %d\n", id);
+
+ if (content)
+ cache_put(id, content);
+}
+
+void ttrs_download_headline_content(struct feed **feeds)
+{
+ struct feed **fcur;
+ struct headline **hcur;
+
+ log_debug("ttrs_download_headline_content");
+
+ for (fcur = feeds; *fcur; fcur++) {
+ hcur = ttrss_feed_get_headlines(*fcur);
+
+ log_debug("ttrs_download_headline_content(): %s",
+ (*fcur)->title);
+
+ while (hcur && *hcur) {
+ if (!cache_exists(*hcur)) {
+ ws_async_get_article_content
+ ((*hcur)->id, get_article_content_cbk);
+ }
+ hcur++;
+ }
+ }
+}