summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 10:45:44 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 22:20:59 +0100
commitd4abd71aff37402fea80191c9b3b990124b0ee9b (patch)
tree1c237d3714ba7128983f7419a87e430f315454a8 /src/cmumble.c
parent3e94de272da73e76219a114395130fd1844e68af (diff)
downloadcmumble-d4abd71aff37402fea80191c9b3b990124b0ee9b.tar.gz
cmumble-d4abd71aff37402fea80191c9b3b990124b0ee9b.tar.bz2
cmumble-d4abd71aff37402fea80191c9b3b990124b0ee9b.zip
message.h: Add wrapper around protobufs ugly func names
They are of cause autogenerated. Only the one wrapper for the reject enum is added as one makro by hand.
Diffstat (limited to 'src/cmumble.c')
-rw-r--r--src/cmumble.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index ed97ea1..d514ca4 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -198,14 +198,14 @@ static void
recv_reject(MumbleProto__Reject *reject, struct cmumble *cm)
{
switch (reject->type) {
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__None:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__WrongVersion:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__InvalidUsername:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__WrongUserPW:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__WrongServerPW:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__UsernameInUse:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__ServerFull:
- case MUMBLE_PROTO__REJECT__REJECT_TYPE__NoCertificate:
+ case MUMBLE_REJECT_TYPE(None):
+ case MUMBLE_REJECT_TYPE(WrongVersion):
+ case MUMBLE_REJECT_TYPE(InvalidUsername):
+ case MUMBLE_REJECT_TYPE(WrongUserPW):
+ case MUMBLE_REJECT_TYPE(WrongServerPW):
+ case MUMBLE_REJECT_TYPE(UsernameInUse):
+ case MUMBLE_REJECT_TYPE(ServerFull):
+ case MUMBLE_REJECT_TYPE(NoCertificate):
g_printerr("Connection rejected: %s\n", reject->reason);
break;
default: