- fn_line = "struct LDKWitness TxIn_get_witness (struct LDKTxIn* thing)"
- write_c(fn_line + " {")
- write_c("\treturn Witness_clone(&thing->witness);")
- write_c("}")
- map_fn(fn_line + "\n", re.compile("(.*) (TxIn_get_witness) \((.*)\)").match(fn_line), None, None, None)
- fn_line = "struct LDKCVec_u8Z TxIn_get_script_sig (struct LDKTxIn* thing)"
- write_c(fn_line + " {")
- write_c("\treturn CVec_u8Z_clone(&thing->script_sig);")
- write_c("}")
- map_fn(fn_line + "\n", re.compile("(.*) (TxIn_get_script_sig) \((.*)\)").match(fn_line), None, None, None)
- fn_line = "LDKThirtyTwoBytes TxIn_get_previous_txid (struct LDKTxIn* thing)"
- write_c(fn_line + " {")
- write_c("\treturn thing->previous_txid;")
- write_c("}")
- map_fn(fn_line + "\n", re.compile("(.*) (TxIn_get_previous_txid) \((.*)\)").match(fn_line), None, None, None)
- fn_line = "uint32_t TxIn_get_previous_vout (struct LDKTxIn* thing)"
- write_c(fn_line + " {")
- write_c("\treturn thing->previous_vout;")
- write_c("}")
- map_fn(fn_line + "\n", re.compile("(.*) (TxIn_get_previous_vout) \((.*)\)").match(fn_line), None, None, None)
- fn_line = "uint32_t TxIn_get_sequence (struct LDKTxIn* thing)"
- write_c(fn_line + " {")
- write_c("\treturn thing->sequence;")
- write_c("}")
- map_fn(fn_line + "\n", re.compile("(.*) (TxIn_get_sequence) \((.*)\)").match(fn_line), None, None, None)