Lines Matching defs:child
2119 * \brief Adds a child to a compound configuration node.
2121 * \param child Handle to the configuration node to be added.
2124 * This function makes the node \a child a child of the node \a parent.
2126 * The parent node then owns the child node, i.e., the child node gets
2129 * \a child must have an id.
2133 * <dt>-EINVAL<dd>\a child does not have an id.
2134 * <dt>-EINVAL<dd>\a child already has a parent.
2135 * <dt>-EEXIST<dd>\a parent already contains a child node with the same
2136 * id as \a child.
2142 int snd_config_add(snd_config_t *parent, snd_config_t *child)
2145 assert(parent && child);
2146 if (!child->id || child->parent)
2150 if (strcmp(child->id, n->id) == 0)
2153 child->parent = parent;
2154 list_add_tail(&child->list, &parent->u.compound.fields);
2159 * \brief Adds a child after another child configuration node.
2161 * \param child Handle to the configuration node to be added.
2164 * This function makes the node \a child a child of the parent of
2167 * The parent node then owns the child node, i.e., the child node gets
2170 * \a child must have an id.
2174 * <dt>-EINVAL<dd>\a child does not have an id.
2175 * <dt>-EINVAL<dd>\a child already has a parent.
2176 * <dt>-EEXIST<dd>\a parent already contains a child node with the same
2177 * id as \a child.
2180 int snd_config_add_after(snd_config_t *after, snd_config_t *child)
2184 assert(after && child);
2187 if (!child->id || child->parent)
2191 if (strcmp(child->id, n->id) == 0)
2194 child->parent = parent;
2195 list_insert(&child->list, &after->list, after->list.next);
2200 * \brief Adds a child before another child configuration node.
2202 * \param child Handle to the configuration node to be added.
2205 * This function makes the node \a child a child of the parent of
2208 * The parent node then owns the child node, i.e., the child node gets
2211 * \a child must have an id.
2215 * <dt>-EINVAL<dd>\a child does not have an id.
2216 * <dt>-EINVAL<dd>\a child already has a parent.
2217 * <dt>-EEXIST<dd>\a parent already contains a child node with the same
2218 * id as \a child.
2221 int snd_config_add_before(snd_config_t *before, snd_config_t *child)
2225 assert(before && child);
2228 if (!child->id || child->parent)
2232 if (strcmp(child->id, n->id) == 0)
2235 child->parent = parent;
2236 list_insert(&child->list, before->list.prev, &before->list);
2275 * When \a override is not set, the child compounds are traversed and merged.
2366 * If the node is a child node, it is removed from the tree before being
2396 snd_config_t *child = snd_config_iterator_entry(i);
2397 err = snd_config_delete(child);
2446 snd_config_t *child = snd_config_iterator_entry(i);
2447 err = snd_config_delete(child);
3596 * This function searches for a child node of \a config that is
3597 * identified by \a key, which contains either the id of a direct child
3620 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3643 * This functions searches for a child node of \a config like
3678 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3697 * This functions searches for a child node of \a config like
3711 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3735 * This function searches for a child node of \a config, allowing
3743 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3762 * This functions searches for a child node of \a config, allowing
3774 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3797 * This functions searches for a child node of \a config like
3804 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3830 * This function searches for a child node of \a config, allowing
3837 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3865 * This function searches for a child node of \a config, allowing
3873 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
3895 * This functions searches for a child node of \a config, allowing
3902 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is
4797 * \brief Returns an iterator pointing to a node's first child.
4799 * \return An iterator pointing to \a config's first child.
4820 * \param[in] iterator An iterator pointing to a child configuration node.
4844 * The return value can be understood as pointing past the last child of
5645 * If \a config has arguments (defined by a child with id \c \@args),
5680 * If \a config has arguments (defined by a child with id \c \@args),
5749 * This functions searches for a child node of \a config, allowing
5762 * <dt>-ENOENT<dd>\a config or one of its child nodes to be searched is