Skip to content

Commit

Permalink
Swig runs without errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Feb 25, 2015
1 parent a36b2e9 commit c6dd37d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 65 deletions.

This file was deleted.

2 changes: 0 additions & 2 deletions src/com/frostwire/jlibtorrent/swig/libtorrent_jni.java
Original file line number Diff line number Diff line change
Expand Up @@ -2942,8 +2942,6 @@ public class libtorrent_jni {
public final static native int session_tcp_get();
public final static native int session_add_port_mapping(long jarg1, session jarg1_, int jarg2, int jarg3, int jarg4);
public final static native void session_delete_port_mapping(long jarg1, session jarg1_, int jarg2);
public final static native void session_m_impl_set(long jarg1, session jarg1_, long jarg2);
public final static native long session_m_impl_get(long jarg1, session jarg1_);
public final static native void session_add_lt_trackers_extension(long jarg1, session jarg1_);
public final static native void session_add_smart_ban_extension(long jarg1, session jarg1_);
public final static native void session_dht_get_item__SWIG_1(long jarg1, session jarg1_, long jarg2, char_vector jarg2_, String jarg3);
Expand Down
9 changes: 0 additions & 9 deletions src/com/frostwire/jlibtorrent/swig/session.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,6 @@ public void delete_port_mapping(int handle) {
libtorrent_jni.session_delete_port_mapping(swigCPtr, this, handle);
}

public void setM_impl(SWIGTYPE_p_boost__shared_ptrT_libtorrent__aux__session_impl_t value) {
libtorrent_jni.session_m_impl_set(swigCPtr, this, SWIGTYPE_p_boost__shared_ptrT_libtorrent__aux__session_impl_t.getCPtr(value));
}

public SWIGTYPE_p_boost__shared_ptrT_libtorrent__aux__session_impl_t getM_impl() {
long cPtr = libtorrent_jni.session_m_impl_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_boost__shared_ptrT_libtorrent__aux__session_impl_t(cPtr, false);
}

public void add_lt_trackers_extension() {
libtorrent_jni.session_add_lt_trackers_extension(swigCPtr, this);
}
Expand Down
3 changes: 3 additions & 0 deletions swig/libtorrent.i
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ namespace std {
%ignore libtorrent::has_bits;
%ignore libtorrent::count_zero_bits;

%ignore libtorrent::detail::nop;
%ignore libtorrent::session::m_impl;

%ignore boost::throws;
%ignore boost::detail::throws;
%ignore boost::asio::ip::address_v4::to_bytes;
Expand Down
28 changes: 0 additions & 28 deletions swig/libtorrent_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59817,34 +59817,6 @@ SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_sess
}


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

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::session **)&jarg1;
arg2 = *(boost::shared_ptr< libtorrent::aux::session_impl > **)&jarg2;
if (arg1) (arg1)->m_impl = *arg2;
}


SWIGEXPORT jlong JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1m_1impl_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
libtorrent::session *arg1 = (libtorrent::session *) 0 ;
boost::shared_ptr< libtorrent::aux::session_impl > *result = 0 ;

(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(libtorrent::session **)&jarg1;
result = (boost::shared_ptr< libtorrent::aux::session_impl > *)& ((arg1)->m_impl);
*(boost::shared_ptr< libtorrent::aux::session_impl > **)&jresult = result;
return jresult;
}


SWIGEXPORT void JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_session_1add_1lt_1trackers_1extension(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
libtorrent::session *arg1 = (libtorrent::session *) 0 ;

Expand Down

0 comments on commit c6dd37d

Please sign in to comment.