summaryrefslogtreecommitdiff
path: root/server/include/main.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-31 10:31:48 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-31 10:31:48 +0300
commit3acb88de959f7b88f6dd883144e936f0c4dedc25 (patch)
treedd3b555af49522006bec3637b500f031563b521b /server/include/main.h
parente238b70ae5fd00491e9f0d9c8bb0faa73892157e (diff)
core:
moved on_modules_loaded call to later stage so modules actually can call other modules without race condition and exceptions implemented default metadata_storage basic settings //TODO: per module metadata storage modules: finished flat metadata module base implementation set,get,remove now working and tested via core, via modules
Diffstat (limited to 'server/include/main.h')
-rw-r--r--server/include/main.h5
1 files changed, 5 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;
}
};