Tfblib
|
Macros | |
#define | TFB_SUCCESS 0 |
The call completed successfully without any errors. | |
#define | TFB_ERR_OPEN_FB 1 |
open() failed on the framebuffer device | |
#define | TFB_ERR_IOCTL_FB 2 |
ioctl() failed on the framebuffer device file descriptor | |
#define | TFB_ERR_OPEN_TTY 3 |
open() failed on the TTY device | |
#define | TFB_ERR_TTY_GRAPHIC_MODE 4 |
ioctl() on the TTY failed while trying to set TTY in graphic mode | |
#define | TFB_ERR_MMAP_FB 5 |
mmap() on the framebuffer file description failed | |
#define | TFB_ERR_INVALID_WINDOW 6 |
Invalid window position/size. | |
#define | TFB_ERR_UNSUPPORTED_VIDEO_MODE 7 |
Unsupported video mode. More... | |
#define | TFB_ERR_INVALID_FONT_ID 8 |
The supplied font_id is invalid. | |
#define | TFB_ERR_READ_FONT_FILE_FAILED 9 |
Unable to open/read/load the supplied font file. | |
#define | TFB_ERR_OUT_OF_MEMORY 10 |
Out of memory (malloc() returned 0) | |
#define | TFB_ERR_NOT_A_DYN_LOADED_FONT 11 |
The supplied font_id is does not belog to a dynamically loaded font. | |
#define | TFB_ERR_KB_WRONG_MODE 12 |
The keyboard input is not in the expected mode (e.g. already in raw mode) | |
#define | TFB_ERR_KB_MODE_GET_FAILED 13 |
Unable to get a keyboard input paramater with ioctl() | |
#define | TFB_ERR_KB_MODE_SET_FAILED 14 |
Unable to set a keyboard input paramater with ioctl() | |
#define | TFB_ERR_FONT_NOT_FOUND 15 |
Unable to find a font matching the criteria. | |
Functions | |
const char * | tfb_strerror (int error_code) |
Returns a human-readable error message. More... | |
#define TFB_ERR_UNSUPPORTED_VIDEO_MODE 7 |
Unsupported video mode.
const char* tfb_strerror | ( | int | error_code | ) |
Returns a human-readable error message.
[in] | error_code | The error code returned by one of the library funcs |