22
33pub mod serial;
44
5- use crate :: { guid, Char16 , Event , Guid , PhysicalAddress , Status } ;
5+ use crate :: { guid, Boolean , Char16 , Event , Guid , PhysicalAddress , Status } ;
66use bitflags:: bitflags;
77use core:: ptr;
88
@@ -44,7 +44,7 @@ pub struct AbsolutePointerState {
4444#[ derive( Debug ) ]
4545#[ repr( C ) ]
4646pub struct AbsolutePointerProtocol {
47- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : u8 ) -> Status ,
47+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : Boolean ) -> Status ,
4848 pub get_state :
4949 unsafe extern "efiapi" fn ( this : * const Self , state : * mut AbsolutePointerState ) -> Status ,
5050 pub wait_for_input : Event ,
@@ -65,7 +65,7 @@ pub struct InputKey {
6565#[ derive( Debug ) ]
6666#[ repr( C ) ]
6767pub struct SimpleTextInputProtocol {
68- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : bool ) -> Status ,
68+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended_verification : Boolean ) -> Status ,
6969 pub read_key_stroke : unsafe extern "efiapi" fn ( this : * mut Self , key : * mut InputKey ) -> Status ,
7070 pub wait_for_key : Event ,
7171}
@@ -82,13 +82,13 @@ pub struct SimpleTextOutputMode {
8282 pub attribute : i32 ,
8383 pub cursor_column : i32 ,
8484 pub cursor_row : i32 ,
85- pub cursor_visible : bool ,
85+ pub cursor_visible : Boolean ,
8686}
8787
8888#[ derive( Debug ) ]
8989#[ repr( C ) ]
9090pub struct SimpleTextOutputProtocol {
91- pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended : bool ) -> Status ,
91+ pub reset : unsafe extern "efiapi" fn ( this : * mut Self , extended : Boolean ) -> Status ,
9292 pub output_string : unsafe extern "efiapi" fn ( this : * mut Self , string : * const Char16 ) -> Status ,
9393 pub test_string : unsafe extern "efiapi" fn ( this : * mut Self , string : * const Char16 ) -> Status ,
9494 pub query_mode : unsafe extern "efiapi" fn (
@@ -102,7 +102,7 @@ pub struct SimpleTextOutputProtocol {
102102 pub clear_screen : unsafe extern "efiapi" fn ( this : * mut Self ) -> Status ,
103103 pub set_cursor_position :
104104 unsafe extern "efiapi" fn ( this : * mut Self , column : usize , row : usize ) -> Status ,
105- pub enable_cursor : unsafe extern "efiapi" fn ( this : * mut Self , visible : bool ) -> Status ,
105+ pub enable_cursor : unsafe extern "efiapi" fn ( this : * mut Self , visible : Boolean ) -> Status ,
106106 pub mode : * mut SimpleTextOutputMode ,
107107}
108108
@@ -126,16 +126,16 @@ pub struct SimplePointerState {
126126 pub relative_movement_x : i32 ,
127127 pub relative_movement_y : i32 ,
128128 pub relative_movement_z : i32 ,
129- pub left_button : u8 ,
130- pub right_button : u8 ,
129+ pub left_button : Boolean ,
130+ pub right_button : Boolean ,
131131}
132132
133133#[ derive( Debug ) ]
134134#[ repr( C ) ]
135135pub struct SimplePointerProtocol {
136136 pub reset : unsafe extern "efiapi" fn (
137137 this : * mut SimplePointerProtocol ,
138- extended_verification : bool ,
138+ extended_verification : Boolean ,
139139 ) -> Status ,
140140 pub get_state : unsafe extern "efiapi" fn (
141141 this : * mut SimplePointerProtocol ,
0 commit comments