X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fpackets.h;h=06701214e591f7897ab29547fd899e93c46a5ae9;hb=b14059de03324aecde3efc649293d98ce5b7aaf2;hp=bb08941b49b1235d0e9529e57304e7126ded99b2;hpb=e392d397f6b86a49a05e9738357ccbfc2a922f01;p=r2c2.git diff --git a/source/network/packets.h b/source/network/packets.h index bb08941..0670121 100644 --- a/source/network/packets.h +++ b/source/network/packets.h @@ -1,16 +1,27 @@ /* $Id$ -This file is part of the MSP Märklin suite -Copyright © 2009 Mikkosoft Productions, Mikko Rasa +This file is part of R²C² +Copyright © 2009-2011 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 DriverStatePacket +{ + char power; + char halt; +}; + +struct EmergencyPacket +{ + std::string message; +}; struct TrainInfoPacket { @@ -54,6 +65,6 @@ struct ErrorPacket std::string message; }; -} // namespace Marklin +} // namespace R2C2 #endif