summaryrefslogtreecommitdiff
path: root/libavutil/avstring.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-29 20:09:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-29 20:24:42 +0200
commit31e0b5d3cb40acd960b6f6c711557a82dc2d6c5f (patch)
treec2854dbdc4da5a38bf9b791e7288ae9b3d7688c9 /libavutil/avstring.h
parente066f01539fd2ed19bda2031c43ddf266f0a000a (diff)
parent69e7336b8e16ee65226fc20381baf537f4b125e6 (diff)
downloadffmpeg-31e0b5d3cb40acd960b6f6c711557a82dc2d6c5f.tar.gz
Merge commit '69e7336b8e16ee65226fc20381baf537f4b125e6'
* commit '69e7336b8e16ee65226fc20381baf537f4b125e6': avstring: Expose the simple name match function Conflicts: libavutil/avstring.c libavutil/avstring.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r--libavutil/avstring.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index de2f71d12b..616c0662fc 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -268,6 +268,14 @@ 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);
+
enum AVEscapeMode {
AV_ESCAPE_MODE_AUTO, ///< Use auto-selected escaping mode.
AV_ESCAPE_MODE_BACKSLASH, ///< Use backslash escaping.