Update bindings to latest upstream.
[ldk-java] / ts / structs / Init.ts
index f396b0bf80b8ef89cf98c6cde28cfbed4653fcd1..b8ca1522ccb2f4cfc6e7a79f9dd98d035aea6282 100644 (file)
@@ -18,6 +18,26 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.Init_free(this.ptr);
                     }
                 }
+       public InitFeatures get_features() {
+               number ret = bindings.Init_get_features(this.ptr);
+               const ret_hu_conv: InitFeatures = 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) {
+               number ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr & ~1);
+               const ret_hu_conv: Init = new Init(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               ret_hu_conv.ptrs_to.add(features_arg);
+               return ret_hu_conv;
+       }
+
        public Init clone() {
                number ret = bindings.Init_clone(this.ptr);
                const ret_hu_conv: Init = new Init(null, ret);