summaryrefslogtreecommitdiffstats
path: root/options/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'options/path.h')
-rw-r--r--options/path.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/options/path.h b/options/path.h
index 1facea81cf..763a8dda54 100644
--- a/options/path.h
+++ b/options/path.h
@@ -31,6 +31,12 @@ struct mpv_global;
char *mp_find_config_file(void *talloc_ctx, struct mpv_global *global,
const char *filename);
+// Like mp_find_config_file(), but search only the local writable user config
+// dir. Also, this returns a result even if the file does not exist. Calling
+// it with filename="" is equivalent to retrieving the user config dir.
+char *mp_find_user_config_file(void *talloc_ctx, struct mpv_global *global,
+ const char *filename);
+
// Find all instances of the given config file. Paths are returned in order
// from lowest to highest priority. filename can contain multiple names
// separated with '|', with the first having highest priority.