Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-30 21:00:52 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-10-02 20:51:05 +0400
commit0d92b0d5f445d4f26fb9d9d7cbf83c415c8d2279 (patch)
tree7bc1f0d1806583d4f387a366d00964016c0f35de /libavutil/avstring.h
parent6ea357ea83e3a821c43e05a324f7bcaa3d73076e (diff)
avutil/avstring: Factor av_match_list() out
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r--libavutil/avstring.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index 616c0662fc..ea7d1dcb43 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -358,6 +358,13 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end,
unsigned int flags);
/**
+ * Check if a name is in a list.
+ * @returns 0 if not found, or the 1 based index where it has been found in the
+ * list.
+ */
+int av_match_list(const char *name, const char *list, char separator);
+
+/**
* @}
*/