Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arnaldo Carvalho de Melo | 9a3993d | 2017-04-18 11:33:48 -0300 | [diff] [blame] | 2 | #ifndef _PERF_PATH_H |
| 3 | #define _PERF_PATH_H |
| 4 | |
Jiri Olsa | 06c3f2a | 2017-12-06 18:45:35 +0100 | [diff] [blame] | 5 | struct dirent; |
| 6 | |
Arnaldo Carvalho de Melo | 9a3993d | 2017-04-18 11:33:48 -0300 | [diff] [blame] | 7 | int path__join(char *bf, size_t size, const char *path1, const char *path2); |
| 8 | int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3); |
| 9 | |
| 10 | bool is_regular_file(const char *file); |
Jiri Olsa | 06c3f2a | 2017-12-06 18:45:35 +0100 | [diff] [blame] | 11 | bool is_directory(const char *base_path, const struct dirent *dent); |
Arnaldo Carvalho de Melo | 9a3993d | 2017-04-18 11:33:48 -0300 | [diff] [blame] | 12 | |
| 13 | #endif /* _PERF_PATH_H */ |