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 | ae1c972cdd64e30c8a5daa5cca9a78bb19a6ba67 (patch) | |
tree | 7bb1976ece04c176a381cf382b2740c92092139e /core/storagemanager.lua | |
parent | 91aea551987526a15ab1b9146738c5b3e9ffe21b (diff) | |
download | prosody-ae1c972cdd64e30c8a5daa5cca9a78bb19a6ba67.tar.gz prosody-ae1c972cdd64e30c8a5daa5cca9a78bb19a6ba67.zip |
storagemanager: Add method for listing stores
Diffstat (limited to 'core/storagemanager.lua')
-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; |