X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_NetAddressDecodeErrorZ.java;h=312de2c206e149b79641ff2ccd172c9e5c3e42f5;hb=32973ea2749f8efd05b543dd774763513013b38b;hp=a678c2ea417d93abb2fdd993ed33b006bfcf1917;hpb=64bcaa6a2a2f05653c14b9cb8bb97ab2480eaaa5;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_NetAddressDecodeErrorZ.java b/src/main/java/org/ldk/structs/Result_NetAddressDecodeErrorZ.java index a678c2ea..312de2c2 100644 --- a/src/main/java/org/ldk/structs/Result_NetAddressDecodeErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_NetAddressDecodeErrorZ.java @@ -25,8 +25,8 @@ public class Result_NetAddressDecodeErrorZ extends CommonBase { private Result_NetAddressDecodeErrorZ_OK(Object _dummy, long ptr) { super(_dummy, ptr); long res = bindings.CResult_NetAddressDecodeErrorZ_get_ok(ptr); - NetAddress res_hu_conv = NetAddress.constr_from_ptr(res); - res_hu_conv.ptrs_to.add(this); + org.ldk.structs.NetAddress res_hu_conv = org.ldk.structs.NetAddress.constr_from_ptr(res); + if (res_hu_conv != null) { res_hu_conv.ptrs_to.add(this); }; this.res = res_hu_conv; } } @@ -36,8 +36,8 @@ public class Result_NetAddressDecodeErrorZ extends CommonBase { private Result_NetAddressDecodeErrorZ_Err(Object _dummy, long ptr) { super(_dummy, ptr); long err = bindings.CResult_NetAddressDecodeErrorZ_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); + org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); + if (err_hu_conv != null) { err_hu_conv.ptrs_to.add(this); }; this.err = err_hu_conv; } } @@ -45,22 +45,24 @@ public class Result_NetAddressDecodeErrorZ extends CommonBase { /** * Creates a new CResult_NetAddressDecodeErrorZ in the success state. */ - public static Result_NetAddressDecodeErrorZ ok(NetAddress o) { + public static Result_NetAddressDecodeErrorZ ok(org.ldk.structs.NetAddress o) { long ret = bindings.CResult_NetAddressDecodeErrorZ_ok(o.ptr); Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NetAddressDecodeErrorZ ret_hu_conv = Result_NetAddressDecodeErrorZ.constr_from_ptr(ret); + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(o); }; return ret_hu_conv; } /** * Creates a new CResult_NetAddressDecodeErrorZ in the error state. */ - public static Result_NetAddressDecodeErrorZ err(DecodeError e) { - long ret = bindings.CResult_NetAddressDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1); + public static Result_NetAddressDecodeErrorZ err(org.ldk.structs.DecodeError e) { + long ret = bindings.CResult_NetAddressDecodeErrorZ_err(e.ptr); Reference.reachabilityFence(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NetAddressDecodeErrorZ ret_hu_conv = Result_NetAddressDecodeErrorZ.constr_from_ptr(ret); + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); }; return ret_hu_conv; }