Lines Matching refs:sub_info
37 if (h->u.mqtt.sub_info.topic) {
38 for (i = 0; i < h->u.mqtt.sub_info.num_topics; i++) {
39 if (h->u.mqtt.sub_info.topic[i].name) {
40 lws_free((void*)h->u.mqtt.sub_info.topic[i].name);
41 h->u.mqtt.sub_info.topic[i].name = NULL;
44 lws_free(h->u.mqtt.sub_info.topic);
45 h->u.mqtt.sub_info.topic = NULL;
119 memset(&h->u.mqtt.sub_info, 0, sizeof(h->u.mqtt.sub_info));
120 h->u.mqtt.sub_info.num_topics = 1;
121 h->u.mqtt.sub_info.topic = &h->u.mqtt.sub_top;
122 h->u.mqtt.sub_info.topic =
124 h->u.mqtt.sub_info.topic[0].name = lws_strdup(expbuf);
125 h->u.mqtt.sub_info.topic[0].qos = h->policy->u.mqtt.qos;
127 if (lws_mqtt_client_send_subcribe(wsi, &h->u.mqtt.sub_info)) {
837 if (h->u.mqtt.sub_info.num_topics) {
838 lmsp.num_topics = h->u.mqtt.sub_info.num_topics;
839 lmsp.topic = h->u.mqtt.sub_info.topic;