aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/menu-bar.c
blob: ff1ac7e99405afa62f3803764faef26380f58f7c (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 "tbi/screen.h"
#include "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;
}