diff options
author | wm4 <wm4@nowhere> | 2014-06-26 19:32:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-26 19:56:45 +0200 |
commit | 3e631b9cb851a1c29880beaded78f2bbfa694976 (patch) | |
tree | e31e70674a3ce1955addaf08a10179fde04aecd3 /osdep/path.h | |
parent | 7f55a39646af1696444be2a04dc0d212db3f7013 (diff) | |
download | mpv-3e631b9cb851a1c29880beaded78f2bbfa694976.tar.bz2 mpv-3e631b9cb851a1c29880beaded78f2bbfa694976.tar.xz |
config: use the same signature for win32/OSX specific path functions
Seems like a good idea, even if it's basically unused (yet).
Also document requirements on the functions (they're not obvious).
OSX changes untested.
Diffstat (limited to 'osdep/path.h')
-rw-r--r-- | osdep/path.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/osdep/path.h b/osdep/path.h index c09bedceb0..c697453fcc 100644 --- a/osdep/path.h +++ b/osdep/path.h @@ -5,9 +5,11 @@ struct mpv_global; -void mp_add_win_config_dirs(struct mpv_global *global, char **dirs, int i); - -// Returns Mac OS X application bundle directory. -char *mp_get_macosx_bundle_dir(void *talloc_ctx); +// Append paths starting at dirs[i]. The dirs array has place only for at most +// MAX_CONFIG_PATHS paths, but it's guaranteed that at least 4 paths can be +// added without checking for i>=MAX_CONFIG_PATHS. +// Return the new value of i. +int mp_add_win_config_dirs(struct mpv_global *global, char **dirs, int i); +int mp_add_macosx_bundle_dir(struct mpv_global *global, char **dirs, int i); #endif |