1
0
Fork 0
forked from External/grumble

Add message numbers to mumbleproto package.

This commit is contained in:
Mikkel Krautz 2011-09-07 16:12:07 +02:00
parent 4d5b897d66
commit 7482d5cb19
6 changed files with 112 additions and 108 deletions

View file

@ -1,8 +1,9 @@
include $(GOROOT)/src/Make.inc
TARG = mumbleproto
TARG = grumble/mumbleproto
GOFILES=\
Mumble.pb.go
Mumble.pb.go \
types.go
include $(GOROOT)/src/Make.pkg
include $(GOROOT)/src/pkg/goprotobuf.googlecode.com/hg/Make.protobuf

40
pkg/mumbleproto/types.go Normal file
View file

@ -0,0 +1,40 @@
// Copyright (c) 2011 The Grumble Authors
// The use of this source code is goverened by a BSD-style
// license that can be found in the LICENSE-file.
package mumbleproto
const (
MessageVersion = iota
MessageUDPTunnel
MessageAuthenticate
MessagePing
MessageReject
MessageServerSync
MessageChannelRemove
MessageChannelState
MessageUserRemove
MessageUserState
MessageBanList
MessageTextMessage
MessagePermissionDenied
MessageACL
MessageQueryUsers
MessageCryptSetup
MessageContextActionAdd
MessageContextAction
MessageUserList
MessageVoiceTarget
MessagePermissionQuery
MessageCodecVersion
MessageUserStats
MessageRequestBlob
MessageServerConfig
)
const (
UDPMessageVoiceCELTAlpha = iota
UDPMessagePing
UDPMessageVoiceSpeex
UDPMessageVoiceCELTBeta
)