150 else |
150 else |
151 log("error", "Attempt to remove component for non-existing host: "..host); |
151 log("error", "Attempt to remove component for non-existing host: "..host); |
152 end |
152 end |
153 end |
153 end |
154 |
154 |
155 function set_component_handler(host, handler) |
|
156 components[host] = handler; |
|
157 end |
|
158 |
|
159 function get_children(host) |
155 function get_children(host) |
160 return disco_items:get(host) or NULL; |
156 return disco_items:get(host) or NULL; |
161 end |
157 end |
162 |
158 |
163 return _M; |
159 return _M; |