Skip to content

Commit aa0628b

Browse files
Make EventNotifyFn public
This type alias is used in a public interface, so it should be public. The main effect of this is that the documentation is prettier. For example, BootServices::create_event will show a `Option<EventNotifyFn>` argument, rather than `Option<very-long-function-signature>`.
1 parent 30d33ec commit aa0628b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uefi/src/table/boot.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,8 @@ impl<'guid> SearchType<'guid> {
16161616
}
16171617
}
16181618

1619-
/// Raw event notification function
1620-
type EventNotifyFn = unsafe extern "efiapi" fn(event: Event, context: Option<NonNull<c_void>>);
1619+
/// Event notification callback type.
1620+
pub type EventNotifyFn = unsafe extern "efiapi" fn(event: Event, context: Option<NonNull<c_void>>);
16211621

16221622
/// Timer events manipulation.
16231623
#[derive(Debug)]

0 commit comments

Comments
 (0)