From: Matt Corallo Date: Tue, 23 Mar 2021 00:48:41 +0000 (-0400) Subject: Treat Txid as an alias for LDKThirtyTwoBytes X-Git-Tag: v0.0.98~2^2~6 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f45d837dd36acf119f763029c861f0a52f934468;p=ldk-java Treat Txid as an alias for LDKThirtyTwoBytes --- diff --git a/genbindings.py b/genbindings.py index 12649658..b1f4a5eb 100755 --- a/genbindings.py +++ b/genbindings.py @@ -101,6 +101,11 @@ def java_c_types(fn_arg, ret_arr_len): assert var_is_arr_regex.match(fn_arg[8:]) rust_obj = "LDKThirtyTwoBytes" arr_access = "data" + elif fn_arg.startswith("LDKTxid"): + fn_arg = "uint8_t (*" + fn_arg[8:] + ")[32]" + assert var_is_arr_regex.match(fn_arg[8:]) + rust_obj = "LDKThirtyTwoBytes" + arr_access = "data" elif fn_arg.startswith("LDKPublicKey"): fn_arg = "uint8_t (*" + fn_arg[13:] + ")[33]" assert var_is_arr_regex.match(fn_arg[8:])