aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-05-05 21:22:35 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-05-05 21:22:35 +0200
commitc03474ea5ad656e0f2f89a8866a8ac651bd6bc76 (patch)
tree5d59660aaf66bbfcedff198a88393e435e6bba34
parent8042cd7feb68a13efee891ae58308b1326292778 (diff)
downloaddabmod-next.tar.gz
dabmod-next.tar.bz2
dabmod-next.zip
Update common: make remotecontrol optionalnext
-rw-r--r--lib/Globals.cpp2
-rw-r--r--lib/RemoteControl.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Globals.cpp b/lib/Globals.cpp
index 6be26ec..6bd38fb 100644
--- a/lib/Globals.cpp
+++ b/lib/Globals.cpp
@@ -32,5 +32,7 @@
// the RC needs logging, and needs to be initialised later.
Logger etiLog;
+#if ENABLE_REMOTECONTROL
RemoteControllers rcs;
+#endif // ENABLE_REMOTECONTROL
diff --git a/lib/RemoteControl.h b/lib/RemoteControl.h
index 26f30d9..7dd763d 100644
--- a/lib/RemoteControl.h
+++ b/lib/RemoteControl.h
@@ -31,6 +31,8 @@
# include "config.h"
#endif
+#define ENABLE_REMOTECONTROL 1
+
#if defined(HAVE_ZEROMQ)
# include "zmq.hpp"
#endif