summaryrefslogtreecommitdiffstats
path: root/common/os/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/os/os.h')
-rw-r--r--common/os/os.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/os/os.h b/common/os/os.h
index d011764e..1847a494 100644
--- a/common/os/os.h
+++ b/common/os/os.h
@@ -37,4 +37,13 @@
*/
int getvnchomedir(char **dirp);
+/*
+ * Check if the file exists
+ *
+ * Returns:
+ * 0 - Success
+ * -1 - Failure
+ */
+int fileexists(char *file);
+
#endif /* OS_OS_H */