aboutsummaryrefslogtreecommitdiffstats
path: root/src/permission.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-02-23 23:41:20 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-02-23 23:41:20 +0000
commitd35747a40c7dea12de95f78a4f283a45ef687597 (patch)
tree3a85f138e68c7ef3e5a9ece863ed7266ad1cd7ce /src/permission.h
downloadmpd-d35747a40c7dea12de95f78a4f283a45ef687597.tar.gz
mpd-d35747a40c7dea12de95f78a4f283a45ef687597.tar.xz
mpd-d35747a40c7dea12de95f78a4f283a45ef687597.zip
import from SF CVS
git-svn-id: https://svn.musicpd.org/mpd/trunk@1 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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