From 0c9dd8ea102db49c9702d36d8a13c013d6e5df86 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 29 Mar 2015 04:41:17 +0300 Subject: api fixes implemented get_module_settings --- server/include/api_core.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'server/include/api_core.h') diff --git a/server/include/api_core.h b/server/include/api_core.h index 1663f09..7dcec4d 100644 --- a/server/include/api_core.h +++ b/server/include/api_core.h @@ -30,13 +30,14 @@ class module_base; class core_api { - //core - std::map get_module_settings(const module_base *m); - - //metadata - bool metadata_set(const module_base *m, const std::string &setting_name, const std::vector &data); - bool metadata_get(const module_base *m, const std::string &setting_name, std::vector &data); - bool metadata_remove(const module_base *m, const std::string &setting_name); + public: + //core + virtual std::map get_module_settings(module_base *m); + + //metadata + virtual bool metadata_set(module_base *m, const std::string &setting_name, const std::vector &data); + virtual bool metadata_get(module_base *m, const std::string &setting_name, std::vector &data); + virtual bool metadata_remove(module_base *m, const std::string &setting_name); }; -- cgit v1.2.3