void wlc_eventq_enq(wlc_eventq_t *eq, wlc_event_t *e) { ASSERT(e->next == NULL); e->next = NULL; if (eq->tail) { eq->tail->next = e; eq->tail = e; } else eq->head = eq->tail = e; if (!eq->tpending) { eq->tpending = true; /* Use a zero-delay timer to trigger * delayed processing of the event. */ wl_add_timer(eq->wl, eq->timer, 0, 0); } }
void wlapi_add_timer(wlc_phy_shim_info_t *physhim, struct wlapi_timer *t, uint ms, int periodic) { wl_add_timer(physhim->wl, (struct wl_timer *)t, ms, periodic); }