Lines Matching defs:context
33 lws_system_get_ops(struct lws_context *context)
35 return context->system_ops;
137 lws_system_get_blob(struct lws_context *context, lws_system_blob_item_t type,
141 idx >= (int)LWS_ARRAY_SIZE(context->system_blobs))
144 return &context->system_blobs[type + (unsigned int)idx];
154 __lws_system_attach(struct lws_context *context, int tsi, lws_attach_cb_t cb,
158 struct lws_context_per_thread *pt = &context->pt[tsi];
176 lws_cancel_service(context);
194 if (pt->context->mgr_system.state >= (int)item->state) {
229 assert(pt->context->system_ops->attach);
230 if (!pt->context->system_ops->attach) {
241 if (pt->context->system_ops->attach(pt->context, pt->tid, NULL,
255 item->cb(pt->context, pt->tid, item->opaque);