Searched refs:alert_cb (Results 1 – 1 of 1) sorted by relevance
58 struct cras_alert_cb_list *alert_cb; in cras_alert_add_callback() local63 DL_FOREACH (alert->callbacks, alert_cb) in cras_alert_add_callback()64 if (alert_cb->callback == cb && alert_cb->arg == arg) in cras_alert_add_callback()67 alert_cb = calloc(1, sizeof(*alert_cb)); in cras_alert_add_callback()68 if (alert_cb == NULL) in cras_alert_add_callback()70 alert_cb->callback = cb; in cras_alert_add_callback()71 alert_cb->arg = arg; in cras_alert_add_callback()72 DL_APPEND(alert->callbacks, alert_cb); in cras_alert_add_callback()79 struct cras_alert_cb_list *alert_cb; in cras_alert_rm_callback() local81 DL_FOREACH (alert->callbacks, alert_cb) in cras_alert_rm_callback()[all …]