mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 12:03:25 -08:00
[Server] Serve the server list through the database interface (#7855)
This commit is contained in:
parent
f8f8fffa6b
commit
f1ee6bdc2d
4 changed files with 47 additions and 7 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue