pub unsafe extern "C" fn ddwaf_init(
ruleset: *const ddwaf_object,
diagnostics: *mut ddwaf_object,
) -> ddwaf_handleExpand description
Initialize a ddwaf instance
@param ruleset ddwaf::object map containing rules, exclusions, rules_override and rules_data. (nonnull) @param diagnostics Optional ruleset parsing diagnostics. (nullable)
@return Handle to the WAF instance or NULL on error.
@note If ruleset is NULL, the diagnostics object will not be initialised.
@note The deallocation of the diagnostics must be made with default allocator.