Lines Matching defs:role

53 PA_MODULE_DESCRIPTION("Keep track of devices (and their descriptions) both past and present and prioritise by role");
57 "do_routing=<Automatically route streams based on a priority list (unique per-role)?> "
415 pa_log_debug(" Highest priority devices per-role:");
418 for (uint32_t role = ROLE_NONE; role < NUM_ROLES; ++role) {
420 uint32_t len = PA_MIN(12u, strlen(role_names[role]));
421 strncpy(name, role_names[role], len);
424 dump_database_helper(u, role, name, true);
428 for (uint32_t role = ROLE_NONE; role < NUM_ROLES; ++role) {
430 uint32_t len = PA_MIN(12u, strlen(role_names[role]));
431 strncpy(name, role_names[role], len);
434 dump_database_helper(u, role, name, false);
511 /* Find all existing devices with the same prefix so we calculate the current max priority for each role */
547 static uint32_t get_role_index(const char* role) {
548 pa_assert(role);
551 if (pa_streq(role, role_names[i]))
579 /* Find all existing devices with the same prefix so we find the highest priority device for each role */
651 const char *role;
677 if (!(role = pa_proplist_gets(si->proplist, PA_PROP_MEDIA_ROLE)))
680 role_index = get_role_index(role);
723 const char *role;
752 if (!(role = pa_proplist_gets(so->proplist, PA_PROP_MEDIA_ROLE)))
755 role_index = get_role_index(role);
823 /* The role may change mid-stream, so we reroute */
835 /* The role may change mid-stream, so we reroute */
973 const char *role;
986 if (!(role = pa_proplist_gets(new_data->proplist, PA_PROP_MEDIA_ROLE)))
989 role_index = get_role_index(role);
1010 const char *role;
1026 if (!(role = pa_proplist_gets(new_data->proplist, PA_PROP_MEDIA_ROLE)))
1029 role_index = get_role_index(role);
1311 const char *role;
1324 if (pa_tagstruct_gets(t, &role) < 0 ||
1329 if (PA_INVALID_INDEX == (role_index = get_role_index(role)))