From 2c0efd93530c472e96ff3529aee983b53f3b78d9 Mon Sep 17 00:00:00 2001 From: Nathan Lee Date: Wed, 12 Aug 2026 17:44:17 -0500 Subject: rework project structure --- include/sys/log.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 include/sys/log.h (limited to 'include/sys/log.h') 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); -- cgit v1.2.3