diff options
author | Joursoir <chat@joursoir.net> | 2021-11-15 19:12:06 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-11-15 19:12:06 +0300 |
commit | edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945 (patch) | |
tree | a8b095f66a70ac64cb44e036798ae955f1eea561 /Library/UefiShellUfmCommandLib/tbi/screen.h | |
parent | 01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0 (diff) | |
download | ufm-edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945.tar.gz ufm-edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945.tar.bz2 ufm-edd62f8e7d00b56bd19217b56d0d2cdf3ef6c945.zip |
move all sources to the right place
Diffstat (limited to 'Library/UefiShellUfmCommandLib/tbi/screen.h')
-rw-r--r-- | Library/UefiShellUfmCommandLib/tbi/screen.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/tbi/screen.h b/Library/UefiShellUfmCommandLib/tbi/screen.h new file mode 100644 index 0000000..e97bf64 --- /dev/null +++ b/Library/UefiShellUfmCommandLib/tbi/screen.h @@ -0,0 +1,36 @@ +#ifndef UFM_TBI_SCREEN_H +#define UFM_TBI_SCREEN_H + +/* + EDK2 NOTE: All devices that support the Simple Text Output Protocol must + minimally support an 80x25 character mode. Additional modes are optional +*/ + +#include <Uefi.h> + +struct screen +{ + EFI_SIMPLE_TEXT_INPUT_PROTOCOL *stdin; + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *stdout; + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *stderr; + UINTN columns, lines; // current screen size + INT32 attr; // main screen attributes +}; + +/* + * Prepares a structure with information about screen + * + * return: A pointer to the allocated structure or NULL if allocation fails +*/ +struct screen *prepare_screen(VOID); + +/* + * Frees the structure of the screen + * + * scr: the screen on which to operate + * + * return: VOID +*/ +VOID forget_screen(struct screen *scr); + +#endif /* UFM_TBI_SCREEN_H */ |