diff --git a/src/main/java/com/frostwire/jlibtorrent/swig/dht_storage_counters.java b/src/main/java/com/frostwire/jlibtorrent/swig/dht_storage_counters.java deleted file mode 100644 index e381e8a4f..000000000 --- a/src/main/java/com/frostwire/jlibtorrent/swig/dht_storage_counters.java +++ /dev/null @@ -1,74 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.8 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package com.frostwire.jlibtorrent.swig; - -public class dht_storage_counters { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected dht_storage_counters(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(dht_storage_counters obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - libtorrent_jni.delete_dht_storage_counters(swigCPtr); - } - swigCPtr = 0; - } - } - - public void setTorrents(int value) { - libtorrent_jni.dht_storage_counters_torrents_set(swigCPtr, this, value); - } - - public int getTorrents() { - return libtorrent_jni.dht_storage_counters_torrents_get(swigCPtr, this); - } - - public void setPeers(int value) { - libtorrent_jni.dht_storage_counters_peers_set(swigCPtr, this, value); - } - - public int getPeers() { - return libtorrent_jni.dht_storage_counters_peers_get(swigCPtr, this); - } - - public void setImmutable_data(int value) { - libtorrent_jni.dht_storage_counters_immutable_data_set(swigCPtr, this, value); - } - - public int getImmutable_data() { - return libtorrent_jni.dht_storage_counters_immutable_data_get(swigCPtr, this); - } - - public void setMutable_data(int value) { - libtorrent_jni.dht_storage_counters_mutable_data_set(swigCPtr, this, value); - } - - public int getMutable_data() { - return libtorrent_jni.dht_storage_counters_mutable_data_get(swigCPtr, this); - } - - public dht_storage_counters() { - this(libtorrent_jni.new_dht_storage_counters(), true); - } - -} diff --git a/src/main/java/com/frostwire/jlibtorrent/swig/dht_storage_interface.java b/src/main/java/com/frostwire/jlibtorrent/swig/dht_storage_interface.java deleted file mode 100644 index f752f09e0..000000000 --- a/src/main/java/com/frostwire/jlibtorrent/swig/dht_storage_interface.java +++ /dev/null @@ -1,70 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.8 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package com.frostwire.jlibtorrent.swig; - -public class dht_storage_interface { - private transient long swigCPtr; - protected transient boolean swigCMemOwn; - - protected dht_storage_interface(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(dht_storage_interface obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - libtorrent_jni.delete_dht_storage_interface(swigCPtr); - } - swigCPtr = 0; - } - } - - public boolean get_peers(sha1_hash info_hash, boolean noseed, boolean scrape, entry peers) { - return libtorrent_jni.dht_storage_interface_get_peers(swigCPtr, this, sha1_hash.getCPtr(info_hash), info_hash, noseed, scrape, entry.getCPtr(peers), peers); - } - - public void announce_peer(sha1_hash info_hash, tcp_endpoint endp, String name, boolean seed) { - libtorrent_jni.dht_storage_interface_announce_peer(swigCPtr, this, sha1_hash.getCPtr(info_hash), info_hash, tcp_endpoint.getCPtr(endp), endp, name, seed); - } - - public boolean get_immutable_item(sha1_hash target, entry item) { - return libtorrent_jni.dht_storage_interface_get_immutable_item(swigCPtr, this, sha1_hash.getCPtr(target), target, entry.getCPtr(item), item); - } - - public void put_immutable_item(sha1_hash target, String buf, int size, address addr) { - libtorrent_jni.dht_storage_interface_put_immutable_item(swigCPtr, this, sha1_hash.getCPtr(target), target, buf, size, address.getCPtr(addr), addr); - } - - public boolean get_mutable_item(sha1_hash target, long seq, boolean force_fill, entry item) { - return libtorrent_jni.dht_storage_interface_get_mutable_item(swigCPtr, this, sha1_hash.getCPtr(target), target, seq, force_fill, entry.getCPtr(item), item); - } - - public void put_mutable_item(sha1_hash target, String buf, int size, String sig, long seq, String pk, String salt, int salt_size, address addr) { - libtorrent_jni.dht_storage_interface_put_mutable_item(swigCPtr, this, sha1_hash.getCPtr(target), target, buf, size, sig, seq, pk, salt, salt_size, address.getCPtr(addr), addr); - } - - public void tick() { - libtorrent_jni.dht_storage_interface_tick(swigCPtr, this); - } - - public dht_storage_counters counters() { - return new dht_storage_counters(libtorrent_jni.dht_storage_interface_counters(swigCPtr, this), true); - } - -} diff --git a/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent.java b/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent.java index c48d1bb5c..98443d92a 100644 --- a/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent.java +++ b/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent.java @@ -157,11 +157,6 @@ public static void set_piece_hashes(create_torrent t, String p, error_code ec) { libtorrent_jni.set_piece_hashes(create_torrent.getCPtr(t), t, p, error_code.getCPtr(ec), ec); } - public static dht_storage_interface dht_default_storage_constructor(sha1_hash id, dht_settings settings) { - long cPtr = libtorrent_jni.dht_default_storage_constructor(sha1_hash.getCPtr(id), id, dht_settings.getCPtr(settings), settings); - return (cPtr == 0) ? null : new dht_storage_interface(cPtr, false); - } - public static boolean is_utp_stream_logging() { return libtorrent_jni.is_utp_stream_logging(); } diff --git a/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent_jni.java b/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent_jni.java index 990de8953..83119df2d 100644 --- a/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent_jni.java +++ b/src/main/java/com/frostwire/jlibtorrent/swig/libtorrent_jni.java @@ -2475,8 +2475,6 @@ public class libtorrent_jni { public final static native int session_handle_tcp_get(); public final static native int session_handle_add_port_mapping(long jarg1, session_handle jarg1_, int jarg2, int jarg3, int jarg4); public final static native void session_handle_delete_port_mapping(long jarg1, session_handle jarg1_, int jarg2); - public final static native void session_handle_add_lt_trackers_extension(long jarg1, session_handle jarg1_); - public final static native void session_handle_add_smart_ban_extension(long jarg1, session_handle jarg1_); public final static native void session_handle_dht_get_item__SWIG_1(long jarg1, session_handle jarg1_, long jarg2, byte_vector jarg2_, String jarg3); public final static native void session_handle_dht_get_item__SWIG_2(long jarg1, session_handle jarg1_, long jarg2, byte_vector jarg2_); public final static native void session_handle_dht_put_item__SWIG_1(long jarg1, session_handle jarg1_, long jarg2, byte_vector jarg2_, long jarg3, byte_vector jarg3_, long jarg4, entry jarg4_, String jarg5); @@ -2909,26 +2907,6 @@ public class libtorrent_jni { public final static native int ed25519_signature_size_get(); public final static native int ed25519_scalar_size_get(); public final static native int ed25519_shared_secret_size_get(); - public final static native void dht_storage_counters_torrents_set(long jarg1, dht_storage_counters jarg1_, int jarg2); - public final static native int dht_storage_counters_torrents_get(long jarg1, dht_storage_counters jarg1_); - public final static native void dht_storage_counters_peers_set(long jarg1, dht_storage_counters jarg1_, int jarg2); - public final static native int dht_storage_counters_peers_get(long jarg1, dht_storage_counters jarg1_); - public final static native void dht_storage_counters_immutable_data_set(long jarg1, dht_storage_counters jarg1_, int jarg2); - public final static native int dht_storage_counters_immutable_data_get(long jarg1, dht_storage_counters jarg1_); - public final static native void dht_storage_counters_mutable_data_set(long jarg1, dht_storage_counters jarg1_, int jarg2); - public final static native int dht_storage_counters_mutable_data_get(long jarg1, dht_storage_counters jarg1_); - public final static native long new_dht_storage_counters(); - public final static native void delete_dht_storage_counters(long jarg1); - public final static native boolean dht_storage_interface_get_peers(long jarg1, dht_storage_interface jarg1_, long jarg2, sha1_hash jarg2_, boolean jarg3, boolean jarg4, long jarg5, entry jarg5_); - public final static native void dht_storage_interface_announce_peer(long jarg1, dht_storage_interface jarg1_, long jarg2, sha1_hash jarg2_, long jarg3, tcp_endpoint jarg3_, String jarg4, boolean jarg5); - public final static native boolean dht_storage_interface_get_immutable_item(long jarg1, dht_storage_interface jarg1_, long jarg2, sha1_hash jarg2_, long jarg3, entry jarg3_); - public final static native void dht_storage_interface_put_immutable_item(long jarg1, dht_storage_interface jarg1_, long jarg2, sha1_hash jarg2_, String jarg3, int jarg4, long jarg5, address jarg5_); - public final static native boolean dht_storage_interface_get_mutable_item(long jarg1, dht_storage_interface jarg1_, long jarg2, sha1_hash jarg2_, long jarg3, boolean jarg4, long jarg5, entry jarg5_); - public final static native void dht_storage_interface_put_mutable_item(long jarg1, dht_storage_interface jarg1_, long jarg2, sha1_hash jarg2_, String jarg3, int jarg4, String jarg5, long jarg6, String jarg7, String jarg8, int jarg9, long jarg10, address jarg10_); - public final static native void dht_storage_interface_tick(long jarg1, dht_storage_interface jarg1_); - public final static native long dht_storage_interface_counters(long jarg1, dht_storage_interface jarg1_); - public final static native void delete_dht_storage_interface(long jarg1); - public final static native long dht_default_storage_constructor(long jarg1, sha1_hash jarg1_, long jarg2, dht_settings jarg2_); public final static native long new_address__SWIG_0(); public final static native long new_address__SWIG_1(long jarg1, address_v4 jarg1_); public final static native long new_address__SWIG_2(long jarg1, address_v6 jarg1_); diff --git a/src/main/java/com/frostwire/jlibtorrent/swig/session_handle.java b/src/main/java/com/frostwire/jlibtorrent/swig/session_handle.java index f7fc211fd..53ee2fb30 100644 --- a/src/main/java/com/frostwire/jlibtorrent/swig/session_handle.java +++ b/src/main/java/com/frostwire/jlibtorrent/swig/session_handle.java @@ -244,14 +244,6 @@ public void delete_port_mapping(int handle) { libtorrent_jni.session_handle_delete_port_mapping(swigCPtr, this, handle); } - public void add_lt_trackers_extension() { - libtorrent_jni.session_handle_add_lt_trackers_extension(swigCPtr, this); - } - - public void add_smart_ban_extension() { - libtorrent_jni.session_handle_add_smart_ban_extension(swigCPtr, this); - } - public void dht_get_item(byte_vector key_v, String salt) { libtorrent_jni.session_handle_dht_get_item__SWIG_1(swigCPtr, this, byte_vector.getCPtr(key_v), key_v, salt); } diff --git a/swig/libtorrent.i b/swig/libtorrent.i index 17b0c2101..62c7a5320 100644 --- a/swig/libtorrent.i +++ b/swig/libtorrent.i @@ -75,13 +75,6 @@ #include "libtorrent/torrent_status.hpp" #include "libtorrent/ed25519.hpp" -#include "libtorrent/kademlia/dht_storage.hpp" - -#include "libtorrent/extensions/ut_pex.hpp" -#include "libtorrent/extensions/ut_metadata.hpp" -#include "libtorrent/extensions/lt_trackers.hpp" -#include "libtorrent/extensions/smart_ban.hpp" - using namespace boost; using namespace boost::system; @@ -494,8 +487,6 @@ namespace std { %ignore libtorrent::bitfield::begin; %ignore libtorrent::bitfield::end; -%ignore libtorrent::dht::dht_storage_interface::get_mutable_item_seq; - %ignore boost::throws; %ignore boost::detail::throws; %ignore boost::asio::ip::address_v4::to_bytes; @@ -604,8 +595,6 @@ namespace std { %include "libtorrent/torrent_status.hpp" %include "libtorrent/ed25519.hpp" -%include "libtorrent/kademlia/dht_storage.hpp" - namespace boost { namespace asio { @@ -852,14 +841,6 @@ namespace libtorrent { %extend session_handle { - void add_lt_trackers_extension() { - $self->add_extension(&libtorrent::create_lt_trackers_plugin); - } - - void add_smart_ban_extension() { - $self->add_extension(&libtorrent::create_smart_ban_plugin); - } - void dht_get_item(std::vector& key_v, std::string salt = std::string()) { if (key_v.size() != 32) { throw std::invalid_argument("Public key must be of size 32"); diff --git a/swig/libtorrent_jni.cpp b/swig/libtorrent_jni.cpp index 1e13ee973..c0771ac2e 100644 --- a/swig/libtorrent_jni.cpp +++ b/swig/libtorrent_jni.cpp @@ -737,13 +737,6 @@ namespace Swig { #include "libtorrent/torrent_status.hpp" #include "libtorrent/ed25519.hpp" -#include "libtorrent/kademlia/dht_storage.hpp" - -#include "libtorrent/extensions/ut_pex.hpp" -#include "libtorrent/extensions/ut_metadata.hpp" -#include "libtorrent/extensions/lt_trackers.hpp" -#include "libtorrent/extensions/smart_ban.hpp" - using namespace boost; using namespace boost::system; @@ -1405,12 +1398,6 @@ SWIGINTERN int libtorrent_dht_stats_alert_total_nodes(libtorrent::dht_stats_aler SWIGINTERN std::vector< int8_t > libtorrent_dht_pkt_alert_pkt_buf_v(libtorrent::dht_pkt_alert *self){ return std::vector(self->pkt_buf(), self->pkt_buf() + self->pkt_size()); } -SWIGINTERN void libtorrent_session_handle_add_lt_trackers_extension(libtorrent::session_handle *self){ - self->add_extension(&libtorrent::create_lt_trackers_plugin); - } -SWIGINTERN void libtorrent_session_handle_add_smart_ban_extension(libtorrent::session_handle *self){ - self->add_extension(&libtorrent::create_smart_ban_plugin); - } SWIGINTERN void libtorrent_session_handle_dht_get_item__SWIG_1(libtorrent::session_handle *self,std::vector< int8_t > &key_v,std::string salt=std::string()){ if (key_v.size() != 32) { throw std::invalid_argument("Public key must be of size 32"); @@ -51569,44 +51556,6 @@ SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_sess } -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1handle_1add_1lt_1trackers_1extension(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - libtorrent::session_handle *arg1 = (libtorrent::session_handle *) 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::session_handle **)&jarg1; - { - try { - libtorrent_session_handle_add_lt_trackers_extension(arg1); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1handle_1add_1smart_1ban_1extension(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - libtorrent::session_handle *arg1 = (libtorrent::session_handle *) 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::session_handle **)&jarg1; - { - try { - libtorrent_session_handle_add_smart_ban_extension(arg1); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } -} - - SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1handle_1dht_1get_1item_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3) { libtorrent::session_handle *arg1 = (libtorrent::session_handle *) 0 ; std::vector< int8_t > *arg2 = 0 ; @@ -59868,523 +59817,6 @@ SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_ed25 } -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1torrents_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - arg2 = (boost::int32_t)jarg2; - if (arg1) (arg1)->torrents = arg2; -} - - -SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1torrents_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - jint jresult = 0 ; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - result = (boost::int32_t) ((arg1)->torrents); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1peers_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - arg2 = (boost::int32_t)jarg2; - if (arg1) (arg1)->peers = arg2; -} - - -SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1peers_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - jint jresult = 0 ; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - result = (boost::int32_t) ((arg1)->peers); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1immutable_1data_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - arg2 = (boost::int32_t)jarg2; - if (arg1) (arg1)->immutable_data = arg2; -} - - -SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1immutable_1data_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - jint jresult = 0 ; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - result = (boost::int32_t) ((arg1)->immutable_data); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1mutable_1data_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - arg2 = (boost::int32_t)jarg2; - if (arg1) (arg1)->mutable_data = arg2; -} - - -SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1counters_1mutable_1data_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - jint jresult = 0 ; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - result = (boost::int32_t) ((arg1)->mutable_data); - jresult = (jint)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_new_1dht_1storage_1counters(JNIEnv *jenv, jclass jcls) { - jlong jresult = 0 ; - libtorrent::dht::dht_storage_counters *result = 0 ; - - (void)jenv; - (void)jcls; - { - try { - result = (libtorrent::dht::dht_storage_counters *)new libtorrent::dht::dht_storage_counters(); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - *(libtorrent::dht::dht_storage_counters **)&jresult = result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_delete_1dht_1storage_1counters(JNIEnv *jenv, jclass jcls, jlong jarg1) { - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - - (void)jenv; - (void)jcls; - arg1 = *(libtorrent::dht::dht_storage_counters **)&jarg1; - { - try { - delete arg1; - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } -} - - -SWIGEXPORT jboolean JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1get_1peers(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jboolean jarg3, jboolean jarg4, jlong jarg5, jobject jarg5_) { - jboolean jresult = 0 ; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - bool arg3 ; - bool arg4 ; - libtorrent::entry *arg5 = 0 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg5_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - arg2 = *(libtorrent::sha1_hash **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return 0; - } - arg3 = jarg3 ? true : false; - arg4 = jarg4 ? true : false; - arg5 = *(libtorrent::entry **)&jarg5; - if (!arg5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::entry & reference is null"); - return 0; - } - { - try { - result = (bool)((libtorrent::dht::dht_storage_interface const *)arg1)->get_peers((libtorrent::sha1_hash const &)*arg2,arg3,arg4,*arg5); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - jresult = (jboolean)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1announce_1peer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jstring jarg4, jboolean jarg5) { - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - tcp::endpoint *arg3 = 0 ; - std::string *arg4 = 0 ; - bool arg5 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - arg2 = *(libtorrent::sha1_hash **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return ; - } - arg3 = *(tcp::endpoint **)&jarg3; - if (!arg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "tcp::endpoint const & reference is null"); - return ; - } - if(!jarg4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null string"); - return ; - } - const char *arg4_pstr = (const char *)jenv->GetStringUTFChars(jarg4, 0); - if (!arg4_pstr) return ; - std::string arg4_str(arg4_pstr); - arg4 = &arg4_str; - jenv->ReleaseStringUTFChars(jarg4, arg4_pstr); - arg5 = jarg5 ? true : false; - { - try { - (arg1)->announce_peer((libtorrent::sha1_hash const &)*arg2,(tcp::endpoint const &)*arg3,(std::string const &)*arg4,arg5); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } -} - - -SWIGEXPORT jboolean JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1get_1immutable_1item(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { - jboolean jresult = 0 ; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - libtorrent::entry *arg3 = 0 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - arg2 = *(libtorrent::sha1_hash **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return 0; - } - arg3 = *(libtorrent::entry **)&jarg3; - if (!arg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::entry & reference is null"); - return 0; - } - { - try { - result = (bool)((libtorrent::dht::dht_storage_interface const *)arg1)->get_immutable_item((libtorrent::sha1_hash const &)*arg2,*arg3); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - jresult = (jboolean)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1put_1immutable_1item(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3, jint jarg4, jlong jarg5, jobject jarg5_) { - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - libtorrent::address *arg5 = 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg5_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - arg2 = *(libtorrent::sha1_hash **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return ; - } - arg3 = 0; - if (jarg3) { - arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); - if (!arg3) return ; - } - arg4 = (int)jarg4; - arg5 = *(libtorrent::address **)&jarg5; - if (!arg5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::address const & reference is null"); - return ; - } - { - try { - (arg1)->put_immutable_item((libtorrent::sha1_hash const &)*arg2,(char const *)arg3,arg4,(libtorrent::address const &)*arg5); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); -} - - -SWIGEXPORT jboolean JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1get_1mutable_1item(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jboolean jarg4, jlong jarg5, jobject jarg5_) { - jboolean jresult = 0 ; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - boost::int64_t arg3 ; - bool arg4 ; - libtorrent::entry *arg5 = 0 ; - bool result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg5_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - arg2 = *(libtorrent::sha1_hash **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return 0; - } - arg3 = (boost::int64_t)jarg3; - arg4 = jarg4 ? true : false; - arg5 = *(libtorrent::entry **)&jarg5; - if (!arg5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::entry & reference is null"); - return 0; - } - { - try { - result = (bool)((libtorrent::dht::dht_storage_interface const *)arg1)->get_mutable_item((libtorrent::sha1_hash const &)*arg2,arg3,arg4,*arg5); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - jresult = (jboolean)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1put_1mutable_1item(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jstring jarg3, jint jarg4, jstring jarg5, jlong jarg6, jstring jarg7, jstring jarg8, jint jarg9, jlong jarg10, jobject jarg10_) { - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - boost::int64_t arg6 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - int arg9 ; - libtorrent::address *arg10 = 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg10_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - arg2 = *(libtorrent::sha1_hash **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return ; - } - arg3 = 0; - if (jarg3) { - arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); - if (!arg3) return ; - } - arg4 = (int)jarg4; - arg5 = 0; - if (jarg5) { - arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); - if (!arg5) return ; - } - arg6 = (boost::int64_t)jarg6; - arg7 = 0; - if (jarg7) { - arg7 = (char *)jenv->GetStringUTFChars(jarg7, 0); - if (!arg7) return ; - } - arg8 = 0; - if (jarg8) { - arg8 = (char *)jenv->GetStringUTFChars(jarg8, 0); - if (!arg8) return ; - } - arg9 = (int)jarg9; - arg10 = *(libtorrent::address **)&jarg10; - if (!arg10) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::address const & reference is null"); - return ; - } - { - try { - (arg1)->put_mutable_item((libtorrent::sha1_hash const &)*arg2,(char const *)arg3,arg4,(char const *)arg5,arg6,(char const *)arg7,(char const *)arg8,arg9,(libtorrent::address const &)*arg10); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); - if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); - if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7); - if (arg8) jenv->ReleaseStringUTFChars(jarg8, (const char *)arg8); -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1tick(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - { - try { - (arg1)->tick(); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } -} - - -SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1storage_1interface_1counters(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - jlong jresult = 0 ; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::dht::dht_storage_counters result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - { - try { - result = ((libtorrent::dht::dht_storage_interface const *)arg1)->counters(); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - *(libtorrent::dht::dht_storage_counters **)&jresult = new libtorrent::dht::dht_storage_counters((const libtorrent::dht::dht_storage_counters &)result); - return jresult; -} - - -SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_delete_1dht_1storage_1interface(JNIEnv *jenv, jclass jcls, jlong jarg1) { - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - - (void)jenv; - (void)jcls; - arg1 = *(libtorrent::dht::dht_storage_interface **)&jarg1; - { - try { - delete arg1; - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } -} - - -SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dht_1default_1storage_1constructor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { - jlong jresult = 0 ; - libtorrent::sha1_hash *arg1 = 0 ; - libtorrent::dht_settings *arg2 = 0 ; - libtorrent::dht::dht_storage_interface *result = 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(libtorrent::sha1_hash **)&jarg1; - if (!arg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::sha1_hash const & reference is null"); - return 0; - } - arg2 = *(libtorrent::dht_settings **)&jarg2; - if (!arg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "libtorrent::dht_settings const & reference is null"); - return 0; - } - { - try { - result = (libtorrent::dht::dht_storage_interface *)libtorrent::dht::dht_default_storage_constructor((libtorrent::sha1_hash const &)*arg1,(libtorrent::dht_settings const &)*arg2); - } catch (std::exception& e) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, e.what()); - } catch (...) { - SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Unknown exception type"); - } - } - *(libtorrent::dht::dht_storage_interface **)&jresult = result; - return jresult; -} - - SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_new_1address_1_1SWIG_10(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; boost::asio::ip::address *result = 0 ; @@ -62260,7 +61692,7 @@ SWIGEXPORT jstring JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_J (void)jenv; (void)jcls; - result = (char *)("f85cb7c6703faaf5e8187e9a334f29cdc6bed2cd"); + result = (char *)("21ab91241696ae533210b9cc2c783b0b8a091b97"); if (result) jresult = jenv->NewStringUTF((const char *)result); return jresult; } diff --git a/swig/libtorrent_node.cpp b/swig/libtorrent_node.cpp index 9d50bf6d5..b124a50cb 100644 --- a/swig/libtorrent_node.cpp +++ b/swig/libtorrent_node.cpp @@ -1486,229 +1486,226 @@ SWIGRUNTIME void JS_veto_set_variable(v8::Local property, v8::Local< #define SWIGTYPE_p_boost__chrono__high_resolution_clock__duration swig_types[5] #define SWIGTYPE_p_boost__chrono__high_resolution_clock__time_point swig_types[6] #define SWIGTYPE_p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t swig_types[7] -#define SWIGTYPE_p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t swig_types[8] -#define SWIGTYPE_p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t swig_types[9] -#define SWIGTYPE_p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t swig_types[10] -#define SWIGTYPE_p_boost__system__error_category swig_types[11] -#define SWIGTYPE_p_boost__system__error_code swig_types[12] -#define SWIGTYPE_p_boost__system__error_condition swig_types[13] -#define SWIGTYPE_p_char swig_types[14] -#define SWIGTYPE_p_dht_extension_handler_listener swig_types[15] -#define SWIGTYPE_p_dictionary_type swig_types[16] -#define SWIGTYPE_p_difference_type swig_types[17] -#define SWIGTYPE_p_filter_tuple_t swig_types[18] -#define SWIGTYPE_p_headers_t swig_types[19] -#define SWIGTYPE_p_int swig_types[20] -#define SWIGTYPE_p_integer_type swig_types[21] -#define SWIGTYPE_p_key_type swig_types[22] -#define SWIGTYPE_p_libtorrent__add_torrent_alert swig_types[23] -#define SWIGTYPE_p_libtorrent__add_torrent_params swig_types[24] -#define SWIGTYPE_p_libtorrent__alert swig_types[25] -#define SWIGTYPE_p_libtorrent__announce_entry swig_types[26] -#define SWIGTYPE_p_libtorrent__anonymous_mode_alert swig_types[27] -#define SWIGTYPE_p_libtorrent__bdecode_node swig_types[28] -#define SWIGTYPE_p_libtorrent__bitfield swig_types[29] -#define SWIGTYPE_p_libtorrent__block_downloading_alert swig_types[30] -#define SWIGTYPE_p_libtorrent__block_finished_alert swig_types[31] -#define SWIGTYPE_p_libtorrent__block_info swig_types[32] -#define SWIGTYPE_p_libtorrent__block_timeout_alert swig_types[33] -#define SWIGTYPE_p_libtorrent__bt_peer_connection_handle swig_types[34] -#define SWIGTYPE_p_libtorrent__cache_flushed_alert swig_types[35] -#define SWIGTYPE_p_libtorrent__counters swig_types[36] -#define SWIGTYPE_p_libtorrent__create_torrent swig_types[37] -#define SWIGTYPE_p_libtorrent__default_storage swig_types[38] -#define SWIGTYPE_p_libtorrent__detail__bdecode_token swig_types[39] -#define SWIGTYPE_p_libtorrent__dht__dht_storage_counters swig_types[40] -#define SWIGTYPE_p_libtorrent__dht__dht_storage_interface swig_types[41] -#define SWIGTYPE_p_libtorrent__dht_announce_alert swig_types[42] -#define SWIGTYPE_p_libtorrent__dht_bootstrap_alert swig_types[43] -#define SWIGTYPE_p_libtorrent__dht_direct_response_alert swig_types[44] -#define SWIGTYPE_p_libtorrent__dht_error_alert swig_types[45] -#define SWIGTYPE_p_libtorrent__dht_get_peers_alert swig_types[46] -#define SWIGTYPE_p_libtorrent__dht_get_peers_reply_alert swig_types[47] -#define SWIGTYPE_p_libtorrent__dht_immutable_item_alert swig_types[48] -#define SWIGTYPE_p_libtorrent__dht_log_alert swig_types[49] -#define SWIGTYPE_p_libtorrent__dht_lookup swig_types[50] -#define SWIGTYPE_p_libtorrent__dht_mutable_item_alert swig_types[51] -#define SWIGTYPE_p_libtorrent__dht_outgoing_get_peers_alert swig_types[52] -#define SWIGTYPE_p_libtorrent__dht_pkt_alert swig_types[53] -#define SWIGTYPE_p_libtorrent__dht_put_alert swig_types[54] -#define SWIGTYPE_p_libtorrent__dht_reply_alert swig_types[55] -#define SWIGTYPE_p_libtorrent__dht_routing_bucket swig_types[56] -#define SWIGTYPE_p_libtorrent__dht_settings swig_types[57] -#define SWIGTYPE_p_libtorrent__dht_stats_alert swig_types[58] -#define SWIGTYPE_p_libtorrent__disabled_storage swig_types[59] -#define SWIGTYPE_p_libtorrent__disk_buffer_holder swig_types[60] -#define SWIGTYPE_p_libtorrent__disk_job_fence swig_types[61] -#define SWIGTYPE_p_libtorrent__entry swig_types[62] -#define SWIGTYPE_p_libtorrent__external_ip_alert swig_types[63] -#define SWIGTYPE_p_libtorrent__fastresume_rejected_alert swig_types[64] -#define SWIGTYPE_p_libtorrent__file_completed_alert swig_types[65] -#define SWIGTYPE_p_libtorrent__file_error_alert swig_types[66] -#define SWIGTYPE_p_libtorrent__file_rename_failed_alert swig_types[67] -#define SWIGTYPE_p_libtorrent__file_renamed_alert swig_types[68] -#define SWIGTYPE_p_libtorrent__file_slice swig_types[69] -#define SWIGTYPE_p_libtorrent__file_storage swig_types[70] -#define SWIGTYPE_p_libtorrent__fingerprint swig_types[71] -#define SWIGTYPE_p_libtorrent__hash_failed_alert swig_types[72] -#define SWIGTYPE_p_libtorrent__i2p_alert swig_types[73] -#define SWIGTYPE_p_libtorrent__incoming_connection_alert swig_types[74] -#define SWIGTYPE_p_libtorrent__incoming_request_alert swig_types[75] -#define SWIGTYPE_p_libtorrent__invalid_request_alert swig_types[76] -#define SWIGTYPE_p_libtorrent__ip_filter swig_types[77] -#define SWIGTYPE_p_libtorrent__listen_failed_alert swig_types[78] -#define SWIGTYPE_p_libtorrent__listen_succeeded_alert swig_types[79] -#define SWIGTYPE_p_libtorrent__log_alert swig_types[80] -#define SWIGTYPE_p_libtorrent__lsd_error_alert swig_types[81] -#define SWIGTYPE_p_libtorrent__lsd_peer_alert swig_types[82] -#define SWIGTYPE_p_libtorrent__metadata_failed_alert swig_types[83] -#define SWIGTYPE_p_libtorrent__metadata_received_alert swig_types[84] -#define SWIGTYPE_p_libtorrent__mmap_cache_alert swig_types[85] -#define SWIGTYPE_p_libtorrent__partial_piece_info swig_types[86] -#define SWIGTYPE_p_libtorrent__peer_alert swig_types[87] -#define SWIGTYPE_p_libtorrent__peer_ban_alert swig_types[88] -#define SWIGTYPE_p_libtorrent__peer_blocked_alert swig_types[89] -#define SWIGTYPE_p_libtorrent__peer_class swig_types[90] -#define SWIGTYPE_p_libtorrent__peer_class_info swig_types[91] -#define SWIGTYPE_p_libtorrent__peer_class_pool swig_types[92] -#define SWIGTYPE_p_libtorrent__peer_class_type_filter swig_types[93] -#define SWIGTYPE_p_libtorrent__peer_connect_alert swig_types[94] -#define SWIGTYPE_p_libtorrent__peer_connection_handle swig_types[95] -#define SWIGTYPE_p_libtorrent__peer_disconnected_alert swig_types[96] -#define SWIGTYPE_p_libtorrent__peer_error_alert swig_types[97] -#define SWIGTYPE_p_libtorrent__peer_info swig_types[98] -#define SWIGTYPE_p_libtorrent__peer_list_entry swig_types[99] -#define SWIGTYPE_p_libtorrent__peer_log_alert swig_types[100] -#define SWIGTYPE_p_libtorrent__peer_plugin swig_types[101] -#define SWIGTYPE_p_libtorrent__peer_request swig_types[102] -#define SWIGTYPE_p_libtorrent__peer_snubbed_alert swig_types[103] -#define SWIGTYPE_p_libtorrent__peer_unsnubbed_alert swig_types[104] -#define SWIGTYPE_p_libtorrent__performance_alert swig_types[105] -#define SWIGTYPE_p_libtorrent__picker_log_alert swig_types[106] -#define SWIGTYPE_p_libtorrent__piece_finished_alert swig_types[107] -#define SWIGTYPE_p_libtorrent__piece_manager swig_types[108] -#define SWIGTYPE_p_libtorrent__pool_file_status swig_types[109] -#define SWIGTYPE_p_libtorrent__port_filter swig_types[110] -#define SWIGTYPE_p_libtorrent__portmap_alert swig_types[111] -#define SWIGTYPE_p_libtorrent__portmap_error_alert swig_types[112] -#define SWIGTYPE_p_libtorrent__portmap_log_alert swig_types[113] -#define SWIGTYPE_p_libtorrent__read_piece_alert swig_types[114] -#define SWIGTYPE_p_libtorrent__request_dropped_alert swig_types[115] -#define SWIGTYPE_p_libtorrent__save_resume_data_alert swig_types[116] -#define SWIGTYPE_p_libtorrent__save_resume_data_failed_alert swig_types[117] -#define SWIGTYPE_p_libtorrent__scrape_failed_alert swig_types[118] -#define SWIGTYPE_p_libtorrent__scrape_reply_alert swig_types[119] -#define SWIGTYPE_p_libtorrent__session swig_types[120] -#define SWIGTYPE_p_libtorrent__session_handle swig_types[121] -#define SWIGTYPE_p_libtorrent__session_proxy swig_types[122] -#define SWIGTYPE_p_libtorrent__session_stats_alert swig_types[123] -#define SWIGTYPE_p_libtorrent__settings_pack swig_types[124] -#define SWIGTYPE_p_libtorrent__sha1_hash swig_types[125] -#define SWIGTYPE_p_libtorrent__stat swig_types[126] -#define SWIGTYPE_p_libtorrent__stat_channel swig_types[127] -#define SWIGTYPE_p_libtorrent__state_changed_alert swig_types[128] -#define SWIGTYPE_p_libtorrent__state_update_alert swig_types[129] -#define SWIGTYPE_p_libtorrent__stats_alert swig_types[130] -#define SWIGTYPE_p_libtorrent__stats_metric swig_types[131] -#define SWIGTYPE_p_libtorrent__storage_error swig_types[132] -#define SWIGTYPE_p_libtorrent__storage_interface swig_types[133] -#define SWIGTYPE_p_libtorrent__storage_moved_alert swig_types[134] -#define SWIGTYPE_p_libtorrent__storage_moved_failed_alert swig_types[135] -#define SWIGTYPE_p_libtorrent__storage_params swig_types[136] -#define SWIGTYPE_p_libtorrent__storage_piece_set swig_types[137] -#define SWIGTYPE_p_libtorrent__torrent_added_alert swig_types[138] -#define SWIGTYPE_p_libtorrent__torrent_alert swig_types[139] -#define SWIGTYPE_p_libtorrent__torrent_checked_alert swig_types[140] -#define SWIGTYPE_p_libtorrent__torrent_delete_failed_alert swig_types[141] -#define SWIGTYPE_p_libtorrent__torrent_deleted_alert swig_types[142] -#define SWIGTYPE_p_libtorrent__torrent_error_alert swig_types[143] -#define SWIGTYPE_p_libtorrent__torrent_finished_alert swig_types[144] -#define SWIGTYPE_p_libtorrent__torrent_handle swig_types[145] -#define SWIGTYPE_p_libtorrent__torrent_info swig_types[146] -#define SWIGTYPE_p_libtorrent__torrent_log_alert swig_types[147] -#define SWIGTYPE_p_libtorrent__torrent_need_cert_alert swig_types[148] -#define SWIGTYPE_p_libtorrent__torrent_paused_alert swig_types[149] -#define SWIGTYPE_p_libtorrent__torrent_plugin swig_types[150] -#define SWIGTYPE_p_libtorrent__torrent_removed_alert swig_types[151] -#define SWIGTYPE_p_libtorrent__torrent_resumed_alert swig_types[152] -#define SWIGTYPE_p_libtorrent__torrent_status swig_types[153] -#define SWIGTYPE_p_libtorrent__torrent_update_alert swig_types[154] -#define SWIGTYPE_p_libtorrent__tracker_alert swig_types[155] -#define SWIGTYPE_p_libtorrent__tracker_announce_alert swig_types[156] -#define SWIGTYPE_p_libtorrent__tracker_error_alert swig_types[157] -#define SWIGTYPE_p_libtorrent__tracker_reply_alert swig_types[158] -#define SWIGTYPE_p_libtorrent__tracker_warning_alert swig_types[159] -#define SWIGTYPE_p_libtorrent__trackerid_alert swig_types[160] -#define SWIGTYPE_p_libtorrent__type_error swig_types[161] -#define SWIGTYPE_p_libtorrent__udp_error_alert swig_types[162] -#define SWIGTYPE_p_libtorrent__unwanted_block_alert swig_types[163] -#define SWIGTYPE_p_libtorrent__url_seed_alert swig_types[164] -#define SWIGTYPE_p_libtorrent__web_seed_entry swig_types[165] -#define SWIGTYPE_p_libtorrent__zero_storage swig_types[166] -#define SWIGTYPE_p_list_type swig_types[167] -#define SWIGTYPE_p_long swig_types[168] -#define SWIGTYPE_p_long_long swig_types[169] -#define SWIGTYPE_p_mapped_type swig_types[170] -#define SWIGTYPE_p_nodes_t swig_types[171] -#define SWIGTYPE_p_posix_stat swig_types[172] -#define SWIGTYPE_p_posix_wrapper swig_types[173] -#define SWIGTYPE_p_set_piece_hashes_listener swig_types[174] -#define SWIGTYPE_p_short swig_types[175] -#define SWIGTYPE_p_signed_char swig_types[176] -#define SWIGTYPE_p_size_type swig_types[177] -#define SWIGTYPE_p_std__listT_libtorrent__entry_t swig_types[178] -#define SWIGTYPE_p_std__listT_std__string_t swig_types[179] -#define SWIGTYPE_p_std__mapT_int_libtorrent__sha1_hash_t swig_types[180] -#define SWIGTYPE_p_std__mapT_std__string_libtorrent__entry_t swig_types[181] -#define SWIGTYPE_p_std__mapT_std__string_long_t swig_types[182] -#define SWIGTYPE_p_std__pairT_int_int_t swig_types[183] -#define SWIGTYPE_p_std__pairT_std__string_dht_extension_handler_listener_p_t swig_types[184] -#define SWIGTYPE_p_std__pairT_std__string_int_t swig_types[185] -#define SWIGTYPE_p_std__pairT_std__string_libtorrent__bdecode_node_t swig_types[186] -#define SWIGTYPE_p_std__pairT_std__string_std__string_t swig_types[187] -#define SWIGTYPE_p_std__runtime_error swig_types[188] -#define SWIGTYPE_p_std__vectorT_int_t swig_types[189] -#define SWIGTYPE_p_std__vectorT_libtorrent__alert_p_t swig_types[190] -#define SWIGTYPE_p_std__vectorT_libtorrent__announce_entry_t swig_types[191] -#define SWIGTYPE_p_std__vectorT_libtorrent__dht_lookup_t swig_types[192] -#define SWIGTYPE_p_std__vectorT_libtorrent__dht_routing_bucket_t swig_types[193] -#define SWIGTYPE_p_std__vectorT_libtorrent__entry_t swig_types[194] -#define SWIGTYPE_p_std__vectorT_libtorrent__file_slice_t swig_types[195] -#define SWIGTYPE_p_std__vectorT_libtorrent__partial_piece_info_t swig_types[196] -#define SWIGTYPE_p_std__vectorT_libtorrent__peer_connection_handle_t swig_types[197] -#define SWIGTYPE_p_std__vectorT_libtorrent__peer_info_t swig_types[198] -#define SWIGTYPE_p_std__vectorT_libtorrent__peer_list_entry_t swig_types[199] -#define SWIGTYPE_p_std__vectorT_libtorrent__sha1_hash_t swig_types[200] -#define SWIGTYPE_p_std__vectorT_libtorrent__stats_metric_t swig_types[201] -#define SWIGTYPE_p_std__vectorT_libtorrent__torrent_handle_t swig_types[202] -#define SWIGTYPE_p_std__vectorT_libtorrent__torrent_status_t swig_types[203] -#define SWIGTYPE_p_std__vectorT_libtorrent__web_seed_entry_t swig_types[204] -#define SWIGTYPE_p_std__vectorT_long_long_t swig_types[205] -#define SWIGTYPE_p_std__vectorT_signed_char_t swig_types[206] -#define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_t swig_types[207] -#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t_t_t swig_types[208] -#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_dht_extension_handler_listener_p_t_t swig_types[209] -#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_int_t_t swig_types[210] -#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t swig_types[211] -#define SWIGTYPE_p_std__vectorT_std__string_t swig_types[212] -#define SWIGTYPE_p_std__vectorT_tcp__endpoint_t swig_types[213] -#define SWIGTYPE_p_string_type swig_types[214] -#define SWIGTYPE_p_swig_peer_plugin swig_types[215] -#define SWIGTYPE_p_swig_plugin swig_types[216] -#define SWIGTYPE_p_swig_storage swig_types[217] -#define SWIGTYPE_p_swig_storage_constructor swig_types[218] -#define SWIGTYPE_p_swig_torrent_plugin swig_types[219] -#define SWIGTYPE_p_tailqueueT_libtorrent__disk_io_job_t swig_types[220] -#define SWIGTYPE_p_tcp__endpoint swig_types[221] -#define SWIGTYPE_p_udp__endpoint swig_types[222] -#define SWIGTYPE_p_unsigned_char swig_types[223] -#define SWIGTYPE_p_unsigned_int swig_types[224] -#define SWIGTYPE_p_unsigned_long_long swig_types[225] -#define SWIGTYPE_p_unsigned_short swig_types[226] -#define SWIGTYPE_p_unspecified_bool_type swig_types[227] -#define SWIGTYPE_p_value_type swig_types[228] -static swig_type_info *swig_types[230]; -static swig_module_info swig_module = {swig_types, 229, 0, 0, 0, 0}; +#define SWIGTYPE_p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t swig_types[8] +#define SWIGTYPE_p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t swig_types[9] +#define SWIGTYPE_p_boost__system__error_category swig_types[10] +#define SWIGTYPE_p_boost__system__error_code swig_types[11] +#define SWIGTYPE_p_boost__system__error_condition swig_types[12] +#define SWIGTYPE_p_char swig_types[13] +#define SWIGTYPE_p_dht_extension_handler_listener swig_types[14] +#define SWIGTYPE_p_dictionary_type swig_types[15] +#define SWIGTYPE_p_difference_type swig_types[16] +#define SWIGTYPE_p_filter_tuple_t swig_types[17] +#define SWIGTYPE_p_headers_t swig_types[18] +#define SWIGTYPE_p_int swig_types[19] +#define SWIGTYPE_p_integer_type swig_types[20] +#define SWIGTYPE_p_key_type swig_types[21] +#define SWIGTYPE_p_libtorrent__add_torrent_alert swig_types[22] +#define SWIGTYPE_p_libtorrent__add_torrent_params swig_types[23] +#define SWIGTYPE_p_libtorrent__alert swig_types[24] +#define SWIGTYPE_p_libtorrent__announce_entry swig_types[25] +#define SWIGTYPE_p_libtorrent__anonymous_mode_alert swig_types[26] +#define SWIGTYPE_p_libtorrent__bdecode_node swig_types[27] +#define SWIGTYPE_p_libtorrent__bitfield swig_types[28] +#define SWIGTYPE_p_libtorrent__block_downloading_alert swig_types[29] +#define SWIGTYPE_p_libtorrent__block_finished_alert swig_types[30] +#define SWIGTYPE_p_libtorrent__block_info swig_types[31] +#define SWIGTYPE_p_libtorrent__block_timeout_alert swig_types[32] +#define SWIGTYPE_p_libtorrent__bt_peer_connection_handle swig_types[33] +#define SWIGTYPE_p_libtorrent__cache_flushed_alert swig_types[34] +#define SWIGTYPE_p_libtorrent__counters swig_types[35] +#define SWIGTYPE_p_libtorrent__create_torrent swig_types[36] +#define SWIGTYPE_p_libtorrent__default_storage swig_types[37] +#define SWIGTYPE_p_libtorrent__detail__bdecode_token swig_types[38] +#define SWIGTYPE_p_libtorrent__dht_announce_alert swig_types[39] +#define SWIGTYPE_p_libtorrent__dht_bootstrap_alert swig_types[40] +#define SWIGTYPE_p_libtorrent__dht_direct_response_alert swig_types[41] +#define SWIGTYPE_p_libtorrent__dht_error_alert swig_types[42] +#define SWIGTYPE_p_libtorrent__dht_get_peers_alert swig_types[43] +#define SWIGTYPE_p_libtorrent__dht_get_peers_reply_alert swig_types[44] +#define SWIGTYPE_p_libtorrent__dht_immutable_item_alert swig_types[45] +#define SWIGTYPE_p_libtorrent__dht_log_alert swig_types[46] +#define SWIGTYPE_p_libtorrent__dht_lookup swig_types[47] +#define SWIGTYPE_p_libtorrent__dht_mutable_item_alert swig_types[48] +#define SWIGTYPE_p_libtorrent__dht_outgoing_get_peers_alert swig_types[49] +#define SWIGTYPE_p_libtorrent__dht_pkt_alert swig_types[50] +#define SWIGTYPE_p_libtorrent__dht_put_alert swig_types[51] +#define SWIGTYPE_p_libtorrent__dht_reply_alert swig_types[52] +#define SWIGTYPE_p_libtorrent__dht_routing_bucket swig_types[53] +#define SWIGTYPE_p_libtorrent__dht_settings swig_types[54] +#define SWIGTYPE_p_libtorrent__dht_stats_alert swig_types[55] +#define SWIGTYPE_p_libtorrent__disabled_storage swig_types[56] +#define SWIGTYPE_p_libtorrent__disk_buffer_holder swig_types[57] +#define SWIGTYPE_p_libtorrent__disk_job_fence swig_types[58] +#define SWIGTYPE_p_libtorrent__entry swig_types[59] +#define SWIGTYPE_p_libtorrent__external_ip_alert swig_types[60] +#define SWIGTYPE_p_libtorrent__fastresume_rejected_alert swig_types[61] +#define SWIGTYPE_p_libtorrent__file_completed_alert swig_types[62] +#define SWIGTYPE_p_libtorrent__file_error_alert swig_types[63] +#define SWIGTYPE_p_libtorrent__file_rename_failed_alert swig_types[64] +#define SWIGTYPE_p_libtorrent__file_renamed_alert swig_types[65] +#define SWIGTYPE_p_libtorrent__file_slice swig_types[66] +#define SWIGTYPE_p_libtorrent__file_storage swig_types[67] +#define SWIGTYPE_p_libtorrent__fingerprint swig_types[68] +#define SWIGTYPE_p_libtorrent__hash_failed_alert swig_types[69] +#define SWIGTYPE_p_libtorrent__i2p_alert swig_types[70] +#define SWIGTYPE_p_libtorrent__incoming_connection_alert swig_types[71] +#define SWIGTYPE_p_libtorrent__incoming_request_alert swig_types[72] +#define SWIGTYPE_p_libtorrent__invalid_request_alert swig_types[73] +#define SWIGTYPE_p_libtorrent__ip_filter swig_types[74] +#define SWIGTYPE_p_libtorrent__listen_failed_alert swig_types[75] +#define SWIGTYPE_p_libtorrent__listen_succeeded_alert swig_types[76] +#define SWIGTYPE_p_libtorrent__log_alert swig_types[77] +#define SWIGTYPE_p_libtorrent__lsd_error_alert swig_types[78] +#define SWIGTYPE_p_libtorrent__lsd_peer_alert swig_types[79] +#define SWIGTYPE_p_libtorrent__metadata_failed_alert swig_types[80] +#define SWIGTYPE_p_libtorrent__metadata_received_alert swig_types[81] +#define SWIGTYPE_p_libtorrent__mmap_cache_alert swig_types[82] +#define SWIGTYPE_p_libtorrent__partial_piece_info swig_types[83] +#define SWIGTYPE_p_libtorrent__peer_alert swig_types[84] +#define SWIGTYPE_p_libtorrent__peer_ban_alert swig_types[85] +#define SWIGTYPE_p_libtorrent__peer_blocked_alert swig_types[86] +#define SWIGTYPE_p_libtorrent__peer_class swig_types[87] +#define SWIGTYPE_p_libtorrent__peer_class_info swig_types[88] +#define SWIGTYPE_p_libtorrent__peer_class_pool swig_types[89] +#define SWIGTYPE_p_libtorrent__peer_class_type_filter swig_types[90] +#define SWIGTYPE_p_libtorrent__peer_connect_alert swig_types[91] +#define SWIGTYPE_p_libtorrent__peer_connection_handle swig_types[92] +#define SWIGTYPE_p_libtorrent__peer_disconnected_alert swig_types[93] +#define SWIGTYPE_p_libtorrent__peer_error_alert swig_types[94] +#define SWIGTYPE_p_libtorrent__peer_info swig_types[95] +#define SWIGTYPE_p_libtorrent__peer_list_entry swig_types[96] +#define SWIGTYPE_p_libtorrent__peer_log_alert swig_types[97] +#define SWIGTYPE_p_libtorrent__peer_plugin swig_types[98] +#define SWIGTYPE_p_libtorrent__peer_request swig_types[99] +#define SWIGTYPE_p_libtorrent__peer_snubbed_alert swig_types[100] +#define SWIGTYPE_p_libtorrent__peer_unsnubbed_alert swig_types[101] +#define SWIGTYPE_p_libtorrent__performance_alert swig_types[102] +#define SWIGTYPE_p_libtorrent__picker_log_alert swig_types[103] +#define SWIGTYPE_p_libtorrent__piece_finished_alert swig_types[104] +#define SWIGTYPE_p_libtorrent__piece_manager swig_types[105] +#define SWIGTYPE_p_libtorrent__pool_file_status swig_types[106] +#define SWIGTYPE_p_libtorrent__port_filter swig_types[107] +#define SWIGTYPE_p_libtorrent__portmap_alert swig_types[108] +#define SWIGTYPE_p_libtorrent__portmap_error_alert swig_types[109] +#define SWIGTYPE_p_libtorrent__portmap_log_alert swig_types[110] +#define SWIGTYPE_p_libtorrent__read_piece_alert swig_types[111] +#define SWIGTYPE_p_libtorrent__request_dropped_alert swig_types[112] +#define SWIGTYPE_p_libtorrent__save_resume_data_alert swig_types[113] +#define SWIGTYPE_p_libtorrent__save_resume_data_failed_alert swig_types[114] +#define SWIGTYPE_p_libtorrent__scrape_failed_alert swig_types[115] +#define SWIGTYPE_p_libtorrent__scrape_reply_alert swig_types[116] +#define SWIGTYPE_p_libtorrent__session swig_types[117] +#define SWIGTYPE_p_libtorrent__session_handle swig_types[118] +#define SWIGTYPE_p_libtorrent__session_proxy swig_types[119] +#define SWIGTYPE_p_libtorrent__session_stats_alert swig_types[120] +#define SWIGTYPE_p_libtorrent__settings_pack swig_types[121] +#define SWIGTYPE_p_libtorrent__sha1_hash swig_types[122] +#define SWIGTYPE_p_libtorrent__stat swig_types[123] +#define SWIGTYPE_p_libtorrent__stat_channel swig_types[124] +#define SWIGTYPE_p_libtorrent__state_changed_alert swig_types[125] +#define SWIGTYPE_p_libtorrent__state_update_alert swig_types[126] +#define SWIGTYPE_p_libtorrent__stats_alert swig_types[127] +#define SWIGTYPE_p_libtorrent__stats_metric swig_types[128] +#define SWIGTYPE_p_libtorrent__storage_error swig_types[129] +#define SWIGTYPE_p_libtorrent__storage_interface swig_types[130] +#define SWIGTYPE_p_libtorrent__storage_moved_alert swig_types[131] +#define SWIGTYPE_p_libtorrent__storage_moved_failed_alert swig_types[132] +#define SWIGTYPE_p_libtorrent__storage_params swig_types[133] +#define SWIGTYPE_p_libtorrent__storage_piece_set swig_types[134] +#define SWIGTYPE_p_libtorrent__torrent_added_alert swig_types[135] +#define SWIGTYPE_p_libtorrent__torrent_alert swig_types[136] +#define SWIGTYPE_p_libtorrent__torrent_checked_alert swig_types[137] +#define SWIGTYPE_p_libtorrent__torrent_delete_failed_alert swig_types[138] +#define SWIGTYPE_p_libtorrent__torrent_deleted_alert swig_types[139] +#define SWIGTYPE_p_libtorrent__torrent_error_alert swig_types[140] +#define SWIGTYPE_p_libtorrent__torrent_finished_alert swig_types[141] +#define SWIGTYPE_p_libtorrent__torrent_handle swig_types[142] +#define SWIGTYPE_p_libtorrent__torrent_info swig_types[143] +#define SWIGTYPE_p_libtorrent__torrent_log_alert swig_types[144] +#define SWIGTYPE_p_libtorrent__torrent_need_cert_alert swig_types[145] +#define SWIGTYPE_p_libtorrent__torrent_paused_alert swig_types[146] +#define SWIGTYPE_p_libtorrent__torrent_plugin swig_types[147] +#define SWIGTYPE_p_libtorrent__torrent_removed_alert swig_types[148] +#define SWIGTYPE_p_libtorrent__torrent_resumed_alert swig_types[149] +#define SWIGTYPE_p_libtorrent__torrent_status swig_types[150] +#define SWIGTYPE_p_libtorrent__torrent_update_alert swig_types[151] +#define SWIGTYPE_p_libtorrent__tracker_alert swig_types[152] +#define SWIGTYPE_p_libtorrent__tracker_announce_alert swig_types[153] +#define SWIGTYPE_p_libtorrent__tracker_error_alert swig_types[154] +#define SWIGTYPE_p_libtorrent__tracker_reply_alert swig_types[155] +#define SWIGTYPE_p_libtorrent__tracker_warning_alert swig_types[156] +#define SWIGTYPE_p_libtorrent__trackerid_alert swig_types[157] +#define SWIGTYPE_p_libtorrent__type_error swig_types[158] +#define SWIGTYPE_p_libtorrent__udp_error_alert swig_types[159] +#define SWIGTYPE_p_libtorrent__unwanted_block_alert swig_types[160] +#define SWIGTYPE_p_libtorrent__url_seed_alert swig_types[161] +#define SWIGTYPE_p_libtorrent__web_seed_entry swig_types[162] +#define SWIGTYPE_p_libtorrent__zero_storage swig_types[163] +#define SWIGTYPE_p_list_type swig_types[164] +#define SWIGTYPE_p_long swig_types[165] +#define SWIGTYPE_p_long_long swig_types[166] +#define SWIGTYPE_p_mapped_type swig_types[167] +#define SWIGTYPE_p_nodes_t swig_types[168] +#define SWIGTYPE_p_posix_stat swig_types[169] +#define SWIGTYPE_p_posix_wrapper swig_types[170] +#define SWIGTYPE_p_set_piece_hashes_listener swig_types[171] +#define SWIGTYPE_p_short swig_types[172] +#define SWIGTYPE_p_signed_char swig_types[173] +#define SWIGTYPE_p_size_type swig_types[174] +#define SWIGTYPE_p_std__listT_libtorrent__entry_t swig_types[175] +#define SWIGTYPE_p_std__listT_std__string_t swig_types[176] +#define SWIGTYPE_p_std__mapT_int_libtorrent__sha1_hash_t swig_types[177] +#define SWIGTYPE_p_std__mapT_std__string_libtorrent__entry_t swig_types[178] +#define SWIGTYPE_p_std__mapT_std__string_long_t swig_types[179] +#define SWIGTYPE_p_std__pairT_int_int_t swig_types[180] +#define SWIGTYPE_p_std__pairT_std__string_dht_extension_handler_listener_p_t swig_types[181] +#define SWIGTYPE_p_std__pairT_std__string_int_t swig_types[182] +#define SWIGTYPE_p_std__pairT_std__string_libtorrent__bdecode_node_t swig_types[183] +#define SWIGTYPE_p_std__pairT_std__string_std__string_t swig_types[184] +#define SWIGTYPE_p_std__runtime_error swig_types[185] +#define SWIGTYPE_p_std__vectorT_int_t swig_types[186] +#define SWIGTYPE_p_std__vectorT_libtorrent__alert_p_t swig_types[187] +#define SWIGTYPE_p_std__vectorT_libtorrent__announce_entry_t swig_types[188] +#define SWIGTYPE_p_std__vectorT_libtorrent__dht_lookup_t swig_types[189] +#define SWIGTYPE_p_std__vectorT_libtorrent__dht_routing_bucket_t swig_types[190] +#define SWIGTYPE_p_std__vectorT_libtorrent__entry_t swig_types[191] +#define SWIGTYPE_p_std__vectorT_libtorrent__file_slice_t swig_types[192] +#define SWIGTYPE_p_std__vectorT_libtorrent__partial_piece_info_t swig_types[193] +#define SWIGTYPE_p_std__vectorT_libtorrent__peer_connection_handle_t swig_types[194] +#define SWIGTYPE_p_std__vectorT_libtorrent__peer_info_t swig_types[195] +#define SWIGTYPE_p_std__vectorT_libtorrent__peer_list_entry_t swig_types[196] +#define SWIGTYPE_p_std__vectorT_libtorrent__sha1_hash_t swig_types[197] +#define SWIGTYPE_p_std__vectorT_libtorrent__stats_metric_t swig_types[198] +#define SWIGTYPE_p_std__vectorT_libtorrent__torrent_handle_t swig_types[199] +#define SWIGTYPE_p_std__vectorT_libtorrent__torrent_status_t swig_types[200] +#define SWIGTYPE_p_std__vectorT_libtorrent__web_seed_entry_t swig_types[201] +#define SWIGTYPE_p_std__vectorT_long_long_t swig_types[202] +#define SWIGTYPE_p_std__vectorT_signed_char_t swig_types[203] +#define SWIGTYPE_p_std__vectorT_std__pairT_int_int_t_t swig_types[204] +#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t_t_t swig_types[205] +#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_dht_extension_handler_listener_p_t_t swig_types[206] +#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_int_t_t swig_types[207] +#define SWIGTYPE_p_std__vectorT_std__pairT_std__string_std__string_t_t swig_types[208] +#define SWIGTYPE_p_std__vectorT_std__string_t swig_types[209] +#define SWIGTYPE_p_std__vectorT_tcp__endpoint_t swig_types[210] +#define SWIGTYPE_p_string_type swig_types[211] +#define SWIGTYPE_p_swig_peer_plugin swig_types[212] +#define SWIGTYPE_p_swig_plugin swig_types[213] +#define SWIGTYPE_p_swig_storage swig_types[214] +#define SWIGTYPE_p_swig_storage_constructor swig_types[215] +#define SWIGTYPE_p_swig_torrent_plugin swig_types[216] +#define SWIGTYPE_p_tailqueueT_libtorrent__disk_io_job_t swig_types[217] +#define SWIGTYPE_p_tcp__endpoint swig_types[218] +#define SWIGTYPE_p_udp__endpoint swig_types[219] +#define SWIGTYPE_p_unsigned_char swig_types[220] +#define SWIGTYPE_p_unsigned_int swig_types[221] +#define SWIGTYPE_p_unsigned_long_long swig_types[222] +#define SWIGTYPE_p_unsigned_short swig_types[223] +#define SWIGTYPE_p_unspecified_bool_type swig_types[224] +#define SWIGTYPE_p_value_type swig_types[225] +static swig_type_info *swig_types[227]; +static swig_module_info swig_module = {swig_types, 226, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) @@ -1784,13 +1781,6 @@ static swig_module_info swig_module = {swig_types, 229, 0, 0, 0, 0}; #include "libtorrent/torrent_status.hpp" #include "libtorrent/ed25519.hpp" -#include "libtorrent/kademlia/dht_storage.hpp" - -#include "libtorrent/extensions/ut_pex.hpp" -#include "libtorrent/extensions/ut_metadata.hpp" -#include "libtorrent/extensions/lt_trackers.hpp" -#include "libtorrent/extensions/smart_ban.hpp" - using namespace boost; using namespace boost::system; @@ -2924,12 +2914,6 @@ SWIG_From_unsigned_SS_short (unsigned short value) return SWIG_From_unsigned_SS_long (value); } -SWIGINTERN void libtorrent_session_handle_add_lt_trackers_extension(libtorrent::session_handle *self){ - self->add_extension(&libtorrent::create_lt_trackers_plugin); - } -SWIGINTERN void libtorrent_session_handle_add_smart_ban_extension(libtorrent::session_handle *self){ - self->add_extension(&libtorrent::create_smart_ban_plugin); - } SWIGINTERN void libtorrent_session_handle_dht_get_item__SWIG_1(libtorrent::session_handle *self,std::vector< int8_t > &key_v,std::string salt=std::string()){ if (key_v.size() != 32) { throw std::invalid_argument("Public key must be of size 32"); @@ -3165,8 +3149,6 @@ SWIGV8_ClientData _exports_bdecode_node_clientData; SWIGV8_ClientData _exports_create_torrent_clientData; SWIGV8_ClientData _exports_announce_entry_clientData; SWIGV8_ClientData _exports_torrent_status_clientData; -SWIGV8_ClientData _exports_dht_storage_counters_clientData; -SWIGV8_ClientData _exports_dht_storage_interface_clientData; SWIGV8_ClientData _exports_address_clientData; SWIGV8_ClientData _exports_address_v4_clientData; SWIGV8_ClientData _exports_address_v6_clientData; @@ -87195,60 +87177,6 @@ static SwigV8ReturnValue _wrap_session_handle_delete_port_mapping(const SwigV8Ar } -static SwigV8ReturnValue _wrap_session_handle_add_lt_trackers_extension(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::session_handle *arg1 = (libtorrent::session_handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - if(args.Length() != 0) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_session_handle_add_lt_trackers_extension."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__session_handle, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_handle_add_lt_trackers_extension" "', argument " "1"" of type '" "libtorrent::session_handle *""'"); - } - arg1 = (libtorrent::session_handle *)(argp1); - libtorrent_session_handle_add_lt_trackers_extension(arg1); - jsresult = SWIGV8_UNDEFINED(); - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_session_handle_add_smart_ban_extension(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::session_handle *arg1 = (libtorrent::session_handle *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - if(args.Length() != 0) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_session_handle_add_smart_ban_extension."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__session_handle, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_handle_add_smart_ban_extension" "', argument " "1"" of type '" "libtorrent::session_handle *""'"); - } - arg1 = (libtorrent::session_handle *)(argp1); - libtorrent_session_handle_add_smart_ban_extension(arg1); - jsresult = SWIGV8_UNDEFINED(); - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - static SwigV8ReturnValue _wrap_session_handle_dht_get_item__SWIG_1(const SwigV8Arguments &args, V8ErrorHandler &SWIGV8_ErrorHandler) { SWIGV8_HANDLESCOPE(); @@ -101806,881 +101734,6 @@ static SwigV8ReturnValue _wrap_ed25519_shared_secret_size(v8::Local } -static void _wrap_dht_storage_counters_torrents_set(v8::Local property, v8::Local value, - const SwigV8PropertyCallbackInfoVoid &info) { - SWIGV8_HANDLESCOPE(); - - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_torrents_set" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - ecode2 = SWIG_AsVal_int(value, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dht_storage_counters_torrents_set" "', argument " "2"" of type '" "boost::int32_t""'"); - } - arg2 = (boost::int32_t)(val2); - if (arg1) (arg1)->torrents = arg2; - - - - goto fail; -fail: - return; -} - - -static SwigV8ReturnValue _wrap_dht_storage_counters_torrents_get(v8::Local property, const SwigV8PropertyCallbackInfo &info) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - boost::int32_t result; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_torrents_get" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - result = (boost::int32_t) ((arg1)->torrents); - jsresult = SWIG_From_int((int)(result)); - - - SWIGV8_RETURN_INFO(jsresult, info); - - goto fail; -fail: - SWIGV8_RETURN_INFO(SWIGV8_UNDEFINED(), info); -} - - -static void _wrap_dht_storage_counters_peers_set(v8::Local property, v8::Local value, - const SwigV8PropertyCallbackInfoVoid &info) { - SWIGV8_HANDLESCOPE(); - - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_peers_set" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - ecode2 = SWIG_AsVal_int(value, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dht_storage_counters_peers_set" "', argument " "2"" of type '" "boost::int32_t""'"); - } - arg2 = (boost::int32_t)(val2); - if (arg1) (arg1)->peers = arg2; - - - - goto fail; -fail: - return; -} - - -static SwigV8ReturnValue _wrap_dht_storage_counters_peers_get(v8::Local property, const SwigV8PropertyCallbackInfo &info) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - boost::int32_t result; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_peers_get" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - result = (boost::int32_t) ((arg1)->peers); - jsresult = SWIG_From_int((int)(result)); - - - SWIGV8_RETURN_INFO(jsresult, info); - - goto fail; -fail: - SWIGV8_RETURN_INFO(SWIGV8_UNDEFINED(), info); -} - - -static void _wrap_dht_storage_counters_immutable_data_set(v8::Local property, v8::Local value, - const SwigV8PropertyCallbackInfoVoid &info) { - SWIGV8_HANDLESCOPE(); - - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_immutable_data_set" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - ecode2 = SWIG_AsVal_int(value, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dht_storage_counters_immutable_data_set" "', argument " "2"" of type '" "boost::int32_t""'"); - } - arg2 = (boost::int32_t)(val2); - if (arg1) (arg1)->immutable_data = arg2; - - - - goto fail; -fail: - return; -} - - -static SwigV8ReturnValue _wrap_dht_storage_counters_immutable_data_get(v8::Local property, const SwigV8PropertyCallbackInfo &info) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - boost::int32_t result; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_immutable_data_get" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - result = (boost::int32_t) ((arg1)->immutable_data); - jsresult = SWIG_From_int((int)(result)); - - - SWIGV8_RETURN_INFO(jsresult, info); - - goto fail; -fail: - SWIGV8_RETURN_INFO(SWIGV8_UNDEFINED(), info); -} - - -static void _wrap_dht_storage_counters_mutable_data_set(v8::Local property, v8::Local value, - const SwigV8PropertyCallbackInfoVoid &info) { - SWIGV8_HANDLESCOPE(); - - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - boost::int32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_mutable_data_set" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - ecode2 = SWIG_AsVal_int(value, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "dht_storage_counters_mutable_data_set" "', argument " "2"" of type '" "boost::int32_t""'"); - } - arg2 = (boost::int32_t)(val2); - if (arg1) (arg1)->mutable_data = arg2; - - - - goto fail; -fail: - return; -} - - -static SwigV8ReturnValue _wrap_dht_storage_counters_mutable_data_get(v8::Local property, const SwigV8PropertyCallbackInfo &info) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_counters *arg1 = (libtorrent::dht::dht_storage_counters *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - boost::int32_t result; - - res1 = SWIG_ConvertPtr(info.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_counters, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_counters_mutable_data_get" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_counters *""'"); - } - arg1 = (libtorrent::dht::dht_storage_counters *)(argp1); - result = (boost::int32_t) ((arg1)->mutable_data); - jsresult = SWIG_From_int((int)(result)); - - - SWIGV8_RETURN_INFO(jsresult, info); - - goto fail; -fail: - SWIGV8_RETURN_INFO(SWIGV8_UNDEFINED(), info); -} - - -static SwigV8ReturnValue _wrap_new_dht_storage_counters(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle self = args.Holder(); - libtorrent::dht::dht_storage_counters *result; - if(args.Length() != 0) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_new_dht_storage_counters."); - result = (libtorrent::dht::dht_storage_counters *)new libtorrent::dht::dht_storage_counters(); - - - - SWIGV8_SetPrivateData(self, result, SWIGTYPE_p_libtorrent__dht__dht_storage_counters, SWIG_POINTER_OWN); - SWIGV8_RETURN(self); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -#if (SWIG_V8_VERSION < 0x031710) -static void _wrap_delete_dht_storage_counters(v8::Persistent object, void *parameter) { - SWIGV8_Proxy *proxy = static_cast(parameter); -#elif (SWIG_V8_VERSION < 0x031900) - static void _wrap_delete_dht_storage_counters(v8::Isolate *isolate, v8::Persistent object, void *parameter) { - SWIGV8_Proxy *proxy = static_cast(parameter); -#elif (SWIG_V8_VERSION < SWIGV8_SETWEAK_VERSION) - static void _wrap_delete_dht_storage_counters(v8::Isolate *isolate, v8::Persistent< v8::Object> *object, SWIGV8_Proxy *proxy) { -#else - static void _wrap_delete_dht_storage_counters(const v8::WeakCallbackData &data) { - v8::Local object = data.GetValue(); - SWIGV8_Proxy *proxy = data.GetParameter(); -#endif - - if(proxy->swigCMemOwn && proxy->swigCObject) { - libtorrent::dht::dht_storage_counters * arg1 = (libtorrent::dht::dht_storage_counters *)proxy->swigCObject; - delete arg1; - } - delete proxy; - -#if (SWIG_V8_VERSION < 0x031710) - object.Dispose(); -#elif (SWIG_V8_VERSION < 0x031900) - object.Dispose(isolate); -#elif (SWIG_V8_VERSION < 0x032100) - object->Dispose(isolate); -#elif (SWIG_V8_VERSION < SWIGV8_SETWEAK_VERSION) - object->Dispose(); -#else - object.Clear(); -#endif - } - - -static SwigV8ReturnValue _wrap_dht_storage_interface_get_peers(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - bool arg3 ; - bool arg4 ; - libtorrent::entry *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - bool result; - - if(args.Length() != 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_get_peers."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_get_peers" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface const *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_storage_interface_get_peers" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_get_peers" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg2 = (libtorrent::sha1_hash *)(argp2); - ecode3 = SWIG_AsVal_bool(args[1], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dht_storage_interface_get_peers" "', argument " "3"" of type '" "bool""'"); - } - arg3 = (bool)(val3); - ecode4 = SWIG_AsVal_bool(args[2], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dht_storage_interface_get_peers" "', argument " "4"" of type '" "bool""'"); - } - arg4 = (bool)(val4); - res5 = SWIG_ConvertPtr(args[3], &argp5, SWIGTYPE_p_libtorrent__entry, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dht_storage_interface_get_peers" "', argument " "5"" of type '" "libtorrent::entry &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_get_peers" "', argument " "5"" of type '" "libtorrent::entry &""'"); - } - arg5 = (libtorrent::entry *)(argp5); - result = (bool)((libtorrent::dht::dht_storage_interface const *)arg1)->get_peers((libtorrent::sha1_hash const &)*arg2,arg3,arg4,*arg5); - jsresult = SWIG_From_bool((bool)(result)); - - - - - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_announce_peer(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - tcp::endpoint *arg3 = 0 ; - std::string *arg4 = 0 ; - bool arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - void *argp3 ; - int res3 = 0 ; - int res4 = SWIG_OLDOBJ ; - bool val5 ; - int ecode5 = 0 ; - - if(args.Length() != 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_announce_peer."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_announce_peer" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_storage_interface_announce_peer" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_announce_peer" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg2 = (libtorrent::sha1_hash *)(argp2); - res3 = SWIG_ConvertPtr(args[1], &argp3, SWIGTYPE_p_tcp__endpoint, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dht_storage_interface_announce_peer" "', argument " "3"" of type '" "tcp::endpoint const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_announce_peer" "', argument " "3"" of type '" "tcp::endpoint const &""'"); - } - arg3 = (tcp::endpoint *)(argp3); - { - std::string *ptr = (std::string *)0; - res4 = SWIG_AsPtr_std_string(args[2], &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dht_storage_interface_announce_peer" "', argument " "4"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_announce_peer" "', argument " "4"" of type '" "std::string const &""'"); - } - arg4 = ptr; - } - ecode5 = SWIG_AsVal_bool(args[3], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "dht_storage_interface_announce_peer" "', argument " "5"" of type '" "bool""'"); - } - arg5 = (bool)(val5); - (arg1)->announce_peer((libtorrent::sha1_hash const &)*arg2,(tcp::endpoint const &)*arg3,(std::string const &)*arg4,arg5); - jsresult = SWIGV8_UNDEFINED(); - - - - if (SWIG_IsNewObj(res4)) delete arg4; - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_get_immutable_item(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - libtorrent::entry *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - bool result; - - if(args.Length() != 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_get_immutable_item."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_get_immutable_item" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface const *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_storage_interface_get_immutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_get_immutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg2 = (libtorrent::sha1_hash *)(argp2); - res3 = SWIG_ConvertPtr(args[1], &argp3, SWIGTYPE_p_libtorrent__entry, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dht_storage_interface_get_immutable_item" "', argument " "3"" of type '" "libtorrent::entry &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_get_immutable_item" "', argument " "3"" of type '" "libtorrent::entry &""'"); - } - arg3 = (libtorrent::entry *)(argp3); - result = (bool)((libtorrent::dht::dht_storage_interface const *)arg1)->get_immutable_item((libtorrent::sha1_hash const &)*arg2,*arg3); - jsresult = SWIG_From_bool((bool)(result)); - - - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_put_immutable_item(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - libtorrent::address *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 ; - int res5 = 0 ; - - if(args.Length() != 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_put_immutable_item."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_put_immutable_item" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_storage_interface_put_immutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_put_immutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg2 = (libtorrent::sha1_hash *)(argp2); - res3 = SWIG_AsCharPtrAndSize(args[1], &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dht_storage_interface_put_immutable_item" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = (char *)(buf3); - ecode4 = SWIG_AsVal_int(args[2], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dht_storage_interface_put_immutable_item" "', argument " "4"" of type '" "int""'"); - } - arg4 = (int)(val4); - res5 = SWIG_ConvertPtr(args[3], &argp5, SWIGTYPE_p_boost__asio__ip__address, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dht_storage_interface_put_immutable_item" "', argument " "5"" of type '" "libtorrent::address const &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_put_immutable_item" "', argument " "5"" of type '" "libtorrent::address const &""'"); - } - arg5 = (libtorrent::address *)(argp5); - (arg1)->put_immutable_item((libtorrent::sha1_hash const &)*arg2,(char const *)arg3,arg4,(libtorrent::address const &)*arg5); - jsresult = SWIGV8_UNDEFINED(); - - - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_get_mutable_item(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - boost::int64_t arg3 ; - bool arg4 ; - libtorrent::entry *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - long long val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - bool result; - - if(args.Length() != 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_get_mutable_item."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_get_mutable_item" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface const *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_storage_interface_get_mutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_get_mutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg2 = (libtorrent::sha1_hash *)(argp2); - ecode3 = SWIG_AsVal_long_SS_long(args[1], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "dht_storage_interface_get_mutable_item" "', argument " "3"" of type '" "boost::int64_t""'"); - } - arg3 = (boost::int64_t)(val3); - ecode4 = SWIG_AsVal_bool(args[2], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dht_storage_interface_get_mutable_item" "', argument " "4"" of type '" "bool""'"); - } - arg4 = (bool)(val4); - res5 = SWIG_ConvertPtr(args[3], &argp5, SWIGTYPE_p_libtorrent__entry, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dht_storage_interface_get_mutable_item" "', argument " "5"" of type '" "libtorrent::entry &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_get_mutable_item" "', argument " "5"" of type '" "libtorrent::entry &""'"); - } - arg5 = (libtorrent::entry *)(argp5); - result = (bool)((libtorrent::dht::dht_storage_interface const *)arg1)->get_mutable_item((libtorrent::sha1_hash const &)*arg2,arg3,arg4,*arg5); - jsresult = SWIG_From_bool((bool)(result)); - - - - - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_put_mutable_item(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - libtorrent::sha1_hash *arg2 = 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - boost::int64_t arg6 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - int arg9 ; - libtorrent::address *arg10 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - long long val6 ; - int ecode6 = 0 ; - int res7 ; - char *buf7 = 0 ; - int alloc7 = 0 ; - int res8 ; - char *buf8 = 0 ; - int alloc8 = 0 ; - int val9 ; - int ecode9 = 0 ; - void *argp10 ; - int res10 = 0 ; - - if(args.Length() != 9) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_put_mutable_item."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_put_mutable_item" "', argument " "2"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg2 = (libtorrent::sha1_hash *)(argp2); - res3 = SWIG_AsCharPtrAndSize(args[1], &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = (char *)(buf3); - ecode4 = SWIG_AsVal_int(args[2], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "4"" of type '" "int""'"); - } - arg4 = (int)(val4); - res5 = SWIG_AsCharPtrAndSize(args[3], &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = (char *)(buf5); - ecode6 = SWIG_AsVal_long_SS_long(args[4], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "6"" of type '" "boost::int64_t""'"); - } - arg6 = (boost::int64_t)(val6); - res7 = SWIG_AsCharPtrAndSize(args[5], &buf7, NULL, &alloc7); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "7"" of type '" "char const *""'"); - } - arg7 = (char *)(buf7); - res8 = SWIG_AsCharPtrAndSize(args[6], &buf8, NULL, &alloc8); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "8"" of type '" "char const *""'"); - } - arg8 = (char *)(buf8); - ecode9 = SWIG_AsVal_int(args[7], &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "9"" of type '" "int""'"); - } - arg9 = (int)(val9); - res10 = SWIG_ConvertPtr(args[8], &argp10, SWIGTYPE_p_boost__asio__ip__address, 0 ); - if (!SWIG_IsOK(res10)) { - SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "dht_storage_interface_put_mutable_item" "', argument " "10"" of type '" "libtorrent::address const &""'"); - } - if (!argp10) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_storage_interface_put_mutable_item" "', argument " "10"" of type '" "libtorrent::address const &""'"); - } - arg10 = (libtorrent::address *)(argp10); - (arg1)->put_mutable_item((libtorrent::sha1_hash const &)*arg2,(char const *)arg3,arg4,(char const *)arg5,arg6,(char const *)arg7,(char const *)arg8,arg9,(libtorrent::address const &)*arg10); - jsresult = SWIGV8_UNDEFINED(); - - - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - - if (alloc7 == SWIG_NEWOBJ) delete[] buf7; - if (alloc8 == SWIG_NEWOBJ) delete[] buf8; - - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_tick(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - if(args.Length() != 0) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_tick."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_tick" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - (arg1)->tick(); - jsresult = SWIGV8_UNDEFINED(); - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_storage_interface_counters(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::dht::dht_storage_interface *arg1 = (libtorrent::dht::dht_storage_interface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - libtorrent::dht::dht_storage_counters result; - - if(args.Length() != 0) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_storage_interface_counters."); - - res1 = SWIG_ConvertPtr(args.Holder(), &argp1,SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_storage_interface_counters" "', argument " "1"" of type '" "libtorrent::dht::dht_storage_interface const *""'"); - } - arg1 = (libtorrent::dht::dht_storage_interface *)(argp1); - result = ((libtorrent::dht::dht_storage_interface const *)arg1)->counters(); - jsresult = SWIG_NewPointerObj((new libtorrent::dht::dht_storage_counters((const libtorrent::dht::dht_storage_counters&)(result))), SWIGTYPE_p_libtorrent__dht__dht_storage_counters, SWIG_POINTER_OWN | 0 ); - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -#if (SWIG_V8_VERSION < 0x031710) -static void _wrap_delete_dht_storage_interface(v8::Persistent object, void *parameter) { - SWIGV8_Proxy *proxy = static_cast(parameter); -#elif (SWIG_V8_VERSION < 0x031900) - static void _wrap_delete_dht_storage_interface(v8::Isolate *isolate, v8::Persistent object, void *parameter) { - SWIGV8_Proxy *proxy = static_cast(parameter); -#elif (SWIG_V8_VERSION < SWIGV8_SETWEAK_VERSION) - static void _wrap_delete_dht_storage_interface(v8::Isolate *isolate, v8::Persistent< v8::Object> *object, SWIGV8_Proxy *proxy) { -#else - static void _wrap_delete_dht_storage_interface(const v8::WeakCallbackData &data) { - v8::Local object = data.GetValue(); - SWIGV8_Proxy *proxy = data.GetParameter(); -#endif - - if(proxy->swigCMemOwn && proxy->swigCObject) { - libtorrent::dht::dht_storage_interface * arg1 = (libtorrent::dht::dht_storage_interface *)proxy->swigCObject; - delete arg1; - } - delete proxy; - -#if (SWIG_V8_VERSION < 0x031710) - object.Dispose(); -#elif (SWIG_V8_VERSION < 0x031900) - object.Dispose(isolate); -#elif (SWIG_V8_VERSION < 0x032100) - object->Dispose(isolate); -#elif (SWIG_V8_VERSION < SWIGV8_SETWEAK_VERSION) - object->Dispose(); -#else - object.Clear(); -#endif - } - - -static SwigV8ReturnValue _wrap_new_veto_dht_storage_interface(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - SWIG_exception(SWIG_ERROR, "Class dht_storage_interface can not be instantiated"); - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - -static SwigV8ReturnValue _wrap_dht_default_storage_constructor(const SwigV8Arguments &args) { - SWIGV8_HANDLESCOPE(); - - v8::Handle jsresult; - libtorrent::sha1_hash *arg1 = 0 ; - libtorrent::dht_settings *arg2 = 0 ; - void *argp1 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - libtorrent::dht::dht_storage_interface *result = 0 ; - - if(args.Length() != 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_dht_default_storage_constructor."); - - res1 = SWIG_ConvertPtr(args[0], &argp1, SWIGTYPE_p_libtorrent__sha1_hash, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dht_default_storage_constructor" "', argument " "1"" of type '" "libtorrent::sha1_hash const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_default_storage_constructor" "', argument " "1"" of type '" "libtorrent::sha1_hash const &""'"); - } - arg1 = (libtorrent::sha1_hash *)(argp1); - res2 = SWIG_ConvertPtr(args[1], &argp2, SWIGTYPE_p_libtorrent__dht_settings, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dht_default_storage_constructor" "', argument " "2"" of type '" "libtorrent::dht_settings const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dht_default_storage_constructor" "', argument " "2"" of type '" "libtorrent::dht_settings const &""'"); - } - arg2 = (libtorrent::dht_settings *)(argp2); - result = (libtorrent::dht::dht_storage_interface *)libtorrent::dht::dht_default_storage_constructor((libtorrent::sha1_hash const &)*arg1,(libtorrent::dht_settings const &)*arg2); - jsresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libtorrent__dht__dht_storage_interface, 0 | 0 ); - - - - SWIGV8_RETURN(jsresult); - - goto fail; -fail: - SWIGV8_RETURN(SWIGV8_UNDEFINED()); -} - - static SwigV8ReturnValue _wrap_new_address__SWIG_0(const SwigV8Arguments &args, V8ErrorHandler &SWIGV8_ErrorHandler) { SWIGV8_HANDLESCOPE(); @@ -105409,7 +104462,7 @@ static SwigV8ReturnValue _wrap_JLIBTORRENT_REVISION_SHA1(v8::Local p v8::Handle jsresult; - jsresult = SWIG_FromCharPtr((const char *)"f85cb7c6703faaf5e8187e9a334f29cdc6bed2cd"); + jsresult = SWIG_FromCharPtr((const char *)"21ab91241696ae533210b9cc2c783b0b8a091b97"); SWIGV8_RETURN_INFO(jsresult, info); @@ -110653,7 +109706,6 @@ static swig_type_info _swigt__p_boost__chrono__high_resolution_clock = {"_p_boos static swig_type_info _swigt__p_boost__chrono__high_resolution_clock__duration = {"_p_boost__chrono__high_resolution_clock__duration", "boost::chrono::high_resolution_clock::duration *|libtorrent::time_duration *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__chrono__high_resolution_clock__time_point = {"_p_boost__chrono__high_resolution_clock__time_point", "boost::chrono::high_resolution_clock::time_point *|libtorrent::time_point *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t = {"_p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t", "boost::function< bool (udp::endpoint const &,libtorrent::bdecode_node const &,libtorrent::entry &) > *|libtorrent::dht_extension_handler_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t = {"_p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t", "libtorrent::dht::dht_storage_constructor_type *|boost::function< libtorrent::dht::dht_storage_interface *(libtorrent::sha1_hash const &,libtorrent::dht_settings const &) > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t = {"_p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t", "libtorrent::storage_constructor_type *|boost::function< libtorrent::storage_interface *(libtorrent::storage_params const &) > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t = {"_p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t", "libtorrent::user_load_function_t *|boost::function< void (libtorrent::sha1_hash const &,std::vector< char > &,boost::system::error_code &) > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__system__error_category = {"_p_boost__system__error_category", "p_boost__system__error_category|boost::system::error_category *", 0, 0, (void*)0, 0}; @@ -110684,8 +109736,6 @@ static swig_type_info _swigt__p_libtorrent__cache_flushed_alert = {"_p_libtorren static swig_type_info _swigt__p_libtorrent__counters = {"_p_libtorrent__counters", "libtorrent::counters *|p_libtorrent__counters", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_libtorrent__create_torrent = {"_p_libtorrent__create_torrent", "libtorrent::create_torrent *|p_libtorrent__create_torrent", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_libtorrent__detail__bdecode_token = {"_p_libtorrent__detail__bdecode_token", "libtorrent::detail::bdecode_token *|p_libtorrent__detail__bdecode_token", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_libtorrent__dht__dht_storage_counters = {"_p_libtorrent__dht__dht_storage_counters", "libtorrent::dht::dht_storage_counters *|p_libtorrent__dht__dht_storage_counters", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_libtorrent__dht__dht_storage_interface = {"_p_libtorrent__dht__dht_storage_interface", "p_libtorrent__dht__dht_storage_interface|libtorrent::dht::dht_storage_interface *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_libtorrent__dht_announce_alert = {"_p_libtorrent__dht_announce_alert", "p_libtorrent__dht_announce_alert|libtorrent::dht_announce_alert *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_libtorrent__dht_bootstrap_alert = {"_p_libtorrent__dht_bootstrap_alert", "p_libtorrent__dht_bootstrap_alert|libtorrent::dht_bootstrap_alert *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_libtorrent__dht_direct_response_alert = {"_p_libtorrent__dht_direct_response_alert", "p_libtorrent__dht_direct_response_alert|libtorrent::dht_direct_response_alert *", 0, 0, (void*)0, 0}; @@ -110884,7 +109934,6 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_boost__chrono__high_resolution_clock__duration, &_swigt__p_boost__chrono__high_resolution_clock__time_point, &_swigt__p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t, - &_swigt__p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t, &_swigt__p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t, &_swigt__p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t, &_swigt__p_boost__system__error_category, @@ -110916,8 +109965,6 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_libtorrent__create_torrent, &_swigt__p_libtorrent__default_storage, &_swigt__p_libtorrent__detail__bdecode_token, - &_swigt__p_libtorrent__dht__dht_storage_counters, - &_swigt__p_libtorrent__dht__dht_storage_interface, &_swigt__p_libtorrent__dht_announce_alert, &_swigt__p_libtorrent__dht_bootstrap_alert, &_swigt__p_libtorrent__dht_direct_response_alert, @@ -111115,7 +110162,6 @@ static swig_cast_info _swigc__p_boost__chrono__high_resolution_clock[] = { {&_s static swig_cast_info _swigc__p_boost__chrono__high_resolution_clock__duration[] = { {&_swigt__p_boost__chrono__high_resolution_clock__duration, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__chrono__high_resolution_clock__time_point[] = { {&_swigt__p_boost__chrono__high_resolution_clock__time_point, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t[] = { {&_swigt__p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t[] = { {&_swigt__p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t[] = { {&_swigt__p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t[] = { {&_swigt__p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__system__error_category[] = { {&_swigt__p_boost__system__error_category, 0, 0, 0},{0, 0, 0, 0}}; @@ -111146,8 +110192,6 @@ static swig_cast_info _swigc__p_libtorrent__cache_flushed_alert[] = { {&_swigt_ static swig_cast_info _swigc__p_libtorrent__counters[] = { {&_swigt__p_libtorrent__counters, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_libtorrent__create_torrent[] = { {&_swigt__p_libtorrent__create_torrent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_libtorrent__detail__bdecode_token[] = { {&_swigt__p_libtorrent__detail__bdecode_token, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_libtorrent__dht__dht_storage_counters[] = { {&_swigt__p_libtorrent__dht__dht_storage_counters, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_libtorrent__dht__dht_storage_interface[] = { {&_swigt__p_libtorrent__dht__dht_storage_interface, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_libtorrent__dht_announce_alert[] = { {&_swigt__p_libtorrent__dht_announce_alert, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_libtorrent__dht_bootstrap_alert[] = { {&_swigt__p_libtorrent__dht_bootstrap_alert, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_libtorrent__dht_direct_response_alert[] = { {&_swigt__p_libtorrent__dht_direct_response_alert, 0, 0, 0},{0, 0, 0, 0}}; @@ -111346,7 +110390,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_boost__chrono__high_resolution_clock__duration, _swigc__p_boost__chrono__high_resolution_clock__time_point, _swigc__p_boost__functionT_bool_fudp__endpoint_const_R_libtorrent__bdecode_node_const_R_libtorrent__entry_RF_t, - _swigc__p_boost__functionT_libtorrent__dht__dht_storage_interface_pflibtorrent__sha1_hash_const_R_libtorrent__dht_settings_const_RF_t, _swigc__p_boost__functionT_libtorrent__storage_interface_pflibtorrent__storage_params_const_RF_t, _swigc__p_boost__functionT_void_flibtorrent__sha1_hash_const_R_std__vectorT_char_t_R_boost__system__error_code_RF_t, _swigc__p_boost__system__error_category, @@ -111378,8 +110421,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_libtorrent__create_torrent, _swigc__p_libtorrent__default_storage, _swigc__p_libtorrent__detail__bdecode_token, - _swigc__p_libtorrent__dht__dht_storage_counters, - _swigc__p_libtorrent__dht__dht_storage_interface, _swigc__p_libtorrent__dht_announce_alert, _swigc__p_libtorrent__dht_bootstrap_alert, _swigc__p_libtorrent__dht_direct_response_alert, @@ -113074,20 +112115,6 @@ _exports_torrent_status_clientData.dtor = _wrap_delete_torrent_status; if (SWIGTYPE_p_libtorrent__torrent_status->clientdata == 0) { SWIGTYPE_p_libtorrent__torrent_status->clientdata = &_exports_torrent_status_clientData; } -/* Name: _exports_dht_storage_counters, Type: p_libtorrent__dht__dht_storage_counters, Dtor: _wrap_delete_dht_storage_counters */ -v8::Handle _exports_dht_storage_counters_class = SWIGV8_CreateClassTemplate("_exports_dht_storage_counters"); -SWIGV8_SET_CLASS_TEMPL(_exports_dht_storage_counters_clientData.class_templ, _exports_dht_storage_counters_class); -_exports_dht_storage_counters_clientData.dtor = _wrap_delete_dht_storage_counters; -if (SWIGTYPE_p_libtorrent__dht__dht_storage_counters->clientdata == 0) { - SWIGTYPE_p_libtorrent__dht__dht_storage_counters->clientdata = &_exports_dht_storage_counters_clientData; -} -/* Name: _exports_dht_storage_interface, Type: p_libtorrent__dht__dht_storage_interface, Dtor: _wrap_delete_dht_storage_interface */ -v8::Handle _exports_dht_storage_interface_class = SWIGV8_CreateClassTemplate("_exports_dht_storage_interface"); -SWIGV8_SET_CLASS_TEMPL(_exports_dht_storage_interface_clientData.class_templ, _exports_dht_storage_interface_class); -_exports_dht_storage_interface_clientData.dtor = _wrap_delete_dht_storage_interface; -if (SWIGTYPE_p_libtorrent__dht__dht_storage_interface->clientdata == 0) { - SWIGTYPE_p_libtorrent__dht__dht_storage_interface->clientdata = &_exports_dht_storage_interface_clientData; -} /* Name: _exports_address, Type: p_boost__asio__ip__address, Dtor: _wrap_delete_address */ v8::Handle _exports_address_class = SWIGV8_CreateClassTemplate("_exports_address"); SWIGV8_SET_CLASS_TEMPL(_exports_address_clientData.class_templ, _exports_address_class); @@ -114750,8 +113777,6 @@ SWIGV8_AddMemberFunction(_exports_session_handle_class, "pop_alerts", _wrap_sess SWIGV8_AddMemberFunction(_exports_session_handle_class, "wait_for_alert", _wrap_session_handle_wait_for_alert); SWIGV8_AddMemberFunction(_exports_session_handle_class, "add_port_mapping", _wrap_session_handle_add_port_mapping); SWIGV8_AddMemberFunction(_exports_session_handle_class, "delete_port_mapping", _wrap_session_handle_delete_port_mapping); -SWIGV8_AddMemberFunction(_exports_session_handle_class, "add_lt_trackers_extension", _wrap_session_handle_add_lt_trackers_extension); -SWIGV8_AddMemberFunction(_exports_session_handle_class, "add_smart_ban_extension", _wrap_session_handle_add_smart_ban_extension); SWIGV8_AddMemberFunction(_exports_session_handle_class, "dht_get_item", _wrap_session_handle__wrap_session_handle_dht_get_item); SWIGV8_AddMemberFunction(_exports_session_handle_class, "dht_put_item", _wrap_session_handle__wrap_session_handle_dht_put_item); SWIGV8_AddMemberFunction(_exports_session_handle_class, "add_swig_extension", _wrap_session_handle_add_swig_extension); @@ -115002,18 +114027,6 @@ SWIGV8_AddStaticVariable(exports_obj, "ed25519_public_key_size", _wrap_ed25519_p SWIGV8_AddStaticVariable(exports_obj, "ed25519_signature_size", _wrap_ed25519_signature_size, JS_veto_set_variable); SWIGV8_AddStaticVariable(exports_obj, "ed25519_scalar_size", _wrap_ed25519_scalar_size, JS_veto_set_variable); SWIGV8_AddStaticVariable(exports_obj, "ed25519_shared_secret_size", _wrap_ed25519_shared_secret_size, JS_veto_set_variable); -SWIGV8_AddMemberVariable(_exports_dht_storage_counters_class, "torrents", _wrap_dht_storage_counters_torrents_get, _wrap_dht_storage_counters_torrents_set); -SWIGV8_AddMemberVariable(_exports_dht_storage_counters_class, "peers", _wrap_dht_storage_counters_peers_get, _wrap_dht_storage_counters_peers_set); -SWIGV8_AddMemberVariable(_exports_dht_storage_counters_class, "immutable_data", _wrap_dht_storage_counters_immutable_data_get, _wrap_dht_storage_counters_immutable_data_set); -SWIGV8_AddMemberVariable(_exports_dht_storage_counters_class, "mutable_data", _wrap_dht_storage_counters_mutable_data_get, _wrap_dht_storage_counters_mutable_data_set); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "get_peers", _wrap_dht_storage_interface_get_peers); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "announce_peer", _wrap_dht_storage_interface_announce_peer); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "get_immutable_item", _wrap_dht_storage_interface_get_immutable_item); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "put_immutable_item", _wrap_dht_storage_interface_put_immutable_item); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "get_mutable_item", _wrap_dht_storage_interface_get_mutable_item); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "put_mutable_item", _wrap_dht_storage_interface_put_mutable_item); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "tick", _wrap_dht_storage_interface_tick); -SWIGV8_AddMemberFunction(_exports_dht_storage_interface_class, "counters", _wrap_dht_storage_interface_counters); SWIGV8_AddMemberFunction(_exports_address_class, "is_v4", _wrap_address_is_v4); SWIGV8_AddMemberFunction(_exports_address_class, "is_v6", _wrap_address_is_v6); SWIGV8_AddMemberFunction(_exports_address_class, "to_v4", _wrap_address_to_v4); @@ -117962,18 +116975,6 @@ _exports_torrent_status_class_0->SetCallHandler(_wrap_new_torrent_status); _exports_torrent_status_class_0->Inherit(_exports_torrent_status_class); _exports_torrent_status_class_0->SetHiddenPrototype(true); v8::Handle _exports_torrent_status_obj = _exports_torrent_status_class_0->GetFunction(); -/* Class: dht_storage_counters (_exports_dht_storage_counters) */ -v8::Handle _exports_dht_storage_counters_class_0 = SWIGV8_CreateClassTemplate("dht_storage_counters"); -_exports_dht_storage_counters_class_0->SetCallHandler(_wrap_new_dht_storage_counters); -_exports_dht_storage_counters_class_0->Inherit(_exports_dht_storage_counters_class); -_exports_dht_storage_counters_class_0->SetHiddenPrototype(true); -v8::Handle _exports_dht_storage_counters_obj = _exports_dht_storage_counters_class_0->GetFunction(); -/* Class: dht_storage_interface (_exports_dht_storage_interface) */ -v8::Handle _exports_dht_storage_interface_class_0 = SWIGV8_CreateClassTemplate("dht_storage_interface"); -_exports_dht_storage_interface_class_0->SetCallHandler(_wrap_new_veto_dht_storage_interface); -_exports_dht_storage_interface_class_0->Inherit(_exports_dht_storage_interface_class); -_exports_dht_storage_interface_class_0->SetHiddenPrototype(true); -v8::Handle _exports_dht_storage_interface_obj = _exports_dht_storage_interface_class_0->GetFunction(); /* Class: address (_exports_address) */ v8::Handle _exports_address_class_0 = SWIGV8_CreateClassTemplate("address"); _exports_address_class_0->SetCallHandler(_wrap_new_address); @@ -119515,7 +118516,6 @@ SWIGV8_AddStaticVariable(_exports_torrent_status_obj, "error_file_none", _wrap_l SWIGV8_AddStaticVariable(_exports_torrent_status_obj, "error_file_url", _wrap_libtorrent_torrent_status_error_file_url, JS_veto_set_variable); SWIGV8_AddStaticVariable(_exports_torrent_status_obj, "error_file_ssl_ctx", _wrap_libtorrent_torrent_status_error_file_ssl_ctx, JS_veto_set_variable); SWIGV8_AddStaticVariable(_exports_torrent_status_obj, "error_file_metadata", _wrap_libtorrent_torrent_status_error_file_metadata, JS_veto_set_variable); -SWIGV8_AddStaticFunction(exports_obj, "dht_default_storage_constructor", _wrap_dht_default_storage_constructor); SWIGV8_AddStaticFunction(_exports_address_obj, "from_string", _wrap_address__wrap_address_from_string); SWIGV8_AddStaticFunction(_exports_address_v4_obj, "from_string", _wrap_address_v4__wrap_address_v4_from_string); SWIGV8_AddStaticFunction(_exports_address_v4_obj, "any", _wrap_address_v4_any); @@ -119726,8 +118726,6 @@ exports_obj->Set(SWIGV8_SYMBOL_NEW("bdecode_node"), _exports_bdecode_node_obj); exports_obj->Set(SWIGV8_SYMBOL_NEW("create_torrent"), _exports_create_torrent_obj); exports_obj->Set(SWIGV8_SYMBOL_NEW("announce_entry"), _exports_announce_entry_obj); exports_obj->Set(SWIGV8_SYMBOL_NEW("torrent_status"), _exports_torrent_status_obj); -exports_obj->Set(SWIGV8_SYMBOL_NEW("dht_storage_counters"), _exports_dht_storage_counters_obj); -exports_obj->Set(SWIGV8_SYMBOL_NEW("dht_storage_interface"), _exports_dht_storage_interface_obj); exports_obj->Set(SWIGV8_SYMBOL_NEW("address"), _exports_address_obj); exports_obj->Set(SWIGV8_SYMBOL_NEW("address_v4"), _exports_address_v4_obj); exports_obj->Set(SWIGV8_SYMBOL_NEW("address_v6"), _exports_address_v6_obj);