[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Result_ChannelConfigDecodeErrorZ.java
index c481a0e3236d9ab1d35f35691d287894f22a5d9d..ad213054bdd0a7c3bcf0d88b4b34285ff5cef627 100644 (file)
@@ -13,6 +13,10 @@ public class Result_ChannelConfigDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_ChannelConfigDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_ChannelConfigDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_ChannelConfigDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_ChannelConfigDecodeErrorZ_is_ok(ptr)) {
                        return new Result_ChannelConfigDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_ChannelConfigDecodeErrorZ extends CommonBase {
         * Creates a new CResult_ChannelConfigDecodeErrorZ in the success state.
         */
        public static Result_ChannelConfigDecodeErrorZ ok(org.ldk.structs.ChannelConfig o) {
-               long ret = bindings.CResult_ChannelConfigDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_ChannelConfigDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
@@ -62,6 +66,7 @@ public class Result_ChannelConfigDecodeErrorZ extends CommonBase {
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }