aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-05-29 17:41:41 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-05-29 17:41:41 +0200
commita9a38d387f98b29b68f97b8a9c6858d2b399caf0 (patch)
treea981e8d195d1743f2b218c02aef12b8809978912 /client
parent439859f1133fb88e64df31acaa1b2845e36ba348 (diff)
WIP puzzle bus driver rework
Diffstat (limited to 'client')
-rw-r--r--client/CMakeLists.txt2
-rw-r--r--client/cmd.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 57a2447..50d3cd7 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -11,6 +11,7 @@ add_compile_definitions(DEBUG)
project(puzzlebox_client C CXX)
include(../i2ctcp/include.cmake)
+include(../shared/include.cmake)
add_executable(pbc
main.cpp
@@ -23,6 +24,7 @@ add_executable(pbc
target_link_libraries(pbc
i2ctcp
+ puzbus
mpack
readline # this is such a common library that I did not bother adding it as a submodule
)
diff --git a/client/cmd.cpp b/client/cmd.cpp
index a6242af..b7adfae 100644
--- a/client/cmd.cpp
+++ b/client/cmd.cpp
@@ -5,11 +5,12 @@
#include "cmd.h"
#include "i2ctcpv1.h"
+#include "pb/types.h"
#include "rl.h"
#include "sock.h"
#include "parse.h"
-#include "../shared/puzbus.h"
+#include "pb/bus.h"
char* consume_token(char* input, const char* ifs) {
strtok(input, ifs);