summaryrefslogtreecommitdiff
path: root/src/net/packetfunction.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 02:20:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 02:20:48 +0300
commit7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa (patch)
tree6eb9f0aebf7e80242f5b8e23fb0ea2f98635a47a /src/net/packetfunction.h
parent1e302305d8777da7b40b1ae53ae33eab866b9e26 (diff)
downloadmv-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.gz
mv-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.bz2
mv-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.xz
mv-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.zip
Use packet handlers from packet defines.
Diffstat (limited to 'src/net/packetfunction.h')
-rw-r--r--src/net/packetfunction.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/net/packetfunction.h b/src/net/packetfunction.h
new file mode 100644
index 000000000..a96140e04
--- /dev/null
+++ b/src/net/packetfunction.h
@@ -0,0 +1,33 @@
+/*
+ * 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_PACKETFUNCTION_H
+#define NET_PACKETFUNCTION_H
+
+#include "localconsts.h"
+
+namespace Net
+{
+ class MessageIn;
+}
+
+typedef void (*PacketFuncPtr) (Net::MessageIn &msg);
+
+#endif // NET_PACKETFUNCTION_H