Changeset

5496:7a0b81b5ca71

moduleapi: Add module:open_store() as a front-end to storagemanager.open()
author Matthew Wild <mwild1@gmail.com>
date Fri, 19 Apr 2013 13:29:47 +0100
parents 5494:9916f0a2d178
children 5497:b42781a96174 5498:2a67235e1d4d 5503:91052e59375c
files core/moduleapi.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/moduleapi.lua	Thu Apr 18 11:13:40 2013 +0100
+++ b/core/moduleapi.lua	Fri Apr 19 13:29:47 2013 +0100
@@ -337,4 +337,8 @@
 	return io.open(path, mode);
 end
 
+function api:open_store(name, type)
+	return storagemanager.open(self.host, name, type);
+end
+
 return api;