fixed python bindings to have the recently added wpath overloads

This commit is contained in:
Arvid Norberg 2008-12-13 03:44:18 +00:00
parent eb1de9d9eb
commit e69b2b8bee
1 changed files with 10 additions and 2 deletions

View File

@ -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))
;
}