summaryrefslogtreecommitdiff
path: root/src/net/packetlimiter.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 13:04:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 13:04:25 +0300
commitc5bce143546ffc64de9be6b3284a6d4edb72839d (patch)
tree11a59aeec8403609b39af66e70f95313dd9adf11 /src/net/packetlimiter.h
parent07cf20b698bba9b5800ecbda3788ef441b9c49c2 (diff)
downloadplus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.gz
plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.bz2
plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.xz
plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.zip
Convert PacketType enum into strong typed enum.
Diffstat (limited to 'src/net/packetlimiter.h')
-rw-r--r--src/net/packetlimiter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/packetlimiter.h b/src/net/packetlimiter.h
index f0d8a78df..d8d7d4ea6 100644
--- a/src/net/packetlimiter.h
+++ b/src/net/packetlimiter.h
@@ -21,6 +21,8 @@
#ifndef NET_PACKETLIMITER_H
#define NET_PACKETLIMITER_H
+#include "enums/net/packettype.h"
+
#include <string>
#include "localconsts.h"
@@ -31,9 +33,9 @@ namespace PacketLimiter
void writePacketLimits(const std::string &packetLimitsName);
- bool limitPackets(const int type) A_WARN_UNUSED;
+ bool limitPackets(const PacketTypeT type) A_WARN_UNUSED;
- bool checkPackets(const int type) A_WARN_UNUSED;
+ bool checkPackets(const PacketTypeT type) A_WARN_UNUSED;
}
#endif // NET_PACKETLIMITER_H