diff options
Diffstat (limited to 'src/include/fileutils.h')
| -rwxr-xr-x | src/include/fileutils.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/fileutils.h b/src/include/fileutils.h new file mode 100755 index 00000000..27256909 --- /dev/null +++ b/src/include/fileutils.h @@ -0,0 +1,23 @@ +#ifndef __FILEUTILS_H_ +#define __FILEUTILS_H_ + +#include "pathcoll.h" + +#define IS_EXECUTABLE (1<<0) +#define IS_FILE (1<<1) + + +// 0 : doesn't exist, 1: Does exist +int FileExist(const char* filename, int flags); + +// find a file, using Path if needed +char* ResolveFile(const char* filename, path_collection_t* paths); + +// 1: if file is an x86 elf, 0: if not (or not found) +int FileIsX64ELF(const char* filename); + +#if defined(RPI) || defined(RK3399) +void sanitize_mojosetup_gtk_background(); +#endif + +#endif //__FILEUTILS_H_ \ No newline at end of file |