aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/avstring.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-07-29 14:29:13 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-07-29 17:46:29 +0200
commit69e7336b8e16ee65226fc20381baf537f4b125e6 (patch)
treeefa6771a621e6187dbc09bfbc2ec1f0540a76354 /libavutil/avstring.h
parente253a9e2b3d683eb51db7c776326eb07de10ad4c (diff)
downloadffmpeg-69e7336b8e16ee65226fc20381baf537f4b125e6.tar.gz
avstring: Expose the simple name match function
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r--libavutil/avstring.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index b7d10983c3..9a18ddd893 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -219,6 +219,15 @@ const char *av_basename(const char *path);
*/
const char *av_dirname(char *path);
+
+/**
+ * Match instances of a name in a comma-separated list of names.
+ * @param name Name to look for.
+ * @param names List of names.
+ * @return 1 on match, 0 otherwise.
+ */
+int av_match_name(const char *name, const char *names);
+
/**
* @}
*/