forked from steeve/libtorrent-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibtorrent.i
50 lines (36 loc) · 889 Bytes
/
libtorrent.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%module libtorrent
%include "std_string.i"
%include "stdint.i"
#ifdef SWIGWIN
%include "windows.i"
#endif
#define BOOST_POSIX_API
namespace libtorrent
{
typedef int64_t size_type;
}
namespace std {
typedef int time_t;
}
namespace boost {
typedef ::int64_t int64_t;
}
%ignore libtorrent::throw_invalid_handle;
%ignore libtorrent::session::add_extension;
%include <boost/preprocessor/cat.hpp>
%include "libtorrent/config.hpp"
%include "libtorrent/version.hpp"
%include "libtorrent/build_config.hpp"
%include "libtorrent/size_type.hpp"
%include "error_code.i"
%include "common.i"
%include "torrent_info.i"
%include "libtorrent/fingerprint.hpp"
%include "add_torrent_params.i"
%include "alert.i"
%include "alert_types.i"
%include "session_settings.i"
%include "session.i"
%include "magnet_uri.i"
%include "torrent_handle.i"
%include "libtorrent/file_storage.hpp"