Lines Matching defs:buf
67 static char *tesc(const char *s, char *buf, size_t buf_len)
69 char *dst = buf;
91 return buf;
162 char buf[256];
163 ESC(value, buf);
164 if (!last && strlen(buf) < sizeof(buf) - 2)
165 strcat(buf, ",");
166 if (text_3rd_level(r, buf))
237 static char *jesc(const char *s, char *buf, size_t buf_len)
239 char *dst = buf;
258 return buf;
284 char buf[256];
286 printf(" %s: {", JESC(verb, buf));
289 printf(" \"Comment\": %s", JESC(comment, buf));
312 char buf[256];
314 printf(" %s: {", JESC(val, buf));
317 printf(" \"Comment\": %s", JESC(comment, buf));
367 char buf[256];
368 JESC(value, buf);
370 return json_3rd_level(r, buf);
403 char buf[256];
407 JESC(ident, buf);
408 err = json_3rd_level(r, buf);
411 JESC(value, buf);
412 printf(": %s", buf);
455 char buf[256];
458 snprintf(buf, sizeof(buf), "%s/%s/%s", list, device, verb);
459 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list);
488 char buf[256];
491 snprintf(buf, sizeof(buf), "_identifiers/%s/%s", device, verb);
492 num = snd_use_case_get_list(uc_mgr, buf, &list);
506 snprintf(buf, sizeof(buf), "%s/%s/%s", list[j], device, verb);
507 err = snd_use_case_get(uc_mgr, buf, &value);
554 char buf[256];
570 snprintf(buf, sizeof(buf), "_devices/%s", verb);
571 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list);
596 snprintf(buf, sizeof(buf), "_modifiers/%s", verb);
597 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list);