summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h b/config.h
index 3e96c19..4043f36 100644
--- a/config.h
+++ b/config.h
@@ -4,6 +4,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <libgen.h>
+#include <sys/stat.h>
+#include <limits.h>
#define MAXCHAR 1000
@@ -22,4 +25,8 @@ int getconfint(char *confname, char *filename);
// Return 0 for password mismatch, or 1 for password match.
int checkpassword(char *password, char *filename);
+// Create the default configuration file.
+// Return 1 on success, 0 on failure.
+int createconfigfile(char *filename);
+
#endif