Changeset

1693:56e23b0b3893

componentmanager: Added function to get a list of children for a given hostname
author Waqas Hussain <waqas20@gmail.com>
date Tue, 18 Aug 2009 12:25:59 +0500
parents 1692:be76bac8e174
children 1694:0b7888c0995d
files core/componentmanager.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/componentmanager.lua	Thu Aug 13 17:21:44 2009 +0500
+++ b/core/componentmanager.lua	Tue Aug 18 12:25:59 2009 +0500
@@ -138,4 +138,8 @@
 	components[host] = handler;
 end
 
+function get_children(host)
+	return disco_items:get(host) or NULL;
+end
+
 return _M;