Skip to content

Commit

Permalink
Type cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Feb 26, 2015
1 parent a374108 commit fda81e1
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 312 deletions.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions src/com/frostwire/jlibtorrent/swig/ipv6_peer.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,4 @@ public ipv6_peer(tcp_endpoint ip, boolean connectable, int src) {
this(libtorrent_jni.new_ipv6_peer(tcp_endpoint.getCPtr(ip), ip, connectable, src), true);
}

public SWIGTYPE_p_boost__asio__ip__address_v6__bytes_type getAddr() {
long cPtr = libtorrent_jni.ipv6_peer_addr_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_boost__asio__ip__address_v6__bytes_type(cPtr, false);
}

}
11 changes: 0 additions & 11 deletions src/com/frostwire/jlibtorrent/swig/libtorrent_jni.java
Original file line number Diff line number Diff line change
Expand Up @@ -2737,20 +2737,9 @@ public class libtorrent_jni {
public final static native long ipv4_peer_addr_get(long jarg1, ipv4_peer jarg1_);
public final static native void delete_ipv4_peer(long jarg1);
public final static native long new_ipv6_peer(long jarg1, tcp_endpoint jarg1_, boolean jarg2, int jarg3);
public final static native long ipv6_peer_addr_get(long jarg1, ipv6_peer jarg1_);
public final static native void delete_ipv6_peer(long jarg1);
public final static native long new_peer_address_compare();
public final static native void delete_peer_address_compare(long jarg1);
public final static native void peer_connection_args_stats_counters_set(long jarg1, peer_connection_args jarg1_, long jarg2, counters jarg2_);
public final static native long peer_connection_args_stats_counters_get(long jarg1, peer_connection_args jarg1_);
public final static native void peer_connection_args_s_set(long jarg1, peer_connection_args jarg1_, long jarg2);
public final static native long peer_connection_args_s_get(long jarg1, peer_connection_args jarg1_);
public final static native void peer_connection_args_endp_set(long jarg1, peer_connection_args jarg1_, long jarg2, tcp_endpoint jarg2_);
public final static native long peer_connection_args_endp_get(long jarg1, peer_connection_args jarg1_);
public final static native void peer_connection_args_peerinfo_set(long jarg1, peer_connection_args jarg1_, long jarg2, torrent_peer jarg2_);
public final static native long peer_connection_args_peerinfo_get(long jarg1, peer_connection_args jarg1_);
public final static native long new_peer_connection_args();
public final static native void delete_peer_connection_args(long jarg1);
public final static native int peer_connection_bittorrent_connection_get();
public final static native int peer_connection_url_seed_connection_get();
public final static native int peer_connection_http_seed_connection_get();
Expand Down
78 changes: 0 additions & 78 deletions src/com/frostwire/jlibtorrent/swig/peer_connection_args.java

This file was deleted.

2 changes: 2 additions & 0 deletions swig/libtorrent.i
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ namespace std {
%ignore libtorrent::peer_connection_hot_members;
%ignore libtorrent::torrent_hot_members;
%ignore libtorrent::storage_piece_set;
%ignore libtorrent::peer_connection_args;
%ignore libtorrent::ipv4_peer_entry;
%ignore libtorrent::ipv6_peer_entry;

Expand Down Expand Up @@ -591,6 +592,7 @@ namespace std {
%ignore libtorrent::peer_class::priority;
%ignore libtorrent::peer_class::channel;
%ignore libtorrent::torrent_peer::connection;
%ignore libtorrent::ipv6_peer::addr;

%ignore boost::throws;
%ignore boost::detail::throws;
Expand Down
166 changes: 0 additions & 166 deletions swig/libtorrent_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54729,21 +54729,6 @@ SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_new
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_ipv6_1peer_1addr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
libtorrent::ipv6_peer *arg1 = (libtorrent::ipv6_peer *) 0 ;
libtorrent::address_v6::bytes_type *result = 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::ipv6_peer **)&jarg1;
result = (libtorrent::address_v6::bytes_type *)& ((arg1)->addr);
*(libtorrent::address_v6::bytes_type **)&jresult = result;
return jresult;
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_delete_1ipv6_1peer(JNIEnv *jenv, jclass jcls, jlong jarg1) {
libtorrent::ipv6_peer *arg1 = (libtorrent::ipv6_peer *) 0 ;

Expand Down Expand Up @@ -54797,157 +54782,6 @@ SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_dele
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1stats_1counters_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
libtorrent::counters *arg2 = (libtorrent::counters *) 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
arg2 = *(libtorrent::counters **)&jarg2;
if (arg1) (arg1)->stats_counters = arg2;
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1stats_1counters_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
libtorrent::counters *result = 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
result = (libtorrent::counters *) ((arg1)->stats_counters);
*(libtorrent::counters **)&jresult = result;
return jresult;
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1s_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
boost::shared_ptr< socket_type > *arg2 = (boost::shared_ptr< socket_type > *) 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
arg2 = *(boost::shared_ptr< socket_type > **)&jarg2;
if (arg1) (arg1)->s = *arg2;
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1s_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
boost::shared_ptr< socket_type > *result = 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
result = (boost::shared_ptr< socket_type > *)& ((arg1)->s);
*(boost::shared_ptr< socket_type > **)&jresult = result;
return jresult;
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1endp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
tcp::endpoint *arg2 = (tcp::endpoint *) 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
arg2 = *(tcp::endpoint **)&jarg2;
if (arg1) (arg1)->endp = *arg2;
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1endp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
tcp::endpoint *result = 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
result = (tcp::endpoint *)& ((arg1)->endp);
*(tcp::endpoint **)&jresult = result;
return jresult;
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1peerinfo_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
libtorrent::torrent_peer *arg2 = (libtorrent::torrent_peer *) 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
arg2 = *(libtorrent::torrent_peer **)&jarg2;
if (arg1) (arg1)->peerinfo = arg2;
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1args_1peerinfo_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;
libtorrent::torrent_peer *result = 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
result = (libtorrent::torrent_peer *) ((arg1)->peerinfo);
*(libtorrent::torrent_peer **)&jresult = result;
return jresult;
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_new_1peer_1connection_1args(JNIEnv *jenv, jclass jcls) {
jlong jresult = 0 ;
libtorrent::peer_connection_args *result = 0 ;

(void)jenv;
(void)jcls;
{
try {
result = (libtorrent::peer_connection_args *)new libtorrent::peer_connection_args();
} catch (...) {
translate_cpp_exception(jenv);
return 0;
}
}
*(libtorrent::peer_connection_args **)&jresult = result;
return jresult;
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_delete_1peer_1connection_1args(JNIEnv *jenv, jclass jcls, jlong jarg1) {
libtorrent::peer_connection_args *arg1 = (libtorrent::peer_connection_args *) 0 ;

(void)jenv;
(void)jcls;
arg1 = *(libtorrent::peer_connection_args **)&jarg1;
{
try {
delete arg1;
} catch (...) {
translate_cpp_exception(jenv);
return ;
}
}
}


SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_peer_1connection_1bittorrent_1connection_1get(JNIEnv *jenv, jclass jcls) {
jint jresult = 0 ;
libtorrent::peer_connection::connection_type result;
Expand Down

0 comments on commit fda81e1

Please sign in to comment.