summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-25 13:57:29 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-25 13:57:29 +0300
commitcfaeb344fe18772a30d0b08eb1e230f067cb97cc (patch)
treef62cbb7b0883e4f7191f4c1310e181cdc9e12462
parent1fdf82ec8346c12d19c9a013080ca4c26a3cb6d6 (diff)
server:
id as integer in api
-rw-r--r--server/include/api_module_downloader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/include/api_module_downloader.h b/server/include/api_module_downloader.h
index 872430d..4a31085 100644
--- a/server/include/api_module_downloader.h
+++ b/server/include/api_module_downloader.h
@@ -38,7 +38,8 @@ enum MODULE_UI_ELEMENT_TYPE_e {
struct module_download_ui_element_info_s {
MODULE_UI_ELEMENT_TYPE_e type = UI_EMPTY;
std::list<module_download_ui_element_info_s> children;
- std::string id,name; //internal element id used to get element value (should be unique for every loaded module), name can be non unique
+ std::string name; // name can be non unique
+ int id; //internal element id used to get element value (should be unique for every loaded module)
};
//TODO: some mechanism for module to tell it's abilities, for example if it can provide download content, e.t.c.