summaryrefslogtreecommitdiffstats
path: root/src/pulse/introspect.h
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-05-16 22:15:57 +0100
committerColin Guthrie <colin@mageia.org>2011-06-22 21:55:27 +0100
commitfdf3a0881445560e962924a02319fc5cd2506231 (patch)
tree48f95613887f873dbbc225a90697d4ba9ac772d9 /src/pulse/introspect.h
parent5d35375aa758fde7d9f3d6467e2506aca9784597 (diff)
introspect: Get formats for sources
This gets the list of supported formats for a source in pa_context_get_source_info*(). Also prints these in 'pactl list'.
Diffstat (limited to 'src/pulse/introspect.h')
-rw-r--r--src/pulse/introspect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulse/introspect.h b/src/pulse/introspect.h
index a6b4a801..65f12d12 100644
--- a/src/pulse/introspect.h
+++ b/src/pulse/introspect.h
@@ -310,6 +310,8 @@ typedef struct pa_source_info {
uint32_t n_ports; /**< Number of entries in port array \since 0.9.16 */
pa_source_port_info** ports; /**< Array of available ports, or NULL. Array is terminated by an entry set to NULL. The number of entries is stored in n_ports \since 0.9.16 */
pa_source_port_info* active_port; /**< Pointer to active port in the array, or NULL \since 0.9.16 */
+ uint8_t n_formats; /**< Number of formats supported by the source. \since 1.0 */
+ pa_format_info **formats; /**< Array of formats supported by the source. \since 1.0 */
} pa_source_info;
/** Callback prototype for pa_context_get_source_info_by_name() and friends */