Generating code for protocol.

This commit is contained in:
lotodore
2010-03-26 20:50:16 +00:00
parent d7c12d9fca
commit b715542dc9
4 changed files with 15 additions and 15 deletions
+6 -6
View File
@@ -19,22 +19,22 @@ static asn_TYPE_member_t asn_MBR_GamePlayerJoined_1[] = {
0,
"playerId"
},
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, curPlayerRights),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, isGameAdmin),
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
0,
&asn_DEF_PlayerInfoRights,
&asn_DEF_BOOLEAN,
0, /* Defer constraints checking to the member type */
0, /* PER is not compiled, use -gen-PER */
0,
"curPlayerRights"
"isGameAdmin"
},
};
static ber_tlv_tag_t asn_DEF_GamePlayerJoined_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_GamePlayerJoined_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* playerId at 337 */
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* curPlayerRights at 339 */
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 1, 0, 0 }, /* isGameAdmin at 338 */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 337 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerJoined_specs_1 = {
sizeof(struct GamePlayerJoined),
+2 -2
View File
@@ -13,7 +13,7 @@
/* Including external dependencies */
#include "NonZeroId.h"
#include "PlayerInfoRights.h"
#include <BOOLEAN.h>
#include <constr_SEQUENCE.h>
#ifdef __cplusplus
@@ -23,7 +23,7 @@ extern "C" {
/* GamePlayerJoined */
typedef struct GamePlayerJoined {
NonZeroId_t playerId;
PlayerInfoRights_t curPlayerRights;
BOOLEAN_t isGameAdmin;
/*
* This type is extensible,
* possible extensions are below.
+5 -5
View File
@@ -10,14 +10,14 @@
#include "JoinGameAck.h"
static asn_TYPE_member_t asn_MBR_JoinGameAck_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, yourRights),
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, areYouGameAdmin),
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
0,
&asn_DEF_PlayerInfoRights,
&asn_DEF_BOOLEAN,
0, /* Defer constraints checking to the member type */
0, /* PER is not compiled, use -gen-PER */
0,
"yourRights"
"areYouGameAdmin"
},
{ ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, gameInfo),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
@@ -33,7 +33,7 @@ static ber_tlv_tag_t asn_DEF_JoinGameAck_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_JoinGameAck_tag2el_1[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* yourRights at 292 */
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* areYouGameAdmin at 292 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* gameInfo at 294 */
};
static asn_SEQUENCE_specifics_t asn_SPC_JoinGameAck_specs_1 = {
+2 -2
View File
@@ -12,7 +12,7 @@
#include <asn_application.h>
/* Including external dependencies */
#include "PlayerInfoRights.h"
#include <BOOLEAN.h>
#include "NetGameInfo.h"
#include <constr_SEQUENCE.h>
@@ -22,7 +22,7 @@ extern "C" {
/* JoinGameAck */
typedef struct JoinGameAck {
PlayerInfoRights_t yourRights;
BOOLEAN_t areYouGameAdmin;
NetGameInfo_t gameInfo;
/*
* This type is extensible,