1
1
pub mod serial;
2
2
3
- use crate :: { guid, Char16 , Event , Guid , PhysicalAddress , Status } ;
3
+ use crate :: { guid, Boolean , Char16 , Event , Guid , PhysicalAddress , Status } ;
4
4
use bitflags:: bitflags;
5
5
use core:: ptr;
6
6
@@ -42,7 +42,7 @@ pub struct AbsolutePointerState {
42
42
#[ derive( Debug ) ]
43
43
#[ repr( C ) ]
44
44
pub struct AbsolutePointerProtocol {
45
- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : u8 ) -> Status ,
45
+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : Boolean ) -> Status ,
46
46
pub get_state :
47
47
unsafe extern "efiapi" fn ( this : * const Self , state : * mut AbsolutePointerState ) -> Status ,
48
48
pub wait_for_input : Event ,
@@ -63,7 +63,7 @@ pub struct InputKey {
63
63
#[ derive( Debug ) ]
64
64
#[ repr( C ) ]
65
65
pub struct SimpleTextInputProtocol {
66
- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : bool ) -> Status ,
66
+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : Boolean ) -> Status ,
67
67
pub read_key_stroke : unsafe extern "efiapi" fn ( this : * mut Self , key : * mut InputKey ) -> Status ,
68
68
pub wait_for_key : Event ,
69
69
}
@@ -80,13 +80,13 @@ pub struct SimpleTextOutputMode {
80
80
pub attribute : i32 ,
81
81
pub cursor_column : i32 ,
82
82
pub cursor_row : i32 ,
83
- pub cursor_visible : bool ,
83
+ pub cursor_visible : Boolean ,
84
84
}
85
85
86
86
#[ derive( Debug ) ]
87
87
#[ repr( C ) ]
88
88
pub struct SimpleTextOutputProtocol {
89
- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended : bool ) -> Status ,
89
+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended : Boolean ) -> Status ,
90
90
pub output_string : unsafe extern "efiapi" fn ( this : * mut Self , string : * const Char16 ) -> Status ,
91
91
pub test_string : unsafe extern "efiapi" fn ( this : * mut Self , string : * const Char16 ) -> Status ,
92
92
pub query_mode : unsafe extern "efiapi" fn (
@@ -100,7 +100,7 @@ pub struct SimpleTextOutputProtocol {
100
100
pub clear_screen : unsafe extern "efiapi" fn ( this : * mut Self ) -> Status ,
101
101
pub set_cursor_position :
102
102
unsafe extern "efiapi" fn ( this : * mut Self , column : usize , row : usize ) -> Status ,
103
- pub enable_cursor : unsafe extern "efiapi" fn ( this : * mut Self , visible : bool ) -> Status ,
103
+ pub enable_cursor : unsafe extern "efiapi" fn ( this : * mut Self , visible : Boolean ) -> Status ,
104
104
pub mode : * mut SimpleTextOutputMode ,
105
105
}
106
106
@@ -124,16 +124,16 @@ pub struct SimplePointerState {
124
124
pub relative_movement_x : i32 ,
125
125
pub relative_movement_y : i32 ,
126
126
pub relative_movement_z : i32 ,
127
- pub left_button : u8 ,
128
- pub right_button : u8 ,
127
+ pub left_button : Boolean ,
128
+ pub right_button : Boolean ,
129
129
}
130
130
131
131
#[ derive( Debug ) ]
132
132
#[ repr( C ) ]
133
133
pub struct SimplePointerProtocol {
134
134
pub reset : unsafe extern "efiapi" fn (
135
135
this : * mut SimplePointerProtocol ,
136
- extended_verification : bool ,
136
+ extended_verification : Boolean ,
137
137
) -> Status ,
138
138
pub get_state : unsafe extern "efiapi" fn (
139
139
this : * mut SimplePointerProtocol ,
0 commit comments