forked from r-efi/r-efi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defined in UEFI Shell Specification, Section 2.4 Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com> Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//! Shell Dynamic Command Protocol | ||
//! | ||
//! Defined in UEFI Shell Specification, Section 2.4 | ||
use super::{shell, shell_parameters}; | ||
|
||
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields( | ||
0x3c7200e9, | ||
0x005f, | ||
0x4ea4, | ||
0x87, | ||
0xde, | ||
&[0xa3, 0xdf, 0xac, 0x8a, 0x27, 0xc3], | ||
); | ||
|
||
pub type CommandHandler = eficall! {fn( | ||
*mut Protocol, | ||
*mut crate::system::SystemTable, | ||
*mut shell_parameters::Protocol, | ||
*mut shell::Protocol, | ||
) -> crate::base::Status}; | ||
|
||
pub type CommandGetHelp = eficall! {fn( | ||
*mut Protocol, | ||
*mut crate::base::Char8, | ||
) -> crate::base::Status}; | ||
|
||
#[repr(C)] | ||
pub struct Protocol { | ||
pub command_name: *mut crate::base::Char16, | ||
pub handler: CommandHandler, | ||
pub get_help: CommandGetHelp, | ||
} |