aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/AglShellManager.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-09-30 15:56:12 +0300
committerMarius Vlad <marius.vlad@collabora.com>2022-10-07 18:31:39 +0300
commit59ecd4b02108f2830fde8f311ec632932508c6db (patch)
treeca158d5ade48ac83abe38ac8cabdfa944523c522 /homescreen/src/AglShellManager.h
parentbf125b0779f07e9d65f83da99d16accdad72b08b (diff)
initial change to grpcsandbox/mvlad/switch-to-meson
Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I7ff760b179b80a198ae7ea91b2f1f6239d787802
Diffstat (limited to 'homescreen/src/AglShellManager.h')
-rw-r--r--homescreen/src/AglShellManager.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/homescreen/src/AglShellManager.h b/homescreen/src/AglShellManager.h
new file mode 100644
index 0000000..45e81c9
--- /dev/null
+++ b/homescreen/src/AglShellManager.h
@@ -0,0 +1,42 @@
+#include <climits>
+#include <cstdlib>
+#include <exception>
+#include <fstream>
+#include <iostream>
+#include <set>
+#include <sstream>
+
+#include <grpc/grpc.h>
+#include <grpcpp/grpcpp.h>
+#include <grpcpp/server.h>
+#include <grpcpp/server_builder.h>
+#include <grpcpp/server_context.h>
+
+#include <grpcpp/ext/proto_server_reflection_plugin.h>
+#include <grpcpp/health_check_service_interface.h>
+
+#include "agl_shell.grpc.pb.h"
+
+namespace {
+ const char kDefaultGrpcServiceAddress[] = "127.0.0.1:14004";
+}
+
+
+class GrpcServiceImpl final : public agl_shell_ipc::AglShellManagerService::CallbackService {
+
+ grpc::ServerUnaryReactor *ActivateApp(grpc::CallbackServerContext *context,
+ const ::agl_shell_ipc::ActivateRequest* request,
+ google::protobuf::Empty* /*response*/);
+
+ grpc::ServerUnaryReactor *DeactivateApp(grpc::CallbackServerContext *context,
+ const ::agl_shell_ipc::DeactivateRequest* request,
+ google::protobuf::Empty* /*response*/);
+
+ grpc::ServerUnaryReactor *SetAppSplit(grpc::CallbackServerContext *context,
+ const ::agl_shell_ipc::SplitRequest* request,
+ google::protobuf::Empty* /*response*/);
+
+ grpc::ServerUnaryReactor *SetAppFloat(grpc::CallbackServerContext *context,
+ const ::agl_shell_ipc::FloatRequest* request,
+ google::protobuf::Empty* /*response*/);
+};