Modifying protocol such that lobby chat and broadcasts are supported. DOES NOT COMPILE YET.

This commit is contained in:
lotodore
2009-08-15 08:38:56 +00:00
parent 4593308da8
commit 94db67bbd5
19 changed files with 721 additions and 42 deletions
+29 -3
View File
@@ -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,