path: Add method to return wcstring_list_ffi_t

This is palatable to Cxx
This commit is contained in:
Fabian Boehm
2023-02-25 10:26:23 +01:00
parent 15c8f08458
commit d0c2d0c9cf
2 changed files with 9 additions and 0 deletions

View File

@@ -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;