File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Changed
4
4
- ** Breaking:** ` uefi::helpers::init ` no longer takes an argument.
5
+ - The lifetime of the ` SearchType ` returned from
6
+ ` BootServices::register_protocol_notify ` is now tied to the protocol GUID.
5
7
6
8
7
9
# uefi - 0.29.0 (2024-07-02)
Original file line number Diff line number Diff line change @@ -683,11 +683,11 @@ impl BootServices {
683
683
///
684
684
/// * [`uefi::Status::OUT_OF_RESOURCES`]
685
685
/// * [`uefi::Status::INVALID_PARAMETER`]
686
- pub fn register_protocol_notify (
686
+ pub fn register_protocol_notify < ' guid > (
687
687
& self ,
688
- protocol : & Guid ,
688
+ protocol : & ' guid Guid ,
689
689
event : Event ,
690
- ) -> Result < ( Event , SearchType ) > {
690
+ ) -> Result < ( Event , SearchType < ' guid > ) > {
691
691
let mut key = ptr:: null ( ) ;
692
692
// Safety: we clone `event` a couple times, but there will be only one left once we return.
693
693
unsafe { ( self . 0 . register_protocol_notify ) ( protocol, event. as_ptr ( ) , & mut key) }
You can’t perform that action at this time.
0 commit comments