Skip to content

Commit bf86115

Browse files
uefi-raw: Replace remaining uses of bool with Boolean
1 parent 0bef927 commit bf86115

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

uefi-raw/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Added
44

55
## Changed
6+
- **Breaking:** Various uses of `bool` have been replaced with `Boolean`.
67

78

89
# uefi-raw - v0.12 (2025-10-21)

uefi-raw/src/protocol/device_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ pub struct DevicePathUtilitiesProtocol {
289289
device_path_instance_size: *mut usize,
290290
) -> *const DevicePathProtocol,
291291
pub is_device_path_multi_instance:
292-
unsafe extern "efiapi" fn(device_path: *const DevicePathProtocol) -> bool,
292+
unsafe extern "efiapi" fn(device_path: *const DevicePathProtocol) -> Boolean,
293293
pub create_device_node: unsafe extern "efiapi" fn(
294294
node_type: DeviceType,
295295
node_sub_type: DeviceSubType,

uefi-raw/src/protocol/hii/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub union IfrTypeValue {
129129
pub u16: u16, // EFI_IFR_TYPE_NUM_SIZE_16
130130
pub u32: u32, // EFI_IFR_TYPE_NUM_SIZE_32
131131
pub u64: u64, // EFI_IFR_TYPE_NUM_SIZE_64
132-
pub b: bool, // EFI_IFR_TYPE_BOOLEAN
132+
pub b: Boolean, // EFI_IFR_TYPE_BOOLEAN
133133
pub time: HiiTime, // EFI_IFR_TYPE_TIME
134134
pub date: HiiDate, // EFI_IFR_TYPE_DATE
135135
pub string: StringId, // EFI_IFR_TYPE_STRING, EFI_IFR_TYPE_ACTION

uefi-raw/src/protocol/shell.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ pub struct ShellProtocol {
5858
pub set_env: unsafe extern "efiapi" fn(
5959
name: *const Char16,
6060
value: *const Char16,
61-
volatile: bool,
61+
volatile: Boolean,
6262
) -> Status,
63-
pub get_alias: unsafe extern "efiapi" fn(alias: *const Char16, volatile: bool) -> *const Char16,
63+
pub get_alias: unsafe extern "efiapi" fn(alias: *const Char16, volatile: Boolean) -> *const Char16,
6464
pub set_alias: unsafe extern "efiapi" fn(
6565
command: *const Char16,
6666
alias: *const Char16,
67-
replace: bool,
68-
volatile: bool,
67+
replace: Boolean,
68+
volatile: Boolean,
6969
) -> Status,
7070
pub get_help_text: unsafe extern "efiapi" fn(
7171
command: *const Char16,
@@ -97,11 +97,11 @@ pub struct ShellProtocol {
9797
pub remove_dup_in_file_list:
9898
unsafe extern "efiapi" fn(file_list: *const *const ShellFileInfo) -> Status,
9999

100-
pub batch_is_active: unsafe extern "efiapi" fn() -> bool,
101-
pub is_root_shell: unsafe extern "efiapi" fn() -> bool,
100+
pub batch_is_active: unsafe extern "efiapi" fn() -> Boolean,
101+
pub is_root_shell: unsafe extern "efiapi" fn() -> Boolean,
102102
pub enable_page_break: unsafe extern "efiapi" fn(),
103103
pub disable_page_break: unsafe extern "efiapi" fn(),
104-
pub get_page_break: unsafe extern "efiapi" fn() -> bool,
104+
pub get_page_break: unsafe extern "efiapi" fn() -> Boolean,
105105
pub get_device_name: unsafe extern "efiapi" fn(
106106
device_handle: Handle,
107107
flags: ShellDeviceNameFlags,

uefi-raw/src/protocol/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct UnicodeCollationProtocol {
1111
this: *const Self,
1212
string: *const Char16,
1313
pattern: *const Char16,
14-
) -> bool,
14+
) -> Boolean,
1515
pub str_lwr: unsafe extern "efiapi" fn(this: *const Self, s: *mut Char16),
1616
pub str_upr: unsafe extern "efiapi" fn(this: *const Self, s: *mut Char16),
1717
pub fat_to_str: unsafe extern "efiapi" fn(
@@ -25,7 +25,7 @@ pub struct UnicodeCollationProtocol {
2525
s: *const Char16,
2626
fat_size: usize,
2727
fat: *mut Char8,
28-
) -> bool,
28+
) -> Boolean,
2929
pub supported_languages: *const Char8,
3030
}
3131

0 commit comments

Comments
 (0)