-/* $Id$
+#ifndef R2C2_NET_PACKETS_H_
+#define R2C2_NET_PACKETS_H_
-This file is part of the MSP Märklin suite
-Copyright © 2009 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
+#include <string>
-#ifndef MARKLINNET_PACKETS_H_
-#define MARKLINNET_PACKETS_H_
+namespace R2C2 {
-#include <string>
+struct DriverStatePacket
+{
+ char power;
+ char halt;
+};
-namespace Marklin {
+struct EmergencyPacket
+{
+ std::string message;
+};
struct TrainInfoPacket
{
unsigned address;
- unsigned loco_type;
+ std::string loco_type;
std::string name;
};
std::string message;
};
-} // namespace Marklin
+} // namespace R2C2
#endif