summaryrefslogtreecommitdiff
path: root/server/modules/downloaders/curl/main.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-28 21:21:02 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-28 21:21:02 +0300
commit6f3f670abe3d2d78a13cd3862e3a587dd4fe4e85 (patch)
tree0d681fd23bf2e70e385d053aee1e54dbe08668b1 /server/modules/downloaders/curl/main.h
parentba8247eaf522e8a129b7fbbf09a6fab010746e3a (diff)
protocol:
typo fix added description to setting_info server: api: using structure with setting info instead of hust string for just value (a bit of necessary complication) renamed few structs to avoid collision with protobuf ones defined few module variables in api itself (a bit of simplification for module developer) modules: adapted to api changes
Diffstat (limited to 'server/modules/downloaders/curl/main.h')
-rw-r--r--server/modules/downloaders/curl/main.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/modules/downloaders/curl/main.h b/server/modules/downloaders/curl/main.h
index aff5cb3..d97e72e 100644
--- a/server/modules/downloaders/curl/main.h
+++ b/server/modules/downloaders/curl/main.h
@@ -37,8 +37,8 @@ public:
//core module api
downloader();
void load(core_api *a);
- const module_info &get_module_info();
- void set_module_settings(const std::map<std::string, std::string> &settings); //will called with settings stored in config
+ const module_info_base &get_module_info();
+ void set_module_settings(const std::map<std::string, setting_s> &settings); //will called with settings stored in config
~downloader();
//downloader module api
int add_download(std::map<int, std::string> params); //add download, this function must return unique for current session and current downloader download id
@@ -50,9 +50,7 @@ public:
download_s get_download_info(int download_id, std::map<int, std::string> params = std::map<int, std::string>()); //same as above, except this one is for single download, not a complete list
private:
void on_modules_loaded();
- downloader_module_info info;
- core_api *api = nullptr;
- std::map<std::string, std::string> settings; //settings name, val
+// downloader_module_info info;
std::map<int, my_download> downloads; //map of id, download
};