diff options
Diffstat (limited to 'server/include')
-rw-r--r-- | server/include/main.h | 5 | ||||
-rw-r--r-- | server/include/modules_handler.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/server/include/main.h b/server/include/main.h index 5d93569..71769b8 100644 --- a/server/include/main.h +++ b/server/include/main.h @@ -22,17 +22,22 @@ #ifndef MAIN_H_INCLUDED #define MAIN_H_INCLUDED +#include "api_module_metadata_storage.h" + #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/info_parser.hpp> namespace bpt = boost::property_tree; struct runtime_config_s{ + //TODO: define metadata and data storage modules per module alongside with default ones bpt::ptree config_file; + module_metadata_storage *default_metadata_storage; short verbosity; runtime_config_s() { verbosity = 0; + default_metadata_storage = nullptr; } }; diff --git a/server/include/modules_handler.h b/server/include/modules_handler.h index c5e91b4..5696053 100644 --- a/server/include/modules_handler.h +++ b/server/include/modules_handler.h @@ -33,6 +33,8 @@ class modules_handler void load_modules(); void on_modules_loaded(); std::string list_modules(); + std::list<module_base*> &get_metadata_modules(); + std::list<module_base*> &get_downloader_modules(); ~modules_handler(); private: void load_metadata_modules(const std::string &path); |