mirror of
https://github.com/rust-osdev/uefi-rs
synced 2026-08-26 18:26:05 -04:00
uefi-raw: fix Volatile parameter of ShellProtocol::get_alias
The UEFI Shell spec 2.2 defines EFI_SHELL_GET_ALIAS as
CONST CHAR16 * (EFIAPI *EFI_SHELL_GET_ALIAS)(
IN CONST CHAR16 *Alias,
OUT BOOLEAN *Volatile OPTIONAL);
This commit is contained in:
parent
549e785328
commit
0e8bab3e9a
2 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,8 @@
|
|||
## Changed
|
||||
- **Breaking**: `MemoryDescriptor` now has a new member to ensure correct
|
||||
layout on all non-UEFI 32-bit targets.
|
||||
- **Breaking**: Corrected the `volatile` parameter of
|
||||
`ShellProtocol::get_alias` from `Boolean` to `*mut Boolean`.
|
||||
- **Breaking**: The USB descriptor types in `protocol::usb` are now packed to
|
||||
match their layout in the USB specification. `ConfigDescriptor` and
|
||||
`EndpointDescriptor` previously had a too-large `size_of`.
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ pub struct ShellProtocol {
|
|||
volatile: Boolean,
|
||||
) -> Status,
|
||||
pub get_alias:
|
||||
unsafe extern "efiapi" fn(alias: *const Char16, volatile: Boolean) -> *const Char16,
|
||||
unsafe extern "efiapi" fn(alias: *const Char16, volatile: *mut Boolean) -> *const Char16,
|
||||
pub set_alias: unsafe extern "efiapi" fn(
|
||||
command: *const Char16,
|
||||
alias: *const Char16,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue