Allow plugins to write to the parsed protobuf (minimizes copies in some cases)

This commit is contained in:
Kevin Hester
2021-08-01 11:20:38 -07:00
parent 676a6f3bea
commit d40b66beac
11 changed files with 11 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ class PositionPlugin : public ProtobufPlugin<Position>, private concurrency::OST
@return true if you've guaranteed you've handled this message and no other handlers should be considered for it
*/
virtual bool handleReceivedProtobuf(const MeshPacket &mp, const Position *p);
virtual bool handleReceivedProtobuf(const MeshPacket &mp, Position *p);
/** Messages can be received that have the want_response bit set. If set, this callback will be invoked
* so that subclasses can (optionally) send a response back to the original sender. */