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.cpp | 39 ++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'server/modules/metadata/flat_files/main.cpp') diff --git a/server/modules/metadata/flat_files/main.cpp b/server/modules/metadata/flat_files/main.cpp index 6696a76..3015cd5 100644 --- a/server/modules/metadata/flat_files/main.cpp +++ b/server/modules/metadata/flat_files/main.cpp @@ -21,15 +21,52 @@ #include "main.h" +#include -core_api *api = nullptr; void storage_impl::load(core_api *a) { api = a; + std::cout<<"flat_files metadata module succesfully loaded\n"; + //TODO: set module_info } + +const module_info &storage_impl::get_module_info() +{ + return info; +} + + +bool storage_impl::set(const std::string &module_name, const std::string &setting_name, const std::vector &data) +{ + //TODO + return true; +} + +bool storage_impl::get(const std::string &module_name, const std::string &setting_name, std::vector &data) +{ + //TODO + return true; +} + +bool storage_impl::remove(const std::string &module_name, const std::string &setting_name) +{ + //TODO + return true; +} + +storage_impl::storage_impl() +{ +} + +module_base::~module_base() +{ +} + + extern "C" void* load() { return new storage_impl; } + -- cgit v1.2.3