blob: 083429b7efa37d85f3b67055c9922e8890bedc20 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Arnaldo Carvalho de Melo9a3993d2017-04-18 11:33:48 -03002#ifndef _PERF_PATH_H
3#define _PERF_PATH_H
4
Arnaldo Carvalho de Melofa0d9842019-08-30 12:52:25 -03005#include <stddef.h>
6#include <stdbool.h>
7
Jiri Olsa06c3f2a2017-12-06 18:45:35 +01008struct dirent;
9
Arnaldo Carvalho de Melo9a3993d2017-04-18 11:33:48 -030010int path__join(char *bf, size_t size, const char *path1, const char *path2);
11int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
12
13bool is_regular_file(const char *file);
Jiri Olsa06c3f2a2017-12-06 18:45:35 +010014bool is_directory(const char *base_path, const struct dirent *dent);
Arnaldo Carvalho de Melo9a3993d2017-04-18 11:33:48 -030015
16#endif /* _PERF_PATH_H */