summaryrefslogtreecommitdiff
path: root/src/cmumble.h
blob: 94ac8dd17364688708812a1d3c10af1d5ba31cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _CMUMBLE_H_
#define _CMUMBLE_H_

#include "messages.h"

enum mumble_message {
#define MUMBLE_MSG(a,b,c) a,
	MUMBLE_MSGS
#undef MUMBLE_MSG
};

static const struct {
	const ProtobufCMessageDescriptor *descriptor;
	const char *name;
} messages[] = {
#define MUMBLE_MSG(a,b,c) { &mumble_proto_##b##__descriptor, c },
	MUMBLE_MSGS
#undef MUMBLE_MSG
};

#endif