diff options
author | wm4 <wm4@nowhere> | 2013-07-08 21:55:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-08 21:55:44 +0200 |
commit | 31f685040bd2152d541ed16cf441c6b5e7e430fd (patch) | |
tree | b8351b2847231bbc15d883a622ac972945cce6b4 /core/path.h | |
parent | 73c76de91edbf8a55eb725196ff54583e3428510 (diff) | |
parent | 7a71a2cc483d17bed94408d5aee6fba6893558cb (diff) | |
download | mpv-31f685040bd2152d541ed16cf441c6b5e7e430fd.tar.bz2 mpv-31f685040bd2152d541ed16cf441c6b5e7e430fd.tar.xz |
Merge branch 'master' into remove_old_demuxers
Conflicts:
DOCS/man/en/changes.rst
DOCS/man/en/options.rst
Diffstat (limited to 'core/path.h')
-rw-r--r-- | core/path.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/path.h b/core/path.h index a3033199df..a38ad503ea 100644 --- a/core/path.h +++ b/core/path.h @@ -40,6 +40,13 @@ char *mp_find_user_config_file(const char *filename); char *mp_basename(const char *path); +/* Return file extension, including the '.'. If root is not NULL, set it to the + * part of the path without extension. So: path == root + returnvalue + * Don't consider it a file extension if the only '.' is the first character. + * Return "" if no extension. + */ +char *mp_splitext(const char *path, bstr *root); + /* Return struct bstr referencing directory part of path, or if that * would be empty, ".". */ |