aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps/rpclib/include/rpc/this_handler.inl
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/deps/rpclib/include/rpc/this_handler.inl')
-rw-r--r--host/lib/deps/rpclib/include/rpc/this_handler.inl14
1 files changed, 14 insertions, 0 deletions
diff --git a/host/lib/deps/rpclib/include/rpc/this_handler.inl b/host/lib/deps/rpclib/include/rpc/this_handler.inl
new file mode 100644
index 000000000..cca37caec
--- /dev/null
+++ b/host/lib/deps/rpclib/include/rpc/this_handler.inl
@@ -0,0 +1,14 @@
+
+namespace rpc {
+
+template <typename T> void this_handler_t::respond_error(T &&err_obj) {
+ error_ = detail::pack(std::forward<T>(err_obj));
+ throw detail::handler_error();
+}
+
+template <typename T> void this_handler_t::respond(T &&resp_obj) {
+ resp_ = detail::pack(std::forward<T>(resp_obj));
+ //throw detail::handler_spec_response();
+}
+
+} /* rpc */