aboutsummaryrefslogtreecommitdiff
path: root/src/libs/stdio.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-21 12:23:54 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-21 12:23:54 +0200
commitd9443c7fdf756212bb52ffc934b1166038bc2ad3 (patch)
treecf31082457e159a7de9a5bb04f15edc598afddf5 /src/libs/stdio.hpp
parentca1e725b0dc9b10997897dd2ac6d44028601d9bb (diff)
Refactoring
Diffstat (limited to 'src/libs/stdio.hpp')
-rw-r--r--src/libs/stdio.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/libs/stdio.hpp b/src/libs/stdio.hpp
new file mode 100644
index 0000000..f48ae81
--- /dev/null
+++ b/src/libs/stdio.hpp
@@ -0,0 +1,36 @@
+#pragma once
+
+#include "drivers/framebuffer.hpp"
+
+/// @brief Current active framebuffer driver
+extern void (*__putchar)(char);
+
+/**
+ * Print a char* in the framebuffer
+ */
+void printk(char *,...);
+
+/**
+ * Print a char*
+ */
+void print(char *s);
+
+/**
+ * Print a char in the framebuffer
+ */
+void printc(char *, VIDEO_COLORS c);
+
+/**
+ * Print an integer using itoa()
+ */
+void printi(int i);
+
+/**
+ * Print an integer as hex using itoh()
+ */
+void printh(int h);
+
+/**
+ * Print an integer as hex using itoh() truncated to size
+ */
+void printh(int h, int size);