X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fpackets.h;h=8001b8c1baa721beab957a34459e843d3c063219;hb=7e27b311e33beda1746eb63e0945633f262427f6;hp=31fd56d11350ff8390585cdfa7c97745956b1319;hpb=2fe7cbcb761487bc7409b93b372da6f8ab3c581e;p=r2c2.git diff --git a/source/network/packets.h b/source/network/packets.h index 31fd56d..8001b8c 100644 --- a/source/network/packets.h +++ b/source/network/packets.h @@ -1,29 +1,29 @@ /* $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 */ -#ifndef MARKLINNET_PACKETS_H_ -#define MARKLINNET_PACKETS_H_ +#ifndef R2C2_NET_PACKETS_H_ +#define R2C2_NET_PACKETS_H_ #include -namespace Marklin { +namespace R2C2 { struct TrainInfoPacket { unsigned address; - unsigned loco_type; + std::string loco_type; std::string name; }; -struct TrainSpeedPacket +struct TrainControlPacket { unsigned address; - unsigned speed; - char reverse; + std::string control; + float value; }; struct TrainFunctionPacket @@ -54,6 +54,6 @@ struct ErrorPacket std::string message; }; -} // namespace Marklin +} // namespace R2C2 #endif