Lines Matching refs:store
52 HalDeviceStore *store = HAL_DEVICE_STORE (obj); in hal_device_store_finalize() local
54 g_slist_foreach (store->devices, (GFunc) g_object_unref, NULL); in hal_device_store_finalize()
141 HalDeviceStore *store; in hal_device_store_new() local
143 store = g_object_new (HAL_TYPE_DEVICE_STORE, NULL, NULL); in hal_device_store_new()
145 return store; in hal_device_store_new()
155 HalDeviceStore *store = HAL_DEVICE_STORE (data); in emit_device_property_changed() local
157 g_signal_emit (store, signals[DEVICE_PROPERTY_CHANGED], 0, in emit_device_property_changed()
166 HalDeviceStore *store = HAL_DEVICE_STORE (data); in emit_device_capability_added() local
168 g_signal_emit (store, signals[DEVICE_CAPABILITY_ADDED], 0, in emit_device_capability_added()
173 hal_device_store_add (HalDeviceStore *store, HalDevice *device) in hal_device_store_add() argument
183 store->devices = g_slist_prepend (store->devices, in hal_device_store_add()
187 G_CALLBACK (emit_device_property_changed), store); in hal_device_store_add()
189 G_CALLBACK (emit_device_capability_added), store); 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()
207 store); in hal_device_store_remove()
210 store); in hal_device_store_remove()
212 g_signal_emit (store, signals[STORE_CHANGED], 0, device, FALSE); in hal_device_store_remove()
220 hal_device_store_find (HalDeviceStore *store, const char *udi) in hal_device_store_find() argument
224 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_find()
235 hal_device_store_foreach (HalDeviceStore *store, in hal_device_store_foreach() argument
241 g_return_if_fail (store != NULL); in hal_device_store_foreach()
244 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_foreach()
248 cont = callback (store, d, user_data); in hal_device_store_foreach()
256 hal_device_store_print_foreach_fn (HalDeviceStore *store, in hal_device_store_print_foreach_fn() argument
267 hal_device_store_print (HalDeviceStore *store) in hal_device_store_print() argument
271 g_slist_length (store->devices)); in hal_device_store_print()
273 hal_device_store_foreach (store, in hal_device_store_print()
280 hal_device_store_match_key_value_string (HalDeviceStore *store, in hal_device_store_match_key_value_string() argument
286 g_return_val_if_fail (store != NULL, NULL); in hal_device_store_match_key_value_string()
290 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_match_key_value_string()
310 hal_device_store_match_key_value_int (HalDeviceStore *store, in hal_device_store_match_key_value_int() argument
316 g_return_val_if_fail (store != NULL, NULL); in hal_device_store_match_key_value_int()
319 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_match_key_value_int()
338 hal_device_store_match_multiple_key_value_string (HalDeviceStore *store, in hal_device_store_match_multiple_key_value_string() argument
345 g_return_val_if_fail (store != NULL, NULL); in hal_device_store_match_multiple_key_value_string()
349 for (iter = store->devices; iter != NULL; iter = iter->next) { in hal_device_store_match_multiple_key_value_string()
369 HalDeviceStore *store; member
383 g_object_unref (info->store); in destroy_async_match_info()
388 g_signal_handler_disconnect (info->store, info->prop_signal_id); in destroy_async_match_info()
389 g_signal_handler_disconnect (info->store, info->store_signal_id); in destroy_async_match_info()
396 match_device_async (HalDeviceStore *store, HalDevice *device, in match_device_async() argument
415 info->callback (store, device, info->user_data); in match_device_async()
421 store_changed (HalDeviceStore *store, HalDevice *device, in store_changed() argument
436 info->callback (store, device, info->user_data); in store_changed()
446 info->callback (info->store, NULL, info->user_data); in match_device_async_timeout()
454 hal_device_store_match_key_value_string_async (HalDeviceStore *store, in hal_device_store_match_key_value_string_async() argument
465 device = hal_device_store_match_key_value_string (store, key, value); in hal_device_store_match_key_value_string_async()
468 callback (store, device, user_data); in hal_device_store_match_key_value_string_async()
475 info->store = g_object_ref (store); in hal_device_store_match_key_value_string_async()
481 info->prop_signal_id = g_signal_connect (store, in hal_device_store_match_key_value_string_async()
485 info->store_signal_id = g_signal_connect (store, in hal_device_store_match_key_value_string_async()