1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef _PERF_PATH_H 3*4882a593Smuzhiyun #define _PERF_PATH_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <stddef.h> 6*4882a593Smuzhiyun #include <stdbool.h> 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun struct dirent; 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun int path__join(char *bf, size_t size, const char *path1, const char *path2); 11*4882a593Smuzhiyun int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3); 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun bool is_regular_file(const char *file); 14*4882a593Smuzhiyun bool is_directory(const char *base_path, const struct dirent *dent); 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun #endif /* _PERF_PATH_H */ 17