summaryrefslogtreecommitdiff
path: root/server/include/api_core.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-27 16:07:27 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-27 16:07:27 +0300
commitff44c9cd55bff146c6c47277656a967045184c7b (patch)
treeb1d5d59696c8811db0badea0e6dcedca3601b183 /server/include/api_core.h
parentf87e3320c499edccd545ff3bfc244ef5c7216bb5 (diff)
working module loader
basic program options support abitilty to print installed modules info started config support implementation
Diffstat (limited to 'server/include/api_core.h')
-rw-r--r--server/include/api_core.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/server/include/api_core.h b/server/include/api_core.h
index 29e3886..1663f09 100644
--- a/server/include/api_core.h
+++ b/server/include/api_core.h
@@ -23,15 +23,20 @@
#define API_CORE_H_INCLUDED
#include <string>
#include <vector>
+#include <map>
class module_base;
class core_api
{
- virtual bool metadata_set(const module_base *m, const std::string &setting_name, const std::vector<char> &data);
- virtual bool metadata_get(const module_base *m, const std::string &setting_name, std::vector<char> &data);
- virtual bool metadata_remove(const module_base *m, const std::string &setting_name);
+ //core
+ std::map<std::string, std::string> get_module_settings(const module_base *m);
+
+ //metadata
+ bool metadata_set(const module_base *m, const std::string &setting_name, const std::vector<char> &data);
+ bool metadata_get(const module_base *m, const std::string &setting_name, std::vector<char> &data);
+ bool metadata_remove(const module_base *m, const std::string &setting_name);
};