X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=grpc-proxy%2Fgrpc-async-cb.h;h=342a6dfbd457e09552f1f135817d9d092f056085;hb=HEAD;hp=e6a19a64a43b55140d3e02ebfec8b2132b7873cb;hpb=59375972f5642b7ec5115fdecf4828f6af02f343;p=src%2Fagl-compositor.git diff --git a/grpc-proxy/grpc-async-cb.h b/grpc-proxy/grpc-async-cb.h index e6a19a6..342a6df 100644 --- a/grpc-proxy/grpc-async-cb.h +++ b/grpc-proxy/grpc-async-cb.h @@ -63,6 +63,7 @@ private: class GrpcServiceImpl final : public agl_shell_ipc::AglShellManagerService::CallbackService { public: GrpcServiceImpl(Shell *aglShell) : m_aglShell(aglShell) {} + void setAglShell(Shell *_aglShell) { m_aglShell = _aglShell; } grpc::ServerUnaryReactor *ActivateApp(grpc::CallbackServerContext *context, const ::agl_shell_ipc::ActivateRequest* request, @@ -84,10 +85,30 @@ public: const ::agl_shell_ipc::OutputRequest* /* request */, ::agl_shell_ipc::ListOutputResponse* response) override; + grpc::ServerUnaryReactor *SetAppNormal(grpc::CallbackServerContext *context, + const ::agl_shell_ipc::NormalRequest* request, + ::agl_shell_ipc::NormalResponse* /*response*/) override; + + grpc::ServerUnaryReactor *SetAppFullscreen(grpc::CallbackServerContext *context, + const ::agl_shell_ipc::FullscreenRequest* request, + ::agl_shell_ipc::FullscreenResponse* /*response*/) override; + + grpc::ServerUnaryReactor *SetAppOnOutput(grpc::CallbackServerContext *context, + const ::agl_shell_ipc::AppOnOutputRequest* request, + ::agl_shell_ipc::AppOnOutputResponse* /*response*/) override; + + grpc::ServerUnaryReactor *SetAppPosition(grpc::CallbackServerContext *context, + const ::agl_shell_ipc::AppPositionRequest* request, + ::agl_shell_ipc::AppPositionResponse* /*response*/) override; + + grpc::ServerUnaryReactor *SetAppScale(grpc::CallbackServerContext *context, + const ::agl_shell_ipc::AppScaleRequest* request, + ::agl_shell_ipc::AppScaleResponse* /*response*/) override; + grpc::ServerWriteReactor< ::agl_shell_ipc::AppStateResponse>* AppStatusState( ::grpc::CallbackServerContext* /*context*/, const ::agl_shell_ipc::AppStateRequest* /*request*/) override; private: - Shell *m_aglShell; + Shell *m_aglShell = nullptr; };