18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _PERF_PATH_H 38c2ecf20Sopenharmony_ci#define _PERF_PATH_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <stddef.h> 68c2ecf20Sopenharmony_ci#include <stdbool.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cistruct dirent; 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciint path__join(char *bf, size_t size, const char *path1, const char *path2); 118c2ecf20Sopenharmony_ciint path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3); 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cibool is_regular_file(const char *file); 148c2ecf20Sopenharmony_cibool is_directory(const char *base_path, const struct dirent *dent); 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#endif /* _PERF_PATH_H */ 17