Type Alias tidy_sys::TidyConfigCallback

source ·
pub type TidyConfigCallback = Option<unsafe extern "C" fn(tdoc: TidyDoc, option: ctmbstr, value: ctmbstr) -> Bool>;
Expand description

This typedef represents the required signature for your provided callback function should you wish to register one with tidySetConfigCallback(). Your callback function will be provided with the following parameters. @param tdoc The document instance for which the callback was invoked. @param option The option name that was provided. @param value The option value that was provided @return Your callback function will return yes if it handles the provided option, or no if it does not. In the latter case, Tidy will issue an unknown configuration option error.

Aliased Type§

enum TidyConfigCallback {
    None,
    Some(unsafe extern "C" fn(_: *const _TidyDoc, _: *const i8, _: *const i8) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const _TidyDoc, _: *const i8, _: *const i8) -> u32)

Some value of type T.