diff --git a/src/path.cpp b/src/path.cpp index b1978fceb..a1ced74e0 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -168,6 +168,10 @@ wcstring_list_t path_get_paths(const wcstring &cmd, const environment_t &vars) { return paths; } +wcstring_list_ffi_t path_get_paths_ffi(const wcstring &cmd, const parser_t &parser) { + return path_get_paths(cmd, parser.vars()); +} + wcstring_list_t path_apply_cdpath(const wcstring &dir, const wcstring &wd, const environment_t &env_vars) { wcstring_list_t paths; diff --git a/src/path.h b/src/path.h index 32b162479..8b0e7b481 100644 --- a/src/path.h +++ b/src/path.h @@ -8,6 +8,8 @@ #include "common.h" #include "maybe.h" +#include "parser.h" +#include "wutil.h" /// Returns the user configuration directory for fish. If the directory or one of its parents /// doesn't exist, they are first created. @@ -64,6 +66,9 @@ get_path_result_t path_try_get_path(const wcstring &cmd, const environment_t &va /// Return all the paths that match the given command. wcstring_list_t path_get_paths(const wcstring &cmd, const environment_t &vars); +// Needed because of issues with vectors of wstring and environment_t. +wcstring_list_ffi_t path_get_paths_ffi(const wcstring &cmd, const parser_t &parser); + /// Returns the full path of the specified directory, using the CDPATH variable as a list of base /// directories for relative paths. ///