aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-28 21:30:54 +0200
committerKim Alvefur <zash@zash.se>2012-07-28 21:30:54 +0200
commitae1c972cdd64e30c8a5daa5cca9a78bb19a6ba67 (patch)
tree7bb1976ece04c176a381cf382b2740c92092139e
parent91aea551987526a15ab1b9146738c5b3e9ffe21b (diff)
downloadprosody-ae1c972cdd64e30c8a5daa5cca9a78bb19a6ba67.tar.gz
prosody-ae1c972cdd64e30c8a5daa5cca9a78bb19a6ba67.zip
storagemanager: Add method for listing stores
-rw-r--r--core/storagemanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 1a5f7d47..4ae79213 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -100,5 +100,8 @@ end
function datamanager.store(username, host, datastore, data)
return open(host, datastore):set(username, data);
end
+function datamanager.list_stores(username, host)
+ return get_driver(host):list_stores(username, host);
+end
return _M;