summaryrefslogtreecommitdiffstats
path: root/options/path.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-06 14:14:35 +0100
committerwm4 <wm4@nowhere>2020-02-06 14:14:35 +0100
commit1dc3507474aeb82d023d4fc2949d25fc774e2ce0 (patch)
tree669003b20a994fc16fa96bdc84fa1942c15fea0c /options/path.h
parent31acec543819cf56d63dddae59507858b1229b75 (diff)
downloadmpv-1dc3507474aeb82d023d4fc2949d25fc774e2ce0.tar.bz2
mpv-1dc3507474aeb82d023d4fc2949d25fc774e2ce0.tar.xz
path: add mp_path_is_absolute()
Just move it from mp_path_join_bstr() to this new function.
Diffstat (limited to 'options/path.h')
-rw-r--r--options/path.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/options/path.h b/options/path.h
index c3c3699a0b..19f4fb5909 100644
--- a/options/path.h
+++ b/options/path.h
@@ -77,6 +77,9 @@ void mp_path_strip_trailing_separator(char *path);
char *mp_path_join(void *talloc_ctx, const char *p1, const char *p2);
char *mp_path_join_bstr(void *talloc_ctx, struct bstr p1, struct bstr p2);
+// Return whether the path is absolute.
+bool mp_path_is_absolute(struct bstr path);
+
char *mp_getcwd(void *talloc_ctx);
bool mp_path_exists(const char *path);