Expose human functions that use Result objects
[ldk-java] / src / main / java / org / ldk / structs / Result_SecretKeySecpErrorZ.java
index 7df06e5dc46f18ae28894f8d79d13f55d9bc2d9e..04bb874a9ffd740336722226a733932de96aa992 100644 (file)
@@ -12,6 +12,13 @@ public class Result_SecretKeySecpErrorZ extends CommonBase {
                bindings.CResult_SecretKeySecpErrorZ_free(ptr); super.finalize();
        }
 
+       static Result_SecretKeySecpErrorZ constr_from_ptr(long ptr) {
+               if (bindings.LDKCResult_SecretKeySecpErrorZ_result_ok(ptr)) {
+                       return new Result_SecretKeySecpErrorZ_OK(null, ptr);
+               } else {
+                       return new Result_SecretKeySecpErrorZ_Err(null, ptr);
+               }
+       }
        public static final class Result_SecretKeySecpErrorZ_OK extends Result_SecretKeySecpErrorZ {
                public byte[] res;
                private Result_SecretKeySecpErrorZ_OK(Object _dummy, long ptr) {