mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +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
|
} // 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()
|
void bind_extensions()
|
||||||
{
|
{
|
||||||
class_<
|
class_<
|
||||||
|
@ -143,8 +152,8 @@ void bind_extensions()
|
||||||
class_<peer_connection, boost::noncopyable>("peer_connection", no_init);
|
class_<peer_connection, boost::noncopyable>("peer_connection", no_init);
|
||||||
|
|
||||||
class_<torrent_plugin, boost::shared_ptr<torrent_plugin> >("torrent_plugin", 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_ut_pex_plugin", create_ut_pex_plugin_wrapper);
|
||||||
def("create_metadata_plugin", create_metadata_plugin);
|
def("create_metadata_plugin", create_metadata_plugin_wrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue