diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2023-10-25 23:41:46 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2023-10-26 00:41:59 +0300 |
commit | 537937138e9855408c6b8af4331725c8a1d52705 (patch) | |
tree | 40b43c4b1e043ac153e3fc458d4463fbc228af76 /homescreen/src/AglShellGrpcClient.h | |
parent | c13f6c196066bccb33c3a1f524a108b52c356bfd (diff) |
homescreen: Re-work gRPC client start-up
And start the gRPC client as soon as possible and just wait for
a connected status after we bounded to the agl-shell
extension/interface.
Bug-AGL: SPEC-4912
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I26da89dd6aaf1b5c2357d70dcaed7622c1892c31
Diffstat (limited to 'homescreen/src/AglShellGrpcClient.h')
-rw-r--r-- | homescreen/src/AglShellGrpcClient.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/homescreen/src/AglShellGrpcClient.h b/homescreen/src/AglShellGrpcClient.h index bb74377..19cfb75 100644 --- a/homescreen/src/AglShellGrpcClient.h +++ b/homescreen/src/AglShellGrpcClient.h @@ -92,6 +92,7 @@ private: class GrpcClient { public: GrpcClient(); + void WaitForConnected(int wait_time_ms, int tries_timeout); bool ActivateApp(const std::string& app_id, const std::string& output_name); bool DeactivateApp(const std::string& app_id); bool SetAppFloat(const std::string& app_id, int32_t x_pos, int32_t y_pos); @@ -108,5 +109,6 @@ public: private: Reader *reader; std::unique_ptr<agl_shell_ipc::AglShellManagerService::Stub> m_stub; + std::shared_ptr<grpc::Channel> m_channel; }; |