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