From f87e3320c499edccd545ff3bfc244ef5c7216bb5 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 27 Mar 2015 02:10:12 +0300 Subject: module api fixes (thx 0xd34df00d) working module prototype --- server/modules/metadata/flat_files/main.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'server/modules/metadata/flat_files/main.h') diff --git a/server/modules/metadata/flat_files/main.h b/server/modules/metadata/flat_files/main.h index bdcf9e0..706e21d 100644 --- a/server/modules/metadata/flat_files/main.h +++ b/server/modules/metadata/flat_files/main.h @@ -28,7 +28,20 @@ class storage_impl: public module_metadata_storage { - void load(core_api *a); + public: + storage_impl(); + //module base + void load(core_api *a); + const module_info &get_module_info(); + //metadata module + bool set(const std::string &module_name, const std::string &setting_name, const std::vector &data); + bool get(const std::string &module_name, const std::string &setting_name, std::vector &data); + bool remove(const std::string &module_name, const std::string &setting_name); + + private: + module_info info; + core_api *api = nullptr; + }; -- cgit v1.2.3