Lines Matching refs:vhd
68 struct per_vhost_data__minimal *vhd = in callback_minimal() local
76 vhd = lws_protocol_vh_priv_zalloc(lws_get_vhost(wsi), in callback_minimal()
79 vhd->context = lws_get_context(wsi); in callback_minimal()
80 vhd->protocol = lws_get_protocol(wsi); in callback_minimal()
81 vhd->vhost = lws_get_vhost(wsi); in callback_minimal()
86 pss->pss_list = vhd->pss_list; in callback_minimal()
87 vhd->pss_list = pss; in callback_minimal()
89 pss->last = vhd->current; in callback_minimal()
95 ppss, vhd->pss_list) { in callback_minimal()
104 if (!vhd->amsg.payload) in callback_minimal()
107 if (pss->last == vhd->current) in callback_minimal()
111 m = lws_write(wsi, ((unsigned char *)vhd->amsg.payload) + in callback_minimal()
112 LWS_PRE, vhd->amsg.len, LWS_WRITE_TEXT); in callback_minimal()
113 if (m < (int)vhd->amsg.len) { in callback_minimal()
118 pss->last = vhd->current; in callback_minimal()
122 if (vhd->amsg.payload) in callback_minimal()
123 __minimal_destroy_message(&vhd->amsg); in callback_minimal()
125 vhd->amsg.len = len; in callback_minimal()
127 vhd->amsg.payload = malloc(LWS_PRE + len); in callback_minimal()
128 if (!vhd->amsg.payload) { in callback_minimal()
133 memcpy((char *)vhd->amsg.payload + LWS_PRE, in, len); in callback_minimal()
134 vhd->current++; in callback_minimal()
141 ppss, vhd->pss_list) { in callback_minimal()