Skip to content

Commit

Permalink
Removed private stack_allocator type.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Dec 3, 2015
1 parent d679b32 commit 2dc99dd
Show file tree
Hide file tree
Showing 80 changed files with 546 additions and 8,095 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public add_torrent_alert(stack_allocator alloc, torrent_handle h, add_torrent_params p, error_code ec) {
this(libtorrent_jni.new_add_torrent_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, add_torrent_params.getCPtr(p), p, error_code.getCPtr(ec), ec), true);
}

public int type() {
return libtorrent_jni.add_torrent_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public anonymous_mode_alert(stack_allocator alloc, torrent_handle h, int k, String s) {
this(libtorrent_jni.new_anonymous_mode_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, k, s), true);
}

public int type() {
return libtorrent_jni.anonymous_mode_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public block_downloading_alert(stack_allocator alloc, torrent_handle h, tcp_endpoint ep, sha1_hash peer_id, int block_num, int piece_num) {
this(libtorrent_jni.new_block_downloading_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, tcp_endpoint.getCPtr(ep), ep, sha1_hash.getCPtr(peer_id), peer_id, block_num, piece_num), true);
}

public int type() {
return libtorrent_jni.block_downloading_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public block_finished_alert(stack_allocator alloc, torrent_handle h, tcp_endpoint ep, sha1_hash peer_id, int block_num, int piece_num) {
this(libtorrent_jni.new_block_finished_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, tcp_endpoint.getCPtr(ep), ep, sha1_hash.getCPtr(peer_id), peer_id, block_num, piece_num), true);
}

public int type() {
return libtorrent_jni.block_finished_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public block_timeout_alert(stack_allocator alloc, torrent_handle h, tcp_endpoint ep, sha1_hash peer_id, int block_num, int piece_num) {
this(libtorrent_jni.new_block_timeout_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, tcp_endpoint.getCPtr(ep), ep, sha1_hash.getCPtr(peer_id), peer_id, block_num, piece_num), true);
}

public int type() {
return libtorrent_jni.block_timeout_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public cache_flushed_alert(stack_allocator alloc, torrent_handle h) {
this(libtorrent_jni.new_cache_flushed_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h), true);
}

public int type() {
return libtorrent_jni.cache_flushed_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_announce_alert(stack_allocator alloc, address i, int p, sha1_hash ih) {
this(libtorrent_jni.new_dht_announce_alert(stack_allocator.getCPtr(alloc), alloc, address.getCPtr(i), i, p, sha1_hash.getCPtr(ih), ih), true);
}

public int type() {
return libtorrent_jni.dht_announce_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_bootstrap_alert(stack_allocator alloc) {
this(libtorrent_jni.new_dht_bootstrap_alert(stack_allocator.getCPtr(alloc), alloc), true);
}

public int type() {
return libtorrent_jni.dht_bootstrap_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_error_alert(stack_allocator alloc, int op, error_code ec) {
this(libtorrent_jni.new_dht_error_alert(stack_allocator.getCPtr(alloc), alloc, op, error_code.getCPtr(ec), ec), true);
}

public int type() {
return libtorrent_jni.dht_error_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_get_peers_alert(stack_allocator alloc, sha1_hash ih) {
this(libtorrent_jni.new_dht_get_peers_alert(stack_allocator.getCPtr(alloc), alloc, sha1_hash.getCPtr(ih), ih), true);
}

public int type() {
return libtorrent_jni.dht_get_peers_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_get_peers_reply_alert(stack_allocator alloc, sha1_hash ih, tcp_endpoint_vector v) {
this(libtorrent_jni.new_dht_get_peers_reply_alert(stack_allocator.getCPtr(alloc), alloc, sha1_hash.getCPtr(ih), ih, tcp_endpoint_vector.getCPtr(v), v), true);
}

public int type() {
return libtorrent_jni.dht_get_peers_reply_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_immutable_item_alert(stack_allocator alloc, sha1_hash t, entry i) {
this(libtorrent_jni.new_dht_immutable_item_alert(stack_allocator.getCPtr(alloc), alloc, sha1_hash.getCPtr(t), t, entry.getCPtr(i), i), true);
}

public int type() {
return libtorrent_jni.dht_immutable_item_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_outgoing_get_peers_alert(stack_allocator alloc, sha1_hash ih, sha1_hash obfih, udp_endpoint ep) {
this(libtorrent_jni.new_dht_outgoing_get_peers_alert(stack_allocator.getCPtr(alloc), alloc, sha1_hash.getCPtr(ih), ih, sha1_hash.getCPtr(obfih), obfih, udp_endpoint.getCPtr(ep), ep), true);
}

public int type() {
return libtorrent_jni.dht_outgoing_get_peers_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_pkt_alert(stack_allocator alloc, String buf, int size, dht_pkt_alert.direction_t d, udp_endpoint ep) {
this(libtorrent_jni.new_dht_pkt_alert(stack_allocator.getCPtr(alloc), alloc, buf, size, d.swigValue(), udp_endpoint.getCPtr(ep), ep), true);
}

public int type() {
return libtorrent_jni.dht_pkt_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_reply_alert(stack_allocator alloc, torrent_handle h, int np) {
this(libtorrent_jni.new_dht_reply_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, np), true);
}

public int type() {
return libtorrent_jni.dht_reply_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public dht_stats_alert(stack_allocator alloc, dht_routing_bucket_vector table, dht_lookup_vector requests) {
this(libtorrent_jni.new_dht_stats_alert(stack_allocator.getCPtr(alloc), alloc, dht_routing_bucket_vector.getCPtr(table), table, dht_lookup_vector.getCPtr(requests), requests), true);
}

public int type() {
return libtorrent_jni.dht_stats_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public external_ip_alert(stack_allocator alloc, address ip) {
this(libtorrent_jni.new_external_ip_alert(stack_allocator.getCPtr(alloc), alloc, address.getCPtr(ip), ip), true);
}

public int type() {
return libtorrent_jni.external_ip_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public fastresume_rejected_alert(stack_allocator alloc, torrent_handle h, error_code ec, String file, String op) {
this(libtorrent_jni.new_fastresume_rejected_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, error_code.getCPtr(ec), ec, file, op), true);
}

public int type() {
return libtorrent_jni.fastresume_rejected_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public file_completed_alert(stack_allocator alloc, torrent_handle h, int idx) {
this(libtorrent_jni.new_file_completed_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, idx), true);
}

public int type() {
return libtorrent_jni.file_completed_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public file_error_alert(stack_allocator alloc, error_code ec, String file, String op, torrent_handle h) {
this(libtorrent_jni.new_file_error_alert(stack_allocator.getCPtr(alloc), alloc, error_code.getCPtr(ec), ec, file, op, torrent_handle.getCPtr(h), h), true);
}

public int type() {
return libtorrent_jni.file_error_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public file_rename_failed_alert(stack_allocator alloc, torrent_handle h, int idx, error_code ec) {
this(libtorrent_jni.new_file_rename_failed_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, idx, error_code.getCPtr(ec), ec), true);
}

public int type() {
return libtorrent_jni.file_rename_failed_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public file_renamed_alert(stack_allocator alloc, torrent_handle h, String n, int idx) {
this(libtorrent_jni.new_file_renamed_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, n, idx), true);
}

public int type() {
return libtorrent_jni.file_renamed_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public hash_failed_alert(stack_allocator alloc, torrent_handle h, int index) {
this(libtorrent_jni.new_hash_failed_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, index), true);
}

public int type() {
return libtorrent_jni.hash_failed_alert_type(swigCPtr, this);
}
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/frostwire/jlibtorrent/swig/i2p_alert.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public i2p_alert(stack_allocator alloc, error_code ec) {
this(libtorrent_jni.new_i2p_alert(stack_allocator.getCPtr(alloc), alloc, error_code.getCPtr(ec), ec), true);
}

public int type() {
return libtorrent_jni.i2p_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public incoming_connection_alert(stack_allocator alloc, int t, tcp_endpoint i) {
this(libtorrent_jni.new_incoming_connection_alert(stack_allocator.getCPtr(alloc), alloc, t, tcp_endpoint.getCPtr(i), i), true);
}

public int type() {
return libtorrent_jni.incoming_connection_alert_type(swigCPtr, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public synchronized void delete() {
super.delete();
}

public invalid_request_alert(stack_allocator alloc, torrent_handle h, tcp_endpoint ep, sha1_hash peer_id, peer_request r, boolean we_have, boolean peer_interested, boolean withheld) {
this(libtorrent_jni.new_invalid_request_alert(stack_allocator.getCPtr(alloc), alloc, torrent_handle.getCPtr(h), h, tcp_endpoint.getCPtr(ep), ep, sha1_hash.getCPtr(peer_id), peer_id, peer_request.getCPtr(r), r, we_have, peer_interested, withheld), true);
}

public int type() {
return libtorrent_jni.invalid_request_alert_type(swigCPtr, this);
}
Expand Down

0 comments on commit 2dc99dd

Please sign in to comment.