premiere-libtorrent/bindings/python/src/module.cpp

57 lines
1.3 KiB
C++
Raw Normal View History

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)
#ifdef __GNUC__
#define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
#endif
#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();
void bind_ip_filter();
2008-09-09 16:03:35 +02:00
void bind_magnet_uri();
void bind_converters();
void bind_create_torrent();
2011-06-25 22:11:31 +02:00
void bind_error_code();
2007-01-10 17:11:43 +01:00
BOOST_PYTHON_MODULE(libtorrent)
2007-01-10 17:11:43 +01:00
{
Py_Initialize();
PyEval_InitThreads();
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();
bind_ip_filter();
2008-09-09 16:03:35 +02:00
bind_magnet_uri();
bind_create_torrent();
2007-01-10 17:11:43 +01:00
}