diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-02-28 14:19:04 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-02-28 14:19:04 +0100 |
| commit | e753c19da1b621b1e667de85ce5ef60d186f0684 (patch) | |
| tree | 9bc80378efbe42ec72678230de2905ab121a4d8f /src/include/fileutils.h | |
| parent | 7b50468b61b7bdd9a15753c0a28711c1654a8c12 (diff) | |
| download | box64-e753c19da1b621b1e667de85ce5ef60d186f0684.tar.gz box64-e753c19da1b621b1e667de85ce5ef60d186f0684.zip | |
Added some minimal set of source (now box64 compile and say hello at least)
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 |