aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c')
-rw-r--r--Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c b/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c
index 89dd3aa..fb56e1b 100644
--- a/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c
+++ b/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c
@@ -121,3 +121,34 @@ SHELL_STATUS EFIAPI ShellCommandRunUFM(
forget_context();
return status;
}
+
+/**
+ Return the file name of the help text file if not using HII.
+**/
+STATIC CONST CHAR16 *EFIAPI ShellCommandGetManFileNameUfm(VOID)
+{
+ return L"ShellCommand";
+}
+
+EFI_STATUS EFIAPI UefiUfmConstructor(
+ EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
+{
+ ShellCommandRegisterCommandName(
+ L"ufm",
+ ShellCommandRunUFM,
+ ShellCommandGetManFileNameUfm,
+ 0,
+ L"ufm",
+ TRUE,
+ NULL,
+ STRING_TOKEN(0)
+ );
+
+ return EFI_SUCCESS;
+}
+
+EFI_STATUS EFIAPI UefiUfmDestructor(
+ EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
+{
+ return EFI_SUCCESS;
+}