summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-14 23:58:34 +0200
committerAki <please@ignore.pl>2021-10-14 23:58:34 +0200
commit2c1a508c304ac8b3109b46ff524ec02e71829a3f (patch)
tree439afd66b07d5aeb1fc79e87e61766789a29126d /daemon
parent61ae209e2b851d5efe6f1b2b1f6a8b75e52df417 (diff)
downloadhwd-2c1a508c304ac8b3109b46ff524ec02e71829a3f.zip
hwd-2c1a508c304ac8b3109b46ff524ec02e71829a3f.tar.gz
hwd-2c1a508c304ac8b3109b46ff524ec02e71829a3f.tar.bz2
Extended client by adding sample state mutation to daemon and lib
Diffstat (limited to 'daemon')
-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 feb6570..352218d 100644
--- a/daemon/src/daemon.cpp
+++ b/daemon/src/daemon.cpp
@@ -9,5 +9,12 @@ int main(int, char **)
server.bind("stop_server", []{
rpc::this_server().stop();
});
+ int value = 0;
+ server.bind("set_value", [&value](int a){
+ value = a;
+ });
+ server.bind("get_value", [&value](){
+ return value;
+ });
server.run();
}