summaryrefslogtreecommitdiffstats
path: root/common/os/os.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2011-02-07 10:46:45 +0000
committerAdam Tkac <atkac@redhat.com>2011-02-07 10:46:45 +0000
commitc480ee32669fffd940de34f2f55d8c144c32f706 (patch)
treec3f4b5146fbe5e349cd31b30bea5175177304789 /common/os/os.h
parent437b0c2fc39f6d4bcdb5ffe7f8d2c28e1df166e3 (diff)
downloadtigervnc-c480ee32669fffd940de34f2f55d8c144c32f706.tar.gz
tigervnc-c480ee32669fffd940de34f2f55d8c144c32f706.zip
[Development] os: introduce new function called "fileexists"
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4255 3789f03b-4d11-0410-bbf8-ca57d06f2519
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 */