X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fprotocol.cpp;h=f688b486442d38a2d51f9ee3a520ba6a7485ac08;hb=d084e6f369a829f41086d1f7f9befa52d0392d58;hp=623eadb334eff2b89666c085333fb63af516be9c;hpb=9ddcd066e37e4c72685817c042c30897786ece05;p=r2c2.git diff --git a/source/network/protocol.cpp b/source/network/protocol.cpp index 623eadb..f688b48 100644 --- a/source/network/protocol.cpp +++ b/source/network/protocol.cpp @@ -1,6 +1,6 @@ /* $Id$ -This file is part of the MSP Märklin suite +This file is part of R²C² Copyright © 2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -8,10 +8,13 @@ Distributed under the GPL #include "packets.h" #include "protocol.h" -namespace Marklin { +namespace R2C2 { Protocol::Protocol() { + add() (&DriverStatePacket::power) + (&DriverStatePacket::halt); + add() (&EmergencyPacket::message); add() (&TrainInfoPacket::address) (&TrainInfoPacket::loco_type) (&TrainInfoPacket::name); add() (&TrainControlPacket::address) @@ -26,4 +29,4 @@ Protocol::Protocol() add() (&ErrorPacket::message); } -} // namespace Marklin +} // namespace R2C2