aboutsummaryrefslogtreecommitdiffstats
path: root/src/permission.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/permission.h')
-rw-r--r--src/permission.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/permission.h b/src/permission.h
new file mode 100644
index 000000000..561dba7fc
--- /dev/null
+++ b/src/permission.h
@@ -0,0 +1,17 @@
+#ifndef PERMISSION_H
+#define PERMISSION_H
+
+#define PERMISSION_READ 1
+#define PERMISSION_ADD 2
+#define PERMISSION_CONTROL 4
+#define PERMISSION_ADMIN 8
+
+void initPermissions();
+
+int getPermissionFromPassword(char * password, unsigned int * permission);
+
+void finishPermissions();
+
+unsigned int getDefaultPermissions();
+
+#endif