From e69b2b8beec7622aa054c24c3bba2a4e8470c694 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 13 Dec 2008 03:44:18 +0000 Subject: [PATCH] fixed python bindings to have the recently added wpath overloads --- bindings/python/src/torrent_handle.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index 588173cee..7299a1e33 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -253,6 +253,12 @@ void bind_torrent_handle() int (torrent_handle::*piece_priority0)(int) const = &torrent_handle::piece_priority; void (torrent_handle::*piece_priority1)(int, int) const = &torrent_handle::piece_priority; + void (torrent_handle::*move_storage0)(fs::path const&) const = &torrent_handle::move_storage; + void (torrent_handle::*move_storage1)(fs::wpath const&) const = &torrent_handle::move_storage; + + void (torrent_handle::*rename_file0)(int, fs::path const&) const = &torrent_handle::rename_file; + void (torrent_handle::*rename_file1)(int, fs::wpath const&) const = &torrent_handle::rename_file; + #ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES bool (torrent_handle::*resolve_countries0)() const = &torrent_handle::resolve_countries; void (torrent_handle::*resolve_countries1)(bool) = &torrent_handle::resolve_countries; @@ -326,9 +332,11 @@ void bind_torrent_handle() .def("set_max_uploads", _(&torrent_handle::set_max_uploads)) .def("set_max_connections", _(&torrent_handle::set_max_connections)) .def("set_tracker_login", _(&torrent_handle::set_tracker_login)) - .def("move_storage", _(&torrent_handle::move_storage)) + .def("move_storage", _(move_storage0)) + .def("move_storage", _(move_storage1)) .def("info_hash", _(&torrent_handle::info_hash)) .def("force_recheck", _(&torrent_handle::force_recheck)) - .def("rename_file", _(&torrent_handle::rename_file)) + .def("rename_file", _(rename_file0)) + .def("rename_file", _(rename_file1)) ; }