refactor ClientACL and CommonCLI, add ClientACL::clear()

This commit is contained in:
taco committed 2026-01-25 01:31:53 +11:00
1 parent bce64a57f9
commit 1df8dc9ef3
9 files changed
+25 -9

No files matched your search

+2
View File
@@ -36,6 +36,7 @@ struct ClientInfo {
#endif
class ClientACL {
FILESYSTEM* _fs;
ClientInfo clients[MAX_CLIENTS];
int num_clients;
@@ -46,6 +47,7 @@ public:
}
void load(FILESYSTEM* _fs);
void save(FILESYSTEM* _fs, bool (*filter)(ClientInfo*)=NULL);
bool clear();
ClientInfo* getClient(const uint8_t* pubkey, int key_len);
ClientInfo* putClient(const mesh::Identity& id, uint8_t init_perms);