1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-23 15:00:12 +00:00

cnc: migrate to new vector API

This commit is contained in:
2022-09-01 19:12:13 -05:00
parent 13398dbdf6
commit 44086f563b
2 changed files with 14 additions and 22 deletions

View File

@@ -3,6 +3,7 @@
#include "hashmap.h"
#include "laika.h"
#include "lmem.h"
#include "lpacket.h"
#include "lpeer.h"
#include "lpolllist.h"
@@ -20,12 +21,8 @@ struct sLaika_cnc
struct sLaika_socket sock;
struct sLaika_pollList pList;
struct hashmap *peers; /* holds all peers, lookup using pubkey */
struct sLaika_peer **authPeers; /* holds connected panel peers */
uint8_t **authKeys;
int authKeysCount;
int authKeysCap;
int authPeersCount;
int authPeersCap;
laikaM_newVector(struct sLaika_peer *, authPeers); /* holds connected panel peers */
laikaM_newVector(uint8_t *, authKeys);
uint16_t port;
};