summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2020-09-22 23:20:43 +0100
committerrafa_99 <rafa99@protonmail.com>2020-09-22 23:20:43 +0100
commit2384e3c50dcd6c5a0dadaf5e44c6206578345ebd (patch)
tree45abac4d808716bc739a93046f24df20e7e5c1c8 /utils.h
parent5ec6cc925d800cfe1c3abcca4c6d9b5f120d8741 (diff)
Added Initial OS Detection
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h17
1 files changed, 17 insertions, 0 deletions
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 <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+#define ERROR -1
+
+enum os
+{
+ pacman,
+ apt,
+ emerge,
+ xbps,
+ ENUMSIZE
+};
+
+int checkIfFileExists(char *path);
+int detectOsType();