int snd_config_get_pointer(const snd_config_t *config, const void **value);
int snd_config_test_id(const snd_config_t *config, const char *id);
-const snd_config_iterator_t snd_config_iterator_first(const snd_config_t *node);
-const snd_config_iterator_t snd_config_iterator_next(const snd_config_iterator_t iterator);
-const snd_config_iterator_t snd_config_iterator_end(const snd_config_t *node);
+snd_config_iterator_t snd_config_iterator_first(const snd_config_t *node);
+snd_config_iterator_t snd_config_iterator_next(const snd_config_iterator_t iterator);
+snd_config_iterator_t snd_config_iterator_end(const snd_config_t *node);
snd_config_t *snd_config_iterator_entry(const snd_config_iterator_t iterator);
/** Helper for compound config node leaves traversal
* \param node Config node handle
* \return iterator value for first leaf
*/
-const snd_config_iterator_t snd_config_iterator_first(const snd_config_t *node)
+snd_config_iterator_t snd_config_iterator_first(const snd_config_t *node)
{
assert(node->type == SND_CONFIG_TYPE_COMPOUND);
return node->u.compound.fields.next;
* \param iterator Config node iterator
* \return iterator value for next leaf
*/
-const snd_config_iterator_t snd_config_iterator_next(const snd_config_iterator_t iterator)
+snd_config_iterator_t snd_config_iterator_next(const snd_config_iterator_t iterator)
{
return iterator->next;
}
* \param node Config node handle
* \return iterator value for end
*/
-const snd_config_iterator_t snd_config_iterator_end(const snd_config_t *node)
+snd_config_iterator_t snd_config_iterator_end(const snd_config_t *node)
{
assert(node->type == SND_CONFIG_TYPE_COMPOUND);
return (const snd_config_iterator_t)&node->u.compound.fields;