stumpless_get_facility_enum

Function stumpless_get_facility_enum 

Source
pub unsafe extern "C" fn stumpless_get_facility_enum(
    facility_string: *const c_char,
) -> stumpless_facility
Expand description

Gets the enum value corresponding to the given facility 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 facility_string The facility name to get the enum from.

@return The enum integer corresponding to the given facility or -1 if the string is not a valid facility name.