summaryrefslogtreecommitdiff
path: root/protocol/udm.proto
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/udm.proto')
-rw-r--r--protocol/udm.proto33
1 files changed, 22 insertions, 11 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index 2dd0ebf..a801b00 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -34,9 +34,10 @@ enum MODULE_UI_ELEMENT_TYPE {
message module_download_ui_element_info {
optional MODULE_UI_ELEMENT_TYPE type = 1 [default = UI_EMPTY];
- repeated module_download_ui_element_info children = 2;
- required int32 id = 3; //internal element id used to get element value (should be unique for every loaded module)
- optional string name = 4 [default = "not set"]; //can be non unique
+ required int32 id = 2; //internal element id used to get element value (should be unique for every loaded module)
+ optional string name = 3 [default = "not set"]; //can be non unique
+ optional string description = 4;
+ repeated module_download_ui_element_info children = 5;
}
message module_download_menu_element_info {
@@ -192,9 +193,8 @@ message setting {
//module related messages begin
enum SERVER_MODULE_TYPE {
- SERVER_MODULE_CORE = 0;
- SERVER_MODULE_DOWNLOADER = 1;
- SERVER_MODULE_METADATA_STORAGE = 2;
+ SERVER_MODULE_DOWNLOADER = 0;
+ SERVER_MODULE_METADATA_STORAGE = 1;
}
message string_pair
@@ -204,13 +204,13 @@ message string_pair
}
-message module_info
+message module_info //general module info for client including settings, download info ui and module specific menus
{
required SERVER_MODULE_TYPE type = 1;
required string name = 2; //unique (used as module id)
required string version = 3;
optional string decription = 4 [default = "no description specified"];
- repeated setting_info settings = 5;
+ repeated setting settings = 5;
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;
@@ -220,6 +220,17 @@ message module_info
//module related messages end
+//core related messages begin
+
+message core_info //core info for client currently for editable server settings, server version and proto version only
+{
+ optional int32 proto_version = 1 [default = 1];
+ required int32 version = 2;
+ repeated setting settings = 3;
+}
+
+//core related messages end
+
//auth proto part begin
@@ -266,7 +277,7 @@ enum CLIENT_MSG_TYPE {
CLIENT_DATA_TRANSFER_REQUEST = 1;
CLIENT_UI_DATA_REQUEST = 2;
CLIENT_MODULES_REQUEST = 3;
- CLIENT_CORE_SETTINGS_REQUEST = 4;
+ CLIENT_CORE_INFO_REQUEST = 4;
CLIENT_SUBSCRIPTIONS_REQUEST = 5;
CLIENT_UNSUBSCRIPTIONS_REQUEST = 6;
CLIENT_DOWNLOADS_LIST_REQUEST = 7;
@@ -288,7 +299,7 @@ enum SERVER_MSG_TYPE {
SERVER_AUTH_REPLY = 0;
SERVER_UI_DATA_REPLY = 1;
SERVER_MODULES_REPLY = 2;
- SERVER_CORE_SETTINGS_REPLY = 3;
+ SERVER_CORE_INFO_REPLY = 3;
SERVER_SUBSCRIPTIONS_REPLY = 4;
SERVER_UNSUBSCRIPTIONS_REPLY = 5;
SERVER_DOWNLOADS_LIST_REPLY = 6;
@@ -301,7 +312,7 @@ message server_msg {
optional server_download_ui_data_reply download_ui_data_reply = 2;
optional server_auth_reply auth_reply = 3;
repeated module_info server_modules_reply = 4;
- optional module_info server_core_settings_reply = 5;
+ 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;