summaryrefslogtreecommitdiff
path: root/src/net/recvpacketdefine.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/recvpacketdefine.h
parent1dfc22f53967ad7e39d42ba8aabe0afa7445476e (diff)
downloadmv-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.tar.gz
mv-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.tar.bz2
mv-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.tar.xz
mv-9b06b6b56522f23eb3752d3a1e099c75ba130fc9.zip
Add version field in each receive packet define.
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r--src/net/recvpacketdefine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h
index 1ef0b4c55..840e7f2ed 100644
--- a/src/net/recvpacketdefine.h
+++ b/src/net/recvpacketdefine.h
@@ -21,9 +21,10 @@
#ifndef NET_RECVPACKETDEFINE_H
#define NET_RECVPACKETDEFINE_H
-#define packet(pname, pid, sz, pfunc) \
+#define packet(pname, pid, sz, pfunc, ver) \
mPackets[pid].name = #pname; \
mPackets[pid].len = sz; \
- mPackets[pid].func = pfunc
+ mPackets[pid].func = pfunc; \
+ mPackets[pid].version = ver
#endif // NET_RECVPACKETDEFINE_H