summaryrefslogtreecommitdiffstats
path: root/core/path.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 20:34:26 +0200
committerwm4 <wm4@nowhere>2013-07-08 20:37:11 +0200
commitc460258f5a85d8d65261b524f23a3608185e58e4 (patch)
tree60974ce21dfb5fe338bf091548e1d0155bba19e9 /core/path.h
parent0bb41524f0a9ed89559b50bd7407de9d8b8aee40 (diff)
downloadmpv-c460258f5a85d8d65261b524f23a3608185e58e4.tar.bz2
mpv-c460258f5a85d8d65261b524f23a3608185e58e4.tar.xz
command: add screenshot_to_file command
Diffstat (limited to 'core/path.h')
-rw-r--r--core/path.h7
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, ".".
*/