projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9514eaa
)
moduleapi: Add module:open_store() as a front-end to storagemanager.open()
author
Matthew Wild
<mwild1@gmail.com>
Fri, 19 Apr 2013 12:29:47 +0000
(13:29 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 19 Apr 2013 12:29:47 +0000
(13:29 +0100)
core/moduleapi.lua
patch
|
blob
|
history
diff --git
a/core/moduleapi.lua
b/core/moduleapi.lua
index fa20c3cdd9fd179e4e6e0d5acec774fb5b68b666..a8e6881e7bf89f91611d9097effd3f7d0e34f4bc 100644
(file)
--- 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;