| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2014 The Native Client Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NACL_SPAWN_PATH_UTIL_ | |
| 6 #define NACL_SPAWN_PATH_UTIL_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 // Parses path environment variables such as PATH or LD_LIBRARY_PATH. | |
| 12 void GetPaths(const char* env, std::vector<std::string>* paths); | |
| 13 | |
| 14 // Gets a file for the specified basename in paths. Returns true on | |
| 15 // success and out_path will be updated. On failure, this function | |
| 16 // returns false and out_path will not be updated. | |
| 17 bool GetFileInPaths(const std::string& basename, | |
| 18 const std::vector<std::string>& paths, | |
| 19 std::string* out_path); | |
| 20 | |
| 21 #endif // NACL_SPAWN_PATH_UTIL_ | |
| OLD | NEW |