add add_attrs_if_missing callback

This commit is contained in:
Karl Seguin
2025-11-14 23:33:31 +08:00
parent 5ae74d6924
commit c311828217
5 changed files with 55 additions and 16 deletions

View File

@@ -51,6 +51,12 @@ pub type ParseErrorCallback = unsafe extern "C" fn(ctx: Ref, str: StringSlice) -
pub type PopCallback = unsafe extern "C" fn(ctx: Ref, node: Ref) -> ();
pub type AddAttrsIfMissingCallback = unsafe extern "C" fn(
ctx: Ref,
target: Ref,
attributes: *mut c_void,
) -> ();
pub type Ref = *const c_void;
#[repr(C)]