aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-19 13:29:47 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-19 13:29:47 +0100
commit289f3b4a28c07ad7fd3d387bf1daaab9e0f9fa55 (patch)
treefe4b6310322c843b8210c18bbfd48f79a2b91c3f /core
parent8fb8d2f75c067efc8fc79680aa5435e9ec516de3 (diff)
downloadprosody-289f3b4a28c07ad7fd3d387bf1daaab9e0f9fa55.tar.gz
prosody-289f3b4a28c07ad7fd3d387bf1daaab9e0f9fa55.zip
moduleapi: Add module:open_store() as a front-end to storagemanager.open()
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index fa20c3cd..a8e6881e 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -337,4 +337,8 @@ function api:load_resource(path, mode)
return io.open(path, mode);
end
+function api:open_store(name, type)
+ return storagemanager.open(self.host, name, type);
+end
+
return api;