X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=bindingstypes.py;h=2ca6c0de11712ed570eca663a8e9b111e22720ee;hb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;hp=aab05250a9d9f9a9afa246abb4b726af24503e04;hpb=51b99938ad39a1215696f57e37c8ee79307c1086;p=ldk-java diff --git a/bindingstypes.py b/bindingstypes.py index aab05250..2ca6c0de 100644 --- a/bindingstypes.py +++ b/bindingstypes.py @@ -1,5 +1,5 @@ class TypeInfo: - def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_hu_ty, c_ty, is_const, passed_as_ptr, is_ptr, var_name, arr_len, arr_access, subty=None): + def __init__(self, is_native_primitive, rust_obj, java_ty, java_fn_ty_arg, java_hu_ty, c_ty, is_const, passed_as_ptr, is_ptr, nonnull_ptr, var_name, arr_len, arr_access, subty=None): self.is_native_primitive = is_native_primitive self.rust_obj = rust_obj self.java_ty = java_ty @@ -9,6 +9,7 @@ class TypeInfo: self.is_const = is_const self.passed_as_ptr = passed_as_ptr self.is_ptr = is_ptr + self.nonnull_ptr = nonnull_ptr self.var_name = var_name self.arr_len = arr_len self.arr_access = arr_access @@ -74,6 +75,7 @@ class TraitMethInfo: self.docs = docs class ComplexEnumVariantInfo: - def __init__(self, var_name, fields): + def __init__(self, var_name, fields, tuple_variant): self.var_name = var_name self.fields = fields + self.tuple_variant = tuple_variant