Skip to content

Commit

Permalink
Make EventNotifyFn public
Browse files Browse the repository at this point in the history
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>`.
  • Loading branch information
nicholasbishop committed Aug 1, 2024
1 parent 30d33ec commit aa0628b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uefi/src/table/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1616,8 +1616,8 @@ impl<'guid> SearchType<'guid> {
}
}

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

/// Timer events manipulation.
#[derive(Debug)]
Expand Down

0 comments on commit aa0628b

Please sign in to comment.