Lines Matching refs:profiles
56 pa_hashmap *profiles; member
275 const char **profiles; in get_profiles() local
283 *n = pa_hashmap_size(c->profiles); in get_profiles()
288 profiles = pa_xnew(const char *, *n); in get_profiles()
290 PA_HASHMAP_FOREACH(profile, c->profiles, state) in get_profiles()
291 profiles[i++] = pa_dbusiface_card_profile_get_path(profile); in get_profiles()
293 return profiles; in get_profiles()
298 const char **profiles; in handle_get_profiles() local
305 profiles = get_profiles(c, &n_profiles); in handle_get_profiles()
307 pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, profiles, n_profiles); in handle_get_profiles()
309 pa_xfree(profiles); in handle_get_profiles()
320 …active_profile = pa_dbusiface_card_profile_get_path(pa_hashmap_get(c->profiles, c->active_profile-… in handle_get_active_profile()
339 PA_HASHMAP_FOREACH(profile, c->profiles, state) { in handle_set_active_profile()
381 const char **profiles = NULL; in handle_get_all() local
394 profiles = get_profiles(c, &n_profiles); in handle_get_all()
395 …active_profile = pa_dbusiface_card_profile_get_path(pa_hashmap_get(c->profiles, c->active_profile-… in handle_get_all()
411 …ty_handlers[PROPERTY_HANDLER_PROFILES].property_name, DBUS_TYPE_OBJECT_PATH, profiles, n_profiles); in handle_get_all()
424 pa_xfree(profiles); in handle_get_all()
439 if (!(profile = pa_hashmap_get(c->profiles, profile_name))) { in handle_get_profile_by_name()
479 …object_path = pa_dbusiface_card_profile_get_path(pa_hashmap_get(dbus_card->profiles, dbus_card->ac… in card_profile_changed_cb()
506 … pa_assert_se(pa_hashmap_put(c->profiles, (char *) pa_dbusiface_card_profile_get_name(p), p) >= 0); in card_profile_added_cb()
535 pa_assert_se((p = pa_hashmap_get(c->profiles, profile->name))); in card_profile_available_changed_cb()
567 … c->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, in pa_dbusiface_card_new()
574 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in pa_dbusiface_card_new()
576 pa_hashmap_put(c->profiles, (char *) pa_dbusiface_card_profile_get_name(p), p); in pa_dbusiface_card_new()
600 pa_hashmap_free(c->profiles); in pa_dbusiface_card_free()