aboutsummaryrefslogtreecommitdiffstats
path: root/app/protocol/agl_shell.proto
blob: c4f3dfedd0c980ab3045a4ada1b91e6534d84170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
syntax = "proto3";
// using empty Response suitable better for forward compat
//import "google/protobuf/empty.proto";
package agl_shell_ipc;

service AglShellManagerService {
       rpc ActivateApp(ActivateRequest)			returns (ActivateResponse) {}
       rpc DeactivateApp(DeactivateRequest)		returns (DeactivateResponse) {}
       rpc SetAppSplit(SplitRequest)			returns (SplitResponse) {}
       rpc SetAppFloat(FloatRequest)			returns (FloatResponse) {}
       rpc SetAppFullscreen(FullscreenRequest)		returns (FullscreenResponse) {}
       rpc AppStatusState(AppStateRequest)		returns (stream AppStateResponse) {}
       rpc GetOutputs(OutputRequest)			returns (ListOutputResponse) {}
       rpc SetAppNormal(NormalRequest)			returns (NormalResponse) {}
       rpc SetAppOnOutput(AppOnOutputRequest)		returns (AppOnOutputResponse) {}
       rpc SetAppPosition(AppPositionRequest)		returns (AppPositionResponse) {}
       rpc SetAppScale(AppScaleRequest)			returns (AppScaleResponse) {}
}

message ActivateRequest {
       string app_id = 1;
       string output_name = 2;
}

message ActivateResponse {
};


message DeactivateRequest {
       string app_id = 1;
}

message DeactivateResponse {
}

message SplitRequest {
       string app_id = 1;
       int32 tile_orientation = 2;
}

message SplitResponse {
}

message FloatRequest {
       string app_id = 1;
       int32 x_pos = 2;
       int32 y_pos = 3;
}

message FloatResponse {
}

message AppStateRequest {
}

message AppStateResponse {
	int32 state = 1;
	string app_id = 2;
}

message OutputRequest {
};

message OutputResponse {
	string name = 1;
};

message ListOutputResponse {
	repeated OutputResponse outputs = 1;
};

message NormalRequest {
	string app_id = 1;
};

message NormalResponse {
};

message FullscreenRequest {
	string app_id = 1;
};

message FullscreenResponse {
};

message AppOnOutputRequest {
	string app_id = 1;
	string output = 2;
};

message AppOnOutputResponse {
};

message AppPositionRequest {
       string app_id = 1;
       int32 x = 2;
       int32 y = 3;
};

message AppPositionResponse {
};

message AppScaleRequest {
       string app_id = 1;
       int32 width = 2;
       int32 height = 3;
};

message AppScaleResponse {
};