diff options
Diffstat (limited to 'include/sys/log.h')
| -rw-r--r-- | include/sys/log.h | 10 |
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); |
