Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_NonePeerHandleErrorZ.java
index b6a2804ab179f5a79fdd5a308c5b7e33fad1a119..643cd7f591afe7f4ce4d8bccebf08f98f026e0e3 100644 (file)
@@ -13,7 +13,7 @@ public class Result_NonePeerHandleErrorZ extends CommonBase {
        }
 
        static Result_NonePeerHandleErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_NonePeerHandleErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_NonePeerHandleErrorZ_is_ok(ptr)) {
                        return new Result_NonePeerHandleErrorZ_OK(null, ptr);
                } else {
                        return new Result_NonePeerHandleErrorZ_Err(null, ptr);
@@ -56,6 +56,19 @@ public class Result_NonePeerHandleErrorZ 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_NonePeerHandleErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
+       long clone_ptr() {
+               long ret = bindings.CResult_NonePeerHandleErrorZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new CResult_NonePeerHandleErrorZ which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.