From f221b3d931af1aba1a968e707017464be164cbc8 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 24 Feb 2012 16:11:31 +0000 Subject: [PATCH] export session_settings_map and fix rss issue in client_test --- examples/client_test.cpp | 3 ++- src/session_impl.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index b6123dc51..7bca1fc01 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -897,7 +897,8 @@ bool handle_alert(libtorrent::session& ses, libtorrent::alert* a std::vector 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(filename, h)); non_files.erase(h); diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 59292afda..1574cc24e 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -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)