X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FOption_MonitorEventZ.java;h=6d0f9587c88835ab39033f043932e66db17fddfc;hb=ff3dacec3be60f870d81f6df11bd9fff92aa6047;hp=032e1f39e5d7f85daf0c65684b025d51d866f55f;hpb=6d094e745feaf94c1059555cd1c997965a34bc36;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Option_MonitorEventZ.java b/src/main/java/org/ldk/structs/Option_MonitorEventZ.java index 032e1f39..6d0f9587 100644 --- a/src/main/java/org/ldk/structs/Option_MonitorEventZ.java +++ b/src/main/java/org/ldk/structs/Option_MonitorEventZ.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; @@ -33,11 +34,11 @@ public class Option_MonitorEventZ extends CommonBase { * When we're in this state, this COption_MonitorEventZ contains a crate::lightning::chain::channelmonitor::MonitorEvent */ public final static class Some extends Option_MonitorEventZ { - public final MonitorEvent some; + public final org.ldk.structs.MonitorEvent some; private Some(long ptr, bindings.LDKCOption_MonitorEventZ.Some obj) { super(null, ptr); long some = obj.some; - MonitorEvent some_hu_conv = MonitorEvent.constr_from_ptr(some); + org.ldk.structs.MonitorEvent some_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(some); some_hu_conv.ptrs_to.add(this); this.some = some_hu_conv; } @@ -55,8 +56,9 @@ public class Option_MonitorEventZ extends CommonBase { */ public static Option_MonitorEventZ some(MonitorEvent o) { long ret = bindings.COption_MonitorEventZ_some(o.ptr); + Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } - Option_MonitorEventZ ret_hu_conv = Option_MonitorEventZ.constr_from_ptr(ret); + org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -67,13 +69,14 @@ public class Option_MonitorEventZ extends CommonBase { public static Option_MonitorEventZ none() { long ret = bindings.COption_MonitorEventZ_none(); if (ret >= 0 && ret <= 4096) { return null; } - Option_MonitorEventZ ret_hu_conv = Option_MonitorEventZ.constr_from_ptr(ret); + org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } long clone_ptr() { long ret = bindings.COption_MonitorEventZ_clone_ptr(this.ptr); + Reference.reachabilityFence(this); return ret; } @@ -83,8 +86,9 @@ public class Option_MonitorEventZ extends CommonBase { */ public Option_MonitorEventZ clone() { long ret = bindings.COption_MonitorEventZ_clone(this.ptr); + Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } - Option_MonitorEventZ ret_hu_conv = Option_MonitorEventZ.constr_from_ptr(ret); + org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; }