Lines Matching refs:client_cb
286 struct client_callback *client_cb; in add_select_fd() local
294 DL_FOREACH (serv->client_callbacks, client_cb) in add_select_fd()
295 if (client_cb->select_fd == fd && !client_cb->deleted) in add_select_fd()
320 struct client_callback *client_cb; in rm_select_fd() local
326 DL_FOREACH (serv->client_callbacks, client_cb) in rm_select_fd()
327 if (client_cb->select_fd == fd) in rm_select_fd()
328 client_cb->deleted = 1; in rm_select_fd()
360 struct client_callback *client_cb; in cleanup_select_fds() local
366 DL_FOREACH (serv->client_callbacks, client_cb) in cleanup_select_fds()
367 if (client_cb->deleted) { in cleanup_select_fds()
368 DL_DELETE(serv->client_callbacks, client_cb); in cleanup_select_fds()
370 free(client_cb); in cleanup_select_fds()
557 struct client_callback *client_cb; in cras_server_run() local
643 DL_FOREACH (server_instance.client_callbacks, client_cb) { in cras_server_run()
644 if (client_cb->deleted) in cras_server_run()
646 pollfds[num_pollfds].fd = client_cb->select_fd; in cras_server_run()
647 pollfds[num_pollfds].events = client_cb->events; in cras_server_run()
648 client_cb->pollfd = &pollfds[num_pollfds]; in cras_server_run()
691 DL_FOREACH (server_instance.client_callbacks, client_cb) in cras_server_run()
692 if (!client_cb->deleted && client_cb->pollfd && in cras_server_run()
693 (client_cb->pollfd->revents & client_cb->events)) in cras_server_run()
694 client_cb->callback(client_cb->callback_data, in cras_server_run()
695 client_cb->pollfd->revents); in cras_server_run()