From 4e19e6ab1bd24466d9dcb0d8eea54a7e3d84d576 Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 20 Sep 2026 13:22:50 -0400 Subject: kpl config set module extension --- include/kpl/io.h | 10 ++++++++++ include/kpl/macro.h | 2 +- include/kpl/memory.h | 8 ++++++++ include/kpl/thread.h | 10 ++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 include/kpl/io.h create mode 100644 include/kpl/memory.h create mode 100644 include/kpl/thread.h (limited to 'include/kpl') diff --git a/include/kpl/io.h b/include/kpl/io.h new file mode 100644 index 0000000..e6ea690 --- /dev/null +++ b/include/kpl/io.h @@ -0,0 +1,10 @@ + +#pragma once + +// Io through io_uring + +#include "kpl/macro.h" + +typedef struct { + int32_t queue_pow; +} kpl_config_io; diff --git a/include/kpl/macro.h b/include/kpl/macro.h index f682a30..63699d0 100644 --- a/include/kpl/macro.h +++ b/include/kpl/macro.h @@ -6,4 +6,4 @@ #include "color.h" #include "type.h" -#define KPL_TODO(MESSAGE) printf(KPL_COLOR2(BOLD, LIGHT_YELLOW) "TODO " KPL_COLOR(RESET) KPL_COLOR(BOLD) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_BLUE) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_MAGENTA) "%d" KPL_COLOR(RESET) "::" KPL_COLOR(LIGHT_YELLOW) "%s\n" KPL_COLOR(RESET), __FILE__, __FUNCTION__, __LINE__, MESSAGE) +#define KPL_PRINT_TODO(MESSAGE) printf(KPL_COLOR2(BOLD, LIGHT_YELLOW) "TODO " KPL_COLOR(RESET) KPL_COLOR(BOLD) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_BLUE) "%s" KPL_COLOR(RESET) ":" KPL_COLOR(LIGHT_MAGENTA) "%d" KPL_COLOR(RESET) "::" KPL_COLOR(LIGHT_YELLOW) "%s\n" KPL_COLOR(RESET), __FILE__, __FUNCTION__, __LINE__, MESSAGE) diff --git a/include/kpl/memory.h b/include/kpl/memory.h new file mode 100644 index 0000000..9b9a843 --- /dev/null +++ b/include/kpl/memory.h @@ -0,0 +1,8 @@ + +#pragma once + +// Kpl memory pools and garbage collection + +typedef struct { + +} kpl_config_memory; diff --git a/include/kpl/thread.h b/include/kpl/thread.h new file mode 100644 index 0000000..99db80f --- /dev/null +++ b/include/kpl/thread.h @@ -0,0 +1,10 @@ + +#pragma once + +// Kpl threads, allocators ad atomic queues + +#include "kpl/macro.h" + +typedef struct { + int32_t thread_count; +} kpl_config_thread; -- cgit v1.2.3