-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
896 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.5 | ||
* | ||
* 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 ipv4_peer_entry { | ||
private long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
protected ipv4_peer_entry(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(ipv4_peer_entry 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_ipv4_peer_entry(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public void setPort(int value) { | ||
libtorrent_jni.ipv4_peer_entry_port_set(swigCPtr, this, value); | ||
} | ||
|
||
public int getPort() { | ||
return libtorrent_jni.ipv4_peer_entry_port_get(swigCPtr, this); | ||
} | ||
|
||
public ipv4_peer_entry() { | ||
this(libtorrent_jni.new_ipv4_peer_entry(), true); | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
src/com/frostwire/jlibtorrent/swig/ipv4_peer_entry_vector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.5 | ||
* | ||
* 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 ipv4_peer_entry_vector { | ||
private long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
protected ipv4_peer_entry_vector(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(ipv4_peer_entry_vector 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_ipv4_peer_entry_vector(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public ipv4_peer_entry_vector() { | ||
this(libtorrent_jni.new_ipv4_peer_entry_vector(), true); | ||
} | ||
|
||
public long size() { | ||
return libtorrent_jni.ipv4_peer_entry_vector_size(swigCPtr, this); | ||
} | ||
|
||
public long capacity() { | ||
return libtorrent_jni.ipv4_peer_entry_vector_capacity(swigCPtr, this); | ||
} | ||
|
||
public void reserve(long n) { | ||
libtorrent_jni.ipv4_peer_entry_vector_reserve(swigCPtr, this, n); | ||
} | ||
|
||
public boolean isEmpty() { | ||
return libtorrent_jni.ipv4_peer_entry_vector_isEmpty(swigCPtr, this); | ||
} | ||
|
||
public void clear() { | ||
libtorrent_jni.ipv4_peer_entry_vector_clear(swigCPtr, this); | ||
} | ||
|
||
public void add(ipv4_peer x) { | ||
libtorrent_jni.ipv4_peer_entry_vector_add(swigCPtr, this, ipv4_peer.getCPtr(x), x); | ||
} | ||
|
||
public ipv4_peer get(int i) { | ||
return new ipv4_peer(libtorrent_jni.ipv4_peer_entry_vector_get(swigCPtr, this, i), false); | ||
} | ||
|
||
public void set(int i, ipv4_peer val) { | ||
libtorrent_jni.ipv4_peer_entry_vector_set(swigCPtr, this, i, ipv4_peer.getCPtr(val), val); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.5 | ||
* | ||
* 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 ipv6_peer_entry { | ||
private long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
protected ipv6_peer_entry(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(ipv6_peer_entry 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_ipv6_peer_entry(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public void setPort(int value) { | ||
libtorrent_jni.ipv6_peer_entry_port_set(swigCPtr, this, value); | ||
} | ||
|
||
public int getPort() { | ||
return libtorrent_jni.ipv6_peer_entry_port_get(swigCPtr, this); | ||
} | ||
|
||
public ipv6_peer_entry() { | ||
this(libtorrent_jni.new_ipv6_peer_entry(), true); | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
src/com/frostwire/jlibtorrent/swig/ipv6_peer_entry_vector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.5 | ||
* | ||
* 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 ipv6_peer_entry_vector { | ||
private long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
protected ipv6_peer_entry_vector(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(ipv6_peer_entry_vector 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_ipv6_peer_entry_vector(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public ipv6_peer_entry_vector() { | ||
this(libtorrent_jni.new_ipv6_peer_entry_vector(), true); | ||
} | ||
|
||
public long size() { | ||
return libtorrent_jni.ipv6_peer_entry_vector_size(swigCPtr, this); | ||
} | ||
|
||
public long capacity() { | ||
return libtorrent_jni.ipv6_peer_entry_vector_capacity(swigCPtr, this); | ||
} | ||
|
||
public void reserve(long n) { | ||
libtorrent_jni.ipv6_peer_entry_vector_reserve(swigCPtr, this, n); | ||
} | ||
|
||
public boolean isEmpty() { | ||
return libtorrent_jni.ipv6_peer_entry_vector_isEmpty(swigCPtr, this); | ||
} | ||
|
||
public void clear() { | ||
libtorrent_jni.ipv6_peer_entry_vector_clear(swigCPtr, this); | ||
} | ||
|
||
public void add(ipv6_peer x) { | ||
libtorrent_jni.ipv6_peer_entry_vector_add(swigCPtr, this, ipv6_peer.getCPtr(x), x); | ||
} | ||
|
||
public ipv6_peer get(int i) { | ||
return new ipv6_peer(libtorrent_jni.ipv6_peer_entry_vector_get(swigCPtr, this, i), false); | ||
} | ||
|
||
public void set(int i, ipv6_peer val) { | ||
libtorrent_jni.ipv6_peer_entry_vector_set(swigCPtr, this, i, ipv6_peer.getCPtr(val), val); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.