summaryrefslogtreecommitdiff
path: root/daemon/src/daemon.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-16 14:39:18 +0200
committerAki <please@ignore.pl>2021-10-16 14:39:18 +0200
commite811b2f7a084ee34e37b6eb79b9dc2f14d9d1dac (patch)
treed1abd73302bba47e97bf98debd20d263a2447556 /daemon/src/daemon.cpp
parentf68fb3b96b593f56ec70ad17f216fe3aedbc020d (diff)
downloadhwd-e811b2f7a084ee34e37b6eb79b9dc2f14d9d1dac.zip
hwd-e811b2f7a084ee34e37b6eb79b9dc2f14d9d1dac.tar.gz
hwd-e811b2f7a084ee34e37b6eb79b9dc2f14d9d1dac.tar.bz2
Added Gpio and Assembly stubs
Diffstat (limited to 'daemon/src/daemon.cpp')
-rw-r--r--daemon/src/daemon.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/src/daemon.cpp b/daemon/src/daemon.cpp
index 352218d..99da92c 100644
--- a/daemon/src/daemon.cpp
+++ b/daemon/src/daemon.cpp
@@ -3,9 +3,16 @@
#include <hwd/internal.h>
+#include "Assembly.h"
+#include "Gpio.h"
+
+
int main(int, char **)
{
rpc::server server(hwd::internal::default_port);
+ Assembly assembly {server};
+ Gpio gpio;
+ assembly.add("gpio", gpio);
server.bind("stop_server", []{
rpc::this_server().stop();
});