diff --git a/ChangeLog b/ChangeLog index 6f84be760..39ab80e5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ * fixed support for boost-1.44 * fixed reversed semantics of queue_up() and queue_down() - * added missing functions to python bindings (file_priority()) + * added missing functions to python bindings (file_priority(), set_dht_settings()) * fixed low_prio_disk support on linux * fixed time critical piece accounting in the request queue * fixed semantics of rate_limit_utp to also ignore per-torrent limits diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index e9374044f..d3d49ca3d 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -526,6 +526,7 @@ void bind_session() "add_dht_router", &add_dht_router , (arg("router"), "port") ) + .def("set_dht_settings", allow_threads(&session::set_dht_settings)) .def("start_dht", allow_threads(start_dht0)) .def("stop_dht", allow_threads(&session::stop_dht)) #ifndef TORRENT_NO_DEPRECATE diff --git a/include/libtorrent/bitfield.hpp b/include/libtorrent/bitfield.hpp index b4288c5b7..bb9545933 100644 --- a/include/libtorrent/bitfield.hpp +++ b/include/libtorrent/bitfield.hpp @@ -37,6 +37,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/config.hpp" #include // for memset and memcpy #include // for malloc, free and realloc +#include // uint32_t namespace libtorrent {