Add more grpc - Asyncstuff
[src/agl-compositor.git] / protocol / agl_shell.proto
1 syntax = "proto3";
2 import "google/protobuf/empty.proto";
3 package agl_shell_ipc;
4
5 service AglShellManagerService {
6        rpc ActivateApp(ActivateRequest)                 returns (google.protobuf.Empty) {}
7        rpc DeactivateApp(DeactivateRequest)             returns (google.protobuf.Empty) {}
8        rpc SetAppSplit(SplitRequest)                    returns (google.protobuf.Empty) {}
9        rpc SetAppFloat(FloatRequest)                    returns (google.protobuf.Empty) {}
10        rpc AppStatusState(google.protobuf.Empty)        returns (stream AppState) {}
11 }
12
13 message ActivateRequest {
14        string app_id = 1;
15        string output_name = 2;
16 }
17
18 message DeactivateRequest {
19        string app_id = 1;
20 }
21
22 message SplitRequest {
23        string app_id = 1;
24        int32 tile_orientation = 2;
25 }
26
27 message FloatRequest {
28        string app_id = 1;
29 }
30
31 message AppState {
32         int32 state = 1;
33         string app_id = 2;
34 }