aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/menu-bar.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-11-15 19:12:06 +0300
committerJoursoir <chat@joursoir.net>2021-11-15 19:12:06 +0300
commitedd62f8e7d00b56bd19217b56d0d2cdf3ef6c945 (patch)
treea8b095f66a70ac64cb44e036798ae955f1eea561 /Library/UefiShellUfmCommandLib/menu-bar.c
parent01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0 (diff)
downloadufm-edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945.tar.gz
ufm-edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945.tar.bz2
ufm-edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945.zip
move all sources to the right place
Diffstat (limited to 'Library/UefiShellUfmCommandLib/menu-bar.c')
-rw-r--r--Library/UefiShellUfmCommandLib/menu-bar.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/menu-bar.c b/Library/UefiShellUfmCommandLib/menu-bar.c
new file mode 100644
index 0000000..db7af38
--- /dev/null
+++ b/Library/UefiShellUfmCommandLib/menu-bar.c
@@ -0,0 +1,25 @@
+#include <Library/DebugLib.h>
+
+#include "lib/tbi/screen.h"
+#include "lib/tbi/win.h"
+#include "menu-bar.h"
+
+struct window *menubar = NULL;
+
+BOOLEAN init_menubar(struct screen *scr)
+{
+ menubar = newwin(scr, scr->columns, 1, 0, 0);
+ if(!menubar)
+ return FALSE;
+
+ wrefresh(menubar);
+ return TRUE;
+}
+
+VOID free_menubar(VOID)
+{
+ ASSERT(menubar != NULL);
+
+ delwin(menubar);
+ menubar = NULL;
+}