File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 16
16
` Logger::set_output ` to enable it.
17
17
- ` uefi::allocator::init ` now takes a ` &mut SystemTable<Boot> ` instead of
18
18
` &BootServices ` .
19
+ - ` BootServices::{install,reinstall,uninstall}_protocol_interface ` now take
20
+ ` const ` interface pointers.
19
21
20
22
## uefi-macros - [ Unreleased]
21
23
22
24
## uefi-raw - [ Unreleased]
23
25
26
+ ### Changed
27
+ - ` {install,reinstall,uninstall}_protocol_interface ` now take ` const ` interface pointers.
28
+
24
29
## uefi-services - [ Unreleased]
25
30
26
31
### Changed
Original file line number Diff line number Diff line change @@ -61,18 +61,18 @@ pub struct BootServices {
61
61
handle : * mut Handle ,
62
62
guid : * const Guid ,
63
63
interface_type : InterfaceType ,
64
- interface : * mut c_void ,
64
+ interface : * const c_void ,
65
65
) -> Status ,
66
66
pub reinstall_protocol_interface : unsafe extern "efiapi" fn (
67
67
handle : Handle ,
68
68
protocol : * const Guid ,
69
- old_interface : * mut c_void ,
70
- new_interface : * mut c_void ,
69
+ old_interface : * const c_void ,
70
+ new_interface : * const c_void ,
71
71
) -> Status ,
72
72
pub uninstall_protocol_interface : unsafe extern "efiapi" fn (
73
73
handle : Handle ,
74
74
protocol : * const Guid ,
75
- interface : * mut c_void ,
75
+ interface : * const c_void ,
76
76
) -> Status ,
77
77
pub handle_protocol : unsafe extern "efiapi" fn (
78
78
handle : Handle ,
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ impl BootServices {
559
559
& self ,
560
560
handle : Option < Handle > ,
561
561
protocol : & Guid ,
562
- interface : * mut c_void ,
562
+ interface : * const c_void ,
563
563
) -> Result < Handle > {
564
564
let mut handle = Handle :: opt_to_ptr ( handle) ;
565
565
( ( self . 0 . install_protocol_interface ) (
@@ -594,8 +594,8 @@ impl BootServices {
594
594
& self ,
595
595
handle : Handle ,
596
596
protocol : & Guid ,
597
- old_interface : * mut c_void ,
598
- new_interface : * mut c_void ,
597
+ old_interface : * const c_void ,
598
+ new_interface : * const c_void ,
599
599
) -> Result < ( ) > {
600
600
( self . 0 . reinstall_protocol_interface ) (
601
601
handle. as_ptr ( ) ,
@@ -629,7 +629,7 @@ impl BootServices {
629
629
& self ,
630
630
handle : Handle ,
631
631
protocol : & Guid ,
632
- interface : * mut c_void ,
632
+ interface : * const c_void ,
633
633
) -> Result < ( ) > {
634
634
( self . 0 . uninstall_protocol_interface ) ( handle. as_ptr ( ) , protocol, interface) . to_result ( )
635
635
}
You can’t perform that action at this time.
0 commit comments