diff options
author | Joursoir <chat@joursoir.net> | 2021-12-02 20:30:16 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-12-02 20:30:16 +0300 |
commit | b4c5e59321d81d81c80a4c4d228ad238be5eb480 (patch) | |
tree | 9b8c51190f33d003d82c7424e0c81e077a6d0cd7 /Application/UfmApp | |
parent | 94224e8706d6bf0354d8fc2bf710f7d3a995b3ec (diff) | |
download | ufm-b4c5e59321d81d81c80a4c4d228ad238be5eb480.tar.gz ufm-b4c5e59321d81d81c80a4c4d228ad238be5eb480.tar.bz2 ufm-b4c5e59321d81d81c80a4c4d228ad238be5eb480.zip |
add a wrapper around the shell command for application
Diffstat (limited to 'Application/UfmApp')
-rw-r--r-- | Application/UfmApp/UfmApp.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Application/UfmApp/UfmApp.c b/Application/UfmApp/UfmApp.c new file mode 100644 index 0000000..7e650fe --- /dev/null +++ b/Application/UfmApp/UfmApp.c @@ -0,0 +1,21 @@ +#include <Library/BaseLib.h> +#include <Library/UefiBootServicesTableLib.h> +#include <Library/UefiLib.h> +#include <Library/ShellLib.h> +#include <Library/UfmCommandLib.h> +#include <Protocol/ShellParameters.h> + +/** + Application Entry Point wrapper around the shell command + + @param[in] ImageHandle Handle to the Image (NULL if internal). + @param[in] SystemTable Pointer to the System Table (NULL if internal). +**/ +EFI_STATUS +EFIAPI +UfmAppMain( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable) +{ + return ShellCommandRunUFM(gImageHandle, SystemTable); +} |