Lines Matching refs:link
157 DBusList *link; in _bus_service_find_owner_link() local
159 link = _dbus_list_get_first_link (&service->owners); in _bus_service_find_owner_link()
161 while (link != NULL) in _bus_service_find_owner_link()
165 bus_owner = (BusOwner *) link->data; in _bus_service_find_owner_link()
169 link = _dbus_list_get_next_link (&service->owners, link); in _bus_service_find_owner_link()
172 return link; in _bus_service_find_owner_link()
528 DBusList *link; in bus_registry_acquire_service() local
533 link = _bus_service_find_owner_link (service, connection); in bus_registry_acquire_service()
534 if (link != NULL) in bus_registry_acquire_service()
536 _dbus_list_unlink (&service->owners, link); in bus_registry_acquire_service()
537 temp_owner = (BusOwner *)link->data; in bus_registry_acquire_service()
539 _dbus_list_free_link (link); in bus_registry_acquire_service()
872 DBusList *link; in bus_service_add_owner() local
874 link = _dbus_list_get_first_link (&service->owners); in bus_service_add_owner()
875 _dbus_assert (link != NULL); in bus_service_add_owner()
877 _dbus_list_insert_after_link (&service->owners, link, bus_owner_link); in bus_service_add_owner()
910 DBusList *link; in restore_ownership() local
929 link = _dbus_list_get_first_link (&d->service->owners); in restore_ownership()
930 while (link != NULL) in restore_ownership()
932 if (link->data == d->before_owner) in restore_ownership()
935 link = _dbus_list_get_next_link (&d->service->owners, link); in restore_ownership()
938 _dbus_list_insert_before_link (&d->service->owners, link, d->owner_link); in restore_ownership()
979 DBusList *link; in add_restore_ownership_to_transaction() local
996 link = _dbus_list_get_first_link (&service->owners); in add_restore_ownership_to_transaction()
997 while (link != NULL) in add_restore_ownership_to_transaction()
999 if (link->data == owner) in add_restore_ownership_to_transaction()
1001 link = _dbus_list_get_next_link (&service->owners, link); in add_restore_ownership_to_transaction()
1003 if (link) in add_restore_ownership_to_transaction()
1004 d->before_owner = link->data; in add_restore_ownership_to_transaction()
1009 link = _dbus_list_get_next_link (&service->owners, link); in add_restore_ownership_to_transaction()
1060 DBusList *link; in bus_service_swap_owner() local
1063 link = _dbus_list_get_first_link (&service->owners); in bus_service_swap_owner()
1064 _dbus_assert (link != NULL); in bus_service_swap_owner()
1065 link = _dbus_list_get_next_link (&service->owners, link); in bus_service_swap_owner()
1066 _dbus_assert (link != NULL); in bus_service_swap_owner()
1068 new_owner = (BusOwner *)link->data; in bus_service_swap_owner()
1128 DBusList *link; in bus_service_remove_owner() local
1131 link = _bus_service_find_owner_link (service, connection); in bus_service_remove_owner()
1132 _dbus_list_unlink (&service->owners, link); in bus_service_remove_owner()
1133 temp_owner = (BusOwner *)link->data; in bus_service_remove_owner()
1135 _dbus_list_free_link (link); in bus_service_remove_owner()
1154 DBusList *link; in bus_service_remove_owner() local
1157 link = _dbus_list_get_first_link (&service->owners); in bus_service_remove_owner()
1158 _dbus_assert (link != NULL); in bus_service_remove_owner()
1159 link = _dbus_list_get_next_link (&service->owners, link); in bus_service_remove_owner()
1160 _dbus_assert (link != NULL); in bus_service_remove_owner()
1162 new_owner = (BusOwner *)link->data; in bus_service_remove_owner()
1248 DBusList *link; in bus_service_get_allow_replacement() local
1252 link = _dbus_list_get_first_link (&service->owners); in bus_service_get_allow_replacement()
1253 owner = (BusOwner *) link->data; in bus_service_get_allow_replacement()
1262 DBusList *link; in bus_service_has_owner() local
1264 link = _bus_service_find_owner_link (service, connection); in bus_service_has_owner()
1266 if (link == NULL) in bus_service_has_owner()
1277 DBusList *link; in bus_service_list_queued_owners() local
1281 link = _dbus_list_get_first_link (&service->owners); in bus_service_list_queued_owners()
1282 _dbus_assert (link != NULL); in bus_service_list_queued_owners()
1284 while (link != NULL) in bus_service_list_queued_owners()
1289 owner = (BusOwner *) link->data; in bus_service_list_queued_owners()
1295 link = _dbus_list_get_next_link (&service->owners, link); in bus_service_list_queued_owners()