blob: 2facc50d5af72efbba8e7f4171430c815ff61a74 (
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
|
enum UI_ELEMENT_TYPE {
STRING = 0;
INTEGER = 1;
PERCENT_BAR = 2;
WINDOW = 3;
}
message ui_element_info {
optional UI_ELEMENT_TYPE type = 1 [default = STRING];
required string id = 2; //internal element id used to get element value
optional string name = 3 [default = "not set"];
optional int32 width = 1001 [default = 0];
optional int32 height = 1002 [default = 0];
}
message module_info
{
required string name = 1;
required string version = 2;
repeated ui_element_info ui_element = 3;
optional string decription = 4 [default = "no description specified"];
}
enum CLIENT_MSG_TYPE {
CLIENT_HELLO = 0;
CLIENT_AUTH_REQUEST = 1;
CLIENT_DATA_TRANSFER_REQUEST = 2;
}
message client_msg {
required CLIENT_MSG_TYPE type = 1;
required bytes auth_token = 2;
}
enum SERVER_MSG_TYPE {
SERVER_HELLO = 0;
SERVER_AUTH_REPLY = 1;
}
message server_msg {
required SERVER_MSG_TYPE type = 1;
required bytes auth_token = 2;
}
|