Add create_ut_metadata_plugin() to bindings

This commit is contained in:
Andrew Resch 2008-09-14 18:34:58 +00:00
parent ba60d4818b
commit 027952f69d
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include <libtorrent/peer_connection.hpp> #include <libtorrent/peer_connection.hpp>
#include <libtorrent/extensions/ut_pex.hpp> #include <libtorrent/extensions/ut_pex.hpp>
#include <libtorrent/extensions/metadata_transfer.hpp> #include <libtorrent/extensions/metadata_transfer.hpp>
#include <libtorrent/extensions/ut_metadata.hpp>
#include <boost/python.hpp> #include <boost/python.hpp>
#include "gil.hpp" #include "gil.hpp"
@ -114,6 +115,10 @@ boost::shared_ptr<torrent_plugin> create_metadata_plugin_wrapper(torrent* t) {
return create_metadata_plugin(t, NULL); return create_metadata_plugin(t, NULL);
} }
boost::shared_ptr<torrent_plugin> create_ut_metadata_plugin_wrapper(torrent *t) {
return create_ut_metadata_plugin(t, NULL);
}
boost::shared_ptr<torrent_plugin> create_ut_pex_plugin_wrapper(torrent* t) { boost::shared_ptr<torrent_plugin> create_ut_pex_plugin_wrapper(torrent* t) {
return create_ut_pex_plugin(t, NULL); return create_ut_pex_plugin(t, NULL);
} }
@ -154,6 +159,7 @@ void bind_extensions()
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_wrapper); def("create_ut_pex_plugin", create_ut_pex_plugin_wrapper);
def("create_metadata_plugin", create_metadata_plugin_wrapper); def("create_metadata_plugin", create_metadata_plugin_wrapper);
def("create_ut_metadata_plugin", create_ut_metadata_plugin_wrapper);
} }