]> git.tdb.fi Git - r2c2.git/blobdiff - source/network/packets.h
Fix some more copyright messages
[r2c2.git] / source / network / packets.h
index 31fd56d11350ff8390585cdfa7c97745956b1319..06701214e591f7897ab29547fd899e93c46a5ae9 100644 (file)
@@ -1,29 +1,40 @@
 /* $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 <string>
 
-namespace Marklin {
+namespace R2C2 {
+
+struct DriverStatePacket
+{
+       char power;
+       char halt;
+};
+
+struct EmergencyPacket
+{
+       std::string message;
+};
 
 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 +65,6 @@ struct ErrorPacket
        std::string message;
 };
 
-} // namespace Marklin
+} // namespace R2C2
 
 #endif