pub unsafe extern "C" fn stumpless_get_severity_enum(
severity_string: *const c_char,
) -> stumpless_severityExpand description
Gets the enum value corresponding to the given severity string.
Thread Safety: MT-Safe This function is thread safe.
Async Signal Safety: AS-Safe This function is safe to call from signal handlers.
Async Cancel Safety: AC-Safe This function is safe to call from threads that may be asynchronously cancelled.
@since release v2.1.0.
@param severity_string The severity name to get the enum from.
@return The enum integer corresponding to the given severity or -1 if the string is not a valid severity name.