Lines Matching defs:key1

349 static int conf_get_by_keys(snd_config_t *root, const char *key1,
354 if (key1) {
355 ret = snd_config_search(root, key1, &root);
366 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2)
372 ret = conf_get_by_keys(root, key1, key2, &root);
376 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret));
380 int conf_get_count(snd_config_t *root, const char *key1, const char *key2)
388 ret = conf_get_by_keys(root, key1, key2, &cfg);
392 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret));
394 ksft_exit_fail_msg("key '%s'.'%s' is not a compound\n", key1, key2);
401 const char *conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def)
409 ret = conf_get_by_keys(root, key1, key2, &cfg);
413 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret));
415 ksft_exit_fail_msg("key '%s'.'%s' is not a string\n", key1, key2);
419 long conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def)
427 ret = conf_get_by_keys(root, key1, key2, &cfg);
431 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret));
433 ksft_exit_fail_msg("key '%s'.'%s' is not an integer\n", key1, key2);
437 int conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def)
444 ret = conf_get_by_keys(root, key1, key2, &cfg);
448 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret));
451 ksft_exit_fail_msg("key '%s'.'%s' is not an bool\n", key1, key2);
455 void conf_get_string_array(snd_config_t *root, const char *key1, const char *key2,
462 ret = conf_get_by_keys(root, key1, key2, &cfg);
466 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret));