Lines Matching refs:devices
209 dump_children (char *udi, int num_devices, struct Device *devices, int depth) in dump_children() argument
215 if (devices[i].parent) in dump_children()
219 if (!devices[i].parent) in dump_children()
221 if (strcmp (devices[i].parent, udi)) in dump_children()
226 printf ("udi = '%s'\n", devices[i].name); in dump_children()
233 printf ("%s\n", short_name (devices[i].name)); in dump_children()
237 print_props (devices[i].name); in dump_children()
241 dump_children(devices[i].name, num_devices, devices, depth + 1); in dump_children()
254 struct Device *devices; in dump_devices() local
265 devices = malloc (sizeof(struct Device) * num_devices); in dump_devices()
266 if (!devices) { in dump_devices()
272 devices[i].name = device_names[i]; in dump_devices()
273 devices[i].parent = libhal_device_get_property_string (hal_ctx, in dump_devices()
290 dump_children(NULL, num_devices, devices, 0); in dump_devices()
293 if (devices[i].parent) in dump_devices()
294 libhal_free_string (devices[i].parent); in dump_devices()
297 free (devices); in dump_devices()