static void rssyl_foreach_parse_func(gpointer data, gpointer user_data) { FeedItem *feed_item = (FeedItem *)data; RFolderItem *ritem = (RFolderItem *)user_data; rssyl_add_item(ritem, feed_item); }
static void rssyl_subscribe_foreach_func(gpointer data, gpointer user_data) { RFolderItem *ritem = (RFolderItem *)user_data; FeedItem *feed_item = (FeedItem *)data; g_return_if_fail(ritem != NULL); g_return_if_fail(feed_item != NULL); rssyl_add_item(ritem, feed_item); }