summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-31 20:45:06 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-31 20:45:06 +0300
commit4b4002115d6c7b5c5113d1e2e6e9025565e1c9bb (patch)
tree4e4ecc6d26052bb5f50acd0c1a9260aceb5479fd /protocol
parent12eba4d75931c5e48dac70b1a7dbad7861d059df (diff)
protocol:
download struct must have module_name field server: core: implemented SERVER_DOWNLOADS_LIST_REPLY (draft) added global downloads list client: using std::string instead of QString to avoid unnecessary conversions
Diffstat (limited to 'protocol')
-rw-r--r--protocol/udm.proto13
1 files changed, 8 insertions, 5 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index d15fdcf..029183f 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -147,12 +147,13 @@ message download_content_entry {
message download {
required int32 id = 1;
required string name = 2;
- optional download_content_entry content = 3;
- required int64 size = 4;
- required int64 downloaded = 5;
+ required string module_name = 3;
+ optional download_content_entry content = 4;
+ required int64 size = 5;
+ required int64 downloaded = 6;
}
-message server_downloads_reply {
+message server_download_reply {
required download download = 1;
}
@@ -347,6 +348,7 @@ enum SERVER_MSG_TYPE {
SERVER_SUBSCRIPTIONS_REPLY = 4;
SERVER_UNSUBSCRIPTIONS_REPLY = 5;
SERVER_DOWNLOADS_LIST_REPLY = 6;
+ SERVER_DOWNLOAD_INFO_REPLY = 7;
}
@@ -359,7 +361,8 @@ message server_msg {
optional core_info server_core_info_reply = 5;
repeated server_event_subscription_reply subscription_reply = 6;
repeated server_event_unsubscription_reply unsubscription_reply = 7;
- optional server_downloads_reply downloads = 8;
+ optional server_download_reply download = 8;
+ repeated server_download_reply downloads = 9;
}
//top level messages end