summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-24 18:22:40 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-24 18:22:40 +0300
commit4905fe0ada4e147176e8d396ac24389d8ef352eb (patch)
tree776d9671404ce4e62163315f971ada6e906f8a46
parent0a282f2e8007464c9fd4b0e0f0226b5098843b81 (diff)
implementing protocol
-rw-r--r--protocol/udm.proto13
1 files changed, 11 insertions, 2 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index ccbff46..2facc50 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -6,19 +6,23 @@ 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;
- repeated ui_element_info ui_element = 2;
- optional string decription = 3 [default = "no description specified"];
+ required string version = 2;
+ repeated ui_element_info ui_element = 3;
+ optional string decription = 4 [default = "no description specified"];
}
@@ -26,10 +30,13 @@ message module_info
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;
}
@@ -37,8 +44,10 @@ message client_msg {
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;
}