Lines Matching defs:buf
55 uint8_t *buf;
57 buf = lws_malloc(max, __func__); /* length should be computed */
64 n = lws_struct_json_serialize(js, buf, max, &w);
69 lwsl_notice("%s: setting %s\n", __func__, buf);
71 if (!lws_settings_plat_set(nds->si, "netdev.creds", buf, w))
77 lws_free(buf);
88 uint8_t *buf;
98 buf = lws_malloc(l, __func__);
99 if (!buf)
102 if (lws_settings_plat_get(nds->si, "netdev.creds", buf, &l)) {
112 m = lejp_parse(&ctx, (uint8_t *)buf, l);
113 lws_free(buf);
130 lws_free(buf);
176 void *buf, size_t len)
187 iface = lws_json_simple_find(buf, len, "\"if\":", &al);
204 !lws_json_simple_strcmp(buf, len, "\"type\":",
206 const char *ev = lws_json_simple_find(buf, len,
234 return ni->ops->event(ni, timestamp, buf, len);