summaryrefslogtreecommitdiff
path: root/src/net/packetinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-31 23:14:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-31 23:20:59 +0300
commit9b06b6b56522f23eb3752d3a1e099c75ba130fc9 (patch)
tree927d237f5a4ee212d0f407e891ff556f36358bc6 /src/net/packetinfo.h
parent1dfc22f53967ad7e39d42ba8aabe0afa7445476e (diff)
downloadmanaplus-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.tar.gz
manaplus-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.tar.bz2
manaplus-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.tar.xz
manaplus-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.zip
Add version field in each receive packet define.
Diffstat (limited to 'src/net/packetinfo.h')
-rw-r--r--src/net/packetinfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/packetinfo.h b/src/net/packetinfo.h
index cdb873577..a9691c79f 100644
--- a/src/net/packetinfo.h
+++ b/src/net/packetinfo.h
@@ -30,13 +30,15 @@ struct PacketInfo final
PacketInfo() :
name(nullptr),
func(nullptr),
- len(0)
+ len(0),
+ version(0)
{
}
const char *name;
PacketFuncPtr func;
int len;
+ int version;
};
#endif // NET_PACKETINFO_H