aboutsummaryrefslogtreecommitdiff
path: root/include/kpl
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-09-20 13:22:50 -0400
committernodist <kevin.comas.git@gmail.com>2026-09-20 13:22:50 -0400
commit4e19e6ab1bd24466d9dcb0d8eea54a7e3d84d576 (patch)
treec0c581d72a122c146d6308a16e0a7269d38ed984 /include/kpl
parent87dfa262eb6d6b816351c03a01cc837a32b91ab4 (diff)
kpl config set module extension
Diffstat (limited to 'include/kpl')
-rw-r--r--include/kpl/io.h10
-rw-r--r--include/kpl/macro.h2
-rw-r--r--include/kpl/memory.h8
-rw-r--r--include/kpl/thread.h10
4 files changed, 29 insertions, 1 deletions
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;