Lines Matching refs:client_cb
258 struct client_callback *client_cb; in add_select_fd() local
266 DL_FOREACH(serv->client_callbacks, client_cb) in add_select_fd()
267 if (client_cb->select_fd == fd && !client_cb->deleted) in add_select_fd()
291 struct client_callback *client_cb; in rm_select_fd() local
297 DL_FOREACH(serv->client_callbacks, client_cb) in rm_select_fd()
298 if (client_cb->select_fd == fd) in rm_select_fd()
299 client_cb->deleted = 1; in rm_select_fd()
332 struct client_callback *client_cb; in cleanup_select_fds() local
338 DL_FOREACH(serv->client_callbacks, client_cb) in cleanup_select_fds()
339 if (client_cb->deleted) { in cleanup_select_fds()
340 DL_DELETE(serv->client_callbacks, client_cb); in cleanup_select_fds()
342 free(client_cb); in cleanup_select_fds()
447 struct client_callback *client_cb; in cras_server_run() local
565 DL_FOREACH(server_instance.client_callbacks, client_cb) { in cras_server_run()
566 if (client_cb->deleted) in cras_server_run()
568 pollfds[num_pollfds].fd = client_cb->select_fd; in cras_server_run()
570 client_cb->pollfd = &pollfds[num_pollfds]; in cras_server_run()
607 DL_FOREACH(server_instance.client_callbacks, client_cb) in cras_server_run()
608 if (!client_cb->deleted && in cras_server_run()
609 client_cb->pollfd && in cras_server_run()
610 (client_cb->pollfd->revents & POLLIN)) in cras_server_run()
611 client_cb->callback(client_cb->callback_data); in cras_server_run()