summaryrefslogtreecommitdiff
path: root/server/include/api_module_downloader.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-25 13:17:30 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-25 13:17:30 +0300
commit1fdf82ec8346c12d19c9a013080ca4c26a3cb6d6 (patch)
treed50030c765ed83ebf49557c1a0c8ca1f38b0d4c9 /server/include/api_module_downloader.h
parent493733c837eb74b902e3db1521689fb8f088f6d1 (diff)
protocol:
use int32 instead of strings for id's in structures server: curl module: work in progress
Diffstat (limited to 'server/include/api_module_downloader.h')
-rw-r--r--server/include/api_module_downloader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/include/api_module_downloader.h b/server/include/api_module_downloader.h
index 7c68cad..872430d 100644
--- a/server/include/api_module_downloader.h
+++ b/server/include/api_module_downloader.h
@@ -75,8 +75,9 @@ struct download_content_entry_s { //here is basic content entry description, thi
struct download_s {
- std::string id, name; //id generated via download_add or via session restore and it's unique for current session and current dowloader
- int64_t size, downloaded; //download size and size of downloaded data
+ int id;
+ std::string name; //id generated via download_add or via session restore and it's unique for current session and current dowloader
+ int64_t size, downloaded, download_speed; //download size and size of downloaded data, also download speed all vars in bytes
std::map<std::string, 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
};