X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_COption_MonitorEventZDecodeErrorZ.java;h=dc2c2b8bd33e859393ffc14ec921c482103cd152;hb=ff3dacec3be60f870d81f6df11bd9fff92aa6047;hp=bc311a1197e36b301a324a73d9eeb7118d801cc3;hpb=f3e670e9341decac613d33fc52febf19cea32f20;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.java b/src/main/java/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.java index bc311a11..dc2c2b8b 100644 --- a/src/main/java/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.java @@ -4,6 +4,7 @@ import org.ldk.impl.bindings; import org.ldk.enums.*; import org.ldk.util.*; import java.util.Arrays; +import java.lang.ref.Reference; import javax.annotation.Nullable; public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { @@ -23,8 +24,8 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { public final Option_MonitorEventZ res; private Result_COption_MonitorEventZDecodeErrorZ_OK(Object _dummy, long ptr) { super(_dummy, ptr); - long res = bindings.LDKCResult_COption_MonitorEventZDecodeErrorZ_get_ok(ptr); - Option_MonitorEventZ res_hu_conv = Option_MonitorEventZ.constr_from_ptr(res); + long res = bindings.CResult_COption_MonitorEventZDecodeErrorZ_get_ok(ptr); + org.ldk.structs.Option_MonitorEventZ res_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(res); res_hu_conv.ptrs_to.add(this); this.res = res_hu_conv; } @@ -34,7 +35,7 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { public final DecodeError err; private Result_COption_MonitorEventZDecodeErrorZ_Err(Object _dummy, long ptr) { super(_dummy, ptr); - long err = bindings.LDKCResult_COption_MonitorEventZDecodeErrorZ_get_err(ptr); + long err = bindings.CResult_COption_MonitorEventZDecodeErrorZ_get_err(ptr); DecodeError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new DecodeError(null, err); } err_hu_conv.ptrs_to.add(this); this.err = err_hu_conv; @@ -46,6 +47,7 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { */ public static Result_COption_MonitorEventZDecodeErrorZ ok(Option_MonitorEventZ o) { long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_ok(o.ptr); + Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -56,6 +58,7 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { */ public static Result_COption_MonitorEventZDecodeErrorZ err(DecodeError e) { long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1); + Reference.reachabilityFence(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -66,11 +69,13 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { */ public boolean is_ok() { boolean ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_is_ok(this.ptr); + Reference.reachabilityFence(this); return ret; } long clone_ptr() { long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(this.ptr); + Reference.reachabilityFence(this); return ret; } @@ -80,6 +85,7 @@ public class Result_COption_MonitorEventZDecodeErrorZ extends CommonBase { */ public Result_COption_MonitorEventZDecodeErrorZ clone() { long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_clone(this.ptr); + Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv;