uefi_raw/protocol/
shell_params.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3use crate::{guid, Char16, Guid};
4use core::ffi::c_void;
5
6pub type ShellFileHandle = *const c_void;
7
8#[derive(Debug)]
9#[repr(C)]
10pub struct ShellParametersProtocol {
11    /// Pointer to a list of arguments.
12    pub argv: *const *const Char16,
13    /// Number of arguments.
14    pub argc: usize,
15    /// Handle of the standard input.
16    pub std_in: ShellFileHandle,
17    /// Handle of the standard output.
18    pub std_out: ShellFileHandle,
19    /// Handle of the standard error output.
20    pub std_err: ShellFileHandle,
21}
22
23impl ShellParametersProtocol {
24    pub const GUID: Guid = guid!("752f3136-4e16-4fdc-a22a-e5f46812f4ca");
25}