diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-12-06 20:14:28 -0500 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-12-06 20:14:28 -0500 |
| commit | 2cf843ae6de1f35e5a5d3a947d0179337e82752f (patch) | |
| tree | 7e7983be37568fb0f9cbd806de94573a61df83ca /kernel/include/drivers/vga_text_buffer.h | |
| parent | 096d9ab61281062b6672c6c9f413de97e034d3f7 (diff) | |
I know; it's POINTLESS! However, I do enjoy programming in C more than
C++ so I ended up spending the hour it takes converting this project
from C++ to C.
Diffstat (limited to 'kernel/include/drivers/vga_text_buffer.h')
| -rw-r--r-- | kernel/include/drivers/vga_text_buffer.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/kernel/include/drivers/vga_text_buffer.h b/kernel/include/drivers/vga_text_buffer.h index 389c864..ada5228 100644 --- a/kernel/include/drivers/vga_text_buffer.h +++ b/kernel/include/drivers/vga_text_buffer.h @@ -43,9 +43,6 @@ #define vga_entry(character, color) \ ((uint16_t) color << 8 | (uint16_t) character) -namespace VGATextBuffer -{ - /* Hardware text mode color constants. */ typedef enum { COLOR_BLACK = 0, @@ -64,13 +61,11 @@ typedef enum { COLOR_LIGHT_MAGENTA = 13, COLOR_LIGHT_BROWN = 14, COLOR_WHITE = 15 -} colors; - -void initialize(void); -void write_char(const char); -void write_string(const char *string); -void printf(const char *string, ...); +} vgatb_colors; -} +void vgatb_initialize(void); +void vgatb_write_char(const char); +void vgatb_write_string(const char *string); +void vgatb_printf(const char *string, ...); #endif |
