From 3c540db464f4034d0a393b076c79a26851f68f47 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Mon, 6 Jul 2026 23:39:55 +0530 Subject: removed unnescessary stuff + ipc with shared memory + somehow the build is faster? --- src/uci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/uci.c') diff --git a/src/uci.c b/src/uci.c index a31411f..3bfd8d3 100644 --- a/src/uci.c +++ b/src/uci.c @@ -4,11 +4,13 @@ #include #include #include -#include +#include #include "uci/state.h" #include "uci/command.h" #include "uci/response.h" +#include "uci.h" +#include "ipc.h" void load_from_message(ucicmd* cmd, const char* message) { char token[MAX_TOKEN_SIZE]; @@ -32,7 +34,9 @@ void load_from_message(ucicmd* cmd, const char* message) { ucicmd_add(cmd, token); } -int main(int argc, char** argv) { +int uci(comms *com) { + printf("%d\n", com->uci_message_ready); + // https://stackoverflow.com/a/41559081 fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); -- cgit v1.2.3