Lines Matching refs:store

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