aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/avstring.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-30 13:54:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-30 13:54:50 +0100
commit2ce43b37fc46e3744d9d5e1baa1280c48ef7b1bf (patch)
tree24ca5287a90069a324ee49ad251f0d9a69ca0aea /libavutil/avstring.h
parent613001d75fee9dfef14fb000cac8c67ac6381e97 (diff)
parent6dd93ee6f1b050ad7c4b247899e83efa293ee405 (diff)
downloadffmpeg-2ce43b37fc46e3744d9d5e1baa1280c48ef7b1bf.tar.gz
Merge commit '6dd93ee6f1b050ad7c4b247899e83efa293ee405'
* commit '6dd93ee6f1b050ad7c4b247899e83efa293ee405': hlsenc: check append_entry return value hlsenc: use the basename to generate the list entries avstring: add av_basename and av_dirname Conflicts: Changelog doc/APIchanges libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r--libavutil/avstring.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index f73d6e7420..d7af9ec7c3 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -202,6 +202,22 @@ int av_strcasecmp(const char *a, const char *b);
*/
int av_strncasecmp(const char *a, const char *b, size_t n);
+
+/**
+ * Thread safe basename.
+ * @param path the path, on DOS both \ and / are considered separators.
+ * @return pointer to the basename substring.
+ */
+const char *av_basename(const char *path);
+
+/**
+ * Thread safe dirname.
+ * @param path the path, on DOS both \ and / are considered separators.
+ * @return the path with the separator replaced by the string terminator or ".".
+ * @note the function may change the input string.
+ */
+const char *av_dirname(char *path);
+
/**
* @}
*/