aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/menu-bar.c
blob: db7af380defc1f68f6e0e56d902be80edbddc4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}