diff options
author | Kim Alvefur <zash@zash.se> | 2012-07-28 21:30:54 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-07-28 21:30:54 +0200 |
commit | be8a761413ecce59767cfbbf1b85fe01cfdeea5d (patch) | |
tree | 7bb1976ece04c176a381cf382b2740c92092139e /core | |
parent | 64a6916f6e78f0fe345eb8381b621b22e53587ab (diff) | |
download | prosody-be8a761413ecce59767cfbbf1b85fe01cfdeea5d.tar.gz prosody-be8a761413ecce59767cfbbf1b85fe01cfdeea5d.zip |
storagemanager: Add method for listing stores
Diffstat (limited to 'core')
-rw-r--r-- | core/storagemanager.lua | 3 |
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; |