summaryrefslogtreecommitdiff
path: root/include/sys/log.h
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-08-12 17:44:17 -0500
committerNathan Lee <me@nwlee.tech>2026-08-12 17:44:17 -0500
commit2c0efd93530c472e96ff3529aee983b53f3b78d9 (patch)
treecc36e7334e162ba67df79333e267ac93b4d984b9 /include/sys/log.h
parent640a81b3ee366c651286efd1b80b37992cd53282 (diff)
rework project structure
Diffstat (limited to 'include/sys/log.h')
-rw-r--r--include/sys/log.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/log.h b/include/sys/log.h
new file mode 100644
index 0000000..da9274b
--- /dev/null
+++ b/include/sys/log.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#define RINGBUF_SIZE 64 * 1024
+
+typedef void (*console_callback_t)(char);
+
+void vprintk(const char *message, __builtin_va_list args);
+void printk(const char *message, ...);
+
+void register_console_callback(console_callback_t callback);