Lines Matching refs:vhd
82 struct per_vhost_data__minimal *vhd =
93 vhd = lws_protocol_vh_priv_zalloc(lws_get_vhost(wsi),
96 vhd->context = lws_get_context(wsi);
97 vhd->protocol = lws_get_protocol(wsi);
98 vhd->vhost = lws_get_vhost(wsi);
100 vhd->ring = lws_ring_create(sizeof(struct msg), 8,
102 if (!vhd->ring)
107 lws_ring_destroy(vhd->ring);
111 pss->tail = lws_ring_get_oldest_tail(vhd->ring);
116 /* add subscribers to the list of live pss held in the vhd */
117 lws_ll_fwd_insert(pss, pss_list, vhd->pss_list);
123 pss, vhd->pss_list);
131 pmsg = lws_ring_get_element(vhd->ring, &pss->tail);
144 vhd->ring, /* lws_ring object */
148 vhd->pss_list, /* head of list of objects with tails */
154 if (lws_ring_get_element(vhd->ring, &pss->tail))
168 if (!vhd->pss_list)
171 n = (int)lws_ring_get_count_free_elements(vhd->ring);
186 if (!lws_ring_insert(vhd->ring, &amsg, 1)) {
197 ppss, vhd->pss_list) {