Lines Matching refs:device

109 hal_device_store_init (HalDeviceStore *device)  in hal_device_store_init()  argument
149 emit_device_property_changed (HalDevice *device, in emit_device_property_changed() argument
158 device, key, added, removed); in emit_device_property_changed()
162 emit_device_capability_added (HalDevice *device, in emit_device_capability_added() argument
169 device, capability); in emit_device_capability_added()
173 hal_device_store_add (HalDeviceStore *store, HalDevice *device) in hal_device_store_add() argument
177 if (strncmp(device->udi, buf, sizeof (buf) - 1) != 0) { in hal_device_store_add()
184 g_object_ref (device)); in hal_device_store_add()
186 g_signal_connect (device, "property_changed", in hal_device_store_add()
188 g_signal_connect (device, "capability_added", in hal_device_store_add()
191 g_signal_emit (store, signals[STORE_CHANGED], 0, device, TRUE); in hal_device_store_add()
198 hal_device_store_remove (HalDeviceStore *store, HalDevice *device) in hal_device_store_remove() argument
200 if (!g_slist_find (store->devices, device)) in hal_device_store_remove()
203 store->devices = g_slist_remove (store->devices, device); in hal_device_store_remove()
205 g_signal_handlers_disconnect_by_func (device, in hal_device_store_remove()
208 g_signal_handlers_disconnect_by_func (device, in hal_device_store_remove()
212 g_signal_emit (store, signals[STORE_CHANGED], 0, device, FALSE); in hal_device_store_remove()
214 g_object_unref (device); in hal_device_store_remove()
257 HalDevice *device, in hal_device_store_print_foreach_fn() argument
261 hal_device_print (device); in hal_device_store_print_foreach_fn()
396 match_device_async (HalDeviceStore *store, HalDevice *device, in match_device_async() argument
411 if (strcmp (hal_device_property_get_string (device, key), in match_device_async()
415 info->callback (store, device, info->user_data); in match_device_async()
421 store_changed (HalDeviceStore *store, HalDevice *device, in store_changed() argument
429 if (!hal_device_has_property (device, info->key)) in store_changed()
432 if (strcmp (hal_device_property_get_string (device, info->key), in store_changed()
436 info->callback (store, device, info->user_data); in store_changed()
461 HalDevice *device; in hal_device_store_match_key_value_string_async() local
465 device = hal_device_store_match_key_value_string (store, key, value); in hal_device_store_match_key_value_string_async()
467 if (device != NULL || timeout == 0) { in hal_device_store_match_key_value_string_async()
468 callback (store, device, user_data); in hal_device_store_match_key_value_string_async()