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:
1 parent
3d281e16d7
commit
18d92a2b11
17 files changed
+424
-422
No files matched your search
@@ -45,9 +45,9 @@ class MqttPublisher
|
||||
|
||||
// Node-list snapshots — published retained
|
||||
void publishLocalNodes(
|
||||
const std::vector<MsgTrunkNodeList::NodeEntry>& nodes);
|
||||
const std::vector<MsgPeerNodeList::NodeEntry>& nodes);
|
||||
void publishPeerNodes(const std::string& peer_id,
|
||||
const std::vector<MsgTrunkNodeList::NodeEntry>& nodes);
|
||||
const std::vector<MsgPeerNodeList::NodeEntry>& nodes);
|
||||
|
||||
private:
|
||||
Async::Config& m_cfg;
|
||||
@@ -98,9 +98,9 @@ class MqttPublisher
|
||||
void onRxUpdate(const std::string&, const Json::Value&) {}
|
||||
void publishFullStatus(const Json::Value&) {}
|
||||
void publishLocalNodes(
|
||||
const std::vector<MsgTrunkNodeList::NodeEntry>&) {}
|
||||
const std::vector<MsgPeerNodeList::NodeEntry>&) {}
|
||||
void publishPeerNodes(const std::string&,
|
||||
const std::vector<MsgTrunkNodeList::NodeEntry>&) {}
|
||||
const std::vector<MsgPeerNodeList::NodeEntry>&) {}
|
||||
};
|
||||
|
||||
#endif /* WITH_MQTT */
|
||||
|
||||
Reference in new issue
Block a user