X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FFundingLocked.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FFundingLocked.java;h=0e7a157b7f294f9bb67106de0efdb2508e435b49;hb=3d559f3266fde7c6a21248c10d9a7145125b5e69;hp=0000000000000000000000000000000000000000;hpb=11caa2e27490e341cfafb3967e6fefef28f98d8c;p=ldk-java diff --git a/src/main/java/org/ldk/structs/FundingLocked.java b/src/main/java/org/ldk/structs/FundingLocked.java new file mode 100644 index 00000000..0e7a157b --- /dev/null +++ b/src/main/java/org/ldk/structs/FundingLocked.java @@ -0,0 +1,46 @@ +package org.ldk.structs; + +import org.ldk.impl.bindings; +import org.ldk.enums.*; + +public class FundingLocked extends CommonBase { + FundingLocked(Object _dummy, long ptr) { super(ptr); } + @Override @SuppressWarnings("deprecation") + protected void finalize() throws Throwable { + bindings.FundingLocked_free(ptr); super.finalize(); + } + + public FundingLocked(FundingLocked orig) { + super(bindings.FundingLocked_clone(orig.ptr & ~1)); + this.ptrs_to.add(orig); + } + + public byte[] get_channel_id(FundingLocked this_ptr) { + byte[] ret = bindings.FundingLocked_get_channel_id(this_ptr.ptr & ~1); + this.ptrs_to.add(this_ptr); + return ret; + } + + public void set_channel_id(FundingLocked this_ptr, byte[] val) { + bindings.FundingLocked_set_channel_id(this_ptr.ptr & ~1, val); + this.ptrs_to.add(this_ptr); + } + + public byte[] get_next_per_commitment_point(FundingLocked this_ptr) { + byte[] ret = bindings.FundingLocked_get_next_per_commitment_point(this_ptr.ptr & ~1); + this.ptrs_to.add(this_ptr); + return ret; + } + + public void set_next_per_commitment_point(FundingLocked this_ptr, byte[] val) { + bindings.FundingLocked_set_next_per_commitment_point(this_ptr.ptr & ~1, val); + this.ptrs_to.add(this_ptr); + } + + public FundingLocked(byte[] channel_id_arg, byte[] next_per_commitment_point_arg) { + super(bindings.FundingLocked_new(channel_id_arg, next_per_commitment_point_arg)); + } + + // Skipped FundingLocked_write + // Skipped FundingLocked_read +}