Lines Matching defs:context
34 lws_plat_context_early_destroy(struct lws_context *context)
37 mbedtls_ctr_drbg_free(&context->mcdc);
38 mbedtls_entropy_free(&context->mec);
43 lws_plat_context_late_destroy(struct lws_context *context)
46 if (context->plugin_list)
47 lws_plat_plugins_destroy(context);
50 if (context->lws_lookup)
51 lws_free(context->lws_lookup);
73 lws_plat_init(struct lws_context *context,
80 mbedtls_entropy_init(&context->mec);
81 mbedtls_ctr_drbg_init(&context->mcdc);
83 n = mbedtls_ctr_drbg_seed(&context->mcdc, mbedtls_entropy_func,
84 &context->mec, NULL, 0);
93 /* context has the global fd lookup array */
94 context->lws_lookup = lws_zalloc(sizeof(struct lws *) *
95 context->max_fds, "esp32 lws_lookup");
96 if (context->lws_lookup == NULL) {
98 context->max_fds);
103 (unsigned long)(sizeof(struct lws *) * context->max_fds));
107 lws_plat_plugins_init(context, info->plugin_dirs);
111 context->set = lws_h2_defaults_esp32;