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.hh30
1 files changed, 30 insertions, 0 deletions
diff --git a/game/server/whitelist.hh b/game/server/whitelist.hh
new file mode 100644
index 0000000..8f909b9
--- /dev/null
+++ b/game/server/whitelist.hh
@@ -0,0 +1,30 @@
+#ifndef SERVER_WHITELIST_HH
+#define SERVER_WHITELIST_HH 1
+#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(const char* username);
+bool matches(const char* username, std::uint64_t password_hash);
+} // namespace whitelist
+
+#endif // SERVER_WHITELIST_HH