Exemplo n.º 1
0
void
soap_encode_args(htsbuf_queue_t *xml, htsmsg_t *args)
{
  htsmsg_field_t *f;

  HTSMSG_FOREACH(f, args)
    soap_encode_arg(xml, f);
}
Exemplo n.º 2
0
static int
count_list(htsmsg_t *m, const char *fname)
{
  htsmsg_t *l = htsmsg_get_list(m, fname);
  if(l == NULL)
    return 0;
  htsmsg_field_t *f;
  int cnt = 0;
  HTSMSG_FOREACH(f, l)
    cnt++;
  return cnt;
}