forked from premiere/premiere-libtorrent
Add smart_ban to python binding extensions
This commit is contained in:
parent
dc79c3e13d
commit
9c3677794b
|
@ -9,6 +9,7 @@
|
|||
#include <libtorrent/extensions/ut_pex.hpp>
|
||||
#include <libtorrent/extensions/metadata_transfer.hpp>
|
||||
#include <libtorrent/extensions/ut_metadata.hpp>
|
||||
#include <libtorrent/extensions/smart_ban.hpp>
|
||||
#include <boost/python.hpp>
|
||||
#include "gil.hpp"
|
||||
|
||||
|
@ -123,6 +124,10 @@ boost::shared_ptr<torrent_plugin> create_ut_pex_plugin_wrapper(torrent* t) {
|
|||
return create_ut_pex_plugin(t, NULL);
|
||||
}
|
||||
|
||||
boost::shared_ptr<torrent_plugin> create_smart_ban_plugin_wrapper(torrent* t) {
|
||||
return create_smart_ban_plugin(t, NULL);
|
||||
}
|
||||
|
||||
void bind_extensions()
|
||||
{
|
||||
class_<
|
||||
|
@ -160,6 +165,7 @@ void bind_extensions()
|
|||
def("create_ut_pex_plugin", create_ut_pex_plugin_wrapper);
|
||||
def("create_metadata_plugin", create_metadata_plugin_wrapper);
|
||||
def("create_ut_metadata_plugin", create_ut_metadata_plugin_wrapper);
|
||||
def("create_smart_ban_plugin", create_smart_ban_plugin_wrapper);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue