Lines Matching refs:parent
461 snd_config_t *parent;
1151 snd_config_type_t type, snd_config_t *parent)
1155 assert(parent->type == SND_CONFIG_TYPE_COMPOUND);
1159 n->parent = parent;
1160 list_add_tail(&n->list, &parent->u.compound.fields);
1184 static int parse_value(snd_config_t **_n, snd_config_t *parent, input_t *input, char **id, int skip)
1212 err = _snd_config_make_add(&n, id, SND_CONFIG_TYPE_REAL, parent);
1229 err = _snd_config_make_add(&n, id, SND_CONFIG_TYPE_INTEGER, parent);
1231 err = _snd_config_make_add(&n, id, SND_CONFIG_TYPE_INTEGER64, parent);
1250 err = _snd_config_make_add(&n, id, SND_CONFIG_TYPE_STRING, parent);
1260 static int parse_defs(snd_config_t *parent, input_t *input, int skip, int override);
1263 static int parse_array_def(snd_config_t *parent, input_t *input, int *idx, int skip, int override)
1275 if (_snd_config_search(parent, static_id, -1, &g) == 0) {
1308 err = _snd_config_make_add(&n, &id, SND_CONFIG_TYPE_COMPOUND, parent);
1335 err = parse_value(&n, parent, input, &id, skip);
1346 static int parse_array_defs(snd_config_t *parent, input_t *input, int skip, int override)
1356 err = parse_array_def(parent, input, &idx, skip, override);
1364 static int parse_def(snd_config_t *parent, input_t *input, int skip, int override)
1402 if (_snd_config_search(parent, id, -1, &n) == 0) {
1414 parent = n;
1425 err = _snd_config_make_add(&n, &id, SND_CONFIG_TYPE_COMPOUND, parent);
1429 parent = n;
1437 if (_snd_config_search(parent, id, -1, &n) == 0) {
1467 err = _snd_config_make_add(&n, &id, SND_CONFIG_TYPE_COMPOUND, parent);
1490 err = parse_value(&n, parent, input, &id, skip);
1508 static int parse_defs(snd_config_t *parent, input_t *input, int skip, int override)
1518 err = parse_def(parent, input, skip, override);
1666 assert(n->parent);
1667 id_print(n->parent, out, joins - 1);
1743 n->parent = dst;
1904 * <dt>-EINVAL<dd>The id of a node with a parent cannot be set to \c NULL.
1914 if (config->parent) {
1915 snd_config_for_each(i, next, config->parent) {
1925 if (config->parent)
1939 * The returned node is an empty compound node without a parent and
2120 * \param parent Handle to a compound configuration node.
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
2127 * deleted together with its parent.
2134 * <dt>-EINVAL<dd>\a child already has a parent.
2135 * <dt>-EEXIST<dd>\a parent already contains a child node with the same
2142 int snd_config_add(snd_config_t *parent, snd_config_t *child)
2145 assert(parent && child);
2146 if (!child->id || child->parent)
2148 snd_config_for_each(i, next, parent) {
2153 child->parent = parent;
2154 list_add_tail(&child->list, &parent->u.compound.fields);
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
2168 * deleted together with its parent.
2175 * <dt>-EINVAL<dd>\a child already has a parent.
2176 * <dt>-EEXIST<dd>\a parent already contains a child node with the same
2183 snd_config_t *parent;
2185 parent = after->parent;
2186 assert(parent);
2187 if (!child->id || child->parent)
2189 snd_config_for_each(i, next, parent) {
2194 child->parent = parent;
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
2209 * deleted together with its parent.
2216 * <dt>-EINVAL<dd>\a child already has a parent.
2217 * <dt>-EEXIST<dd>\a parent already contains a child node with the same
2224 snd_config_t *parent;
2226 parent = before->parent;
2227 assert(parent);
2228 if (!child->id || child->parent)
2230 snd_config_for_each(i, next, parent) {
2235 child->parent = parent;
2258 sn->parent = dst;
2329 sn->parent = dst;
2343 * has a parent, then \a config is removed from the list of the parent's
2353 if (config->parent)
2355 config->parent = NULL;
2410 if (config->parent)
4824 * of #snd_config_iterator_end on the node's parent.
4877 /* Return 1 if node needs to be attached to parent */