1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-01 14:00:06 +00:00

shell: migrated to new vector API

- removed array API from lmem.h
- sterm.c: basically left as-is. see source for notes as to why
This commit is contained in:
2022-09-01 19:35:52 -05:00
parent 44086f563b
commit 169313ee39
6 changed files with 53 additions and 48 deletions

View File

@@ -2,6 +2,7 @@
#define SHELLCLIENT_H
#include "hashmap.h"
#include "lmem.h"
#include "lpeer.h"
#include "lsodium.h"
#include "ltask.h"
@@ -15,9 +16,7 @@ typedef struct sShell_client
struct sLaika_peer *peer;
tShell_peer *openShell; /* if not NULL, shell is open on peer */
struct hashmap *peers;
tShell_peer **peerTbl;
int peerTblCount;
int peerTblCap;
laikaM_newVector(tShell_peer *, peerTbl);
} tShell_client;
#define shellC_isShellOpen(x) (x->openShell != NULL)