From 2384e3c50dcd6c5a0dadaf5e44c6206578345ebd Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Tue, 22 Sep 2020 23:20:43 +0100 Subject: Added Initial OS Detection --- utils.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils.h (limited to 'utils.h') diff --git a/utils.h b/utils.h new file mode 100644 index 0000000..12b0eb1 --- /dev/null +++ b/utils.h @@ -0,0 +1,17 @@ +#include +#include +#include + +#define ERROR -1 + +enum os +{ + pacman, + apt, + emerge, + xbps, + ENUMSIZE +}; + +int checkIfFileExists(char *path); +int detectOsType(); -- cgit v1.2.3