Lines Matching defs:key
175 const char *key;
184 while ((key = pa_proplist_iterate(first->plist, &state))) {
187 value_one = pa_proplist_gets(first->plist, key);
188 value_two = pa_proplist_gets(second->plist, key);
239 pa_prop_type_t pa_format_info_get_prop_type(const pa_format_info *f, const char *key) {
246 pa_assert(key);
248 str = pa_proplist_gets(f->plist, key);
309 int pa_format_info_get_prop_int(const pa_format_info *f, const char *key, int *v) {
314 pa_assert(key);
317 str = pa_proplist_gets(f->plist, key);
323 pa_log_debug("Failed to parse format info property '%s'.", key);
328 pa_log_debug("Format info property '%s' type is not int.", key);
339 int pa_format_info_get_prop_int_range(const pa_format_info *f, const char *key, int *min, int *max) {
346 pa_assert(key);
350 str = pa_proplist_gets(f->plist, key);
356 pa_log_debug("Failed to parse format info property '%s'.", key);
379 pa_log_debug("Format info property '%s' is not a valid int range.", key);
385 int pa_format_info_get_prop_int_array(const pa_format_info *f, const char *key, int **values, int *n_values) {
392 pa_assert(key);
396 str = pa_proplist_gets(f->plist, key);
402 pa_log_debug("Failed to parse format info property '%s'.", key);
426 pa_log_debug("Format info property '%s' is not a valid int array.", key);
432 int pa_format_info_get_prop_string(const pa_format_info *f, const char *key, char **v) {
437 pa_assert(key);
440 str = pa_proplist_gets(f->plist, key);
446 pa_log_debug("Failed to parse format info property '%s'.", key);
451 pa_log_debug("Format info property '%s' type is not string.", key);
462 int pa_format_info_get_prop_string_array(const pa_format_info *f, const char *key, char ***values, int *n_values) {
469 pa_assert(key);
473 str = pa_proplist_gets(f->plist, key);
479 pa_log_debug("Failed to parse format info property '%s'.", key);
503 pa_log_debug("Format info property '%s' is not a valid string array.", key);
627 void pa_format_info_set_prop_int(pa_format_info *f, const char *key, int value) {
629 pa_assert(key);
631 pa_proplist_setf(f->plist, key, "%d", value);
634 void pa_format_info_set_prop_int_array(pa_format_info *f, const char *key, const int *values, int n_values) {
640 pa_assert(key);
653 pa_proplist_sets(f->plist, key, str);
657 void pa_format_info_set_prop_int_range(pa_format_info *f, const char *key, int min, int max) {
659 pa_assert(key);
661 pa_proplist_setf(f->plist, key, "{ \"" PA_JSON_MIN_KEY "\": %d, \"" PA_JSON_MAX_KEY "\": %d }",
665 void pa_format_info_set_prop_string(pa_format_info *f, const char *key, const char *value) {
667 pa_assert(key);
669 pa_proplist_setf(f->plist, key, "\"%s\"", value);
672 void pa_format_info_set_prop_string_array(pa_format_info *f, const char *key, const char **values, int n_values) {
678 pa_assert(key);
690 pa_proplist_sets(f->plist, key, str);