diff options
Diffstat (limited to 'server/include/api_module_downloader.h')
-rw-r--r-- | server/include/api_module_downloader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/include/api_module_downloader.h b/server/include/api_module_downloader.h index 33a3fce..9e42715 100644 --- a/server/include/api_module_downloader.h +++ b/server/include/api_module_downloader.h @@ -83,14 +83,14 @@ struct download_s { int64_t size, downloaded, download_speed; //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; + std::map<std::string, std::string> metadata; //client defined metadata map }; class module_downloader : public module_base { public: //basic actions - virtual int add_download(std::map<int, std::string> params) = 0; //add download, this function must return unique for current session and current downloader download id + virtual int add_download(std::map<int, std::string> params) = 0; //add download, this function must return unique for current session and current downloader download id, -1 on error virtual bool stop_download(int download_id) = 0; //stop download by id received via add_download, return true on success, false otherwise virtual bool start_download(int download_id) = 0; //start download by id received via add_download, return true on success, false otherwise virtual bool delete_download(int download_id, bool delete_data = false) = 0; //delete download by id received via add_download, if "delete_data" is set, also remove all downloaded data from storage, return true on success, false otherwise |