fixes bug where priorities where lost when force-rechecking.
[libtorrent.git] / bindings / python / src / fingerprint.cpp
blobca40f3d4d8cc4993760aa32b02f600666d8e6cbe
1 // Copyright Daniel Wallin 2006. Use, modification and distribution is
2 // subject to the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 #include <libtorrent/fingerprint.hpp>
6 #include <boost/python.hpp>
8 void bind_fingerprint()
10 using namespace boost::python;
11 using namespace libtorrent;
13 class_<fingerprint>("fingerprint", no_init)
14 .def(
15 init<char const*,int,int,int,int>(
16 (arg("id"), "major", "minor", "revision", "tag")
19 .def("__str__", &fingerprint::to_string)
20 .def_readonly("name", &fingerprint::name)
21 .def_readonly("major_version", &fingerprint::major_version)
22 .def_readonly("minor_version", &fingerprint::minor_version)
23 .def_readonly("revision_version", &fingerprint::revision_version)
24 .def_readonly("tag_version", &fingerprint::tag_version)