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
commitbe8a761413ecce59767cfbbf1b85fe01cfdeea5d (patch)
tree7bb1976ece04c176a381cf382b2740c92092139e
parent64a6916f6e78f0fe345eb8381b621b22e53587ab (diff)
downloadprosody-be8a761413ecce59767cfbbf1b85fe01cfdeea5d.tar.gz
prosody-be8a761413ecce59767cfbbf1b85fe01cfdeea5d.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;