Home | History | Annotate | Download | only in src

Lines Matching refs:root

367 If the compound func.\<function_name\> is defined in the root node, then the
2294 * \param config Handle to the (root) configuration node.
2335 #define SND_CONFIG_SEARCHA(root, config, key, result, fcn, extra_code) \
2345 err = fcn(root, root, p, &config); \
2384 #define SND_CONFIG_SEARCHVA(root, config, result, fcn) \
2395 err = fcn(root, config, k, &n); \
2454 * \param config Handle to the root of the configuration (sub)tree to search.
2467 * \param root Handle to the root configuration node containing alias
2469 * \param config Handle to the root of the configuration (sub)tree to search.
2475 int snd_config_searcha(snd_config_t *root, snd_config_t *config, const char *key, snd_config_t **result)
2477 SND_CONFIG_SEARCHA(root, config, key, result, snd_config_searcha, );
2482 * \param config Handle to the root of the configuration (sub)tree to search.
2495 * \param root Handle to the root configuration node containing alias
2497 * \param config Handle to the root of the configuration (sub)tree to search.
2503 int snd_config_searchva(snd_config_t *root, snd_config_t *config, snd_config_t **result, ...)
2505 SND_CONFIG_SEARCHVA(root, config, result, snd_config_searcha);
2510 * \param config Handle to the root of the configuration (sub)tree to search.
2533 * \param config Handle to the root of the configuration (sub)tree to search.
2550 * \param root Handle to the root configuration node containing alias
2552 * \param config Handle to the root of the configuration (sub)tree to search.
2558 int snd_config_searcha_hooks(snd_config_t *root, snd_config_t *config, const char *key, snd_config_t **result)
2560 SND_CONFIG_SEARCHA(root, config, key, result,
2570 * \param root Handle to the root configuration node containing alias
2572 * \param config Handle to the root of the configuration (sub)tree to search.
2578 int snd_config_searchva_hooks(snd_config_t *root, snd_config_t *config,
2581 SND_CONFIG_SEARCHVA(root, config, result, snd_config_searcha_hooks);
2586 * \param config Handle to the root of the configuration (sub)tree to search.
2634 static int snd_config_hooks_call(snd_config_t *root, snd_config_t *config, snd_config_t *private_data)
2641 int (*func)(snd_config_t *root, snd_config_t *config, snd_config_t **dst, snd_config_t *private_data) = NULL;
2654 err = snd_config_search_definition(root, "hook_func", str, &func_conf);
2712 err = func(root, config, &nroot, private_data);
2717 err = snd_config_substitute(root, nroot);
2763 * \param root Handle to the root configuration node.
2770 int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t **dst, snd_config_t *private_data)
2777 assert(root && dst);
2794 if ((err = snd_config_expand(n, root, NULL, private_data, &n)) < 0) {
2847 err = snd_config_load(root, in);
2877 * \param root Handle to the root configuration node.
2884 int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config, snd_config_t **dst, snd_config_t *private_data ATTRIBUTE_UNUSED)
2899 if (snd_config_search(root, fdriver, &n) >= 0) {
2908 if (snd_config_search(root, driver, &n) >= 0)
2916 err = snd_config_hook_load(root, config, &n, private_data);
3216 snd_config_t *root,
3223 snd_config_t *root,
3233 err = callback(src, root, dst, SND_CONFIG_WALK_PASS_PRE, private_data);
3240 err = snd_config_walk(s, root, (dst && *dst) ? &d : NULL,
3250 err = callback(src, root, dst, SND_CONFIG_WALK_PASS_POST, private_data);
3258 err = callback(src, root, dst, SND_CONFIG_WALK_PASS_LEAF, private_data);
3265 snd_config_t *root ATTRIBUTE_UNUSED,
3342 snd_config_t *root ATTRIBUTE_UNUSED,
3428 snd_config_t *root,
3438 int (*func)(snd_config_t **dst, snd_config_t *root,
3450 err = snd_config_search_definition(root, "func", str, &func_conf);
3511 err = func(&eval, root, src, private_data);
3535 * \param root Handle to the root of the source configuration.
3543 int snd_config_evaluate(snd_config_t *config, snd_config_t *root,
3548 return snd_config_walk(config, root, result, _snd_config_evaluate, private_data);
3937 * \param root Handle to the root configuration node.
3944 int snd_config_expand(snd_config_t *config, snd_config_t *root, const char *args,
3972 err = snd_config_evaluate(subs, root, private_data, NULL);
3977 err = snd_config_walk(config, root, &res, _snd_config_expand, subs);
3983 err = snd_config_evaluate(res, root, private_data, NULL);
4011 * starts from the root given by \p config.
4031 * and the key starts from root given by the 'config' parameter