aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-18 12:25:59 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-18 12:25:59 +0500
commitdc32d11948edcf57bc8616f54ec558e0aa0e6763 (patch)
treed3d99428d9eaf59e09ec8817fa57cfc0e78bf04d /core/componentmanager.lua
parentb5683f55bd23f41df3c90a2f5a6ca60fab56c6e6 (diff)
downloadprosody-dc32d11948edcf57bc8616f54ec558e0aa0e6763.tar.gz
prosody-dc32d11948edcf57bc8616f54ec558e0aa0e6763.zip
componentmanager: Added function to get a list of children for a given hostname
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index 08868236..14f9105b 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -138,4 +138,8 @@ function set_component_handler(host, handler)
components[host] = handler;
end
+function get_children(host)
+ return disco_items:get(host) or NULL;
+end
+
return _M;