2007-01-10 17:11:43 +01:00
|
|
|
// Copyright Daniel Wallin 2006. Use, modification and distribution is
|
|
|
|
// subject to the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
#include <libtorrent/version.hpp>
|
2016-04-08 04:45:23 +02:00
|
|
|
#include "boost_python.hpp"
|
2007-01-10 17:11:43 +01:00
|
|
|
|
|
|
|
using namespace boost::python;
|
2015-11-11 06:57:51 +01:00
|
|
|
using libtorrent::version;
|
2007-01-10 17:11:43 +01:00
|
|
|
|
|
|
|
void bind_version()
|
|
|
|
{
|
2015-11-11 06:57:51 +01:00
|
|
|
scope().attr("__version__") = version();
|
|
|
|
|
|
|
|
#ifndef TORRENT_NO_DEPRECATE
|
2007-01-10 17:11:43 +01:00
|
|
|
scope().attr("version") = LIBTORRENT_VERSION;
|
|
|
|
scope().attr("version_major") = LIBTORRENT_VERSION_MAJOR;
|
|
|
|
scope().attr("version_minor") = LIBTORRENT_VERSION_MINOR;
|
2015-11-11 06:57:51 +01:00
|
|
|
#endif
|
2007-01-10 17:11:43 +01:00
|
|
|
}
|
|
|
|
|