Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Jan 11, 2025
1 parent fb0cb2e commit bc65156
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions uefi-test-runner/src/proto/network/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ use uefi::proto::network::http::{
};
use uefi::{boot, cstr16};

// TODO: uefi wrappers
use uefi_raw::protocol::network::ip4_config2::Ip4Config2Protocol;

// TODO: unwraps
pub fn test() {
info!("Testing HTTP protocol");

let handle = boot::get_handle_for_protocol::<HttpServiceBinding>().unwrap();

Ip4Config2Protocol::pub get_data: unsafe extern "efiapi" fn(
this: *mut Self,
data_type: Ip4Config2DataType,
data_size: *mut usize,
data: *mut c_void,
) -> Status,

let handle = boot::get_handle_for_protocol::<HttpServiceBinding>().unwrap();
let mut http_sb = boot::open_protocol_exclusive::<HttpServiceBinding>(handle).unwrap();
let child_handle = http_sb.create_child().unwrap();
Expand Down

0 comments on commit bc65156

Please sign in to comment.