summaryrefslogtreecommitdiff
path: root/kernel/lib
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-02-28 21:47:49 +0100
committerAnton Kling <anton@kling.gg>2024-02-28 21:47:49 +0100
commite6c8f7298b40757a410d9df6319824c4f0d70351 (patch)
treeb90ee0eba9a45c7551d9f23b6e66620ff0ea5b66 /kernel/lib
parent4536dc81b4be9a62328826455664cd6d696df8fb (diff)
TCP/UDP: Start rewrite of network sockets
Having sockets be file descriptors seems like a bad idea so I trying to make UDP and TCP sockets be more independent and not be abstracted away as much.
Diffstat (limited to 'kernel/lib')
-rw-r--r--kernel/lib/stack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/lib/stack.h b/kernel/lib/stack.h
index efb9cb1..f47fe66 100644
--- a/kernel/lib/stack.h
+++ b/kernel/lib/stack.h
@@ -1,8 +1,7 @@
+#ifndef STACK_H
+#define STACK_H
#include <stdint.h>
-// struct entry;
-// struct stack;
-
struct entry {
void *ptr;
// TODO: Maybe don't use a linkedlist
@@ -16,3 +15,4 @@ struct stack {
void stack_init(struct stack *s);
int stack_push(struct stack *s, void *data);
void *stack_pop(struct stack *s);
+#endif