summaryrefslogtreecommitdiff
path: root/server/modules
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-29 19:19:37 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-29 19:19:37 +0300
commitc8a7af2c1813cd0ae22d4015c8a9f4ee4859bf56 (patch)
tree56ceef4e1a6d7338af2cbf8b3ca406021f0205a9 /server/modules
parent0c9dd8ea102db49c9702d36d8a13c013d6e5df86 (diff)
module settings auto loading
Diffstat (limited to 'server/modules')
-rw-r--r--server/modules/metadata/flat_files/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/modules/metadata/flat_files/main.cpp b/server/modules/metadata/flat_files/main.cpp
index 7fd197c..fb52812 100644
--- a/server/modules/metadata/flat_files/main.cpp
+++ b/server/modules/metadata/flat_files/main.cpp
@@ -27,7 +27,7 @@
void storage_impl::on_modules_loaded()
{
- settings = api->get_module_settings(this);
+ //settings = api->get_module_settings(this); //you can get module settings here, by default settings loaded automatically after this function call
}
@@ -40,6 +40,7 @@ void storage_impl::load(core_api *a)
info.version = "0.0.0.1draft";
info.default_settings["data_path"] = "~/.local/share/udm/metadata";
info.on_modules_loaded = boost::bind(&storage_impl::on_modules_loaded, this);
+ info.set_module_settings = boost::bind(&storage_impl::set_module_settings, this);
std::cout<<"flat_files metadata module succesfully loaded\n";
}