Lines Matching defs:item
159 struct lws_attach_item *item;
166 item = lws_zalloc(sizeof(*item), __func__);
167 if (!item)
170 item->cb = cb;
171 item->opaque = opaque;
172 item->state = state;
174 lws_dll2_add_head(&item->list, &pt->attach_owner);
192 item = lws_container_of(d, lws_attach_item_t, list);
194 if (pt->context->mgr_system.state >= (int)item->state) {
195 *get = item;
222 struct lws_attach_item *item;
237 * we detach and get a pointer to the tail attach item. We
242 0, NULL, &item)) {
247 if (!item)
255 item->cb(pt->context, pt->tid, item->opaque);
257 /* it's done, destroy the item */
259 lws_free(item);