First iteration that seems to work

This commit is contained in:
liquidraver committed 2026-02-20 12:43:13 +01:00
commit 8d1823d0b6
205 files changed
+41989

No files matched your search

@@ -0,0 +1,26 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Static pool PacketManager
*/
#pragma once
#include <mesh/Dispatcher.h>
namespace mesh {
class StaticPoolPacketManager : public PacketManager {
public:
Packet *allocNew() override;
void free(Packet *packet) override;
void queueOutbound(Packet *packet, uint8_t priority, uint32_t scheduled_for) override;
Packet *getNextOutbound(uint32_t now) override;
int getOutboundCount(uint32_t now) const override;
int getFreeCount() const override;
Packet *getOutboundByIdx(int i) override;
Packet *removeOutboundByIdx(int i) override;
void queueInbound(Packet *packet, uint32_t scheduled_for) override;
Packet *getNextInbound(uint32_t now) override;
};
} /* namespace mesh */