Lines Matching refs:expbuf
55 char* expbuf;
86 expbuf = lws_malloc(used_out + 1, __func__);
87 if (!expbuf) {
95 lws_strexp_init(&exp, (void*)h, lws_ss_exp_cb_metadata, expbuf,
103 lws_free(expbuf);
106 lwsl_notice("%s, expbuf - %s\n", __func__, expbuf);
107 h->u.mqtt.sub_top.name = expbuf;
124 h->u.mqtt.sub_info.topic[0].name = lws_strdup(expbuf);
129 lws_free(expbuf);
133 lws_free(expbuf);
153 char *expbuf;
172 expbuf = lws_malloc(used_out + 1, __func__);
173 if (!expbuf) {
179 lws_strexp_init(&exp, (void *)h, lws_ss_exp_cb_metadata, expbuf,
184 lws_free(expbuf);
187 lwsl_notice("%s, expbuf - %s\n", __func__, expbuf);
188 mqpp.topic = (char *)expbuf;
209 lws_free(expbuf);
212 lws_free(expbuf);
305 char *expbuf = NULL;
326 expbuf = lws_malloc(used_out + 1 + post_len, __func__);
327 if (!expbuf) {
333 lws_strexp_init(&exp, (void*)h, lws_ss_exp_cb_metadata, expbuf,
339 lws_free(expbuf);
344 strcat(expbuf, post);
346 return expbuf;
355 char *expbuf = NULL;
362 expbuf = expand_metadata(h, topic, NULL, LWS_MQTT_MAX_AWSIOT_TOPICLEN);
363 if (!expbuf) {
370 match[i], expbuf) == LMMTR_TOPIC_MATCH) {
375 lws_free(expbuf);
430 char* expbuf = NULL;
450 expbuf = expand_metadata(h, h->policy->u.mqtt.topic, suffixes[i],
452 if (!expbuf) {
458 h->u.mqtt.shadow_sub.topic[i].name = expbuf;