pub unsafe fn yaml_parser_set_input(
parser: *mut YamlParserT,
handler: YamlReadHandlerT,
data: *mut c_void,
)Expand description
Set a generic input handler.
This function sets a custom input handler for the parser.
ยงSafety
parsermust be a valid, non-null pointer to a properly initializedYamlParserTstruct.- The
YamlParserTstruct must not have an input handler already set. handlermust be a valid function pointer that follows the signature ofYamlReadHandlerT.datamust be a valid pointer that will be passed to thehandlerfunction.- The
YamlParserTstruct and its associated data structures must be properly aligned and have the expected memory layout.