summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-03 00:32:10 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-03 00:32:10 +0100
commit297515a39eebfbd9e846c9d45bebe3890a39fb02 (patch)
tree433d5af52dd0fac141b168fc713cab2816a38150 /src/pulse
parentf8a085f5cfb9388a813773fbfa9598699bd6131c (diff)
pass profile priority value to clients
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/introspect.c3
-rw-r--r--src/pulse/introspect.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/pulse/introspect.c b/src/pulse/introspect.c
index befeb242..6d6e3a3d 100644
--- a/src/pulse/introspect.c
+++ b/src/pulse/introspect.c
@@ -528,7 +528,8 @@ static void context_get_card_info_callback(pa_pdispatch *pd, uint32_t command, u
if (pa_tagstruct_gets(t, &i.profiles[j].name) < 0 ||
pa_tagstruct_gets(t, &i.profiles[j].description) < 0 ||
pa_tagstruct_getu32(t, &i.profiles[j].n_sinks) < 0 ||
- pa_tagstruct_getu32(t, &i.profiles[j].n_sources)< 0) {
+ pa_tagstruct_getu32(t, &i.profiles[j].n_sources) < 0 ||
+ pa_tagstruct_getu32(t, &i.profiles[j].priority) < 0) {
pa_context_fail(o->context, PA_ERR_PROTOCOL);
pa_xfree(i.profiles);
diff --git a/src/pulse/introspect.h b/src/pulse/introspect.h
index aa67e43d..60f8d4f4 100644
--- a/src/pulse/introspect.h
+++ b/src/pulse/introspect.h
@@ -401,6 +401,7 @@ typedef struct pa_card_profile_info {
const char *description; /**< Description of this profile */
uint32_t n_sinks; /**< Number of sinks this profile would create */
uint32_t n_sources; /**< Number of sources this profile would create */
+ uint32_t priority; /**< The higher this value is the more useful this profile is as a default */
} pa_card_profile_info;
/** Stores information about cards. Please note that this structure