Lines Matching refs:d
48 HAL_INFO (("di_init() failed %d", errno));
53 HAL_INFO (("di_init() failed %d", errno));
66 HalDevice *d;
73 d = devinfo_add_node (parent, node);
75 if ((d != NULL) &&
77 devinfo_add_subtree (d, child_node, FALSE);
86 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path)
93 hal_device_property_set_string (d, "info.parent", hal_device_get_udi (parent));
95 hal_device_property_set_string (d, "info.parent", "/org/freedesktop/Hal/devices/local");
99 "/org/freedesktop/Hal/devices%s_%d",
102 hal_device_set_udi (d, udi);
103 hal_device_property_set_string (d, "info.udi", udi);
106 hal_device_property_set_string (d, "info.product", s);
108 hal_device_property_set_string (d, "info.product", di_node_name (node));
111 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path);
114 hal_device_property_set_string (d, "info.solaris.driver",
123 hal_device_property_set_bool (d, "info.claimed", TRUE);
124 hal_device_property_set_string (d, "info.claimed.service", s1);
152 HalDevice *d = NULL;
163 for (i = 0; (d == NULL) && (devinfo_handlers[i] != NULL); i++) {
165 d = handler->add (parent, node, devfs_path, device_type);
170 HAL_INFO (("add_node: %s", d ? hal_device_get_udi (d) : "none"));
171 return (d);
175 devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, int front)
182 hotplug_event->d = d;
191 devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler)
193 devinfo_hotplug_enqueue (d, devfs_path, handler, HOTPLUG_ACTION_ADD, 0);
197 devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler)
199 devinfo_hotplug_enqueue (d, devfs_path, handler, HOTPLUG_ACTION_ADD, 1);
209 devinfo_callouts_add_done (HalDevice *d, gpointer userdata1, gpointer userdata2)
214 hal_device_store_remove (hald_get_tdl (), d);
215 hal_device_store_add (hald_get_gdl (), d);
221 devinfo_callouts_probing_done (HalDevice *d, guint32 exit_type, gint return_code, char **error, gpointer userdata1, gpointer userdata2)
227 HAL_INFO (("Probing for %s failed %d", hal_device_get_udi (d), return_code));
228 hal_device_store_remove (hald_get_tdl (), d);
229 g_object_unref (d);
235 di_search_and_merge (d, DEVICE_INFO_TYPE_INFORMATION);
236 di_search_and_merge (d, DEVICE_INFO_TYPE_POLICY);
238 hal_util_callout_device_add (d, devinfo_callouts_add_done, end_token, NULL);
242 devinfo_callouts_preprobing_done (HalDevice *d, gpointer userdata1, gpointer userdata2)
250 if (hal_device_property_get_bool (d, "info.ignore")) {
254 hal_device_property_remove (d, "info.category");
255 hal_device_property_remove (d, "info.capabilities");
257 hal_device_store_remove (hald_get_tdl (), d);
258 hal_device_store_add (hald_get_gdl (), d);
265 prober = handler->get_prober (d, &prober_timeout);
278 HAL_INFO(("Probing udi=%s", hal_device_get_udi (d)));
279 hald_runner_run (d,
285 probing_done (d, 0, 0, NULL, userdata1, userdata2);
291 hotplug_event_begin_add_devinfo (HalDevice *d, HalDevice *parent, DevinfoDevHandler *handler, void *end_token)
295 HAL_INFO(("Preprobing udi=%s", hal_device_get_udi (d)));
310 if (hal_device_store_find (hald_get_tdl (), hal_device_get_udi (d)) == NULL) {
313 hal_device_store_add (hald_get_tdl (), d);
317 di_search_and_merge (d, DEVICE_INFO_TYPE_PREPROBE);
320 hal_util_callout_device_preprobe (d, devinfo_callouts_preprobing_done, end_token, handler);
325 if (hal_device_store_find (hald_get_tdl (), hal_device_get_udi (d)))
326 hal_device_store_remove (hald_get_tdl (), d);
328 g_object_unref (d);
342 devinfo_remove_branch (gchar *devfs_path, HalDevice *d)
349 if (d == NULL) {
350 d = hal_device_store_match_key_value_string (hald_get_gdl (),
352 if (d == NULL)
356 HAL_INFO (("remove_branch: %s %s\n", devfs_path, hal_device_get_udi (d)));
360 "info.parent", hal_device_get_udi (d));
375 devinfo_callouts_remove_done (HalDevice *d, gpointer userdata1, gpointer userdata2)
379 HAL_INFO (("Remove callouts completed udi=%s", hal_device_get_udi (d)));
381 if (!hal_device_store_remove (hald_get_gdl (), d)) {
384 g_object_unref (d);
390 hotplug_event_begin_remove_devinfo (HalDevice *d, gchar *devfs_path, void *end_token)
392 if (hal_device_has_capability (d, "volume")) {
393 devinfo_volume_hotplug_begin_remove (d, devfs_path, end_token);
395 hal_util_callout_device_remove (d, devinfo_callouts_remove_done, end_token, NULL);
400 devinfo_device_rescan (HalDevice *d)
402 if (hal_device_has_capability (d, "block")) {
403 return (devinfo_storage_device_rescan (d));
404 } else if (hal_device_has_capability (d, "button")) {
405 return (devinfo_lid_rescan (d));