summaryrefslogtreecommitdiffstats
path: root/src/pulse/channelmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-17 03:05:30 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-17 03:05:30 +0200
commitd9939690ed121931e17e985afe01149da93ca3f3 (patch)
tree98b61735d1b34789c550de62ef591bee2e144979 /src/pulse/channelmap.h
parent64b0f38b67ed221ac11d017bd27aa62c6b1a8c2b (diff)
channelmap: implement pa_channel_position_from_string()
Diffstat (limited to 'src/pulse/channelmap.h')
-rw-r--r--src/pulse/channelmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulse/channelmap.h b/src/pulse/channelmap.h
index 2aaead01..d0474262 100644
--- a/src/pulse/channelmap.h
+++ b/src/pulse/channelmap.h
@@ -282,6 +282,9 @@ pa_channel_map* pa_channel_map_init_extend(pa_channel_map *m, unsigned channels,
/** Return a text label for the specified channel position */
const char* pa_channel_position_to_string(pa_channel_position_t pos) PA_GCC_PURE;
+/* The inverse of pa_channel_position_to_string(). \since 0.9.16 */
+pa_channel_position_t pa_channel_position_from_string(const char *s) PA_GCC_PURE;
+
/** Return a human readable text label for the specified channel position. \since 0.9.7 */
const char* pa_channel_position_to_pretty_string(pa_channel_position_t pos);