1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use uefi::guid::{Guid, SHELL_GUID};
use uefi::shell::Shell as UefiShell;

use crate::proto::Protocol;

pub struct Shell(pub &'static mut UefiShell);

impl Protocol<UefiShell> for Shell {
    fn guid() -> Guid {
        SHELL_GUID
    }

    fn new(inner: &'static mut UefiShell) -> Self {
        Shell(inner)
    }
}