implemented server database and api for client database
This commit is contained in:
@@ -22,8 +22,6 @@ typedef struct ServerConnection {
|
||||
Array(u8) session_key;
|
||||
EncryptedSocketTCP sock;
|
||||
i64 session_id;
|
||||
str server_name;
|
||||
str server_description;
|
||||
i64 user_id;
|
||||
} ServerConnection;
|
||||
|
||||
@@ -34,8 +32,8 @@ Result(ServerConnection*) ServerConnection_open(Client* client,
|
||||
|
||||
void ServerConnection_close(ServerConnection* conn);
|
||||
|
||||
/// updates conn->server_name
|
||||
Result(void) ServerConnection_requestServerName(ServerConnection* conn);
|
||||
/// @param out_str heap-allocated string
|
||||
Result(void) ServerConnection_requestServerName(ServerConnection* conn, str* out_str);
|
||||
|
||||
/// updates conn->server_description
|
||||
Result(void) ServerConnection_requestServerDescription(ServerConnection* conn);
|
||||
/// @param out_str heap-allocated string
|
||||
Result(void) ServerConnection_requestServerDescription(ServerConnection* conn, str* out_str);
|
||||
|
||||
Reference in New Issue
Block a user