pub unsafe fn yaml_emitter_set_output(
emitter: *mut YamlEmitterT,
handler: YamlWriteHandlerT,
data: *mut c_void,
)Expand description
Set a generic output handler.
This function sets a custom output handler for the emitter.
ยงSafety
emittermust be a valid, non-null pointer to a properly initializedYamlEmitterTstruct.- The
YamlEmitterTstruct must not have an output handler already set. handlermust be a valid function pointer that follows the signature ofYamlWriteHandlerT.datamust be a valid pointer that will be passed to thehandlerfunction.- The
YamlEmitterTstruct and its associated data structures must be properly aligned and have the expected memory layout.