int i, n;
struct feed **feeds, *feed;
+ printf("ttrss_get_feeds\n");
+
rq = create_op("getFeeds");
rp = post_json_object(session_url, rq);
j = json_object_object_get(jfeed, "id");
feed->id = json_object_get_int(j);
+ j = json_object_object_get(jfeed, "unread");
+ feed->unread = json_object_get_int(j);
+
feed->headlines = ttrss_get_headlines(feed->id);
feeds[i] = feed;
json_object_put(rp);
+ printf("ttrss_get_feeds ended\n");
+
return feeds;
}
int i, n;
struct headline **headlines, *h;
+ printf("ttrss_get_headlines %d\n", feed_id);
+
rq = create_op("getHeadlines");
json_object_object_add(rq, "feed_id", json_object_new_int(feed_id));
json_object_object_add(rq, "show_excerpt", json_object_new_boolean(1));
json_object_put(rp);
+ printf("ttrss_get_headlines %d end\n", feed_id);
+
return headlines;
}