summaryrefslogtreecommitdiffstats
path: root/game/server/whitelist.hh
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/whitelist.hh')
-rw-r--r--game/server/whitelist.hh27
1 files changed, 27 insertions, 0 deletions
diff --git a/game/server/whitelist.hh b/game/server/whitelist.hh
new file mode 100644
index 0000000..6cbaa0b
--- /dev/null
+++ b/game/server/whitelist.hh
@@ -0,0 +1,27 @@
+#ifndef SERVER_WHITELIST_HH
+#define SERVER_WHITELIST_HH 1
+#pragma once
+
+class ConfigBoolean;
+class ConfigString;
+
+namespace whitelist
+{
+extern ConfigBoolean enabled;
+extern ConfigString filename;
+} // namespace whitelist
+
+namespace whitelist
+{
+void init(void);
+void init_late(void);
+void deinit(void);
+} // namespace whitelist
+
+namespace whitelist
+{
+bool contains(const char *username);
+bool matches(const char *username, std::uint64_t password_hash);
+} // namespace whitelist
+
+#endif /* SERVER_WHITELIST_HH */