refactor: rename MsgTrunk* -> MsgPeer*

The eight MsgTrunk* types flow over trunk, satellite, and twin links —
"Trunk" was a misleading prefix for what is actually a shared peer
protocol. Wire IDs (115-122) and field layouts are unchanged, so this
is wire-equivalent: a renamed reflector and an old reflector
interoperate identically.

Also renames docs/TRUNK_PROTOCOL.md -> docs/PEER_PROTOCOL.md.

Twin-only types MsgTwinExt* (123/124) stay as-is.
This commit is contained in:
Audric committed 2026-04-28 18:00:24 +02:00
1 parent 3d281e16d7
commit 18d92a2b11
17 files changed
+424 -422

No files matched your search

+3 -3
View File
@@ -329,7 +329,7 @@ void MqttPublisher::publishFullStatus(const Json::Value& status)
static Json::Value nodeListToJson(
const std::vector<MsgTrunkNodeList::NodeEntry>& nodes)
const std::vector<MsgPeerNodeList::NodeEntry>& nodes)
{
Json::Value arr(Json::arrayValue);
for (const auto& n : nodes)
@@ -356,7 +356,7 @@ static Json::Value nodeListToJson(
void MqttPublisher::publishLocalNodes(
const std::vector<MsgTrunkNodeList::NodeEntry>& nodes)
const std::vector<MsgPeerNodeList::NodeEntry>& nodes)
{
Json::StreamWriterBuilder wb;
wb["indentation"] = "";
@@ -366,7 +366,7 @@ void MqttPublisher::publishLocalNodes(
void MqttPublisher::publishPeerNodes(const std::string& peer_id,
const std::vector<MsgTrunkNodeList::NodeEntry>& nodes)
const std::vector<MsgPeerNodeList::NodeEntry>& nodes)
{
Json::StreamWriterBuilder wb;
wb["indentation"] = "";