summaryrefslogtreecommitdiff
path: root/netfs/xfers.h
diff options
context:
space:
mode:
Diffstat (limited to 'netfs/xfers.h')
-rw-r--r--netfs/xfers.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/netfs/xfers.h b/netfs/xfers.h
index c1369eb..baf2eaa 100644
--- a/netfs/xfers.h
+++ b/netfs/xfers.h
@@ -1,7 +1,8 @@
#ifndef XFERS_H
#define XFERS_H
-#define Xfer1(Ptype, Pbase, v1) \
+#define Xfer1(id, Ptype, Pbase, v1) \
+MSGTYPE(id, Ptype) \
void \
Ptype::Send(FILE*f) const \
{ \
@@ -15,7 +16,8 @@ Ptype::Read(FILE*f) \
*f >> v1; \
}
-#define Xfer2(Ptype, Pbase, v1, v2) \
+#define Xfer2(id, Ptype, Pbase, v1, v2) \
+MSGTYPE(id, Ptype) \
void \
Ptype::Send(FILE*f) const \
{ \
@@ -31,7 +33,8 @@ Ptype::Read(FILE*f) \
*f >> v2; \
}
-#define Xfer3(Ptype, Pbase, v1, v2, v3) \
+#define Xfer3(id, Ptype, Pbase, v1, v2, v3) \
+MSGTYPE(id, Ptype) \
void \
Ptype::Send(FILE*f) const \
{ \