Permission: add "pure" attributes
This commit is contained in:
parent
9a766f4cd9
commit
a636d2127a
|
@ -31,13 +31,16 @@ static constexpr unsigned PERMISSION_CONTROL = 4;
|
||||||
static constexpr unsigned PERMISSION_ADMIN = 8;
|
static constexpr unsigned PERMISSION_ADMIN = 8;
|
||||||
static constexpr unsigned PERMISSION_PLAYER = 16;
|
static constexpr unsigned PERMISSION_PLAYER = 16;
|
||||||
|
|
||||||
|
[[gnu::pure]]
|
||||||
int
|
int
|
||||||
getPermissionFromPassword(const char *password, unsigned *permission) noexcept;
|
getPermissionFromPassword(const char *password, unsigned *permission) noexcept;
|
||||||
|
|
||||||
|
[[gnu::const]]
|
||||||
unsigned
|
unsigned
|
||||||
getDefaultPermissions() noexcept;
|
getDefaultPermissions() noexcept;
|
||||||
|
|
||||||
#ifdef HAVE_UN
|
#ifdef HAVE_UN
|
||||||
|
[[gnu::const]]
|
||||||
unsigned
|
unsigned
|
||||||
GetLocalPermissions() noexcept;
|
GetLocalPermissions() noexcept;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue