gboolean devinfo_device_rescan (HalDevice *d) { if (hal_device_has_capability (d, "block")) { return (devinfo_storage_device_rescan (d)); } else if (hal_device_has_capability (d, "button")) { return (devinfo_lid_rescan (d)); } else { return (FALSE); } }
static void hf_net_device_set_link_up (HalDevice *device, gboolean is_up) { g_return_if_fail(HAL_IS_DEVICE(device)); hal_device_property_set_bool(device, "net.interface_up", is_up); if (hal_device_has_capability(device, "net.80203")) hal_device_property_set_bool(device, "net.80203.link", is_up); }
void hotplug_event_begin_remove_devinfo (HalDevice *d, gchar *devfs_path, void *end_token) { if (hal_device_has_capability (d, "volume")) { devinfo_volume_hotplug_begin_remove (d, devfs_path, end_token); } else { hal_util_callout_device_remove (d, devinfo_callouts_remove_done, end_token, NULL); } }