diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-15 21:54:43 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-15 22:27:35 +0200 |
commit | 9c6b52ccee9ab24d26cd318131e6e9da1f40393a (patch) | |
tree | fcef379f9cc297aeb46ad8bfeb0b2c67450f196e /src/Permission.hxx | |
parent | a47ecf9cb1c4c2efe853d69bc6ff790e91154bb2 (diff) |
Permission: add special permissions for local sockets
Closes #296
Diffstat (limited to 'src/Permission.hxx')
-rw-r--r-- | src/Permission.hxx | 7 |
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(); |