There are several functions in the SDK, in
ida_typeinf.py that could be of use here, with the python API being much easier to use.
parse_decls - for converting a header file to a til_t type library.
- this function seems to skip plain function declarations.
- but does store typedefs by name.
parse_decl - for converting a single declaration to a
- this does work for function declarations, but loses the function name.
get_named_type - for looking up a type in the til_t.
apply_type - for applying a type to a function.
So you could either parse the name from the function declaration yourself, and then use
parse_decl to parse each declaration seperately.
Or you could add
typedef to the start of each declaration, so ida will store all your declarations, by name in a type libary.