mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-13 13:29:58 -05:00
Rename "available group" to "availability group"
"Availability group" is more clear about what the field is about. Credits to Arun Raghavan for coming up with the better name.
This commit is contained in:
parent
1b44b44c75
commit
af42b3eb6f
11 changed files with 40 additions and 40 deletions
|
|
@ -54,11 +54,11 @@ void pa_device_port_new_data_set_available(pa_device_port_new_data *data, pa_ava
|
|||
data->available = available;
|
||||
}
|
||||
|
||||
void pa_device_port_new_data_set_available_group(pa_device_port_new_data *data, const char *group) {
|
||||
void pa_device_port_new_data_set_availability_group(pa_device_port_new_data *data, const char *group) {
|
||||
pa_assert(data);
|
||||
|
||||
pa_xfree(data->available_group);
|
||||
data->available_group = pa_xstrdup(group);
|
||||
pa_xfree(data->availability_group);
|
||||
data->availability_group = pa_xstrdup(group);
|
||||
}
|
||||
|
||||
void pa_device_port_new_data_set_direction(pa_device_port_new_data *data, pa_direction_t direction) {
|
||||
|
|
@ -78,7 +78,7 @@ void pa_device_port_new_data_done(pa_device_port_new_data *data) {
|
|||
|
||||
pa_xfree(data->name);
|
||||
pa_xfree(data->description);
|
||||
pa_xfree(data->available_group);
|
||||
pa_xfree(data->availability_group);
|
||||
}
|
||||
|
||||
void pa_device_port_set_preferred_profile(pa_device_port *p, const char *new_pp) {
|
||||
|
|
@ -164,7 +164,7 @@ static void device_port_free(pa_object *o) {
|
|||
if (p->profiles)
|
||||
pa_hashmap_free(p->profiles);
|
||||
|
||||
pa_xfree(p->available_group);
|
||||
pa_xfree(p->availability_group);
|
||||
pa_xfree(p->preferred_profile);
|
||||
pa_xfree(p->name);
|
||||
pa_xfree(p->description);
|
||||
|
|
@ -190,8 +190,8 @@ pa_device_port *pa_device_port_new(pa_core *c, pa_device_port_new_data *data, si
|
|||
p->card = NULL;
|
||||
p->priority = 0;
|
||||
p->available = data->available;
|
||||
p->available_group = data->available_group;
|
||||
data->available_group = NULL;
|
||||
p->availability_group = data->availability_group;
|
||||
data->availability_group = NULL;
|
||||
p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
|
||||
p->direction = data->direction;
|
||||
p->type = data->type;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ struct pa_device_port {
|
|||
|
||||
unsigned priority;
|
||||
pa_available_t available; /* PA_AVAILABLE_UNKNOWN, PA_AVAILABLE_NO or PA_AVAILABLE_YES */
|
||||
char *available_group; /* a string indentifier which determine the group of devices handling the available state simulteneously */
|
||||
char *availability_group; /* a string indentifier which determine the group of devices handling the available state simulteneously */
|
||||
|
||||
pa_proplist *proplist;
|
||||
pa_hashmap *profiles; /* Does not own the profiles */
|
||||
|
|
@ -69,7 +69,7 @@ typedef struct pa_device_port_new_data {
|
|||
char *name;
|
||||
char *description;
|
||||
pa_available_t available;
|
||||
char *available_group;
|
||||
char *availability_group;
|
||||
pa_direction_t direction;
|
||||
pa_device_port_type_t type;
|
||||
} pa_device_port_new_data;
|
||||
|
|
@ -78,7 +78,7 @@ pa_device_port_new_data *pa_device_port_new_data_init(pa_device_port_new_data *d
|
|||
void pa_device_port_new_data_set_name(pa_device_port_new_data *data, const char *name);
|
||||
void pa_device_port_new_data_set_description(pa_device_port_new_data *data, const char *description);
|
||||
void pa_device_port_new_data_set_available(pa_device_port_new_data *data, pa_available_t available);
|
||||
void pa_device_port_new_data_set_available_group(pa_device_port_new_data *data, const char *group);
|
||||
void pa_device_port_new_data_set_availability_group(pa_device_port_new_data *data, const char *group);
|
||||
void pa_device_port_new_data_set_direction(pa_device_port_new_data *data, pa_direction_t direction);
|
||||
void pa_device_port_new_data_set_type(pa_device_port_new_data *data, pa_device_port_type_t type);
|
||||
void pa_device_port_new_data_done(pa_device_port_new_data *data);
|
||||
|
|
|
|||
|
|
@ -3208,7 +3208,7 @@ static void sink_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_sin
|
|||
if (c->version >= 24) {
|
||||
pa_tagstruct_putu32(t, p->available);
|
||||
if (c->version >= 34) {
|
||||
pa_tagstruct_puts(t, p->available_group);
|
||||
pa_tagstruct_puts(t, p->availability_group);
|
||||
pa_tagstruct_putu32(t, p->type);
|
||||
}
|
||||
}
|
||||
|
|
@ -3283,7 +3283,7 @@ static void source_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_s
|
|||
if (c->version >= 24) {
|
||||
pa_tagstruct_putu32(t, p->available);
|
||||
if (c->version >= 34) {
|
||||
pa_tagstruct_puts(t, p->available_group);
|
||||
pa_tagstruct_puts(t, p->availability_group);
|
||||
pa_tagstruct_putu32(t, p->type);
|
||||
}
|
||||
}
|
||||
|
|
@ -3371,7 +3371,7 @@ static void card_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_car
|
|||
if (c->version >= 27) {
|
||||
pa_tagstruct_puts64(t, port->latency_offset);
|
||||
if (c->version >= 34) {
|
||||
pa_tagstruct_puts(t, port->available_group);
|
||||
pa_tagstruct_puts(t, port->availability_group);
|
||||
pa_tagstruct_putu32(t, port->type);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue