Permission: add "pure" attributes

This commit is contained in:
Max Kellermann 2021-10-14 14:26:30 +02:00
parent 9a766f4cd9
commit a636d2127a
1 changed files with 3 additions and 0 deletions

View File

@ -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