From ba66c4dcbf00996e2569875e067679ccc48b1fc2 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Fri, 13 May 2011 20:53:18 +0200 Subject: Do not change the order of protobuf message types. --- src/Message.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Message.h') diff --git a/src/Message.h b/src/Message.h index 9f007c84d..40383576c 100644 --- a/src/Message.h +++ b/src/Message.h @@ -34,6 +34,11 @@ #include "Connection.h" #include "Mumble.pb.h" +/** + Protobuf packet type enumeration for message handler generation. + + Warning: Only append to the end. + */ #define MUMBLE_MH_ALL \ MUMBLE_MH_MSG(Version) \ MUMBLE_MH_MSG(UDPTunnel) \ @@ -52,7 +57,6 @@ MUMBLE_MH_MSG(QueryUsers) \ MUMBLE_MH_MSG(CryptSetup) \ MUMBLE_MH_MSG(ContextActionAdd) \ - MUMBLE_MH_MSG(ContextActionRemove) \ MUMBLE_MH_MSG(ContextAction) \ MUMBLE_MH_MSG(UserList) \ MUMBLE_MH_MSG(VoiceTarget) \ @@ -61,7 +65,8 @@ MUMBLE_MH_MSG(UserStats) \ MUMBLE_MH_MSG(RequestBlob) \ MUMBLE_MH_MSG(ServerConfig) \ - MUMBLE_MH_MSG(SuggestConfig) + MUMBLE_MH_MSG(SuggestConfig) \ + MUMBLE_MH_MSG(ContextActionRemove) class MessageHandler { public: -- cgit v1.2.3