Fix extensions.
This commit is contained in:
parent
7224fa7196
commit
bf0c8ba820
|
@ -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…
Reference in New Issue