Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_SecretKeyErrorZ.java
index f643ad9a4cf3865fd9de221fac3738721c331c55..48f2ae1db20a7ea6bf65bb27cdfa0ea7cd2afac0 100644 (file)
@@ -24,9 +24,6 @@ public class Result_SecretKeyErrorZ extends CommonBase {
                        super(_dummy, ptr);
                        this.res = bindings.LDKCResult_SecretKeyErrorZ_get_ok(ptr);
                }
-               public Result_SecretKeyErrorZ_OK(byte[] res) {
-                       this(null, bindings.CResult_SecretKeyErrorZ_ok(res));
-               }
        }
 
        public static final class Result_SecretKeyErrorZ_Err extends Result_SecretKeyErrorZ {
@@ -35,8 +32,24 @@ public class Result_SecretKeyErrorZ extends CommonBase {
                        super(_dummy, ptr);
                        this.err = bindings.LDKCResult_SecretKeyErrorZ_get_err(ptr);
                }
-               public Result_SecretKeyErrorZ_Err(LDKSecp256k1Error err) {
-                       this(null, bindings.CResult_SecretKeyErrorZ_err(err));
-               }
        }
+
+       /**
+        * Creates a new CResult_SecretKeyErrorZ in the success state.
+        */
+       public static Result_SecretKeyErrorZ constructor_ok(byte[] o) {
+               long ret = bindings.CResult_SecretKeyErrorZ_ok(o);
+               Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
+       /**
+        * Creates a new CResult_SecretKeyErrorZ in the error state.
+        */
+       public static Result_SecretKeyErrorZ constructor_err(LDKSecp256k1Error e) {
+               long ret = bindings.CResult_SecretKeyErrorZ_err(e);
+               Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
 }