diff --git a/libtorrent/bindings/python/src/extensions.cpp b/libtorrent/bindings/python/src/extensions.cpp index 648adbbd4..acb8f2457 100755 --- a/libtorrent/bindings/python/src/extensions.cpp +++ b/libtorrent/bindings/python/src/extensions.cpp @@ -109,6 +109,15 @@ namespace } // namespace unnamed + +boost::shared_ptr create_metadata_plugin_wrapper(torrent* t) { + return create_metadata_plugin(t, NULL); +} + +boost::shared_ptr create_ut_pex_plugin_wrapper(torrent* t) { + return create_ut_pex_plugin(t, NULL); +} + void bind_extensions() { class_< @@ -143,8 +152,8 @@ void bind_extensions() class_("peer_connection", no_init); class_ >("torrent_plugin", no_init); - def("create_ut_pex_plugin", create_ut_pex_plugin); - def("create_metadata_plugin", create_metadata_plugin); + def("create_ut_pex_plugin", create_ut_pex_plugin_wrapper); + def("create_metadata_plugin", create_metadata_plugin_wrapper); }