Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_NoneNoneZ.java
index 3ef1d959a97548c96d09f2014963380f0ba2c026..3251bb9520da563c506657d529ab3e72891d5407 100644 (file)
@@ -13,7 +13,7 @@ public class Result_NoneNoneZ extends CommonBase {
        }
 
        static Result_NoneNoneZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_NoneNoneZ_result_ok(ptr)) {
+               if (bindings.CResult_NoneNoneZ_is_ok(ptr)) {
                        return new Result_NoneNoneZ_OK(null, ptr);
                } else {
                        return new Result_NoneNoneZ_Err(null, ptr);
@@ -51,6 +51,19 @@ public class Result_NoneNoneZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if the given object is currently in the success state
+        */
+       public boolean is_ok() {
+               boolean ret = bindings.CResult_NoneNoneZ_is_ok(this.ptr);
+               return ret;
+       }
+
+       long clone_ptr() {
+               long ret = bindings.CResult_NoneNoneZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new CResult_NoneNoneZ which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.