summaryrefslogtreecommitdiff
path: root/library/src
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 /library/src
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 'library/src')
-rw-r--r--library/src/library.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/src/library.cpp b/library/src/library.cpp
index 4691849..73f40f9 100644
--- a/library/src/library.cpp
+++ b/library/src/library.cpp
@@ -16,4 +16,14 @@ void stop_server()
get_client().call("stop_server");
}
+void set_value(const int value)
+{
+ get_client().call("set_value", value);
+}
+
+int get_value()
+{
+ return get_client().call("get_value").as<int>();
+}
+
} // namespace hwd