summaryrefslogtreecommitdiff
path: root/server/include/api_module_downloader.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-09-15 13:35:50 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-09-15 13:35:50 +0300
commit2f31b8c66a8f3931e1c9ee0c5b9adebf341bee9a (patch)
treef34ecdf26d22d75f43642e13fef8de3abd042515 /server/include/api_module_downloader.h
parentf4750dc7ca9ce56c54352c03bb40affe1a64c315 (diff)
client-qt:
update model on data changes (still does not work ....) server: api: sane initialization of numeric fields in download struct
Diffstat (limited to 'server/include/api_module_downloader.h')
-rw-r--r--server/include/api_module_downloader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/include/api_module_downloader.h b/server/include/api_module_downloader.h
index 9e42715..ba6cb6a 100644
--- a/server/include/api_module_downloader.h
+++ b/server/include/api_module_downloader.h
@@ -78,9 +78,9 @@ struct download_content_entry_s { //here is basic content entry description, thi
struct download_s {
- int id; //id generated via download_add or via session restore and it's unique for current session and current dowloader
+ int id = -1; //id generated via download_add or via session restore and it's unique for current session and current dowloader
std::string name;
- int64_t size, downloaded, download_speed; //download size and size of downloaded data, also download speed all vars in bytes
+ int64_t size = 0, downloaded = 0, download_speed = 0; //download size and size of downloaded data, also download speed all vars in bytes
std::map<int, std::string> info_map; //any additional info provided by downloader module can be stored here
std::list<download_content_entry_s> content; //download content can be set for download, structure described above
std::map<std::string, std::string> metadata; //client defined metadata map