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)
|
|
|
|
|
2012-03-22 05:37:32 +01:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
|
|
|
|
#endif
|
|
|
|
|
2012-11-30 06:26:09 +01:00
|
|
|
#include "libtorrent/config.hpp"
|
2007-01-10 17:11:43 +01:00
|
|
|
#include <boost/python/module.hpp>
|
|
|
|
|
|
|
|
void bind_utility();
|
|
|
|
void bind_fingerprint();
|
2013-08-27 18:04:19 +02:00
|
|
|
void bind_sha1_hash();
|
2007-01-10 17:11:43 +01:00
|
|
|
void bind_session();
|
|
|
|
void bind_entry();
|
|
|
|
void bind_torrent_info();
|
2012-11-23 21:43:42 +01:00
|
|
|
void bind_unicode_string_conversion();
|
2007-01-10 17:11:43 +01:00
|
|
|
void bind_torrent_handle();
|
|
|
|
void bind_torrent_status();
|
|
|
|
void bind_session_settings();
|
|
|
|
void bind_version();
|
|
|
|
void bind_alert();
|
|
|
|
void bind_datetime();
|
|
|
|
void bind_peer_info();
|
2008-02-17 21:55:03 +01:00
|
|
|
void bind_ip_filter();
|
2008-09-09 16:03:35 +02:00
|
|
|
void bind_magnet_uri();
|
2009-01-24 06:29:23 +01:00
|
|
|
void bind_converters();
|
2009-02-21 09:39:26 +01:00
|
|
|
void bind_create_torrent();
|
2011-06-25 22:11:31 +02:00
|
|
|
void bind_error_code();
|
2007-01-10 17:11:43 +01:00
|
|
|
|
2015-09-23 18:13:00 +02:00
|
|
|
BOOST_PYTHON_MODULE(libtorrent)
|
2007-01-10 17:11:43 +01:00
|
|
|
{
|
|
|
|
Py_Initialize();
|
|
|
|
PyEval_InitThreads();
|
|
|
|
|
2017-07-09 16:32:01 +02:00
|
|
|
bind_converters();
|
2011-06-25 22:11:31 +02:00
|
|
|
bind_error_code();
|
2007-01-10 17:11:43 +01:00
|
|
|
bind_utility();
|
|
|
|
bind_fingerprint();
|
2013-08-27 18:04:19 +02:00
|
|
|
bind_sha1_hash();
|
2007-01-10 17:11:43 +01:00
|
|
|
bind_entry();
|
2014-07-06 21:18:00 +02:00
|
|
|
bind_torrent_handle();
|
2007-01-10 17:11:43 +01:00
|
|
|
bind_session();
|
|
|
|
bind_torrent_info();
|
2012-11-23 21:43:42 +01:00
|
|
|
bind_unicode_string_conversion();
|
2007-01-10 17:11:43 +01:00
|
|
|
bind_torrent_status();
|
|
|
|
bind_session_settings();
|
|
|
|
bind_version();
|
|
|
|
bind_alert();
|
|
|
|
bind_datetime();
|
|
|
|
bind_peer_info();
|
2008-02-17 21:55:03 +01:00
|
|
|
bind_ip_filter();
|
2008-09-09 16:03:35 +02:00
|
|
|
bind_magnet_uri();
|
2009-02-21 09:39:26 +01:00
|
|
|
bind_create_torrent();
|
2007-01-10 17:11:43 +01:00
|
|
|
}
|