summaryrefslogtreecommitdiff
path: root/server/modules/metadata/flat_files/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-27 02:10:12 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-03-27 02:10:12 +0300
commitf87e3320c499edccd545ff3bfc244ef5c7216bb5 (patch)
tree5917670515947311cdf81352977bbdae60bcd0f1 /server/modules/metadata/flat_files/main.cpp
parentc46da5d47a706cee43ff62bc6649257fba508743 (diff)
module api fixes (thx 0xd34df00d)
working module prototype
Diffstat (limited to 'server/modules/metadata/flat_files/main.cpp')
-rw-r--r--server/modules/metadata/flat_files/main.cpp39
1 files changed, 38 insertions, 1 deletions
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 <iostream>
-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<char> &data)
+{
+ //TODO
+ return true;
+}
+
+bool storage_impl::get(const std::string &module_name, const std::string &setting_name, std::vector<char> &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;
}
+