Commit a636d212 authored by Max Kellermann's avatar Max Kellermann

Permission: add "pure" attributes

parent 9a766f4c
......@@ -31,13 +31,16 @@ static constexpr unsigned PERMISSION_CONTROL = 4;
static constexpr unsigned PERMISSION_ADMIN = 8;
static constexpr unsigned PERMISSION_PLAYER = 16;
[[gnu::pure]]
int
getPermissionFromPassword(const char *password, unsigned *permission) noexcept;
[[gnu::const]]
unsigned
getDefaultPermissions() noexcept;
#ifdef HAVE_UN
[[gnu::const]]
unsigned
GetLocalPermissions() noexcept;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment