summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-22 05:27:36 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-22 05:27:36 +0300
commitc77cb85e69a830d3b41ba1d55fdc7ff69d330491 (patch)
treee66a625b8ba7011e1b8032b202ae909aac8391bd /protocol
parent29e018ac3c35aa904b37330f467d7299b559acbb (diff)
protocol:
minor corrections few missed fields server: started module api designing fixed typo in modules loader code
Diffstat (limited to 'protocol')
-rw-r--r--protocol/udm.proto14
1 files changed, 12 insertions, 2 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index 3ee2f63..15de0b7 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -43,7 +43,8 @@ message module_download_menu_element_info {
required string id = 1;
required string name = 2;
optional string description = 3;
- repeated module_download_menu_element_info children = 4;
+ optional bool data_required = 4 [default = false];
+ repeated module_download_menu_element_info children = 5; //element with children cannot be executed, it's just container
}
@@ -107,6 +108,7 @@ message download_content_entry {
optional DOWNLOAD_CONTENT_ENTRY_TYPE type = 2 [default = DOWNLOAD_CONTENT_ENTRY_TYPE_FILE];
repeated download_content_entry children = 3;
optional int64 size = 4 [default = 0];
+ optional int64 downloaded = 5 [default = 0];
}
@@ -195,6 +197,13 @@ enum SERVER_MODULE_TYPE {
SERVER_MODULE_METADATA_STORAGE = 2;
}
+message string_pair
+{
+ required string name = 1;
+ required string description = 2;
+}
+
+
message module_info
{
required SERVER_MODULE_TYPE type = 1;
@@ -202,10 +211,11 @@ message module_info
required string version = 3;
optional string decription = 4 [default = "no description specified"];
repeated setting_info settings = 5;
- repeated module_download_ui_element_info download_ui = 6; //always complete here
+ repeated module_download_ui_element_info download_info_ui = 6; //always complete here
repeated module_download_ui_element_info download_creation_ui = 7;
repeated module_download_menu_element_info download_menu = 8;
repeated module_download_menu_element_info download_children_menu = 9; //menu for files and folders inside download root, may not present
+ repeated string_pair get_downloads_parameters_info = 10;
}
//module related messages end