summaryrefslogtreecommitdiff
path: root/src/Permission.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-15 21:54:43 +0200
committerMax Kellermann <max@musicpd.org>2018-07-15 22:27:35 +0200
commit9c6b52ccee9ab24d26cd318131e6e9da1f40393a (patch)
treefcef379f9cc297aeb46ad8bfeb0b2c67450f196e /src/Permission.hxx
parenta47ecf9cb1c4c2efe853d69bc6ff790e91154bb2 (diff)
Permission: add special permissions for local sockets
Closes #296
Diffstat (limited to 'src/Permission.hxx')
-rw-r--r--src/Permission.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Permission.hxx b/src/Permission.hxx
index 782632644..e0009471e 100644
--- a/src/Permission.hxx
+++ b/src/Permission.hxx
@@ -20,6 +20,8 @@
#ifndef MPD_PERMISSION_HXX
#define MPD_PERMISSION_HXX
+#include "check.h"
+
static constexpr unsigned PERMISSION_NONE = 0;
static constexpr unsigned PERMISSION_READ = 1;
static constexpr unsigned PERMISSION_ADD = 2;
@@ -31,6 +33,11 @@ int getPermissionFromPassword(char const* password, unsigned* permission);
unsigned
getDefaultPermissions();
+#ifdef HAVE_UN
+unsigned
+GetLocalPermissions() noexcept;
+#endif
+
void
initPermissions();