Update bindings to latest upstream.
[ldk-java] / src / main / java / org / ldk / structs / Init.java
index 0efe948456443f75d38fcf6d156e71aaa0ccd6b4..867b1ab93e20ebab6a89ebf342525a8403faf1d2 100644 (file)
@@ -14,10 +14,30 @@ public class Init extends CommonBase {
                if (ptr != 0) { bindings.Init_free(ptr); }
        }
 
-       public static Init constructor_clone(Init orig) {
-               long ret = bindings.Init_clone(orig == null ? 0 : orig.ptr & ~1);
+       public InitFeatures get_features() {
+               long ret = bindings.Init_get_features(this.ptr);
+               InitFeatures ret_hu_conv = new InitFeatures(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+       public void set_features(InitFeatures val) {
+               bindings.Init_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
+               this.ptrs_to.add(val);
+       }
+
+       public static Init constructor_new(InitFeatures features_arg) {
+               long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr & ~1);
                Init ret_hu_conv = new Init(null, ret);
-               ret_hu_conv.ptrs_to.add(orig);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               ret_hu_conv.ptrs_to.add(features_arg);
+               return ret_hu_conv;
+       }
+
+       public Init clone() {
+               long ret = bindings.Init_clone(this.ptr);
+               Init ret_hu_conv = new Init(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -26,9 +46,9 @@ public class Init extends CommonBase {
                return ret;
        }
 
-       public static Init constructor_read(byte[] ser) {
+       public static Result_InitDecodeErrorZ constructor_read(byte[] ser) {
                long ret = bindings.Init_read(ser);
-               Init ret_hu_conv = new Init(null, ret);
+               Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }