export session_settings_map and fix rss issue in client_test

This commit is contained in:
Arvid Norberg 2012-02-24 16:11:31 +00:00
parent ad779a569c
commit f221b3d931
2 changed files with 3 additions and 2 deletions

View File

@ -897,7 +897,8 @@ bool handle_alert(libtorrent::session& ses, libtorrent::alert* a
std::vector<char> buffer;
bencode(std::back_inserter(buffer), te);
std::string filename = ti.name() + "." + to_hex(ti.info_hash().to_string()) + ".torrent";
save_file(combine_path(monitor_dir, filename), buffer);
filename = combine_path(monitor_dir, filename);
save_file(filename, buffer);
files.insert(std::pair<std::string, libtorrent::torrent_handle>(filename, h));
non_files.erase(h);

View File

@ -278,7 +278,7 @@ namespace aux {
#define TORRENT_SETTING(t, x) {#x, offsetof(session_settings,x), t},
bencode_map_entry session_settings_map[] =
TORRENT_EXPORT bencode_map_entry session_settings_map[] =
{
TORRENT_SETTING(std_string, user_agent)
TORRENT_SETTING(integer, tracker_completion_timeout)