summaryrefslogtreecommitdiffstats
path: root/src/game/server/whitelist.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/whitelist.hh')
-rw-r--r--src/game/server/whitelist.hh26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/server/whitelist.hh b/src/game/server/whitelist.hh
new file mode 100644
index 0000000..4695d16
--- /dev/null
+++ b/src/game/server/whitelist.hh
@@ -0,0 +1,26 @@
+#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