diff options
Diffstat (limited to 'src/cmumble.h')
-rw-r--r-- | src/cmumble.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cmumble.h b/src/cmumble.h new file mode 100644 index 0000000..94ac8dd --- /dev/null +++ b/src/cmumble.h @@ -0,0 +1,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 |