diff options
Diffstat (limited to 'grpc-proxy/grpc-async-cb.cpp')
-rw-r--r-- | grpc-proxy/grpc-async-cb.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/grpc-proxy/grpc-async-cb.cpp b/grpc-proxy/grpc-async-cb.cpp index 3754b3c..f7c114a 100644 --- a/grpc-proxy/grpc-async-cb.cpp +++ b/grpc-proxy/grpc-async-cb.cpp @@ -123,6 +123,18 @@ GrpcServiceImpl::SetAppFloat(grpc::CallbackServerContext *context, } grpc::ServerUnaryReactor * +GrpcServiceImpl::SetAppNormal(grpc::CallbackServerContext *context, + const ::agl_shell_ipc::NormalRequest* request, + ::agl_shell_ipc::NormalResponse* /* response */) +{ + m_aglShell->SetAppNormal(request->app_id()); + + grpc::ServerUnaryReactor* reactor = context->DefaultReactor(); + reactor->Finish(grpc::Status::OK); + return reactor; +} + +grpc::ServerUnaryReactor * GrpcServiceImpl::SetAppSplit(grpc::CallbackServerContext *context, const ::agl_shell_ipc::SplitRequest* request, ::agl_shell_ipc::SplitResponse* /*response*/) |