mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
Fix extensions.
This commit is contained in:
parent
7224fa7196
commit
bf0c8ba820
1 changed files with 11 additions and 2 deletions
|
@ -109,6 +109,15 @@ namespace
|
|||
|
||||
} // namespace unnamed
|
||||
|
||||
|
||||
boost::shared_ptr<torrent_plugin> create_metadata_plugin_wrapper(torrent* t) {
|
||||
return create_metadata_plugin(t, NULL);
|
||||
}
|
||||
|
||||
boost::shared_ptr<torrent_plugin> 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, boost::noncopyable>("peer_connection", no_init);
|
||||
|
||||
class_<torrent_plugin, boost::shared_ptr<torrent_plugin> >("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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue