X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmessages.h;h=0ba277d530c70d5dde9ee80fbdf92862afbe21f9;hb=HEAD;hp=e92fe2afc93e6815686b30abc202d38bebb696c6;hpb=4c431fe65269e9b1d452855b9df8cfe80683b691;p=umurmur.git diff --git a/src/messages.h b/src/messages.h index e92fe2a..0ba277d 100644 --- a/src/messages.h +++ b/src/messages.h @@ -1,5 +1,5 @@ -/* Copyright (C) 2009-2012, Martin Johansson - Copyright (C) 2005-2012, Thorvald Natvig +/* Copyright (C) 2009-2014, Martin Johansson + Copyright (C) 2005-2014, Thorvald Natvig All rights reserved. @@ -32,13 +32,14 @@ #define MESSAGES_H_89768 #include +#include #include "Mumble.pb-c.h" #include "list.h" #include "types.h" #define PROTVER_MAJOR 1 #define PROTVER_MINOR 2 -#define PROTVER_PATCH 3 +#define PROTVER_PATCH 4 #define PROTOCOL_VERSION ((PROTVER_MAJOR << 16) | (PROTVER_MINOR << 8) | (PROTVER_PATCH)) #define PERM_NONE 0x0 @@ -97,6 +98,7 @@ typedef enum { UDPPing, UDPVoiceSpeex, UDPVoiceCELTBeta, + UDPVoiceOpus, } UDPMessageType_t; @@ -111,8 +113,7 @@ typedef union payload { struct _MumbleProto__ChannelState *channelState; struct _MumbleProto__UserRemove *userRemove; struct _MumbleProto__UserState *userState; - /* BanEntry not supported */ - /* BanList not supported */ + struct _MumbleProto__BanList *banList; struct _MumbleProto__TextMessage *textMessage; struct _MumbleProto__PermissionDenied *permissionDenied; /* ChanACL not supported */ @@ -147,5 +148,11 @@ void Msg_inc_ref(message_t *msg); message_t *Msg_CreateVoiceMsg(uint8_t *data, int size); message_t *Msg_create(messageType_t messageType); +void Msg_banList_addEntry(message_t *msg, int index, uint8_t *address, uint32_t mask, + char *name, char *hash, char *reason, char *start, uint32_t duration); +void Msg_banList_getEntry(message_t *msg, int index, uint8_t **address, uint32_t *mask, + char **name, char **hash, char **reason, char **start, uint32_t *duration); +message_t *Msg_banList_create(int n_bans); + #endif