summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-10-11 07:51:18 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-10-11 07:51:18 +0200
commit920bdc358831087c46db736120a718ed9a75fbd4 (patch)
treee884606865dccd8e756c4271b24f7ecc33f19826 /interface.c
parentac6283f92b0579c0e820e13a83715389455d3171 (diff)
downloadttdaw-920bdc358831087c46db736120a718ed9a75fbd4.tar.gz
Added boilerplate interface code
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 6399cb8..26aca55 100644
--- a/interface.c
+++ b/interface.c
@@ -1,2 +1,16 @@
+#include <stdio.h>
+#include <unistd.h>
+
#include "interface.h"
+#include "mutex.h"
+
+void *interface(void *arg) {
+ InterfaceArgs* args = (InterfaceArgs*)arg;
+ (void)args;
+ while(1) {
+ // Do the thread stuff here.
+ sleep(1);
+ fprintf(stdout, "hi from interface thread\n");
+ }
+}