Lines Matching defs:out
1525 static void string_print(char *str, int id, snd_output_t *out)
1530 snd_output_puts(out, "''");
1566 snd_output_puts(out, str);
1570 snd_output_putc(out, q);
1577 snd_output_putc(out, '\\');
1578 snd_output_putc(out, 'n');
1581 snd_output_putc(out, '\\');
1582 snd_output_putc(out, 't');
1585 snd_output_putc(out, '\\');
1586 snd_output_putc(out, 'v');
1589 snd_output_putc(out, '\\');
1590 snd_output_putc(out, 'b');
1593 snd_output_putc(out, '\\');
1594 snd_output_putc(out, 'r');
1597 snd_output_putc(out, '\\');
1598 snd_output_putc(out, 'f');
1602 snd_output_putc(out, '\\');
1603 snd_output_putc(out, c);
1606 snd_output_putc(out, c);
1608 snd_output_printf(out, "\\%04o", c);
1614 snd_output_putc(out, q);
1617 static void level_print(snd_output_t *out, unsigned int level)
1622 snd_output_puts(out, a);
1625 static int _snd_config_save_children(snd_config_t *config, snd_output_t *out,
1629 int _snd_config_save_node_value(snd_config_t *n, snd_output_t *out,
1635 snd_output_printf(out, "%ld", n->u.integer);
1638 snd_output_printf(out, "%lld", n->u.integer64);
1641 snd_output_printf(out, "%-16g", n->u.real);
1644 string_print(n->u.string, 0, out);
1651 snd_output_putc(out, array ? '[' : '{');
1652 snd_output_putc(out, '\n');
1653 err = _snd_config_save_children(n, out, level + 1, 0, array);
1656 level_print(out, level);
1657 snd_output_putc(out, array ? ']' : '}');
1663 static void id_print(snd_config_t *n, snd_output_t *out, unsigned int joins)
1667 id_print(n->parent, out, joins - 1);
1668 snd_output_putc(out, '.');
1670 string_print(n->id, 1, out);
1673 static int _snd_config_save_children(snd_config_t *config, snd_output_t *out,
1679 assert(config && out);
1684 err = _snd_config_save_children(n, out, level, joins + 1, 0);
1689 level_print(out, level);
1691 id_print(n, out, joins);
1692 snd_output_putc(out, ' ');
1694 snd_output_putc(out, '=');
1697 err = _snd_config_save_node_value(n, out, level);
1701 snd_output_putc(out, ';');
1703 snd_output_putc(out, '\n');
1761 * \param[out] type The node type corresponding to \a ascii.
1873 * \param[out] id The function puts the pointer to the id string at the
1936 * \param[out] config Handle to the new node.
2062 * \param[out] config The function puts the handle to the configuration
2267 * \param[out] dst Config handle for the merged contents
2457 * \param[out] config The function puts the handle to the new node at
2490 * \param[out] config The function puts the handle to the new node at
2515 * \param[out] config The function puts the handle to the new node at
2540 * \param[out] config The function puts the handle to the new node at
2562 * \param[out] config The function puts the handle to the new node at
2587 * \param[out] config The function puts the handle to the new node at
2609 * \param[out] config The function puts the handle to the new node at
2658 * \param[out] config The function puts the handle to the new or
2755 * \param[out] config The function puts the handle to the new node at
2785 * \param[out] config The function puts the handle to the new node at
2815 * \param[out] config The function puts the handle to the new node at
2842 * \param[out] config The function puts the handle to the new node at
2882 * \param[out] config The function puts the handle to the new node at
2934 * \param[out] config The function puts the handle to the new node at
3156 * \param[out] ptr The node's value.
3179 * \param[out] ptr The node's value.
3202 * \param[out] ptr The node's value.
3222 * \param[out] ptr The node's value.
3250 * \param[out] ptr The function puts the node's value at the address
3280 * \param[out] ptr The function puts the node's value at the address
3301 * \param[out] ascii The function puts the pointer to the returned
3411 * \param out Output handle.
3415 * the output \a out.
3426 int snd_config_save(snd_config_t *config, snd_output_t *out)
3428 assert(config && out);
3431 return _snd_config_save_children(config, out, 0, 0, array);
3433 return _snd_config_save_node_value(config, out, 0);
3591 * \param[out] result When \a result != \c NULL, the function puts the
3638 * \param[out] result When \a result != \c NULL, the function puts the
3690 * \param[out] result When \a result != \c NULL, the function puts the
3728 * \param[out] result When \a result != \c NULL, the function puts the
3757 * \param[out] result When \a result != \c NULL, the function puts the
3790 * \param[in,out] config Handle to the root of the configuration
3793 * \param[out] result The function puts the handle to the node found at
3823 * \param[in,out] config Handle to the root of the configuration
3826 * \param[out] result The function puts the handle to the node found at
3857 * \param[in,out] config Handle to the root of the configuration
3859 * \param[out] result The function puts the handle to the node found at
3891 * \param[out] result The function puts the handle to the node found at
4252 * \param[out] dst The function puts the handle to the configuration
4395 * \param[out] dst The function puts the handle to the configuration
4489 * \param[in,out] _top Address of the handle to the top-level node.
4490 * \param[in,out] _update Address of a pointer to private update information.
4998 * \param[out] dst The function puts the handle to the new configuration
5220 * \param[in,out] config Handle to the source configuration node.
5640 * \param[out] result The function puts the handle to the result
5675 * \param[out] result The function puts the handle to the result
5745 * \param[out] result The function puts the handle to the expanded found