implemented CommonQueries
This commit is contained in:
@@ -2,20 +2,12 @@
|
||||
#include <pthread.h>
|
||||
#include "tlibc/collections/HashMap.h"
|
||||
#include "tlibc/collections/List.h"
|
||||
#include "tsqlite.h"
|
||||
#include "tcp-chat/client.h"
|
||||
#include "db/idb.h"
|
||||
#include "db/tables.h"
|
||||
|
||||
List_declare(ServerInfo);
|
||||
|
||||
typedef struct ClientCLI {
|
||||
Client* client;
|
||||
IncrementalDB* db;
|
||||
struct {
|
||||
Table* table;
|
||||
List(ServerInfo) list; // index is id
|
||||
HashMap(u64) addr_id_map; // key is server address
|
||||
} servers;
|
||||
tsqlite_connection* db;
|
||||
} ClientCLI;
|
||||
|
||||
void ClientCLI_construct(ClientCLI* self);
|
||||
|
||||
Reference in New Issue
Block a user