From f45d837dd36acf119f763029c861f0a52f934468 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 22 Mar 2021 20:48:41 -0400 Subject: [PATCH] Treat Txid as an alias for LDKThirtyTwoBytes --- genbindings.py | 5 +++++ 1 file changed, 5 insertions(+) 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:]) -- 2.39.5