6 #include <grpcpp/grpcpp.h>
7 #include <grpcpp/server.h>
8 #include <grpcpp/server_builder.h>
9 #include <grpcpp/server_context.h>
11 #include <grpcpp/ext/proto_server_reflection_plugin.h>
12 #include <grpcpp/health_check_service_interface.h>
15 #include "agl_shell.grpc.pb.h"
18 const char kDefaultGrpcServiceAddress[] = "127.0.0.1:14005";
22 class GrpcServiceImpl final : public agl_shell_ipc::AglShellManagerService::CallbackService {
24 GrpcServiceImpl(Shell *aglShell) : m_aglShell(aglShell) {}
26 grpc::ServerUnaryReactor *ActivateApp(grpc::CallbackServerContext *context,
27 const ::agl_shell_ipc::ActivateRequest* request,
28 google::protobuf::Empty* /*response*/);
30 grpc::ServerUnaryReactor *DeactivateApp(grpc::CallbackServerContext *context,
31 const ::agl_shell_ipc::DeactivateRequest* request,
32 google::protobuf::Empty* /*response*/);
34 grpc::ServerUnaryReactor *SetAppSplit(grpc::CallbackServerContext *context,
35 const ::agl_shell_ipc::SplitRequest* request,
36 google::protobuf::Empty* /*response*/);
38 grpc::ServerUnaryReactor *SetAppFloat(grpc::CallbackServerContext *context,
39 const ::agl_shell_ipc::FloatRequest* request,
40 google::protobuf::Empty* /*response*/);
41 grpc::ServerUnaryReactor *AppStatusState(grpc::CallbackServerContext *context,
42 google::protobuf::Empty *empty,
43 ::grpc::ServerWriter<::agl_shell_ipc::AppState>* writer);