aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / uefi-raw / src / protocol / shell_params.rs
| 1 | // SPDX-License-Identifier: MIT OR Apache-2.0 |
| 2 | |
| 3 | use crate::{Char16, Guid, guid}; |
| 4 | use core::ffi::c_void; |
| 5 | |
| 6 | pub type ShellFileHandle = *mut c_void; |
| 7 | |
| 8 | #[derive(Debug)] |
| 9 | #[repr(C)] |
| 10 | pub 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 | |
| 23 | impl ShellParametersProtocol { |
| 24 | pub const GUID: Guid = guid!("752f3136-4e16-4fdc-a22a-e5f46812f4ca"); |
| 25 | } |