From 9526fdbe730edb4b095a1e12aade0e16f1da2292 Mon Sep 17 00:00:00 2001 From: Max Kellermann <max@duempel.org> Date: Wed, 21 Oct 2009 23:01:04 +0200 Subject: audio_format: wildcards allowed in audio_format configuration An asterisk means that this attribute should not be enforced, and stays whatever it used to be. This way, some configuration values work like masks. --- src/audio_parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/audio_parser.h') diff --git a/src/audio_parser.h b/src/audio_parser.h index 1d821eaf5..d50c17489 100644 --- a/src/audio_parser.h +++ b/src/audio_parser.h @@ -37,12 +37,13 @@ struct audio_format; * * @param dest the destination #audio_format struct * @param src the input string + * @param mask if true, then "*" is allowed for any number of items * @param error_r location to store the error occuring, or NULL to * ignore errors * @return true on success */ bool audio_format_parse(struct audio_format *dest, const char *src, - GError **error_r); + bool mask, GError **error_r); #endif -- cgit v1.2.3