[Server] Serve the server list through the database interface (#7855)

This commit is contained in:
BruebachL 2026-11-10 12:16:32 +01:00 • committed by GitHub
parent f8f8fffa6b
commit f1ee6bdc2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 7 deletions

View file

@ -717,6 +717,21 @@ public:
{
return false;
}
/** @brief One row of the server list, with the certificate exactly as stored. */
struct ServerListEntryRecord
{
int id = 0;
QByteArray sslCert;
QString hostname;
QString address;
int gamePort = 0;
int controlPort = 0;
};
/** @brief Every published server-list row, in id order; empty when the query fails. */
virtual QList<ServerListEntryRecord> getServerListEntries()
{
return {};
}
virtual void clearSessionTables()
{