Modifying protocol such that lobby chat and broadcasts are supported. DOES NOT COMPILE YET.
This commit is contained in:
Vendored
+29
-3
@@ -11,18 +11,44 @@
|
||||
#include <asn_application.h>
|
||||
|
||||
/* Including external dependencies */
|
||||
#include "Id.h"
|
||||
#include <UTF8String.h>
|
||||
#include "ChatTypeLobby.h"
|
||||
#include "ChatTypeGame.h"
|
||||
#include "ChatTypeBroadcast.h"
|
||||
#include <constr_CHOICE.h>
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum chatType_PR {
|
||||
chatType_PR_NOTHING, /* No components present */
|
||||
chatType_PR_chatTypeLobby,
|
||||
chatType_PR_chatTypeGame,
|
||||
chatType_PR_chatTypeBroadcast,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} chatType_PR;
|
||||
|
||||
/* ChatMessage */
|
||||
typedef struct ChatMessage {
|
||||
Id_t gameId;
|
||||
Id_t playerId;
|
||||
struct chatType {
|
||||
chatType_PR present;
|
||||
union ChatMessage__chatType_u {
|
||||
ChatTypeLobby_t chatTypeLobby;
|
||||
ChatTypeGame_t chatTypeGame;
|
||||
ChatTypeBroadcast_t chatTypeBroadcast;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} chatType;
|
||||
UTF8String_t chatText;
|
||||
/*
|
||||
* This type is extensible,
|
||||
|
||||
Reference in New Issue
Block a user