示例#1
0
文件: rss.c 项目: beodegit/castget
rss_file *rss_open_url(const char *url, int debug)
{
  rss_file *f;
  gchar *rss_filename;

  if (write_by_temporary_file(NULL, _rss_open_url_cb, (gpointer)url, &rss_filename, debug))
    return NULL;

  f = rss_open_file(rss_filename);

  unlink(rss_filename);
  g_free(rss_filename);

  return f;
}
示例#2
0
文件: channel.c 项目: mlj/castget
static void _cast_channel_save(channel *c, int debug)
{
  write_by_temporary_file(c->channel_filename, _cast_channel_save_channel, c, NULL, debug);
}