File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313- Return request with status as error data object for ` proto::ata::pass_thru::AtaDevice ` .
1414- ** Breaking:** ` proto::network::snp::SimpleNetwork::wait_for_packet ` now
1515 returns ` Option<Event> ` instead of ` &Event ` .
16+ - ` Http::get_mode_data ` doesn't consume a parameter anymore and instead return
17+ an owned value of type ` HttpConfigData `
1618
1719# uefi - v0.36.1 (2025-11-05)
1820
Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ pub struct Http(HttpProtocol);
3131
3232impl Http {
3333 /// Receive HTTP Protocol configuration.
34- pub fn get_mode_data ( & mut self , config_data : & mut HttpConfigData ) -> uefi:: Result < ( ) > {
35- let status = unsafe { ( self . 0 . get_mode_data ) ( & mut self . 0 , config_data) } ;
34+ pub fn get_mode_data ( & mut self ) -> uefi:: Result < HttpConfigData > {
35+ let mut config_data = HttpConfigData :: default ( ) ;
36+ let status = unsafe { ( self . 0 . get_mode_data ) ( & mut self . 0 , & mut config_data) } ;
3637 match status {
37- Status :: SUCCESS => Ok ( ( ) ) ,
38+ Status :: SUCCESS => Ok ( config_data ) ,
3839 _ => Err ( status. into ( ) ) ,
3940 }
4041 }
You can’t perform that action at this time.
0 commit comments