Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_InvoiceSemanticErrorZ.java
index 6f12fb2ed41817c41f8fcd6cccd0a2e4389d0541..cca24af03a2330d8db22c40e21f98b1ac36e39f7 100644 (file)
@@ -13,7 +13,7 @@ public class Result_InvoiceSemanticErrorZ extends CommonBase {
        }
 
        static Result_InvoiceSemanticErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_InvoiceSemanticErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_InvoiceSemanticErrorZ_is_ok(ptr)) {
                        return new Result_InvoiceSemanticErrorZ_OK(null, ptr);
                } else {
                        return new Result_InvoiceSemanticErrorZ_Err(null, ptr);
@@ -58,6 +58,19 @@ public class Result_InvoiceSemanticErrorZ 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_InvoiceSemanticErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
+       long clone_ptr() {
+               long ret = bindings.CResult_InvoiceSemanticErrorZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new CResult_InvoiceSemanticErrorZ which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.