Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _PERF_PATH_H |
| 3 | #define _PERF_PATH_H |
| 4 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 5 | #include <stddef.h> |
| 6 | #include <stdbool.h> |
| 7 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | struct dirent; |
| 9 | |
| 10 | int path__join(char *bf, size_t size, const char *path1, const char *path2); |
| 11 | int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3); |
| 12 | |
| 13 | bool is_regular_file(const char *file); |
| 14 | bool is_directory(const char *base_path, const struct dirent *dent); |
| 15 | |
| 16 | #endif /* _PERF_PATH_H */ |