summaryrefslogtreecommitdiffstats
path: root/src/game/server/whitelist.hh
blob: e9dc3aaaa6c035b326f181b2c09e65476b0154e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: whitelist.hh
// Description: Player allow-list

#ifndef SERVER_WHITELIST_HH
#define SERVER_WHITELIST_HH
#pragma once

namespace config
{
class Boolean;
class String;
} // namespace config

namespace whitelist
{
extern config::Boolean enabled;
extern config::String filename;
} // namespace whitelist

namespace whitelist
{
void init(void);
void init_late(void);
void shutdown(void);
} // namespace whitelist

namespace whitelist
{
bool contains(std::string_view username);
bool matches(std::string_view username, std::uint64_t password_hash);
} // namespace whitelist

#endif