summaryrefslogtreecommitdiff
path: root/src/net/protocolindefine.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-01 22:39:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-01 22:39:44 +0300
commit83915bb5c10c8b694e633b8e3089603d3281b8a0 (patch)
treecd5f26cb0f2feca3baa5a1dc0910379ef487795e /src/net/protocolindefine.h
parent910d7bb8267d38c2ca68f963d2239f23f0abc83f (diff)
downloadplus-83915bb5c10c8b694e633b8e3089603d3281b8a0.tar.gz
plus-83915bb5c10c8b694e633b8e3089603d3281b8a0.tar.bz2
plus-83915bb5c10c8b694e633b8e3089603d3281b8a0.tar.xz
plus-83915bb5c10c8b694e633b8e3089603d3281b8a0.zip
Add packet sizes to packetin.inc. But for now size unused.
Diffstat (limited to 'src/net/protocolindefine.h')
-rw-r--r--src/net/protocolindefine.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/net/protocolindefine.h b/src/net/protocolindefine.h
new file mode 100644
index 000000000..37c035df1
--- /dev/null
+++ b/src/net/protocolindefine.h
@@ -0,0 +1,26 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2015 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_PROTOCOLINDEFINE_H
+#define NET_PROTOCOLINDEFINE_H
+
+#define packet(name, id, sz) static const int name = id
+
+#endif // NET_PROTOCOLINDEFINE_H