Preparing network protocol for rejoin.
This commit is contained in:
+28
-4
@@ -96,6 +96,7 @@ AnnounceMessage ::= [APPLICATION 0] SEQUENCE {
|
|||||||
InitMessage ::= [APPLICATION 1] SEQUENCE {
|
InitMessage ::= [APPLICATION 1] SEQUENCE {
|
||||||
requestedVersion Version,
|
requestedVersion Version,
|
||||||
buildId INTEGER,
|
buildId INTEGER,
|
||||||
|
myLastSessionId Guid,
|
||||||
login CHOICE {
|
login CHOICE {
|
||||||
guestLogin [0] GuestLogin,
|
guestLogin [0] GuestLogin,
|
||||||
authenticatedLogin [1] AuthenticatedLogin,
|
authenticatedLogin [1] AuthenticatedLogin,
|
||||||
@@ -144,7 +145,8 @@ AuthServerVerification ::= SEQUENCE {
|
|||||||
InitAckMessage ::= [APPLICATION 3] SEQUENCE {
|
InitAckMessage ::= [APPLICATION 3] SEQUENCE {
|
||||||
yourSessionId Guid,
|
yourSessionId Guid,
|
||||||
yourPlayerId NonZeroId,
|
yourPlayerId NonZeroId,
|
||||||
yourAvatar AvatarHash OPTIONAL
|
yourAvatar AvatarHash OPTIONAL,
|
||||||
|
rejoinGameId NonZeroId OPTIONAL
|
||||||
}
|
}
|
||||||
|
|
||||||
AvatarRequestMessage ::= [APPLICATION 4] SEQUENCE {
|
AvatarRequestMessage ::= [APPLICATION 4] SEQUENCE {
|
||||||
@@ -279,7 +281,8 @@ SubscriptionRequestMessage ::= [APPLICATION 10] SEQUENCE {
|
|||||||
JoinGameRequestMessage ::= [APPLICATION 11] SEQUENCE {
|
JoinGameRequestMessage ::= [APPLICATION 11] SEQUENCE {
|
||||||
joinGameAction CHOICE {
|
joinGameAction CHOICE {
|
||||||
joinExistingGame [0] JoinExistingGame,
|
joinExistingGame [0] JoinExistingGame,
|
||||||
joinNewGame [1] JoinNewGame
|
joinNewGame [1] JoinNewGame,
|
||||||
|
rejoinExistingGame [2] RejoinExistingGame
|
||||||
},
|
},
|
||||||
password UTF8String (SIZE(1..64)) OPTIONAL,
|
password UTF8String (SIZE(1..64)) OPTIONAL,
|
||||||
autoLeave BOOLEAN
|
autoLeave BOOLEAN
|
||||||
@@ -293,6 +296,10 @@ JoinNewGame ::= SEQUENCE {
|
|||||||
gameInfo NetGameInfo
|
gameInfo NetGameInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RejoinExistingGame ::= SEQUENCE {
|
||||||
|
gameId NonZeroId
|
||||||
|
}
|
||||||
|
|
||||||
JoinGameReplyMessage ::= [APPLICATION 12] SEQUENCE {
|
JoinGameReplyMessage ::= [APPLICATION 12] SEQUENCE {
|
||||||
gameId NonZeroId,
|
gameId NonZeroId,
|
||||||
joinGameResult CHOICE {
|
joinGameResult CHOICE {
|
||||||
@@ -317,7 +324,8 @@ JoinGameFailed ::= SEQUENCE {
|
|||||||
gameNameInUse (7),
|
gameNameInUse (7),
|
||||||
badGameName (8),
|
badGameName (8),
|
||||||
invalidSettings (9),
|
invalidSettings (9),
|
||||||
ipAddressBlocked (10)
|
ipAddressBlocked (10),
|
||||||
|
rejoinFailed (11)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -432,10 +440,26 @@ StartEventAckMessage ::= [APPLICATION 21] SEQUENCE {
|
|||||||
gameId NonZeroId
|
gameId NonZeroId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RejoinPlayerData ::= SEQUENCE {
|
||||||
|
playerId NonZeroId,
|
||||||
|
playerMoney INTEGER(0..10000000)
|
||||||
|
}
|
||||||
|
|
||||||
|
GameStartModeInitial ::= SEQUENCE {
|
||||||
|
playerSeats SEQUENCE SIZE(2..10) OF NonZeroId
|
||||||
|
}
|
||||||
|
|
||||||
|
GameStartModeRejoin ::= SEQUENCE {
|
||||||
|
rejoinPlayerData SEQUENCE SIZE(2..10) OF RejoinPlayerData
|
||||||
|
}
|
||||||
|
|
||||||
GameStartMessage ::= [APPLICATION 22] SEQUENCE {
|
GameStartMessage ::= [APPLICATION 22] SEQUENCE {
|
||||||
gameId NonZeroId,
|
gameId NonZeroId,
|
||||||
startDealerPlayerId NonZeroId,
|
startDealerPlayerId NonZeroId,
|
||||||
playerSeats SEQUENCE SIZE(2..10) OF NonZeroId
|
gameStartMode CHOICE {
|
||||||
|
gameStartModeInitial [0] GameStartModeInitial,
|
||||||
|
gameStartModeRejoin [1] GameStartModeRejoin
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PlainCards ::= SEQUENCE {
|
PlainCards ::= SEQUENCE {
|
||||||
|
|||||||
@@ -94,6 +94,8 @@ HEADERS += src/third_party/asn1/AllInShowCardsMessage.h \
|
|||||||
src/third_party/asn1/GamePlayerLeft.h \
|
src/third_party/asn1/GamePlayerLeft.h \
|
||||||
src/third_party/asn1/GamePlayerMessage.h \
|
src/third_party/asn1/GamePlayerMessage.h \
|
||||||
src/third_party/asn1/GameStartMessage.h \
|
src/third_party/asn1/GameStartMessage.h \
|
||||||
|
src/third_party/asn1/GameStartModeInitial.h \
|
||||||
|
src/third_party/asn1/GameStartModeRejoin.h \
|
||||||
src/third_party/asn1/Guid.h \
|
src/third_party/asn1/Guid.h \
|
||||||
src/third_party/asn1/HandStartMessage.h \
|
src/third_party/asn1/HandStartMessage.h \
|
||||||
src/third_party/asn1/Id.h \
|
src/third_party/asn1/Id.h \
|
||||||
@@ -138,6 +140,8 @@ HEADERS += src/third_party/asn1/AllInShowCardsMessage.h \
|
|||||||
src/third_party/asn1/RejectGameInvitationMessage.h \
|
src/third_party/asn1/RejectGameInvitationMessage.h \
|
||||||
src/third_party/asn1/RejectGameInvReason.h \
|
src/third_party/asn1/RejectGameInvReason.h \
|
||||||
src/third_party/asn1/RejectInvNotifyMessage.h \
|
src/third_party/asn1/RejectInvNotifyMessage.h \
|
||||||
|
src/third_party/asn1/RejoinExistingGame.h \
|
||||||
|
src/third_party/asn1/RejoinPlayerData.h \
|
||||||
src/third_party/asn1/RemovedFromGame.h \
|
src/third_party/asn1/RemovedFromGame.h \
|
||||||
src/third_party/asn1/ResetTimeoutMessage.h \
|
src/third_party/asn1/ResetTimeoutMessage.h \
|
||||||
src/third_party/asn1/StartEventAckMessage.h \
|
src/third_party/asn1/StartEventAckMessage.h \
|
||||||
@@ -245,6 +249,8 @@ SOURCES += src/third_party/asn1/ChatCleanerMessage.c \
|
|||||||
src/third_party/asn1/HandStartMessage.c \
|
src/third_party/asn1/HandStartMessage.c \
|
||||||
src/third_party/asn1/Guid.c \
|
src/third_party/asn1/Guid.c \
|
||||||
src/third_party/asn1/GameStartMessage.c \
|
src/third_party/asn1/GameStartMessage.c \
|
||||||
|
src/third_party/asn1/GameStartModeInitial.c \
|
||||||
|
src/third_party/asn1/GameStartModeRejoin.c \
|
||||||
src/third_party/asn1/GamePlayerMessage.c \
|
src/third_party/asn1/GamePlayerMessage.c \
|
||||||
src/third_party/asn1/GamePlayerLeft.c \
|
src/third_party/asn1/GamePlayerLeft.c \
|
||||||
src/third_party/asn1/GamePlayerJoined.c \
|
src/third_party/asn1/GamePlayerJoined.c \
|
||||||
@@ -306,6 +312,8 @@ SOURCES += src/third_party/asn1/ChatCleanerMessage.c \
|
|||||||
src/third_party/asn1/RejectGameInvitationMessage.c \
|
src/third_party/asn1/RejectGameInvitationMessage.c \
|
||||||
src/third_party/asn1/RejectInvNotifyMessage.c \
|
src/third_party/asn1/RejectInvNotifyMessage.c \
|
||||||
src/third_party/asn1/RejectGameInvReason.c \
|
src/third_party/asn1/RejectGameInvReason.c \
|
||||||
|
src/third_party/asn1/RejoinExistingGame.c \
|
||||||
|
src/third_party/asn1/RejoinPlayerData.c \
|
||||||
src/third_party/asn1/AfterHandShowCardsMessage.c \
|
src/third_party/asn1/AfterHandShowCardsMessage.c \
|
||||||
src/third_party/asn1/ShowMyCardsRequestMessage.c \
|
src/third_party/asn1/ShowMyCardsRequestMessage.c \
|
||||||
src/third_party/asn1/EncryptedCards.c \
|
src/third_party/asn1/EncryptedCards.c \
|
||||||
|
|||||||
@@ -1485,13 +1485,17 @@ ClientStateWaitStart::InternalHandlePacket(boost::shared_ptr<ClientThread> clien
|
|||||||
GameStartMessage_t *netGameStart = &tmpPacket->GetMsg()->choice.gameStartMessage;
|
GameStartMessage_t *netGameStart = &tmpPacket->GetMsg()->choice.gameStartMessage;
|
||||||
|
|
||||||
StartData startData;
|
StartData startData;
|
||||||
startData.numberOfPlayers = netGameStart->playerSeats.list.count;
|
|
||||||
startData.startDealerPlayerId = netGameStart->startDealerPlayerId;
|
startData.startDealerPlayerId = netGameStart->startDealerPlayerId;
|
||||||
|
if (netGameStart->gameStartMode.present != gameStartMode_PR_gameStartModeInitial)
|
||||||
|
throw ClientException(__FILE__, __LINE__, ERR_NET_INTERNAL_GAME_ERROR, 0);
|
||||||
|
|
||||||
|
GameStartModeInitial_t *netStartModeInitial = &netGameStart->gameStartMode.choice.gameStartModeInitial;
|
||||||
|
startData.numberOfPlayers = netStartModeInitial->playerSeats.list.count;
|
||||||
client->SetStartData(startData);
|
client->SetStartData(startData);
|
||||||
|
|
||||||
// Set player numbers using the game start data slots.
|
// Set player numbers using the game start data slots.
|
||||||
NonZeroId_t **playerIds = netGameStart->playerSeats.list.array;
|
NonZeroId_t **playerIds = netStartModeInitial->playerSeats.list.array;
|
||||||
unsigned numPlayers = netGameStart->playerSeats.list.count;
|
unsigned numPlayers = netStartModeInitial->playerSeats.list.count;
|
||||||
// Request player info for players if needed.
|
// Request player info for players if needed.
|
||||||
if (numPlayers && playerIds && *playerIds) {
|
if (numPlayers && playerIds && *playerIds) {
|
||||||
for (unsigned i = 0; i < numPlayers; i++) {
|
for (unsigned i = 0; i < numPlayers; i++) {
|
||||||
|
|||||||
@@ -721,6 +721,8 @@ ServerGameStateStartGame::DoStart(boost::shared_ptr<ServerGame> server)
|
|||||||
GameStartMessage_t *netGameStart = &packet->GetMsg()->choice.gameStartMessage;
|
GameStartMessage_t *netGameStart = &packet->GetMsg()->choice.gameStartMessage;
|
||||||
netGameStart->gameId = server->GetId();
|
netGameStart->gameId = server->GetId();
|
||||||
netGameStart->startDealerPlayerId = server->GetStartData().startDealerPlayerId;
|
netGameStart->startDealerPlayerId = server->GetStartData().startDealerPlayerId;
|
||||||
|
netGameStart->gameStartMode.present = gameStartMode_PR_gameStartModeInitial;
|
||||||
|
GameStartModeInitial_t *netStartModeInitial = &netGameStart->gameStartMode.choice.gameStartModeInitial;
|
||||||
|
|
||||||
// Send player order to clients.
|
// Send player order to clients.
|
||||||
// Assume player list is sorted by number.
|
// Assume player list is sorted by number.
|
||||||
@@ -729,7 +731,7 @@ ServerGameStateStartGame::DoStart(boost::shared_ptr<ServerGame> server)
|
|||||||
while (player_i != player_end) {
|
while (player_i != player_end) {
|
||||||
NonZeroId_t *playerSlot = (NonZeroId_t *)calloc(1, sizeof(NonZeroId_t));
|
NonZeroId_t *playerSlot = (NonZeroId_t *)calloc(1, sizeof(NonZeroId_t));
|
||||||
*playerSlot = (*player_i)->GetUniqueId();
|
*playerSlot = (*player_i)->GetUniqueId();
|
||||||
ASN_SEQUENCE_ADD(&netGameStart->playerSeats.list, playerSlot);
|
ASN_SEQUENCE_ADD(&netStartModeInitial->playerSeats.list, playerSlot);
|
||||||
|
|
||||||
++player_i;
|
++player_i;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
#include "AfkWarningMessage.h"
|
#include "AfkWarningMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AfkWarningMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AfkWarningMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AfkWarningMessage, remainingTimeouts),
|
{ ATF_NOFLAGS, 0, offsetof(struct AfkWarningMessage, remainingTimeouts),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -16,14 +16,14 @@ static asn_TYPE_member_t asn_MBR_AfkWarningMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"remainingTimeouts"
|
"remainingTimeouts"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AfkWarningMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AfkWarningMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (135 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (135 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AfkWarningMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AfkWarningMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* remainingTimeouts at 719 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* remainingTimeouts at 742 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AfkWarningMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AfkWarningMessage_specs_1 = {
|
||||||
sizeof(struct AfkWarningMessage),
|
sizeof(struct AfkWarningMessage),
|
||||||
@@ -48,10 +48,10 @@ asn_TYPE_descriptor_t asn_DEF_AfkWarningMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AfkWarningMessage_tags_1,
|
asn_DEF_AfkWarningMessage_tags_1,
|
||||||
sizeof(asn_DEF_AfkWarningMessage_tags_1)
|
sizeof(asn_DEF_AfkWarningMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AfkWarningMessage_tags_1, /* Same as above */
|
asn_DEF_AfkWarningMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AfkWarningMessage_tags_1)
|
sizeof(asn_DEF_AfkWarningMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AfkWarningMessage_1,
|
asn_MBR_AfkWarningMessage_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AfkWarningMessage */
|
/* AfkWarningMessage */
|
||||||
typedef struct AfkWarningMessage {
|
typedef struct AfkWarningMessage {
|
||||||
long remainingTimeouts;
|
long remainingTimeouts;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AfkWarningMessage_t;
|
} AfkWarningMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AfkWarningMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AfkWarningMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
#include "AfterHandShowCardsMessage.h"
|
#include "AfterHandShowCardsMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AfterHandShowCardsMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AfterHandShowCardsMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AfterHandShowCardsMessage, playerResult),
|
{ ATF_NOFLAGS, 0, offsetof(struct AfterHandShowCardsMessage, playerResult),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_PlayerResult,
|
&asn_DEF_PlayerResult,
|
||||||
@@ -16,14 +16,14 @@ static asn_TYPE_member_t asn_MBR_AfterHandShowCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerResult"
|
"playerResult"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AfterHandShowCardsMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AfterHandShowCardsMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (34 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (34 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AfterHandShowCardsMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AfterHandShowCardsMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerResult at 557 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerResult at 580 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AfterHandShowCardsMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AfterHandShowCardsMessage_specs_1 = {
|
||||||
sizeof(struct AfterHandShowCardsMessage),
|
sizeof(struct AfterHandShowCardsMessage),
|
||||||
@@ -48,10 +48,10 @@ asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AfterHandShowCardsMessage_tags_1,
|
asn_DEF_AfterHandShowCardsMessage_tags_1,
|
||||||
sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1)
|
sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AfterHandShowCardsMessage_tags_1, /* Same as above */
|
asn_DEF_AfterHandShowCardsMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1)
|
sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AfterHandShowCardsMessage_1,
|
asn_MBR_AfterHandShowCardsMessage_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AfterHandShowCardsMessage */
|
/* AfterHandShowCardsMessage */
|
||||||
typedef struct AfterHandShowCardsMessage {
|
typedef struct AfterHandShowCardsMessage {
|
||||||
PlayerResult_t playerResult;
|
PlayerResult_t playerResult;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AfterHandShowCardsMessage_t;
|
} AfterHandShowCardsMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-17
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_playersAllIn_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_playersAllIn_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_playersAllIn_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_playersAllIn_3[] = {
|
static asn_TYPE_member_t asn_MBR_playersAllIn_3[] = {
|
||||||
{ ATF_POINTER, 0, 0,
|
{ ATF_POINTER, 0, 0,
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_PlayerAllIn,
|
&asn_DEF_PlayerAllIn,
|
||||||
@@ -42,7 +42,7 @@ static asn_TYPE_member_t asn_MBR_playersAllIn_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
""
|
""
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_playersAllIn_tags_3[] = {
|
static ber_tlv_tag_t asn_DEF_playersAllIn_tags_3[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
@@ -67,10 +67,10 @@ asn_TYPE_descriptor_t asn_DEF_playersAllIn_3 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_playersAllIn_tags_3,
|
asn_DEF_playersAllIn_tags_3,
|
||||||
sizeof(asn_DEF_playersAllIn_tags_3)
|
sizeof(asn_DEF_playersAllIn_tags_3)
|
||||||
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
||||||
asn_DEF_playersAllIn_tags_3, /* Same as above */
|
asn_DEF_playersAllIn_tags_3, /* Same as above */
|
||||||
sizeof(asn_DEF_playersAllIn_tags_3)
|
sizeof(asn_DEF_playersAllIn_tags_3)
|
||||||
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_playersAllIn_3,
|
asn_MBR_playersAllIn_3,
|
||||||
1, /* Single element */
|
1, /* Single element */
|
||||||
@@ -78,7 +78,7 @@ asn_TYPE_descriptor_t asn_DEF_playersAllIn_3 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -86,8 +86,8 @@ static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, playersAllIn),
|
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, playersAllIn),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_playersAllIn_3,
|
&asn_DEF_playersAllIn_3,
|
||||||
@@ -95,15 +95,15 @@ static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playersAllIn"
|
"playersAllIn"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AllInShowCardsMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AllInShowCardsMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (31 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (31 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AllInShowCardsMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AllInShowCardsMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 514 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 537 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* playersAllIn at 516 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* playersAllIn at 539 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AllInShowCardsMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AllInShowCardsMessage_specs_1 = {
|
||||||
sizeof(struct AllInShowCardsMessage),
|
sizeof(struct AllInShowCardsMessage),
|
||||||
@@ -128,10 +128,10 @@ asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AllInShowCardsMessage_tags_1,
|
asn_DEF_AllInShowCardsMessage_tags_1,
|
||||||
sizeof(asn_DEF_AllInShowCardsMessage_tags_1)
|
sizeof(asn_DEF_AllInShowCardsMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AllInShowCardsMessage_tags_1, /* Same as above */
|
asn_DEF_AllInShowCardsMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AllInShowCardsMessage_tags_1)
|
sizeof(asn_DEF_AllInShowCardsMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AllInShowCardsMessage_1,
|
asn_MBR_AllInShowCardsMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+18
-18
@@ -21,29 +21,29 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
struct PlayerAllIn;
|
struct PlayerAllIn;
|
||||||
|
|
||||||
/* AllInShowCardsMessage */
|
/* AllInShowCardsMessage */
|
||||||
typedef struct AllInShowCardsMessage {
|
typedef struct AllInShowCardsMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
struct playersAllIn {
|
struct playersAllIn {
|
||||||
A_SEQUENCE_OF(struct PlayerAllIn) list;
|
A_SEQUENCE_OF(struct PlayerAllIn) list;
|
||||||
|
|
||||||
|
/* Context for parsing across buffer boundaries */
|
||||||
|
asn_struct_ctx_t _asn_ctx;
|
||||||
|
} playersAllIn;
|
||||||
|
/*
|
||||||
|
* This type is extensible,
|
||||||
|
* possible extensions are below.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} playersAllIn;
|
} AllInShowCardsMessage_t;
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Implementation */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
extern asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage;
|
||||||
} AllInShowCardsMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+39
-39
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
serverType_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
serverType_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
/* Replace with underlying type checker */
|
/* Replace with underlying type checker */
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||||
@@ -33,62 +33,62 @@ serverType_5_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
serverType_5_free(asn_TYPE_descriptor_t *td,
|
serverType_5_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
serverType_5_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
serverType_5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
serverType_5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
serverType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
serverType_5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
serverType_5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
serverType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
serverType_5_encode_der(asn_TYPE_descriptor_t *td,
|
serverType_5_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
serverType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
serverType_5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
serverType_5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
serverType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
serverType_5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
serverType_5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
serverType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_latestBetaRevision_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_latestBetaRevision_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,21 +99,21 @@ memb_latestBetaRevision_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_numPlayersOnServer_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_numPlayersOnServer_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,8 +124,8 @@ memb_numPlayersOnServer_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -167,17 +167,17 @@ asn_TYPE_descriptor_t asn_DEF_serverType_5 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_serverType_tags_5,
|
asn_DEF_serverType_tags_5,
|
||||||
sizeof(asn_DEF_serverType_tags_5)
|
sizeof(asn_DEF_serverType_tags_5)
|
||||||
/sizeof(asn_DEF_serverType_tags_5[0]), /* 1 */
|
/sizeof(asn_DEF_serverType_tags_5[0]), /* 1 */
|
||||||
asn_DEF_serverType_tags_5, /* Same as above */
|
asn_DEF_serverType_tags_5, /* Same as above */
|
||||||
sizeof(asn_DEF_serverType_tags_5)
|
sizeof(asn_DEF_serverType_tags_5)
|
||||||
/sizeof(asn_DEF_serverType_tags_5[0]), /* 1 */
|
/sizeof(asn_DEF_serverType_tags_5[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* Defined elsewhere */
|
0, 0, /* Defined elsewhere */
|
||||||
&asn_SPC_serverType_specs_5 /* Additional specs */
|
&asn_SPC_serverType_specs_5 /* Additional specs */
|
||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, protocolVersion),
|
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, protocolVersion),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Version,
|
&asn_DEF_Version,
|
||||||
@@ -185,8 +185,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"protocolVersion"
|
"protocolVersion"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestGameVersion),
|
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestGameVersion),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Version,
|
&asn_DEF_Version,
|
||||||
@@ -194,8 +194,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"latestGameVersion"
|
"latestGameVersion"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestBetaRevision),
|
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestBetaRevision),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -203,8 +203,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"latestBetaRevision"
|
"latestBetaRevision"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, serverType),
|
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, serverType),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_serverType_5,
|
&asn_DEF_serverType_5,
|
||||||
@@ -212,8 +212,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"serverType"
|
"serverType"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, numPlayersOnServer),
|
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, numPlayersOnServer),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -221,18 +221,18 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"numPlayersOnServer"
|
"numPlayersOnServer"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AnnounceMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AnnounceMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AnnounceMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AnnounceMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 1 }, /* latestBetaRevision at 86 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 1 }, /* latestBetaRevision at 86 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -1, 0 }, /* numPlayersOnServer at 92 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -1, 0 }, /* numPlayersOnServer at 92 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* serverType at 88 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* serverType at 88 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* protocolVersion at 84 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* protocolVersion at 84 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* latestGameVersion at 85 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* latestGameVersion at 85 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AnnounceMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AnnounceMessage_specs_1 = {
|
||||||
sizeof(struct AnnounceMessage),
|
sizeof(struct AnnounceMessage),
|
||||||
@@ -257,10 +257,10 @@ asn_TYPE_descriptor_t asn_DEF_AnnounceMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AnnounceMessage_tags_1,
|
asn_DEF_AnnounceMessage_tags_1,
|
||||||
sizeof(asn_DEF_AnnounceMessage_tags_1)
|
sizeof(asn_DEF_AnnounceMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AnnounceMessage_tags_1, /* Same as above */
|
asn_DEF_AnnounceMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AnnounceMessage_tags_1)
|
sizeof(asn_DEF_AnnounceMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AnnounceMessage_1,
|
asn_MBR_AnnounceMessage_1,
|
||||||
5, /* Elements count */
|
5, /* Elements count */
|
||||||
|
|||||||
+24
-23
@@ -21,32 +21,33 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum serverType {
|
typedef enum serverType {
|
||||||
serverType_serverTypeLAN = 0,
|
serverType_serverTypeLAN = 0,
|
||||||
serverType_serverTypeInternetNoAuth = 1,
|
serverType_serverTypeInternetNoAuth = 1,
|
||||||
serverType_serverTypeInternetAuth = 2
|
serverType_serverTypeInternetAuth = 2
|
||||||
} e_serverType;
|
}
|
||||||
|
e_serverType;
|
||||||
|
|
||||||
/* AnnounceMessage */
|
/* AnnounceMessage */
|
||||||
typedef struct AnnounceMessage {
|
typedef struct AnnounceMessage {
|
||||||
Version_t protocolVersion;
|
Version_t protocolVersion;
|
||||||
Version_t latestGameVersion;
|
Version_t latestGameVersion;
|
||||||
long latestBetaRevision;
|
long latestBetaRevision;
|
||||||
long serverType;
|
long serverType;
|
||||||
long numPlayersOnServer;
|
long numPlayersOnServer;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AnnounceMessage_t;
|
} AnnounceMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_serverType_5; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_serverType_5; // (Use -fall-defs-global to expose) */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AnnounceMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AnnounceMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+23
-23
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
kickDeniedReason_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
kickDeniedReason_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
/* Replace with underlying type checker */
|
/* Replace with underlying type checker */
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||||
@@ -33,49 +33,49 @@ kickDeniedReason_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
kickDeniedReason_4_free(asn_TYPE_descriptor_t *td,
|
kickDeniedReason_4_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
kickDeniedReason_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
kickDeniedReason_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
kickDeniedReason_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
kickDeniedReason_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
kickDeniedReason_4_encode_der(asn_TYPE_descriptor_t *td,
|
kickDeniedReason_4_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
kickDeniedReason_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
kickDeniedReason_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
kickDeniedReason_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
kickDeniedReason_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
@@ -121,17 +121,17 @@ asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_kickDeniedReason_tags_4,
|
asn_DEF_kickDeniedReason_tags_4,
|
||||||
sizeof(asn_DEF_kickDeniedReason_tags_4)
|
sizeof(asn_DEF_kickDeniedReason_tags_4)
|
||||||
/sizeof(asn_DEF_kickDeniedReason_tags_4[0]), /* 1 */
|
/sizeof(asn_DEF_kickDeniedReason_tags_4[0]), /* 1 */
|
||||||
asn_DEF_kickDeniedReason_tags_4, /* Same as above */
|
asn_DEF_kickDeniedReason_tags_4, /* Same as above */
|
||||||
sizeof(asn_DEF_kickDeniedReason_tags_4)
|
sizeof(asn_DEF_kickDeniedReason_tags_4)
|
||||||
/sizeof(asn_DEF_kickDeniedReason_tags_4[0]), /* 1 */
|
/sizeof(asn_DEF_kickDeniedReason_tags_4[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* Defined elsewhere */
|
0, 0, /* Defined elsewhere */
|
||||||
&asn_SPC_kickDeniedReason_specs_4 /* Additional specs */
|
&asn_SPC_kickDeniedReason_specs_4 /* Additional specs */
|
||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -139,8 +139,8 @@ static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -148,8 +148,8 @@ static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, kickDeniedReason),
|
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, kickDeniedReason),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_kickDeniedReason_4,
|
&asn_DEF_kickDeniedReason_4,
|
||||||
@@ -157,16 +157,16 @@ static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"kickDeniedReason"
|
"kickDeniedReason"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AskKickDeniedMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AskKickDeniedMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (65 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (65 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AskKickDeniedMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AskKickDeniedMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 570 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 593 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 571 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 594 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* kickDeniedReason at 573 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* kickDeniedReason at 596 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AskKickDeniedMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AskKickDeniedMessage_specs_1 = {
|
||||||
sizeof(struct AskKickDeniedMessage),
|
sizeof(struct AskKickDeniedMessage),
|
||||||
@@ -191,10 +191,10 @@ asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AskKickDeniedMessage_tags_1,
|
asn_DEF_AskKickDeniedMessage_tags_1,
|
||||||
sizeof(asn_DEF_AskKickDeniedMessage_tags_1)
|
sizeof(asn_DEF_AskKickDeniedMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AskKickDeniedMessage_tags_1, /* Same as above */
|
asn_DEF_AskKickDeniedMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AskKickDeniedMessage_tags_1)
|
sizeof(asn_DEF_AskKickDeniedMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AskKickDeniedMessage_1,
|
asn_MBR_AskKickDeniedMessage_1,
|
||||||
3, /* Elements count */
|
3, /* Elements count */
|
||||||
|
|||||||
+24
-23
@@ -20,32 +20,33 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum kickDeniedReason {
|
typedef enum kickDeniedReason {
|
||||||
kickDeniedReason_kickDeniedInvalidGameState = 0,
|
kickDeniedReason_kickDeniedInvalidGameState = 0,
|
||||||
kickDeniedReason_kickDeniedNotPossible = 1,
|
kickDeniedReason_kickDeniedNotPossible = 1,
|
||||||
kickDeniedReason_kickDeniedTryAgainLater = 2,
|
kickDeniedReason_kickDeniedTryAgainLater = 2,
|
||||||
kickDeniedReason_kickDeniedAlreadyInProgress = 3,
|
kickDeniedReason_kickDeniedAlreadyInProgress = 3,
|
||||||
kickDeniedReason_kickDeniedInvalidPlayerId = 4
|
kickDeniedReason_kickDeniedInvalidPlayerId = 4
|
||||||
} e_kickDeniedReason;
|
}
|
||||||
|
e_kickDeniedReason;
|
||||||
|
|
||||||
/* AskKickDeniedMessage */
|
/* AskKickDeniedMessage */
|
||||||
typedef struct AskKickDeniedMessage {
|
typedef struct AskKickDeniedMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
long kickDeniedReason;
|
long kickDeniedReason;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AskKickDeniedMessage_t;
|
} AskKickDeniedMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4; // (Use -fall-defs-global to expose) */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-8
@@ -8,7 +8,7 @@
|
|||||||
#include "AskKickPlayerMessage.h"
|
#include "AskKickPlayerMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AskKickPlayerMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AskKickPlayerMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (64 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (64 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AskKickPlayerMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AskKickPlayerMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 565 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 588 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 567 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 590 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AskKickPlayerMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AskKickPlayerMessage_specs_1 = {
|
||||||
sizeof(struct AskKickPlayerMessage),
|
sizeof(struct AskKickPlayerMessage),
|
||||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AskKickPlayerMessage_tags_1,
|
asn_DEF_AskKickPlayerMessage_tags_1,
|
||||||
sizeof(asn_DEF_AskKickPlayerMessage_tags_1)
|
sizeof(asn_DEF_AskKickPlayerMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AskKickPlayerMessage_tags_1, /* Same as above */
|
asn_DEF_AskKickPlayerMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AskKickPlayerMessage_tags_1)
|
sizeof(asn_DEF_AskKickPlayerMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AskKickPlayerMessage_1,
|
asn_MBR_AskKickPlayerMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -19,21 +19,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AskKickPlayerMessage */
|
/* AskKickPlayerMessage */
|
||||||
typedef struct AskKickPlayerMessage {
|
typedef struct AskKickPlayerMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AskKickPlayerMessage_t;
|
} AskKickPlayerMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-10
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_clientResponse_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_clientResponse_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_clientResponse_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthClientResponse_1[] = {
|
static asn_TYPE_member_t asn_MBR_AuthClientResponse_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthClientResponse, clientResponse),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthClientResponse, clientResponse),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_OCTET_STRING,
|
&asn_DEF_OCTET_STRING,
|
||||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AuthClientResponse_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"clientResponse"
|
"clientResponse"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AuthClientResponse_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AuthClientResponse_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthClientResponse_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AuthClientResponse_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* clientResponse at 137 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* clientResponse at 138 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthClientResponse_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AuthClientResponse_specs_1 = {
|
||||||
sizeof(struct AuthClientResponse),
|
sizeof(struct AuthClientResponse),
|
||||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthClientResponse = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AuthClientResponse_tags_1,
|
asn_DEF_AuthClientResponse_tags_1,
|
||||||
sizeof(asn_DEF_AuthClientResponse_tags_1)
|
sizeof(asn_DEF_AuthClientResponse_tags_1)
|
||||||
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AuthClientResponse_tags_1, /* Same as above */
|
asn_DEF_AuthClientResponse_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AuthClientResponse_tags_1)
|
sizeof(asn_DEF_AuthClientResponse_tags_1)
|
||||||
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AuthClientResponse_1,
|
asn_MBR_AuthClientResponse_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AuthClientResponse */
|
/* AuthClientResponse */
|
||||||
typedef struct AuthClientResponse {
|
typedef struct AuthClientResponse {
|
||||||
OCTET_STRING_t clientResponse;
|
OCTET_STRING_t clientResponse;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AuthClientResponse_t;
|
} AuthClientResponse_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthClientResponse;
|
extern asn_TYPE_descriptor_t asn_DEF_AuthClientResponse;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+11
-11
@@ -8,7 +8,7 @@
|
|||||||
#include "AuthMessage.h"
|
#include "AuthMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerChallenge),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerChallenge),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_AuthServerChallenge,
|
&asn_DEF_AuthServerChallenge,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"authServerChallenge"
|
"authServerChallenge"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authClientResponse),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authClientResponse),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_AuthClientResponse,
|
&asn_DEF_AuthClientResponse,
|
||||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"authClientResponse"
|
"authClientResponse"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerVerification),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerVerification),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_AuthServerVerification,
|
&asn_DEF_AuthServerVerification,
|
||||||
@@ -34,15 +34,15 @@ static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"authServerVerification"
|
"authServerVerification"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AuthMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AuthMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (2 << 2))
|
(ASN_TAG_CLASS_APPLICATION | (2 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AuthMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* authServerChallenge at 127 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* authServerChallenge at 128 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authClientResponse at 128 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authClientResponse at 129 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* authServerVerification at 130 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* authServerVerification at 131 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_AuthMessage_specs_1 = {
|
static asn_CHOICE_specifics_t asn_SPC_AuthMessage_specs_1 = {
|
||||||
sizeof(struct AuthMessage),
|
sizeof(struct AuthMessage),
|
||||||
@@ -68,10 +68,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthMessage = {
|
|||||||
CHOICE_outmost_tag,
|
CHOICE_outmost_tag,
|
||||||
asn_DEF_AuthMessage_tags_1,
|
asn_DEF_AuthMessage_tags_1,
|
||||||
sizeof(asn_DEF_AuthMessage_tags_1)
|
sizeof(asn_DEF_AuthMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AuthMessage_tags_1, /* Same as above */
|
asn_DEF_AuthMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AuthMessage_tags_1)
|
sizeof(asn_DEF_AuthMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AuthMessage_1,
|
asn_MBR_AuthMessage_1,
|
||||||
3, /* Elements count */
|
3, /* Elements count */
|
||||||
|
|||||||
Vendored
+26
-25
@@ -21,35 +21,36 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum AuthMessage_PR {
|
typedef enum AuthMessage_PR {
|
||||||
AuthMessage_PR_NOTHING, /* No components present */
|
AuthMessage_PR_NOTHING, /* No components present */
|
||||||
AuthMessage_PR_authServerChallenge,
|
AuthMessage_PR_authServerChallenge,
|
||||||
AuthMessage_PR_authClientResponse,
|
AuthMessage_PR_authClientResponse,
|
||||||
AuthMessage_PR_authServerVerification,
|
AuthMessage_PR_authServerVerification,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} AuthMessage_PR;
|
}
|
||||||
|
AuthMessage_PR;
|
||||||
|
|
||||||
/* AuthMessage */
|
/* AuthMessage */
|
||||||
typedef struct AuthMessage {
|
typedef struct AuthMessage {
|
||||||
AuthMessage_PR present;
|
AuthMessage_PR present;
|
||||||
union AuthMessage_u {
|
union AuthMessage_u {
|
||||||
AuthServerChallenge_t authServerChallenge;
|
AuthServerChallenge_t authServerChallenge;
|
||||||
AuthClientResponse_t authClientResponse;
|
AuthClientResponse_t authClientResponse;
|
||||||
AuthServerVerification_t authServerVerification;
|
AuthServerVerification_t authServerVerification;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AuthMessage_t;
|
} AuthMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AuthMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-10
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_serverChallenge_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_serverChallenge_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_serverChallenge_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthServerChallenge_1[] = {
|
static asn_TYPE_member_t asn_MBR_AuthServerChallenge_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerChallenge, serverChallenge),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerChallenge, serverChallenge),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_OCTET_STRING,
|
&asn_DEF_OCTET_STRING,
|
||||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AuthServerChallenge_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"serverChallenge"
|
"serverChallenge"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AuthServerChallenge_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AuthServerChallenge_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthServerChallenge_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AuthServerChallenge_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverChallenge at 133 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverChallenge at 134 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerChallenge_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerChallenge_specs_1 = {
|
||||||
sizeof(struct AuthServerChallenge),
|
sizeof(struct AuthServerChallenge),
|
||||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AuthServerChallenge_tags_1,
|
asn_DEF_AuthServerChallenge_tags_1,
|
||||||
sizeof(asn_DEF_AuthServerChallenge_tags_1)
|
sizeof(asn_DEF_AuthServerChallenge_tags_1)
|
||||||
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AuthServerChallenge_tags_1, /* Same as above */
|
asn_DEF_AuthServerChallenge_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AuthServerChallenge_tags_1)
|
sizeof(asn_DEF_AuthServerChallenge_tags_1)
|
||||||
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AuthServerChallenge_1,
|
asn_MBR_AuthServerChallenge_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AuthServerChallenge */
|
/* AuthServerChallenge */
|
||||||
typedef struct AuthServerChallenge {
|
typedef struct AuthServerChallenge {
|
||||||
OCTET_STRING_t serverChallenge;
|
OCTET_STRING_t serverChallenge;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AuthServerChallenge_t;
|
} AuthServerChallenge_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge;
|
extern asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-10
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_serverVerification_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_serverVerification_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_serverVerification_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthServerVerification_1[] = {
|
static asn_TYPE_member_t asn_MBR_AuthServerVerification_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerVerification, serverVerification),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerVerification, serverVerification),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_OCTET_STRING,
|
&asn_DEF_OCTET_STRING,
|
||||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AuthServerVerification_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"serverVerification"
|
"serverVerification"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AuthServerVerification_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AuthServerVerification_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthServerVerification_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AuthServerVerification_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverVerification at 141 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverVerification at 142 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerVerification_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerVerification_specs_1 = {
|
||||||
sizeof(struct AuthServerVerification),
|
sizeof(struct AuthServerVerification),
|
||||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthServerVerification = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AuthServerVerification_tags_1,
|
asn_DEF_AuthServerVerification_tags_1,
|
||||||
sizeof(asn_DEF_AuthServerVerification_tags_1)
|
sizeof(asn_DEF_AuthServerVerification_tags_1)
|
||||||
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AuthServerVerification_tags_1, /* Same as above */
|
asn_DEF_AuthServerVerification_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AuthServerVerification_tags_1)
|
sizeof(asn_DEF_AuthServerVerification_tags_1)
|
||||||
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AuthServerVerification_1,
|
asn_MBR_AuthServerVerification_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AuthServerVerification */
|
/* AuthServerVerification */
|
||||||
typedef struct AuthServerVerification {
|
typedef struct AuthServerVerification {
|
||||||
OCTET_STRING_t serverVerification;
|
OCTET_STRING_t serverVerification;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AuthServerVerification_t;
|
} AuthServerVerification_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthServerVerification;
|
extern asn_TYPE_descriptor_t asn_DEF_AuthServerVerification;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-13
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_clientUserData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_clientUserData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_clientUserData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthenticatedLogin, clientUserData),
|
{ ATF_NOFLAGS, 0, offsetof(struct AuthenticatedLogin, clientUserData),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_OCTET_STRING,
|
&asn_DEF_OCTET_STRING,
|
||||||
@@ -42,8 +42,8 @@ static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"clientUserData"
|
"clientUserData"
|
||||||
},
|
},
|
||||||
{ ATF_POINTER, 1, offsetof(struct AuthenticatedLogin, avatar),
|
{ ATF_POINTER, 1, offsetof(struct AuthenticatedLogin, avatar),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_AvatarHash,
|
&asn_DEF_AvatarHash,
|
||||||
@@ -51,14 +51,14 @@ static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatar"
|
"avatar"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AuthenticatedLogin_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AuthenticatedLogin_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthenticatedLogin_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AuthenticatedLogin_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 1 }, /* clientUserData at 117 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 1 }, /* clientUserData at 118 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, -1, 0 } /* avatar at 118 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, -1, 0 } /* avatar at 119 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthenticatedLogin_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AuthenticatedLogin_specs_1 = {
|
||||||
sizeof(struct AuthenticatedLogin),
|
sizeof(struct AuthenticatedLogin),
|
||||||
@@ -83,10 +83,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AuthenticatedLogin_tags_1,
|
asn_DEF_AuthenticatedLogin_tags_1,
|
||||||
sizeof(asn_DEF_AuthenticatedLogin_tags_1)
|
sizeof(asn_DEF_AuthenticatedLogin_tags_1)
|
||||||
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AuthenticatedLogin_tags_1, /* Same as above */
|
asn_DEF_AuthenticatedLogin_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AuthenticatedLogin_tags_1)
|
sizeof(asn_DEF_AuthenticatedLogin_tags_1)
|
||||||
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AuthenticatedLogin_1,
|
asn_MBR_AuthenticatedLogin_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AuthenticatedLogin */
|
/* AuthenticatedLogin */
|
||||||
typedef struct AuthenticatedLogin {
|
typedef struct AuthenticatedLogin {
|
||||||
OCTET_STRING_t clientUserData;
|
OCTET_STRING_t clientUserData;
|
||||||
AvatarHash_t *avatar /* OPTIONAL */;
|
AvatarHash_t *avatar /* OPTIONAL */;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AuthenticatedLogin_t;
|
} AuthenticatedLogin_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin;
|
extern asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+10
-10
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_avatarBlock_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_avatarBlock_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_avatarBlock_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarData_1[] = {
|
static asn_TYPE_member_t asn_MBR_AvatarData_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarData, avatarBlock),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarData, avatarBlock),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_OCTET_STRING,
|
&asn_DEF_OCTET_STRING,
|
||||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AvatarData_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarBlock"
|
"avatarBlock"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarData_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AvatarData_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarData_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AvatarData_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* avatarBlock at 171 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* avatarBlock at 173 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarData_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AvatarData_specs_1 = {
|
||||||
sizeof(struct AvatarData),
|
sizeof(struct AvatarData),
|
||||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarData = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AvatarData_tags_1,
|
asn_DEF_AvatarData_tags_1,
|
||||||
sizeof(asn_DEF_AvatarData_tags_1)
|
sizeof(asn_DEF_AvatarData_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AvatarData_tags_1, /* Same as above */
|
asn_DEF_AvatarData_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AvatarData_tags_1)
|
sizeof(asn_DEF_AvatarData_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AvatarData_1,
|
asn_MBR_AvatarData_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
Vendored
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AvatarData */
|
/* AvatarData */
|
||||||
typedef struct AvatarData {
|
typedef struct AvatarData {
|
||||||
OCTET_STRING_t avatarBlock;
|
OCTET_STRING_t avatarBlock;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AvatarData_t;
|
} AvatarData_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarData;
|
extern asn_TYPE_descriptor_t asn_DEF_AvatarData;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarEnd = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AvatarEnd_tags_1,
|
asn_DEF_AvatarEnd_tags_1,
|
||||||
sizeof(asn_DEF_AvatarEnd_tags_1)
|
sizeof(asn_DEF_AvatarEnd_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AvatarEnd_tags_1, /* Same as above */
|
asn_DEF_AvatarEnd_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AvatarEnd_tags_1)
|
sizeof(asn_DEF_AvatarEnd_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_AvatarEnd_specs_1 /* Additional specs */
|
&asn_SPC_AvatarEnd_specs_1 /* Additional specs */
|
||||||
|
|||||||
Vendored
+11
-11
@@ -18,19 +18,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AvatarEnd */
|
/* AvatarEnd */
|
||||||
typedef struct AvatarEnd {
|
typedef struct AvatarEnd {
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AvatarEnd_t;
|
} AvatarEnd_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarEnd;
|
extern asn_TYPE_descriptor_t asn_DEF_AvatarEnd;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+15
-15
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
int
|
int
|
||||||
AvatarHash_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
AvatarHash_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,8 +27,8 @@ AvatarHash_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,44 +56,44 @@ AvatarHash_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
AvatarHash_free(asn_TYPE_descriptor_t *td,
|
AvatarHash_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
AvatarHash_1_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
AvatarHash_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
AvatarHash_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
AvatarHash_1_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
AvatarHash_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
AvatarHash_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
AvatarHash_1_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
AvatarHash_encode_der(asn_TYPE_descriptor_t *td,
|
AvatarHash_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
AvatarHash_1_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
AvatarHash_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
AvatarHash_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
AvatarHash_1_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
AvatarHash_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
AvatarHash_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
AvatarHash_1_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
@@ -115,10 +115,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarHash = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AvatarHash_tags_1,
|
asn_DEF_AvatarHash_tags_1,
|
||||||
sizeof(asn_DEF_AvatarHash_tags_1)
|
sizeof(asn_DEF_AvatarHash_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AvatarHash_tags_1, /* Same as above */
|
asn_DEF_AvatarHash_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AvatarHash_tags_1)
|
sizeof(asn_DEF_AvatarHash_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
0 /* No specifics */
|
0 /* No specifics */
|
||||||
|
|||||||
Vendored
+11
-11
@@ -18,18 +18,18 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AvatarHash */
|
/* AvatarHash */
|
||||||
typedef OCTET_STRING_t AvatarHash_t;
|
typedef OCTET_STRING_t AvatarHash_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarHash;
|
extern asn_TYPE_descriptor_t asn_DEF_AvatarHash;
|
||||||
asn_struct_free_f AvatarHash_free;
|
asn_struct_free_f AvatarHash_free;
|
||||||
asn_struct_print_f AvatarHash_print;
|
asn_struct_print_f AvatarHash_print;
|
||||||
asn_constr_check_f AvatarHash_constraint;
|
asn_constr_check_f AvatarHash_constraint;
|
||||||
ber_type_decoder_f AvatarHash_decode_ber;
|
ber_type_decoder_f AvatarHash_decode_ber;
|
||||||
der_type_encoder_f AvatarHash_encode_der;
|
der_type_encoder_f AvatarHash_encode_der;
|
||||||
xer_type_decoder_f AvatarHash_decode_xer;
|
xer_type_decoder_f AvatarHash_decode_xer;
|
||||||
xer_type_encoder_f AvatarHash_encode_xer;
|
xer_type_encoder_f AvatarHash_encode_xer;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+13
-13
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_avatarSize_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_avatarSize_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,14 +26,14 @@ memb_avatarSize_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarHeader_1[] = {
|
static asn_TYPE_member_t asn_MBR_AvatarHeader_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarType),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarType),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NetAvatarType,
|
&asn_DEF_NetAvatarType,
|
||||||
@@ -41,8 +41,8 @@ static asn_TYPE_member_t asn_MBR_AvatarHeader_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarType"
|
"avatarType"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarSize),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarSize),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -50,14 +50,14 @@ static asn_TYPE_member_t asn_MBR_AvatarHeader_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarSize"
|
"avatarSize"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarHeader_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AvatarHeader_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarHeader_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AvatarHeader_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* avatarSize at 167 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* avatarSize at 169 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* avatarType at 166 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* avatarType at 168 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarHeader_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AvatarHeader_specs_1 = {
|
||||||
sizeof(struct AvatarHeader),
|
sizeof(struct AvatarHeader),
|
||||||
@@ -82,10 +82,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarHeader = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AvatarHeader_tags_1,
|
asn_DEF_AvatarHeader_tags_1,
|
||||||
sizeof(asn_DEF_AvatarHeader_tags_1)
|
sizeof(asn_DEF_AvatarHeader_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
||||||
asn_DEF_AvatarHeader_tags_1, /* Same as above */
|
asn_DEF_AvatarHeader_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AvatarHeader_tags_1)
|
sizeof(asn_DEF_AvatarHeader_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AvatarHeader_1,
|
asn_MBR_AvatarHeader_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
Vendored
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AvatarHeader */
|
/* AvatarHeader */
|
||||||
typedef struct AvatarHeader {
|
typedef struct AvatarHeader {
|
||||||
NetAvatarType_t avatarType;
|
NetAvatarType_t avatarType;
|
||||||
long avatarSize;
|
long avatarSize;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AvatarHeader_t;
|
} AvatarHeader_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarHeader;
|
extern asn_TYPE_descriptor_t asn_DEF_AvatarHeader;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+23
-23
@@ -8,7 +8,7 @@
|
|||||||
#include "AvatarReplyMessage.h"
|
#include "AvatarReplyMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarHeader),
|
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarHeader),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_AvatarHeader,
|
&asn_DEF_AvatarHeader,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarHeader"
|
"avatarHeader"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarData),
|
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarData),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_AvatarData,
|
&asn_DEF_AvatarData,
|
||||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarData"
|
"avatarData"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarEnd),
|
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarEnd),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_AvatarEnd,
|
&asn_DEF_AvatarEnd,
|
||||||
@@ -34,8 +34,8 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarEnd"
|
"avatarEnd"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.unknownAvatar),
|
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.unknownAvatar),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_UnknownAvatar,
|
&asn_DEF_UnknownAvatar,
|
||||||
@@ -43,13 +43,13 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"unknownAvatar"
|
"unknownAvatar"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_avatarResult_tag2el_3[] = {
|
static asn_TYPE_tag2member_t asn_MAP_avatarResult_tag2el_3[] = {
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* avatarHeader at 158 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* avatarHeader at 160 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 159 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 161 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* avatarEnd at 160 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* avatarEnd at 162 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unknownAvatar at 162 */
|
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unknownAvatar at 164 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_avatarResult_specs_3 = {
|
static asn_CHOICE_specifics_t asn_SPC_avatarResult_specs_3 = {
|
||||||
sizeof(struct avatarResult),
|
sizeof(struct avatarResult),
|
||||||
@@ -85,7 +85,7 @@ asn_TYPE_descriptor_t asn_DEF_avatarResult_3 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, requestId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, requestId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -93,8 +93,8 @@ static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"requestId"
|
"requestId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, avatarResult),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, avatarResult),
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
-1 /* Ambiguous tag (CHOICE?) */,
|
||||||
0,
|
0,
|
||||||
&asn_DEF_avatarResult_3,
|
&asn_DEF_avatarResult_3,
|
||||||
@@ -102,18 +102,18 @@ static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatarResult"
|
"avatarResult"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarReplyMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AvatarReplyMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (5 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (5 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarReplyMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AvatarReplyMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 156 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 158 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* avatarHeader at 158 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* avatarHeader at 160 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 159 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 161 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* avatarEnd at 160 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* avatarEnd at 162 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* unknownAvatar at 162 */
|
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* unknownAvatar at 164 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarReplyMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AvatarReplyMessage_specs_1 = {
|
||||||
sizeof(struct AvatarReplyMessage),
|
sizeof(struct AvatarReplyMessage),
|
||||||
@@ -138,10 +138,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AvatarReplyMessage_tags_1,
|
asn_DEF_AvatarReplyMessage_tags_1,
|
||||||
sizeof(asn_DEF_AvatarReplyMessage_tags_1)
|
sizeof(asn_DEF_AvatarReplyMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AvatarReplyMessage_tags_1, /* Same as above */
|
asn_DEF_AvatarReplyMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AvatarReplyMessage_tags_1)
|
sizeof(asn_DEF_AvatarReplyMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AvatarReplyMessage_1,
|
asn_MBR_AvatarReplyMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+36
-35
@@ -24,47 +24,48 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum avatarResult_PR {
|
typedef enum avatarResult_PR {
|
||||||
avatarResult_PR_NOTHING, /* No components present */
|
avatarResult_PR_NOTHING, /* No components present */
|
||||||
avatarResult_PR_avatarHeader,
|
avatarResult_PR_avatarHeader,
|
||||||
avatarResult_PR_avatarData,
|
avatarResult_PR_avatarData,
|
||||||
avatarResult_PR_avatarEnd,
|
avatarResult_PR_avatarEnd,
|
||||||
avatarResult_PR_unknownAvatar,
|
avatarResult_PR_unknownAvatar,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} avatarResult_PR;
|
}
|
||||||
|
avatarResult_PR;
|
||||||
|
|
||||||
/* AvatarReplyMessage */
|
/* AvatarReplyMessage */
|
||||||
typedef struct AvatarReplyMessage {
|
typedef struct AvatarReplyMessage {
|
||||||
NonZeroId_t requestId;
|
NonZeroId_t requestId;
|
||||||
struct avatarResult {
|
struct avatarResult {
|
||||||
avatarResult_PR present;
|
avatarResult_PR present;
|
||||||
union AvatarReplyMessage__avatarResult_u {
|
union AvatarReplyMessage__avatarResult_u {
|
||||||
AvatarHeader_t avatarHeader;
|
AvatarHeader_t avatarHeader;
|
||||||
AvatarData_t avatarData;
|
AvatarData_t avatarData;
|
||||||
AvatarEnd_t avatarEnd;
|
AvatarEnd_t avatarEnd;
|
||||||
UnknownAvatar_t unknownAvatar;
|
UnknownAvatar_t unknownAvatar;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
|
/* Context for parsing across buffer boundaries */
|
||||||
|
asn_struct_ctx_t _asn_ctx;
|
||||||
|
} avatarResult;
|
||||||
|
/*
|
||||||
|
* This type is extensible,
|
||||||
|
* possible extensions are below.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} avatarResult;
|
} AvatarReplyMessage_t;
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Implementation */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
extern asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage;
|
||||||
} AvatarReplyMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-8
@@ -8,7 +8,7 @@
|
|||||||
#include "AvatarRequestMessage.h"
|
#include "AvatarRequestMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, requestId),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, requestId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"requestId"
|
"requestId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, avatar),
|
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, avatar),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_AvatarHash,
|
&asn_DEF_AvatarHash,
|
||||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"avatar"
|
"avatar"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarRequestMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_AvatarRequestMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (4 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (4 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarRequestMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_AvatarRequestMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 151 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 153 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* avatar at 153 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* avatar at 155 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarRequestMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_AvatarRequestMessage_specs_1 = {
|
||||||
sizeof(struct AvatarRequestMessage),
|
sizeof(struct AvatarRequestMessage),
|
||||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_AvatarRequestMessage_tags_1,
|
asn_DEF_AvatarRequestMessage_tags_1,
|
||||||
sizeof(asn_DEF_AvatarRequestMessage_tags_1)
|
sizeof(asn_DEF_AvatarRequestMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_AvatarRequestMessage_tags_1, /* Same as above */
|
asn_DEF_AvatarRequestMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_AvatarRequestMessage_tags_1)
|
sizeof(asn_DEF_AvatarRequestMessage_tags_1)
|
||||||
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_AvatarRequestMessage_1,
|
asn_MBR_AvatarRequestMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* AvatarRequestMessage */
|
/* AvatarRequestMessage */
|
||||||
typedef struct AvatarRequestMessage {
|
typedef struct AvatarRequestMessage {
|
||||||
NonZeroId_t requestId;
|
NonZeroId_t requestId;
|
||||||
AvatarHash_t avatar;
|
AvatarHash_t avatar;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} AvatarRequestMessage_t;
|
} AvatarRequestMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+12
-12
@@ -32,10 +32,10 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_BIT_STRING_tags,
|
asn_DEF_BIT_STRING_tags,
|
||||||
sizeof(asn_DEF_BIT_STRING_tags)
|
sizeof(asn_DEF_BIT_STRING_tags)
|
||||||
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
||||||
asn_DEF_BIT_STRING_tags, /* Same as above */
|
asn_DEF_BIT_STRING_tags, /* Same as above */
|
||||||
sizeof(asn_DEF_BIT_STRING_tags)
|
sizeof(asn_DEF_BIT_STRING_tags)
|
||||||
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_DEF_BIT_STRING_specs
|
&asn_DEF_BIT_STRING_specs
|
||||||
@@ -46,21 +46,21 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
BIT_STRING_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
BIT_STRING_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
|
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
|
||||||
|
|
||||||
if(st && st->buf) {
|
if(st && st->buf) {
|
||||||
if((st->size == 0 && st->bits_unused)
|
if((st->size == 0 && st->bits_unused)
|
||||||
|| st->bits_unused < 0 || st->bits_unused > 7) {
|
|| st->bits_unused < 0 || st->bits_unused > 7) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: invalid padding byte (%s:%d)",
|
"%s: invalid padding byte (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,8 +74,8 @@ static char *_bit_pattern[16] = {
|
|||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
BIT_STRING_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
|
BIT_STRING_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
asn_enc_rval_t er;
|
asn_enc_rval_t er;
|
||||||
char scratch[128];
|
char scratch[128];
|
||||||
char *p = scratch;
|
char *p = scratch;
|
||||||
@@ -139,7 +139,7 @@ cb_failed:
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
static const char *h2c = "0123456789ABCDEF";
|
static const char *h2c = "0123456789ABCDEF";
|
||||||
char scratch[64];
|
char scratch[64];
|
||||||
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
|
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
|
||||||
@@ -161,7 +161,7 @@ BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
|||||||
*/
|
*/
|
||||||
for(; buf < end; buf++) {
|
for(; buf < end; buf++) {
|
||||||
if((buf - st->buf) % 16 == 0 && (st->size > 16)
|
if((buf - st->buf) % 16 == 0 && (st->size > 16)
|
||||||
&& buf != st->buf) {
|
&& buf != st->buf) {
|
||||||
_i_INDENT(1);
|
_i_INDENT(1);
|
||||||
/* Dump the string */
|
/* Dump the string */
|
||||||
if(cb(scratch, p - scratch, app_key) < 0) return -1;
|
if(cb(scratch, p - scratch, app_key) < 0) return -1;
|
||||||
|
|||||||
Vendored
+10
-10
@@ -11,20 +11,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct BIT_STRING_s {
|
typedef struct BIT_STRING_s {
|
||||||
uint8_t *buf; /* BIT STRING body */
|
uint8_t *buf; /* BIT STRING body */
|
||||||
int size; /* Size of the above buffer */
|
int size; /* Size of the above buffer */
|
||||||
|
|
||||||
int bits_unused;/* Unused trailing bits in the last octet (0..7) */
|
int bits_unused;/* Unused trailing bits in the last octet (0..7) */
|
||||||
|
|
||||||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
|
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
|
||||||
} BIT_STRING_t;
|
} BIT_STRING_t;
|
||||||
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
|
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
|
||||||
|
|
||||||
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
|
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
|
||||||
asn_constr_check_f BIT_STRING_constraint;
|
asn_constr_check_f BIT_STRING_constraint;
|
||||||
xer_type_encoder_f BIT_STRING_encode_xer;
|
xer_type_encoder_f BIT_STRING_encode_xer;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+29
-23
@@ -39,9 +39,9 @@ asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
|
|||||||
*/
|
*/
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
||||||
asn_TYPE_descriptor_t *td,
|
asn_TYPE_descriptor_t *td,
|
||||||
void **bool_value, const void *buf_ptr, size_t size,
|
void **bool_value, const void *buf_ptr, size_t size,
|
||||||
int tag_mode) {
|
int tag_mode) {
|
||||||
BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
|
BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
|
||||||
asn_dec_rval_t rval;
|
asn_dec_rval_t rval;
|
||||||
ber_tlv_len_t length;
|
ber_tlv_len_t length;
|
||||||
@@ -57,13 +57,13 @@ BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
|
ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
|
||||||
td->name, tag_mode);
|
td->name, tag_mode);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check tags.
|
* Check tags.
|
||||||
*/
|
*/
|
||||||
rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
|
rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
|
||||||
tag_mode, 0, &length, 0);
|
tag_mode, 0, &length, 0);
|
||||||
if(rval.code != RC_OK)
|
if(rval.code != RC_OK)
|
||||||
return rval;
|
return rval;
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
|||||||
* Compute boolean value.
|
* Compute boolean value.
|
||||||
*/
|
*/
|
||||||
for(*st = 0, lidx = 0;
|
for(*st = 0, lidx = 0;
|
||||||
(lidx < length) && *st == 0; lidx++) {
|
(lidx < length) && *st == 0; lidx++) {
|
||||||
/*
|
/*
|
||||||
* Very simple approach: read bytes until the end or
|
* Very simple approach: read bytes until the end or
|
||||||
* value is already TRUE.
|
* value is already TRUE.
|
||||||
@@ -94,16 +94,16 @@ BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
|||||||
rval.consumed += length;
|
rval.consumed += length;
|
||||||
|
|
||||||
ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
|
ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
|
||||||
(long)rval.consumed, (long)length,
|
(long)rval.consumed, (long)length,
|
||||||
td->name, *st);
|
td->name, *st);
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
BOOLEAN_encode_der(asn_TYPE_descriptor_t *td, void *sptr,
|
BOOLEAN_encode_der(asn_TYPE_descriptor_t *td, void *sptr,
|
||||||
int tag_mode, ber_tlv_tag_t tag,
|
int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
asn_enc_rval_t erval;
|
asn_enc_rval_t erval;
|
||||||
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
|
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
|
|||||||
break;
|
break;
|
||||||
case XCT_UNKNOWN_BO:
|
case XCT_UNKNOWN_BO:
|
||||||
if(xer_check_tag(chunk_buf, chunk_size, "true")
|
if(xer_check_tag(chunk_buf, chunk_size, "true")
|
||||||
!= XCT_BOTH)
|
!= XCT_BOTH)
|
||||||
return XPBD_BROKEN_ENCODING;
|
return XPBD_BROKEN_ENCODING;
|
||||||
/* "<true/>" */
|
/* "<true/>" */
|
||||||
*st = 1; /* Or 0xff as in DER?.. */
|
*st = 1; /* Or 0xff as in DER?.. */
|
||||||
@@ -171,18 +171,18 @@ BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
|
|||||||
|
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
BOOLEAN_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
|
BOOLEAN_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
|
||||||
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
|
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
|
||||||
const void *buf_ptr, size_t size) {
|
const void *buf_ptr, size_t size) {
|
||||||
|
|
||||||
return xer_decode_primitive(opt_codec_ctx, td,
|
return xer_decode_primitive(opt_codec_ctx, td,
|
||||||
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
|
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
|
||||||
BOOLEAN__xer_body_decode);
|
BOOLEAN__xer_body_decode);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
BOOLEAN_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
|
BOOLEAN_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
||||||
asn_enc_rval_t er;
|
asn_enc_rval_t er;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ cb_failed:
|
|||||||
|
|
||||||
int
|
int
|
||||||
BOOLEAN_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
BOOLEAN_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
||||||
const char *buf;
|
const char *buf;
|
||||||
size_t buflen;
|
size_t buflen;
|
||||||
@@ -239,7 +239,7 @@ BOOLEAN_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
|
|||||||
|
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
|
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
|
||||||
asn_dec_rval_t rv;
|
asn_dec_rval_t rv;
|
||||||
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
|
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
|
||||||
|
|
||||||
@@ -255,9 +255,15 @@ BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
|||||||
* Extract a single bit
|
* Extract a single bit
|
||||||
*/
|
*/
|
||||||
switch(per_get_few_bits(pd, 1)) {
|
switch(per_get_few_bits(pd, 1)) {
|
||||||
case 1: *st = 1; break;
|
case 1:
|
||||||
case 0: *st = 0; break;
|
*st = 1;
|
||||||
case -1: default: _ASN_DECODE_STARVED;
|
break;
|
||||||
|
case 0:
|
||||||
|
*st = 0;
|
||||||
|
break;
|
||||||
|
case -1:
|
||||||
|
default:
|
||||||
|
_ASN_DECODE_STARVED;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
|
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
|
||||||
@@ -270,7 +276,7 @@ BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
|||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
BOOLEAN_encode_uper(asn_TYPE_descriptor_t *td,
|
BOOLEAN_encode_uper(asn_TYPE_descriptor_t *td,
|
||||||
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
|
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
|
||||||
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
||||||
asn_enc_rval_t er;
|
asn_enc_rval_t er;
|
||||||
|
|
||||||
|
|||||||
Vendored
+15
-15
@@ -11,23 +11,23 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The underlying integer may contain various values, but everything
|
* The underlying integer may contain various values, but everything
|
||||||
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
|
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
|
||||||
* yield non-zero values different from 1, beware.
|
* yield non-zero values different from 1, beware.
|
||||||
*/
|
*/
|
||||||
typedef int BOOLEAN_t;
|
typedef int BOOLEAN_t;
|
||||||
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
||||||
|
|
||||||
asn_struct_free_f BOOLEAN_free;
|
asn_struct_free_f BOOLEAN_free;
|
||||||
asn_struct_print_f BOOLEAN_print;
|
asn_struct_print_f BOOLEAN_print;
|
||||||
ber_type_decoder_f BOOLEAN_decode_ber;
|
ber_type_decoder_f BOOLEAN_decode_ber;
|
||||||
der_type_encoder_f BOOLEAN_encode_der;
|
der_type_encoder_f BOOLEAN_encode_der;
|
||||||
xer_type_decoder_f BOOLEAN_decode_xer;
|
xer_type_decoder_f BOOLEAN_decode_xer;
|
||||||
xer_type_encoder_f BOOLEAN_encode_xer;
|
xer_type_encoder_f BOOLEAN_encode_xer;
|
||||||
per_type_decoder_f BOOLEAN_decode_uper;
|
per_type_decoder_f BOOLEAN_decode_uper;
|
||||||
per_type_encoder_f BOOLEAN_encode_uper;
|
per_type_encoder_f BOOLEAN_encode_uper;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+15
-15
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
int
|
int
|
||||||
Card_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
Card_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +26,8 @@ Card_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -55,44 +55,44 @@ Card_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
Card_free(asn_TYPE_descriptor_t *td,
|
Card_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
Card_1_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Card_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
Card_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
Card_1_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
Card_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
Card_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
Card_1_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
Card_encode_der(asn_TYPE_descriptor_t *td,
|
Card_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
Card_1_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_dec_rval_t
|
asn_dec_rval_t
|
||||||
Card_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
Card_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
Card_1_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
asn_enc_rval_t
|
asn_enc_rval_t
|
||||||
Card_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
Card_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
Card_1_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
@@ -114,10 +114,10 @@ asn_TYPE_descriptor_t asn_DEF_Card = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_Card_tags_1,
|
asn_DEF_Card_tags_1,
|
||||||
sizeof(asn_DEF_Card_tags_1)
|
sizeof(asn_DEF_Card_tags_1)
|
||||||
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
||||||
asn_DEF_Card_tags_1, /* Same as above */
|
asn_DEF_Card_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_Card_tags_1)
|
sizeof(asn_DEF_Card_tags_1)
|
||||||
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
0 /* No specifics */
|
0 /* No specifics */
|
||||||
|
|||||||
Vendored
+11
-11
@@ -18,18 +18,18 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Card */
|
/* Card */
|
||||||
typedef long Card_t;
|
typedef long Card_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_Card;
|
extern asn_TYPE_descriptor_t asn_DEF_Card;
|
||||||
asn_struct_free_f Card_free;
|
asn_struct_free_f Card_free;
|
||||||
asn_struct_print_f Card_print;
|
asn_struct_print_f Card_print;
|
||||||
asn_constr_check_f Card_constraint;
|
asn_constr_check_f Card_constraint;
|
||||||
ber_type_decoder_f Card_decode_ber;
|
ber_type_decoder_f Card_decode_ber;
|
||||||
der_type_encoder_f Card_encode_der;
|
der_type_encoder_f Card_encode_der;
|
||||||
xer_type_decoder_f Card_decode_xer;
|
xer_type_decoder_f Card_decode_xer;
|
||||||
xer_type_encoder_f Card_encode_xer;
|
xer_type_encoder_f Card_encode_xer;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-12
@@ -8,7 +8,7 @@
|
|||||||
#include "ChatCleanerMessage.h"
|
#include "ChatCleanerMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitMessage),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitMessage),
|
||||||
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_CleanerInitMessage,
|
&asn_DEF_CleanerInitMessage,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerInitMessage"
|
"cleanerInitMessage"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitAckMessage),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitAckMessage),
|
||||||
(ASN_TAG_CLASS_APPLICATION | (1 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (1 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_CleanerInitAckMessage,
|
&asn_DEF_CleanerInitAckMessage,
|
||||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerInitAckMessage"
|
"cleanerInitAckMessage"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatRequestMessage),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatRequestMessage),
|
||||||
(ASN_TAG_CLASS_APPLICATION | (2 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_CleanerChatRequestMessage,
|
&asn_DEF_CleanerChatRequestMessage,
|
||||||
@@ -34,8 +34,8 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerChatRequestMessage"
|
"cleanerChatRequestMessage"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatReplyMessage),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatReplyMessage),
|
||||||
(ASN_TAG_CLASS_APPLICATION | (3 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (3 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_CleanerChatReplyMessage,
|
&asn_DEF_CleanerChatReplyMessage,
|
||||||
@@ -43,13 +43,13 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerChatReplyMessage"
|
"cleanerChatReplyMessage"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatCleanerMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatCleanerMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* cleanerInitMessage at 27 */
|
{ (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* cleanerInitMessage at 27 */
|
||||||
{ (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* cleanerInitAckMessage at 28 */
|
{ (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* cleanerInitAckMessage at 28 */
|
||||||
{ (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* cleanerChatRequestMessage at 29 */
|
{ (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* cleanerChatRequestMessage at 29 */
|
||||||
{ (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 } /* cleanerChatReplyMessage at 31 */
|
{ (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 } /* cleanerChatReplyMessage at 31 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_ChatCleanerMessage_specs_1 = {
|
static asn_CHOICE_specifics_t asn_SPC_ChatCleanerMessage_specs_1 = {
|
||||||
sizeof(struct ChatCleanerMessage),
|
sizeof(struct ChatCleanerMessage),
|
||||||
|
|||||||
+28
-27
@@ -22,37 +22,38 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum ChatCleanerMessage_PR {
|
typedef enum ChatCleanerMessage_PR {
|
||||||
ChatCleanerMessage_PR_NOTHING, /* No components present */
|
ChatCleanerMessage_PR_NOTHING, /* No components present */
|
||||||
ChatCleanerMessage_PR_cleanerInitMessage,
|
ChatCleanerMessage_PR_cleanerInitMessage,
|
||||||
ChatCleanerMessage_PR_cleanerInitAckMessage,
|
ChatCleanerMessage_PR_cleanerInitAckMessage,
|
||||||
ChatCleanerMessage_PR_cleanerChatRequestMessage,
|
ChatCleanerMessage_PR_cleanerChatRequestMessage,
|
||||||
ChatCleanerMessage_PR_cleanerChatReplyMessage,
|
ChatCleanerMessage_PR_cleanerChatReplyMessage,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} ChatCleanerMessage_PR;
|
}
|
||||||
|
ChatCleanerMessage_PR;
|
||||||
|
|
||||||
/* ChatCleanerMessage */
|
/* ChatCleanerMessage */
|
||||||
typedef struct ChatCleanerMessage {
|
typedef struct ChatCleanerMessage {
|
||||||
ChatCleanerMessage_PR present;
|
ChatCleanerMessage_PR present;
|
||||||
union ChatCleanerMessage_u {
|
union ChatCleanerMessage_u {
|
||||||
CleanerInitMessage_t cleanerInitMessage;
|
CleanerInitMessage_t cleanerInitMessage;
|
||||||
CleanerInitAckMessage_t cleanerInitAckMessage;
|
CleanerInitAckMessage_t cleanerInitAckMessage;
|
||||||
CleanerChatRequestMessage_t cleanerChatRequestMessage;
|
CleanerChatRequestMessage_t cleanerChatRequestMessage;
|
||||||
CleanerChatReplyMessage_t cleanerChatReplyMessage;
|
CleanerChatReplyMessage_t cleanerChatReplyMessage;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatCleanerMessage_t;
|
} ChatCleanerMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatCleanerMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatCleanerMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+34
-34
@@ -9,22 +9,22 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeLobby),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeLobby),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatTypeLobby,
|
&asn_DEF_ChatTypeLobby,
|
||||||
@@ -48,8 +48,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatTypeLobby"
|
"chatTypeLobby"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeGame),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeGame),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatTypeGame,
|
&asn_DEF_ChatTypeGame,
|
||||||
@@ -57,8 +57,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatTypeGame"
|
"chatTypeGame"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBot),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBot),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatTypeBot,
|
&asn_DEF_ChatTypeBot,
|
||||||
@@ -66,8 +66,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatTypeBot"
|
"chatTypeBot"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBroadcast),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBroadcast),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatTypeBroadcast,
|
&asn_DEF_ChatTypeBroadcast,
|
||||||
@@ -75,8 +75,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatTypeBroadcast"
|
"chatTypeBroadcast"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypePrivate),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypePrivate),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatTypePrivate,
|
&asn_DEF_ChatTypePrivate,
|
||||||
@@ -84,14 +84,14 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatTypePrivate"
|
"chatTypePrivate"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_chatType_tag2el_2[] = {
|
static asn_TYPE_tag2member_t asn_MAP_chatType_tag2el_2[] = {
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 670 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 693 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatTypeGame at 671 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatTypeGame at 694 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* chatTypeBot at 672 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* chatTypeBot at 695 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* chatTypeBroadcast at 673 */
|
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* chatTypeBroadcast at 696 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* chatTypePrivate at 675 */
|
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* chatTypePrivate at 698 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_chatType_specs_2 = {
|
static asn_CHOICE_specifics_t asn_SPC_chatType_specs_2 = {
|
||||||
sizeof(struct chatType),
|
sizeof(struct chatType),
|
||||||
@@ -127,7 +127,7 @@ asn_TYPE_descriptor_t asn_DEF_chatType_2 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatType),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatType),
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
-1 /* Ambiguous tag (CHOICE?) */,
|
||||||
0,
|
0,
|
||||||
&asn_DEF_chatType_2,
|
&asn_DEF_chatType_2,
|
||||||
@@ -135,8 +135,8 @@ static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatType"
|
"chatType"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatText),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatText),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -144,19 +144,19 @@ static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatText"
|
"chatText"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (130 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (130 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 676 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 699 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 670 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 693 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatTypeGame at 671 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatTypeGame at 694 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* chatTypeBot at 672 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* chatTypeBot at 695 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 }, /* chatTypeBroadcast at 673 */
|
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 }, /* chatTypeBroadcast at 696 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 } /* chatTypePrivate at 675 */
|
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 } /* chatTypePrivate at 698 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatMessage_specs_1 = {
|
||||||
sizeof(struct ChatMessage),
|
sizeof(struct ChatMessage),
|
||||||
@@ -181,10 +181,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatMessage_tags_1,
|
asn_DEF_ChatMessage_tags_1,
|
||||||
sizeof(asn_DEF_ChatMessage_tags_1)
|
sizeof(asn_DEF_ChatMessage_tags_1)
|
||||||
/sizeof(asn_DEF_ChatMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_ChatMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_ChatMessage_tags_1, /* Same as above */
|
asn_DEF_ChatMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatMessage_tags_1)
|
sizeof(asn_DEF_ChatMessage_tags_1)
|
||||||
/sizeof(asn_DEF_ChatMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_ChatMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatMessage_1,
|
asn_MBR_ChatMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
Vendored
+38
-37
@@ -25,49 +25,50 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum chatType_PR {
|
typedef enum chatType_PR {
|
||||||
chatType_PR_NOTHING, /* No components present */
|
chatType_PR_NOTHING, /* No components present */
|
||||||
chatType_PR_chatTypeLobby,
|
chatType_PR_chatTypeLobby,
|
||||||
chatType_PR_chatTypeGame,
|
chatType_PR_chatTypeGame,
|
||||||
chatType_PR_chatTypeBot,
|
chatType_PR_chatTypeBot,
|
||||||
chatType_PR_chatTypeBroadcast,
|
chatType_PR_chatTypeBroadcast,
|
||||||
chatType_PR_chatTypePrivate,
|
chatType_PR_chatTypePrivate,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} chatType_PR;
|
}
|
||||||
|
chatType_PR;
|
||||||
|
|
||||||
/* ChatMessage */
|
/* ChatMessage */
|
||||||
typedef struct ChatMessage {
|
typedef struct ChatMessage {
|
||||||
struct chatType {
|
struct chatType {
|
||||||
chatType_PR present;
|
chatType_PR present;
|
||||||
union ChatMessage__chatType_u {
|
union ChatMessage__chatType_u {
|
||||||
ChatTypeLobby_t chatTypeLobby;
|
ChatTypeLobby_t chatTypeLobby;
|
||||||
ChatTypeGame_t chatTypeGame;
|
ChatTypeGame_t chatTypeGame;
|
||||||
ChatTypeBot_t chatTypeBot;
|
ChatTypeBot_t chatTypeBot;
|
||||||
ChatTypeBroadcast_t chatTypeBroadcast;
|
ChatTypeBroadcast_t chatTypeBroadcast;
|
||||||
ChatTypePrivate_t chatTypePrivate;
|
ChatTypePrivate_t chatTypePrivate;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
|
/* Context for parsing across buffer boundaries */
|
||||||
|
asn_struct_ctx_t _asn_ctx;
|
||||||
|
} chatType;
|
||||||
|
UTF8String_t chatText;
|
||||||
|
/*
|
||||||
|
* This type is extensible,
|
||||||
|
* possible extensions are below.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} chatType;
|
} ChatMessage_t;
|
||||||
UTF8String_t chatText;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Implementation */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatMessage;
|
||||||
} ChatMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-12
@@ -9,22 +9,22 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRejectMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatRejectMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRejectMessage, chatText),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatRejectMessage, chatText),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -48,14 +48,14 @@ static asn_TYPE_member_t asn_MBR_ChatRejectMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatText"
|
"chatText"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRejectMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatRejectMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (131 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (131 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRejectMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatRejectMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* chatText at 699 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* chatText at 722 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRejectMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatRejectMessage_specs_1 = {
|
||||||
sizeof(struct ChatRejectMessage),
|
sizeof(struct ChatRejectMessage),
|
||||||
@@ -80,10 +80,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatRejectMessage_tags_1,
|
asn_DEF_ChatRejectMessage_tags_1,
|
||||||
sizeof(asn_DEF_ChatRejectMessage_tags_1)
|
sizeof(asn_DEF_ChatRejectMessage_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_ChatRejectMessage_tags_1, /* Same as above */
|
asn_DEF_ChatRejectMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatRejectMessage_tags_1)
|
sizeof(asn_DEF_ChatRejectMessage_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatRejectMessage_1,
|
asn_MBR_ChatRejectMessage_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatRejectMessage */
|
/* ChatRejectMessage */
|
||||||
typedef struct ChatRejectMessage {
|
typedef struct ChatRejectMessage {
|
||||||
UTF8String_t chatText;
|
UTF8String_t chatText;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatRejectMessage_t;
|
} ChatRejectMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+26
-26
@@ -9,22 +9,22 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeLobby),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeLobby),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatRequestTypeLobby,
|
&asn_DEF_ChatRequestTypeLobby,
|
||||||
@@ -48,8 +48,8 @@ static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatRequestTypeLobby"
|
"chatRequestTypeLobby"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeGame),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeGame),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatRequestTypeGame,
|
&asn_DEF_ChatRequestTypeGame,
|
||||||
@@ -57,8 +57,8 @@ static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatRequestTypeGame"
|
"chatRequestTypeGame"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypePrivate),
|
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypePrivate),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_ChatRequestTypePrivate,
|
&asn_DEF_ChatRequestTypePrivate,
|
||||||
@@ -66,12 +66,12 @@ static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatRequestTypePrivate"
|
"chatRequestTypePrivate"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_chatRequestType_tag2el_2[] = {
|
static asn_TYPE_tag2member_t asn_MAP_chatRequestType_tag2el_2[] = {
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 650 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 673 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatRequestTypeGame at 651 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatRequestTypeGame at 674 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chatRequestTypePrivate at 653 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chatRequestTypePrivate at 676 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_chatRequestType_specs_2 = {
|
static asn_CHOICE_specifics_t asn_SPC_chatRequestType_specs_2 = {
|
||||||
sizeof(struct chatRequestType),
|
sizeof(struct chatRequestType),
|
||||||
@@ -107,7 +107,7 @@ asn_TYPE_descriptor_t asn_DEF_chatRequestType_2 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatRequestType),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatRequestType),
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
-1 /* Ambiguous tag (CHOICE?) */,
|
||||||
0,
|
0,
|
||||||
&asn_DEF_chatRequestType_2,
|
&asn_DEF_chatRequestType_2,
|
||||||
@@ -115,8 +115,8 @@ static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatRequestType"
|
"chatRequestType"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatText),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatText),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -124,17 +124,17 @@ static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatText"
|
"chatText"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatRequestMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (129 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (129 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRequestMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatRequestMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 654 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 677 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 650 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 673 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatRequestTypeGame at 651 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatRequestTypeGame at 674 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 } /* chatRequestTypePrivate at 653 */
|
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 } /* chatRequestTypePrivate at 676 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestMessage_specs_1 = {
|
||||||
sizeof(struct ChatRequestMessage),
|
sizeof(struct ChatRequestMessage),
|
||||||
@@ -159,10 +159,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatRequestMessage_tags_1,
|
asn_DEF_ChatRequestMessage_tags_1,
|
||||||
sizeof(asn_DEF_ChatRequestMessage_tags_1)
|
sizeof(asn_DEF_ChatRequestMessage_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_ChatRequestMessage_tags_1, /* Same as above */
|
asn_DEF_ChatRequestMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatRequestMessage_tags_1)
|
sizeof(asn_DEF_ChatRequestMessage_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatRequestMessage_1,
|
asn_MBR_ChatRequestMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+34
-33
@@ -23,45 +23,46 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum chatRequestType_PR {
|
typedef enum chatRequestType_PR {
|
||||||
chatRequestType_PR_NOTHING, /* No components present */
|
chatRequestType_PR_NOTHING, /* No components present */
|
||||||
chatRequestType_PR_chatRequestTypeLobby,
|
chatRequestType_PR_chatRequestTypeLobby,
|
||||||
chatRequestType_PR_chatRequestTypeGame,
|
chatRequestType_PR_chatRequestTypeGame,
|
||||||
chatRequestType_PR_chatRequestTypePrivate,
|
chatRequestType_PR_chatRequestTypePrivate,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} chatRequestType_PR;
|
}
|
||||||
|
chatRequestType_PR;
|
||||||
|
|
||||||
/* ChatRequestMessage */
|
/* ChatRequestMessage */
|
||||||
typedef struct ChatRequestMessage {
|
typedef struct ChatRequestMessage {
|
||||||
struct chatRequestType {
|
struct chatRequestType {
|
||||||
chatRequestType_PR present;
|
chatRequestType_PR present;
|
||||||
union ChatRequestMessage__chatRequestType_u {
|
union ChatRequestMessage__chatRequestType_u {
|
||||||
ChatRequestTypeLobby_t chatRequestTypeLobby;
|
ChatRequestTypeLobby_t chatRequestTypeLobby;
|
||||||
ChatRequestTypeGame_t chatRequestTypeGame;
|
ChatRequestTypeGame_t chatRequestTypeGame;
|
||||||
ChatRequestTypePrivate_t chatRequestTypePrivate;
|
ChatRequestTypePrivate_t chatRequestTypePrivate;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
|
/* Context for parsing across buffer boundaries */
|
||||||
|
asn_struct_ctx_t _asn_ctx;
|
||||||
|
} chatRequestType;
|
||||||
|
UTF8String_t chatText;
|
||||||
|
/*
|
||||||
|
* This type is extensible,
|
||||||
|
* possible extensions are below.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} chatRequestType;
|
} ChatRequestMessage_t;
|
||||||
UTF8String_t chatText;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Implementation */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage;
|
||||||
} ChatRequestMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
#include "ChatRequestTypeGame.h"
|
#include "ChatRequestTypeGame.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRequestTypeGame_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatRequestTypeGame_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypeGame, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypeGame, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatRequestTypeGame_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestTypeGame_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatRequestTypeGame_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRequestTypeGame_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatRequestTypeGame_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 662 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 685 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypeGame_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypeGame_specs_1 = {
|
||||||
sizeof(struct ChatRequestTypeGame),
|
sizeof(struct ChatRequestTypeGame),
|
||||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatRequestTypeGame_tags_1,
|
asn_DEF_ChatRequestTypeGame_tags_1,
|
||||||
sizeof(asn_DEF_ChatRequestTypeGame_tags_1)
|
sizeof(asn_DEF_ChatRequestTypeGame_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatRequestTypeGame_tags_1, /* Same as above */
|
asn_DEF_ChatRequestTypeGame_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatRequestTypeGame_tags_1)
|
sizeof(asn_DEF_ChatRequestTypeGame_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatRequestTypeGame_1,
|
asn_MBR_ChatRequestTypeGame_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatRequestTypeGame */
|
/* ChatRequestTypeGame */
|
||||||
typedef struct ChatRequestTypeGame {
|
typedef struct ChatRequestTypeGame {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatRequestTypeGame_t;
|
} ChatRequestTypeGame_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatRequestTypeLobby_tags_1,
|
asn_DEF_ChatRequestTypeLobby_tags_1,
|
||||||
sizeof(asn_DEF_ChatRequestTypeLobby_tags_1)
|
sizeof(asn_DEF_ChatRequestTypeLobby_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatRequestTypeLobby_tags_1, /* Same as above */
|
asn_DEF_ChatRequestTypeLobby_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatRequestTypeLobby_tags_1)
|
sizeof(asn_DEF_ChatRequestTypeLobby_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_ChatRequestTypeLobby_specs_1 /* Additional specs */
|
&asn_SPC_ChatRequestTypeLobby_specs_1 /* Additional specs */
|
||||||
|
|||||||
+11
-11
@@ -18,19 +18,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatRequestTypeLobby */
|
/* ChatRequestTypeLobby */
|
||||||
typedef struct ChatRequestTypeLobby {
|
typedef struct ChatRequestTypeLobby {
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatRequestTypeLobby_t;
|
} ChatRequestTypeLobby_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
#include "ChatRequestTypePrivate.h"
|
#include "ChatRequestTypePrivate.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRequestTypePrivate_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatRequestTypePrivate_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypePrivate, targetPlayerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypePrivate, targetPlayerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatRequestTypePrivate_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"targetPlayerId"
|
"targetPlayerId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestTypePrivate_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatRequestTypePrivate_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRequestTypePrivate_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatRequestTypePrivate_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* targetPlayerId at 666 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* targetPlayerId at 689 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypePrivate_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypePrivate_specs_1 = {
|
||||||
sizeof(struct ChatRequestTypePrivate),
|
sizeof(struct ChatRequestTypePrivate),
|
||||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatRequestTypePrivate_tags_1,
|
asn_DEF_ChatRequestTypePrivate_tags_1,
|
||||||
sizeof(asn_DEF_ChatRequestTypePrivate_tags_1)
|
sizeof(asn_DEF_ChatRequestTypePrivate_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatRequestTypePrivate_tags_1, /* Same as above */
|
asn_DEF_ChatRequestTypePrivate_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatRequestTypePrivate_tags_1)
|
sizeof(asn_DEF_ChatRequestTypePrivate_tags_1)
|
||||||
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatRequestTypePrivate_1,
|
asn_MBR_ChatRequestTypePrivate_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatRequestTypePrivate */
|
/* ChatRequestTypePrivate */
|
||||||
typedef struct ChatRequestTypePrivate {
|
typedef struct ChatRequestTypePrivate {
|
||||||
NonZeroId_t targetPlayerId;
|
NonZeroId_t targetPlayerId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatRequestTypePrivate_t;
|
} ChatRequestTypePrivate_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeBot = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatTypeBot_tags_1,
|
asn_DEF_ChatTypeBot_tags_1,
|
||||||
sizeof(asn_DEF_ChatTypeBot_tags_1)
|
sizeof(asn_DEF_ChatTypeBot_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatTypeBot_tags_1, /* Same as above */
|
asn_DEF_ChatTypeBot_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatTypeBot_tags_1)
|
sizeof(asn_DEF_ChatTypeBot_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_ChatTypeBot_specs_1 /* Additional specs */
|
&asn_SPC_ChatTypeBot_specs_1 /* Additional specs */
|
||||||
|
|||||||
Vendored
+11
-11
@@ -18,19 +18,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatTypeBot */
|
/* ChatTypeBot */
|
||||||
typedef struct ChatTypeBot {
|
typedef struct ChatTypeBot {
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatTypeBot_t;
|
} ChatTypeBot_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBot;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBot;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatTypeBroadcast_tags_1,
|
asn_DEF_ChatTypeBroadcast_tags_1,
|
||||||
sizeof(asn_DEF_ChatTypeBroadcast_tags_1)
|
sizeof(asn_DEF_ChatTypeBroadcast_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatTypeBroadcast_tags_1, /* Same as above */
|
asn_DEF_ChatTypeBroadcast_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatTypeBroadcast_tags_1)
|
sizeof(asn_DEF_ChatTypeBroadcast_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_ChatTypeBroadcast_specs_1 /* Additional specs */
|
&asn_SPC_ChatTypeBroadcast_specs_1 /* Additional specs */
|
||||||
|
|||||||
+11
-11
@@ -18,19 +18,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatTypeBroadcast */
|
/* ChatTypeBroadcast */
|
||||||
typedef struct ChatTypeBroadcast {
|
typedef struct ChatTypeBroadcast {
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatTypeBroadcast_t;
|
} ChatTypeBroadcast_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+8
-8
@@ -8,7 +8,7 @@
|
|||||||
#include "ChatTypeGame.h"
|
#include "ChatTypeGame.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -25,14 +25,14 @@ static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypeGame_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatTypeGame_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatTypeGame_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatTypeGame_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 684 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 707 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 686 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 709 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeGame_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeGame_specs_1 = {
|
||||||
sizeof(struct ChatTypeGame),
|
sizeof(struct ChatTypeGame),
|
||||||
@@ -57,10 +57,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeGame = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatTypeGame_tags_1,
|
asn_DEF_ChatTypeGame_tags_1,
|
||||||
sizeof(asn_DEF_ChatTypeGame_tags_1)
|
sizeof(asn_DEF_ChatTypeGame_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatTypeGame_tags_1, /* Same as above */
|
asn_DEF_ChatTypeGame_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatTypeGame_tags_1)
|
sizeof(asn_DEF_ChatTypeGame_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatTypeGame_1,
|
asn_MBR_ChatTypeGame_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
Vendored
+13
-13
@@ -19,21 +19,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatTypeGame */
|
/* ChatTypeGame */
|
||||||
typedef struct ChatTypeGame {
|
typedef struct ChatTypeGame {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatTypeGame_t;
|
} ChatTypeGame_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeGame;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeGame;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
#include "ChatTypeLobby.h"
|
#include "ChatTypeLobby.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatTypeLobby_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatTypeLobby_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeLobby, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeLobby, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatTypeLobby_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypeLobby_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatTypeLobby_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatTypeLobby_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatTypeLobby_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 681 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 704 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeLobby_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeLobby_specs_1 = {
|
||||||
sizeof(struct ChatTypeLobby),
|
sizeof(struct ChatTypeLobby),
|
||||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatTypeLobby_tags_1,
|
asn_DEF_ChatTypeLobby_tags_1,
|
||||||
sizeof(asn_DEF_ChatTypeLobby_tags_1)
|
sizeof(asn_DEF_ChatTypeLobby_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatTypeLobby_tags_1, /* Same as above */
|
asn_DEF_ChatTypeLobby_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatTypeLobby_tags_1)
|
sizeof(asn_DEF_ChatTypeLobby_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatTypeLobby_1,
|
asn_MBR_ChatTypeLobby_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
Vendored
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatTypeLobby */
|
/* ChatTypeLobby */
|
||||||
typedef struct ChatTypeLobby {
|
typedef struct ChatTypeLobby {
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatTypeLobby_t;
|
} ChatTypeLobby_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
#include "ChatTypePrivate.h"
|
#include "ChatTypePrivate.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatTypePrivate_1[] = {
|
static asn_TYPE_member_t asn_MBR_ChatTypePrivate_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypePrivate, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypePrivate, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatTypePrivate_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypePrivate_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_ChatTypePrivate_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatTypePrivate_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_ChatTypePrivate_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 696 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 719 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypePrivate_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypePrivate_specs_1 = {
|
||||||
sizeof(struct ChatTypePrivate),
|
sizeof(struct ChatTypePrivate),
|
||||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_ChatTypePrivate_tags_1,
|
asn_DEF_ChatTypePrivate_tags_1,
|
||||||
sizeof(asn_DEF_ChatTypePrivate_tags_1)
|
sizeof(asn_DEF_ChatTypePrivate_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
||||||
asn_DEF_ChatTypePrivate_tags_1, /* Same as above */
|
asn_DEF_ChatTypePrivate_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_ChatTypePrivate_tags_1)
|
sizeof(asn_DEF_ChatTypePrivate_tags_1)
|
||||||
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_ChatTypePrivate_1,
|
asn_MBR_ChatTypePrivate_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ChatTypePrivate */
|
/* ChatTypePrivate */
|
||||||
typedef struct ChatTypePrivate {
|
typedef struct ChatTypePrivate {
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} ChatTypePrivate_t;
|
} ChatTypePrivate_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate;
|
extern asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+79
-79
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
requestId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
requestId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +26,8 @@ requestId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,62 +50,62 @@ requestId_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
td->elements = asn_DEF_NativeInteger.elements;
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
requestId_2_free(asn_TYPE_descriptor_t *td,
|
requestId_2_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
requestId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
requestId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
requestId_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
requestId_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
requestId_2_encode_der(asn_TYPE_descriptor_t *td,
|
requestId_2_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
requestId_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
requestId_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
requestId_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
requestId_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
playerId_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
playerId_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,8 +116,8 @@ playerId_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -140,56 +140,56 @@ playerId_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
td->elements = asn_DEF_NativeInteger.elements;
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
playerId_4_free(asn_TYPE_descriptor_t *td,
|
playerId_4_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
playerId_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
playerId_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
playerId_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
playerId_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
playerId_4_encode_der(asn_TYPE_descriptor_t *td,
|
playerId_4_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
playerId_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
playerId_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
playerId_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
playerId_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cleanerActionType_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
cleanerActionType_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
/* Replace with underlying type checker */
|
/* Replace with underlying type checker */
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||||
@@ -213,62 +213,62 @@ cleanerActionType_5_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cleanerActionType_5_free(asn_TYPE_descriptor_t *td,
|
cleanerActionType_5_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cleanerActionType_5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
cleanerActionType_5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
cleanerActionType_5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
cleanerActionType_5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
cleanerActionType_5_encode_der(asn_TYPE_descriptor_t *td,
|
cleanerActionType_5_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
cleanerActionType_5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
cleanerActionType_5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
cleanerActionType_5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
cleanerActionType_5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_requestId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_requestId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -279,21 +279,21 @@ memb_requestId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_playerId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_playerId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -304,30 +304,30 @@ memb_playerId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_cleanerText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_cleanerText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -336,8 +336,8 @@ memb_cleanerText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -365,10 +365,10 @@ asn_TYPE_descriptor_t asn_DEF_requestId_2 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_requestId_tags_2,
|
asn_DEF_requestId_tags_2,
|
||||||
sizeof(asn_DEF_requestId_tags_2)
|
sizeof(asn_DEF_requestId_tags_2)
|
||||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||||
asn_DEF_requestId_tags_2, /* Same as above */
|
asn_DEF_requestId_tags_2, /* Same as above */
|
||||||
sizeof(asn_DEF_requestId_tags_2)
|
sizeof(asn_DEF_requestId_tags_2)
|
||||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_requestId_specs_2 /* Additional specs */
|
&asn_SPC_requestId_specs_2 /* Additional specs */
|
||||||
@@ -397,10 +397,10 @@ asn_TYPE_descriptor_t asn_DEF_playerId_4 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_playerId_tags_4,
|
asn_DEF_playerId_tags_4,
|
||||||
sizeof(asn_DEF_playerId_tags_4)
|
sizeof(asn_DEF_playerId_tags_4)
|
||||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||||
asn_DEF_playerId_tags_4, /* Same as above */
|
asn_DEF_playerId_tags_4, /* Same as above */
|
||||||
sizeof(asn_DEF_playerId_tags_4)
|
sizeof(asn_DEF_playerId_tags_4)
|
||||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_playerId_specs_4 /* Additional specs */
|
&asn_SPC_playerId_specs_4 /* Additional specs */
|
||||||
@@ -445,17 +445,17 @@ asn_TYPE_descriptor_t asn_DEF_cleanerActionType_5 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_cleanerActionType_tags_5,
|
asn_DEF_cleanerActionType_tags_5,
|
||||||
sizeof(asn_DEF_cleanerActionType_tags_5)
|
sizeof(asn_DEF_cleanerActionType_tags_5)
|
||||||
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
||||||
asn_DEF_cleanerActionType_tags_5, /* Same as above */
|
asn_DEF_cleanerActionType_tags_5, /* Same as above */
|
||||||
sizeof(asn_DEF_cleanerActionType_tags_5)
|
sizeof(asn_DEF_cleanerActionType_tags_5)
|
||||||
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* Defined elsewhere */
|
0, 0, /* Defined elsewhere */
|
||||||
&asn_SPC_cleanerActionType_specs_5 /* Additional specs */
|
&asn_SPC_cleanerActionType_specs_5 /* Additional specs */
|
||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, requestId),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, requestId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_requestId_2,
|
&asn_DEF_requestId_2,
|
||||||
@@ -463,8 +463,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"requestId"
|
"requestId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerChatType),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerChatType),
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
-1 /* Ambiguous tag (CHOICE?) */,
|
||||||
0,
|
0,
|
||||||
&asn_DEF_CleanerChatType,
|
&asn_DEF_CleanerChatType,
|
||||||
@@ -472,8 +472,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerChatType"
|
"cleanerChatType"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_playerId_4,
|
&asn_DEF_playerId_4,
|
||||||
@@ -481,8 +481,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerActionType),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerActionType),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_cleanerActionType_5,
|
&asn_DEF_cleanerActionType_5,
|
||||||
@@ -490,8 +490,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerActionType"
|
"cleanerActionType"
|
||||||
},
|
},
|
||||||
{ ATF_POINTER, 1, offsetof(struct CleanerChatReplyMessage, cleanerText),
|
{ ATF_POINTER, 1, offsetof(struct CleanerChatReplyMessage, cleanerText),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -499,19 +499,19 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerText"
|
"cleanerText"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_CleanerChatReplyMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_CleanerChatReplyMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (3 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (3 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatReplyMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_CleanerChatReplyMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 64 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 64 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 66 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 66 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* cleanerActionType at 68 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* cleanerActionType at 68 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, 0, 0 }, /* cleanerText at 73 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, 0, 0 }, /* cleanerText at 73 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatReplyMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatReplyMessage_specs_1 = {
|
||||||
sizeof(struct CleanerChatReplyMessage),
|
sizeof(struct CleanerChatReplyMessage),
|
||||||
@@ -536,10 +536,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatReplyMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_CleanerChatReplyMessage_tags_1,
|
asn_DEF_CleanerChatReplyMessage_tags_1,
|
||||||
sizeof(asn_DEF_CleanerChatReplyMessage_tags_1)
|
sizeof(asn_DEF_CleanerChatReplyMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_CleanerChatReplyMessage_tags_1, /* Same as above */
|
asn_DEF_CleanerChatReplyMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_CleanerChatReplyMessage_tags_1)
|
sizeof(asn_DEF_CleanerChatReplyMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_CleanerChatReplyMessage_1,
|
asn_MBR_CleanerChatReplyMessage_1,
|
||||||
5, /* Elements count */
|
5, /* Elements count */
|
||||||
|
|||||||
+27
-26
@@ -22,35 +22,36 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum cleanerActionType {
|
typedef enum cleanerActionType {
|
||||||
cleanerActionType_cleanerActionNone = 0,
|
cleanerActionType_cleanerActionNone = 0,
|
||||||
cleanerActionType_cleanerActionWarning = 1,
|
cleanerActionType_cleanerActionWarning = 1,
|
||||||
cleanerActionType_cleanerActionKick = 2,
|
cleanerActionType_cleanerActionKick = 2,
|
||||||
cleanerActionType_cleanerActionBan = 3
|
cleanerActionType_cleanerActionBan = 3
|
||||||
} e_cleanerActionType;
|
}
|
||||||
|
e_cleanerActionType;
|
||||||
|
|
||||||
/* CleanerChatReplyMessage */
|
/* CleanerChatReplyMessage */
|
||||||
typedef struct CleanerChatReplyMessage {
|
typedef struct CleanerChatReplyMessage {
|
||||||
unsigned long requestId;
|
unsigned long requestId;
|
||||||
CleanerChatType_t cleanerChatType;
|
CleanerChatType_t cleanerChatType;
|
||||||
unsigned long playerId;
|
unsigned long playerId;
|
||||||
long cleanerActionType;
|
long cleanerActionType;
|
||||||
UTF8String_t *cleanerText /* OPTIONAL */;
|
UTF8String_t *cleanerText /* OPTIONAL */;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerChatReplyMessage_t;
|
} CleanerChatReplyMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_cleanerActionType_5; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_cleanerActionType_5; // (Use -fall-defs-global to expose) */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatReplyMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatReplyMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+74
-74
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
requestId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
requestId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +26,8 @@ requestId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,62 +50,62 @@ requestId_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
td->elements = asn_DEF_NativeInteger.elements;
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
requestId_2_free(asn_TYPE_descriptor_t *td,
|
requestId_2_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
requestId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
requestId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
requestId_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
requestId_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
requestId_2_encode_der(asn_TYPE_descriptor_t *td,
|
requestId_2_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
requestId_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
requestId_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
requestId_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
requestId_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
requestId_2_inherit_TYPE_descriptor(td);
|
requestId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
playerId_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
playerId_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,8 +116,8 @@ playerId_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -140,62 +140,62 @@ playerId_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
td->elements = asn_DEF_NativeInteger.elements;
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
playerId_4_free(asn_TYPE_descriptor_t *td,
|
playerId_4_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
playerId_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
playerId_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
playerId_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
playerId_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
playerId_4_encode_der(asn_TYPE_descriptor_t *td,
|
playerId_4_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
playerId_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
playerId_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
playerId_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
playerId_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
playerId_4_inherit_TYPE_descriptor(td);
|
playerId_4_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_requestId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_requestId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,21 +206,21 @@ memb_requestId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_playerId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_playerId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -231,30 +231,30 @@ memb_playerId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_playerName_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_playerName_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -263,30 +263,30 @@ memb_playerName_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_chatMessage_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_chatMessage_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -295,8 +295,8 @@ memb_chatMessage_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -324,10 +324,10 @@ asn_TYPE_descriptor_t asn_DEF_requestId_2 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_requestId_tags_2,
|
asn_DEF_requestId_tags_2,
|
||||||
sizeof(asn_DEF_requestId_tags_2)
|
sizeof(asn_DEF_requestId_tags_2)
|
||||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||||
asn_DEF_requestId_tags_2, /* Same as above */
|
asn_DEF_requestId_tags_2, /* Same as above */
|
||||||
sizeof(asn_DEF_requestId_tags_2)
|
sizeof(asn_DEF_requestId_tags_2)
|
||||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_requestId_specs_2 /* Additional specs */
|
&asn_SPC_requestId_specs_2 /* Additional specs */
|
||||||
@@ -356,17 +356,17 @@ asn_TYPE_descriptor_t asn_DEF_playerId_4 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_playerId_tags_4,
|
asn_DEF_playerId_tags_4,
|
||||||
sizeof(asn_DEF_playerId_tags_4)
|
sizeof(asn_DEF_playerId_tags_4)
|
||||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||||
asn_DEF_playerId_tags_4, /* Same as above */
|
asn_DEF_playerId_tags_4, /* Same as above */
|
||||||
sizeof(asn_DEF_playerId_tags_4)
|
sizeof(asn_DEF_playerId_tags_4)
|
||||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_playerId_specs_4 /* Additional specs */
|
&asn_SPC_playerId_specs_4 /* Additional specs */
|
||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, requestId),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, requestId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_requestId_2,
|
&asn_DEF_requestId_2,
|
||||||
@@ -374,8 +374,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"requestId"
|
"requestId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, cleanerChatType),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, cleanerChatType),
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
-1 /* Ambiguous tag (CHOICE?) */,
|
||||||
0,
|
0,
|
||||||
&asn_DEF_CleanerChatType,
|
&asn_DEF_CleanerChatType,
|
||||||
@@ -383,8 +383,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerChatType"
|
"cleanerChatType"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_playerId_4,
|
&asn_DEF_playerId_4,
|
||||||
@@ -392,8 +392,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerName),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerName),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -401,8 +401,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerName"
|
"playerName"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, chatMessage),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, chatMessage),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -410,19 +410,19 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"chatMessage"
|
"chatMessage"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_CleanerChatRequestMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_CleanerChatRequestMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (2 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (2 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatRequestMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_CleanerChatRequestMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 56 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 56 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 58 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 58 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 3, 0, 1 }, /* playerName at 59 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 3, 0, 1 }, /* playerName at 59 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, -1, 0 }, /* chatMessage at 60 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, -1, 0 }, /* chatMessage at 60 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatRequestMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatRequestMessage_specs_1 = {
|
||||||
sizeof(struct CleanerChatRequestMessage),
|
sizeof(struct CleanerChatRequestMessage),
|
||||||
@@ -447,10 +447,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatRequestMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_CleanerChatRequestMessage_tags_1,
|
asn_DEF_CleanerChatRequestMessage_tags_1,
|
||||||
sizeof(asn_DEF_CleanerChatRequestMessage_tags_1)
|
sizeof(asn_DEF_CleanerChatRequestMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_CleanerChatRequestMessage_tags_1, /* Same as above */
|
asn_DEF_CleanerChatRequestMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_CleanerChatRequestMessage_tags_1)
|
sizeof(asn_DEF_CleanerChatRequestMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_CleanerChatRequestMessage_1,
|
asn_MBR_CleanerChatRequestMessage_1,
|
||||||
5, /* Elements count */
|
5, /* Elements count */
|
||||||
|
|||||||
+18
-18
@@ -21,26 +21,26 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* CleanerChatRequestMessage */
|
/* CleanerChatRequestMessage */
|
||||||
typedef struct CleanerChatRequestMessage {
|
typedef struct CleanerChatRequestMessage {
|
||||||
unsigned long requestId;
|
unsigned long requestId;
|
||||||
CleanerChatType_t cleanerChatType;
|
CleanerChatType_t cleanerChatType;
|
||||||
unsigned long playerId;
|
unsigned long playerId;
|
||||||
UTF8String_t playerName;
|
UTF8String_t playerName;
|
||||||
UTF8String_t chatMessage;
|
UTF8String_t chatMessage;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerChatRequestMessage_t;
|
} CleanerChatRequestMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatRequestMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatRequestMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -8,7 +8,7 @@
|
|||||||
#include "CleanerChatType.h"
|
#include "CleanerChatType.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeLobby),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeLobby),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_CleanerChatTypeLobby,
|
&asn_DEF_CleanerChatTypeLobby,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerChatTypeLobby"
|
"cleanerChatTypeLobby"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeGame),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeGame),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_CleanerChatTypeGame,
|
&asn_DEF_CleanerChatTypeGame,
|
||||||
@@ -25,11 +25,11 @@ static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cleanerChatTypeGame"
|
"cleanerChatTypeGame"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatType_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_CleanerChatType_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_CleanerChatType_specs_1 = {
|
static asn_CHOICE_specifics_t asn_SPC_CleanerChatType_specs_1 = {
|
||||||
sizeof(struct CleanerChatType),
|
sizeof(struct CleanerChatType),
|
||||||
|
|||||||
+24
-23
@@ -20,33 +20,34 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum CleanerChatType_PR {
|
typedef enum CleanerChatType_PR {
|
||||||
CleanerChatType_PR_NOTHING, /* No components present */
|
CleanerChatType_PR_NOTHING, /* No components present */
|
||||||
CleanerChatType_PR_cleanerChatTypeLobby,
|
CleanerChatType_PR_cleanerChatTypeLobby,
|
||||||
CleanerChatType_PR_cleanerChatTypeGame,
|
CleanerChatType_PR_cleanerChatTypeGame,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} CleanerChatType_PR;
|
}
|
||||||
|
CleanerChatType_PR;
|
||||||
|
|
||||||
/* CleanerChatType */
|
/* CleanerChatType */
|
||||||
typedef struct CleanerChatType {
|
typedef struct CleanerChatType {
|
||||||
CleanerChatType_PR present;
|
CleanerChatType_PR present;
|
||||||
union CleanerChatType_u {
|
union CleanerChatType_u {
|
||||||
CleanerChatTypeLobby_t cleanerChatTypeLobby;
|
CleanerChatTypeLobby_t cleanerChatTypeLobby;
|
||||||
CleanerChatTypeGame_t cleanerChatTypeGame;
|
CleanerChatTypeGame_t cleanerChatTypeGame;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerChatType_t;
|
} CleanerChatType_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatType;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatType;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+26
-26
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
gameId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
gameId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +26,8 @@ gameId_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,62 +50,62 @@ gameId_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
td->elements = asn_DEF_NativeInteger.elements;
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gameId_2_free(asn_TYPE_descriptor_t *td,
|
gameId_2_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
gameId_2_inherit_TYPE_descriptor(td);
|
gameId_2_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
gameId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
gameId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
gameId_2_inherit_TYPE_descriptor(td);
|
gameId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
gameId_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
gameId_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
gameId_2_inherit_TYPE_descriptor(td);
|
gameId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
gameId_2_encode_der(asn_TYPE_descriptor_t *td,
|
gameId_2_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
gameId_2_inherit_TYPE_descriptor(td);
|
gameId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
gameId_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
gameId_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
gameId_2_inherit_TYPE_descriptor(td);
|
gameId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
gameId_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
gameId_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
gameId_2_inherit_TYPE_descriptor(td);
|
gameId_2_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_gameId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_gameId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,8 +116,8 @@ memb_gameId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -145,17 +145,17 @@ asn_TYPE_descriptor_t asn_DEF_gameId_2 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_gameId_tags_2,
|
asn_DEF_gameId_tags_2,
|
||||||
sizeof(asn_DEF_gameId_tags_2)
|
sizeof(asn_DEF_gameId_tags_2)
|
||||||
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
||||||
asn_DEF_gameId_tags_2, /* Same as above */
|
asn_DEF_gameId_tags_2, /* Same as above */
|
||||||
sizeof(asn_DEF_gameId_tags_2)
|
sizeof(asn_DEF_gameId_tags_2)
|
||||||
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_gameId_specs_2 /* Additional specs */
|
&asn_SPC_gameId_specs_2 /* Additional specs */
|
||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_CleanerChatTypeGame_1[] = {
|
static asn_TYPE_member_t asn_MBR_CleanerChatTypeGame_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatTypeGame, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatTypeGame, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_gameId_2,
|
&asn_DEF_gameId_2,
|
||||||
@@ -163,13 +163,13 @@ static asn_TYPE_member_t asn_MBR_CleanerChatTypeGame_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_CleanerChatTypeGame_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_CleanerChatTypeGame_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatTypeGame_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_CleanerChatTypeGame_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 52 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 52 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatTypeGame_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatTypeGame_specs_1 = {
|
||||||
sizeof(struct CleanerChatTypeGame),
|
sizeof(struct CleanerChatTypeGame),
|
||||||
@@ -194,10 +194,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeGame = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_CleanerChatTypeGame_tags_1,
|
asn_DEF_CleanerChatTypeGame_tags_1,
|
||||||
sizeof(asn_DEF_CleanerChatTypeGame_tags_1)
|
sizeof(asn_DEF_CleanerChatTypeGame_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
||||||
asn_DEF_CleanerChatTypeGame_tags_1, /* Same as above */
|
asn_DEF_CleanerChatTypeGame_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_CleanerChatTypeGame_tags_1)
|
sizeof(asn_DEF_CleanerChatTypeGame_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_CleanerChatTypeGame_1,
|
asn_MBR_CleanerChatTypeGame_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -19,21 +19,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* CleanerChatTypeGame */
|
/* CleanerChatTypeGame */
|
||||||
typedef struct CleanerChatTypeGame {
|
typedef struct CleanerChatTypeGame {
|
||||||
unsigned long gameId;
|
unsigned long gameId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerChatTypeGame_t;
|
} CleanerChatTypeGame_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_gameId_2; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_gameId_2; // (Use -fall-defs-global to expose) */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeGame;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeGame;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeLobby = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_CleanerChatTypeLobby_tags_1,
|
asn_DEF_CleanerChatTypeLobby_tags_1,
|
||||||
sizeof(asn_DEF_CleanerChatTypeLobby_tags_1)
|
sizeof(asn_DEF_CleanerChatTypeLobby_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
||||||
asn_DEF_CleanerChatTypeLobby_tags_1, /* Same as above */
|
asn_DEF_CleanerChatTypeLobby_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_CleanerChatTypeLobby_tags_1)
|
sizeof(asn_DEF_CleanerChatTypeLobby_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* No members */
|
0, 0, /* No members */
|
||||||
&asn_SPC_CleanerChatTypeLobby_specs_1 /* Additional specs */
|
&asn_SPC_CleanerChatTypeLobby_specs_1 /* Additional specs */
|
||||||
|
|||||||
+11
-11
@@ -18,19 +18,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* CleanerChatTypeLobby */
|
/* CleanerChatTypeLobby */
|
||||||
typedef struct CleanerChatTypeLobby {
|
typedef struct CleanerChatTypeLobby {
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerChatTypeLobby_t;
|
} CleanerChatTypeLobby_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeLobby;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeLobby;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+20
-20
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_serverVersion_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_serverVersion_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,30 +26,30 @@ memb_serverVersion_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_serverSecret_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_serverSecret_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,14 +58,14 @@ memb_serverSecret_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverVersion),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverVersion),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -73,8 +73,8 @@ static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"serverVersion"
|
"serverVersion"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverSecret),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverSecret),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -82,15 +82,15 @@ static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"serverSecret"
|
"serverSecret"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_CleanerInitAckMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_CleanerInitAckMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (1 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (1 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_CleanerInitAckMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_CleanerInitAckMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* serverVersion at 39 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* serverVersion at 39 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* serverSecret at 40 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* serverSecret at 40 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerInitAckMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_CleanerInitAckMessage_specs_1 = {
|
||||||
sizeof(struct CleanerInitAckMessage),
|
sizeof(struct CleanerInitAckMessage),
|
||||||
@@ -115,10 +115,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerInitAckMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_CleanerInitAckMessage_tags_1,
|
asn_DEF_CleanerInitAckMessage_tags_1,
|
||||||
sizeof(asn_DEF_CleanerInitAckMessage_tags_1)
|
sizeof(asn_DEF_CleanerInitAckMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_CleanerInitAckMessage_tags_1, /* Same as above */
|
asn_DEF_CleanerInitAckMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_CleanerInitAckMessage_tags_1)
|
sizeof(asn_DEF_CleanerInitAckMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_CleanerInitAckMessage_1,
|
asn_MBR_CleanerInitAckMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* CleanerInitAckMessage */
|
/* CleanerInitAckMessage */
|
||||||
typedef struct CleanerInitAckMessage {
|
typedef struct CleanerInitAckMessage {
|
||||||
long serverVersion;
|
long serverVersion;
|
||||||
UTF8String_t serverSecret;
|
UTF8String_t serverSecret;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerInitAckMessage_t;
|
} CleanerInitAckMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitAckMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitAckMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+20
-20
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_requestedVersion_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_requestedVersion_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,30 +26,30 @@ memb_requestedVersion_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_clientSecret_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_clientSecret_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,14 +58,14 @@ memb_clientSecret_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, requestedVersion),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, requestedVersion),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -73,8 +73,8 @@ static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"requestedVersion"
|
"requestedVersion"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, clientSecret),
|
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, clientSecret),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -82,15 +82,15 @@ static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"clientSecret"
|
"clientSecret"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_CleanerInitMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_CleanerInitMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_CleanerInitMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_CleanerInitMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestedVersion at 34 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestedVersion at 34 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* clientSecret at 35 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* clientSecret at 35 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerInitMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_CleanerInitMessage_specs_1 = {
|
||||||
sizeof(struct CleanerInitMessage),
|
sizeof(struct CleanerInitMessage),
|
||||||
@@ -115,10 +115,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerInitMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_CleanerInitMessage_tags_1,
|
asn_DEF_CleanerInitMessage_tags_1,
|
||||||
sizeof(asn_DEF_CleanerInitMessage_tags_1)
|
sizeof(asn_DEF_CleanerInitMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_CleanerInitMessage_tags_1, /* Same as above */
|
asn_DEF_CleanerInitMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_CleanerInitMessage_tags_1)
|
sizeof(asn_DEF_CleanerInitMessage_tags_1)
|
||||||
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_CleanerInitMessage_1,
|
asn_MBR_CleanerInitMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* CleanerInitMessage */
|
/* CleanerInitMessage */
|
||||||
typedef struct CleanerInitMessage {
|
typedef struct CleanerInitMessage {
|
||||||
long requestedVersion;
|
long requestedVersion;
|
||||||
UTF8String_t clientSecret;
|
UTF8String_t clientSecret;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} CleanerInitMessage_t;
|
} CleanerInitMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-14
@@ -8,7 +8,7 @@
|
|||||||
#include "DealFlopCardsMessage.h"
|
#include "DealFlopCardsMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard1),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard1),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Card,
|
&asn_DEF_Card,
|
||||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"flopCard1"
|
"flopCard1"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard2),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard2),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Card,
|
&asn_DEF_Card,
|
||||||
@@ -34,8 +34,8 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"flopCard2"
|
"flopCard2"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard3),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard3),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Card,
|
&asn_DEF_Card,
|
||||||
@@ -43,17 +43,17 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"flopCard3"
|
"flopCard3"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_DealFlopCardsMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_DealFlopCardsMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (28 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (28 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DealFlopCardsMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_DealFlopCardsMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 497 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 520 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* flopCard1 at 498 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* flopCard1 at 521 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* flopCard2 at 499 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* flopCard2 at 522 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 } /* flopCard3 at 501 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 } /* flopCard3 at 524 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DealFlopCardsMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_DealFlopCardsMessage_specs_1 = {
|
||||||
sizeof(struct DealFlopCardsMessage),
|
sizeof(struct DealFlopCardsMessage),
|
||||||
@@ -78,10 +78,10 @@ asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_DealFlopCardsMessage_tags_1,
|
asn_DEF_DealFlopCardsMessage_tags_1,
|
||||||
sizeof(asn_DEF_DealFlopCardsMessage_tags_1)
|
sizeof(asn_DEF_DealFlopCardsMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_DealFlopCardsMessage_tags_1, /* Same as above */
|
asn_DEF_DealFlopCardsMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_DealFlopCardsMessage_tags_1)
|
sizeof(asn_DEF_DealFlopCardsMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_DealFlopCardsMessage_1,
|
asn_MBR_DealFlopCardsMessage_1,
|
||||||
4, /* Elements count */
|
4, /* Elements count */
|
||||||
|
|||||||
+15
-15
@@ -20,23 +20,23 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* DealFlopCardsMessage */
|
/* DealFlopCardsMessage */
|
||||||
typedef struct DealFlopCardsMessage {
|
typedef struct DealFlopCardsMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
Card_t flopCard1;
|
Card_t flopCard1;
|
||||||
Card_t flopCard2;
|
Card_t flopCard2;
|
||||||
Card_t flopCard3;
|
Card_t flopCard3;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} DealFlopCardsMessage_t;
|
} DealFlopCardsMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-8
@@ -8,7 +8,7 @@
|
|||||||
#include "DealRiverCardMessage.h"
|
#include "DealRiverCardMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, riverCard),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, riverCard),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Card,
|
&asn_DEF_Card,
|
||||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"riverCard"
|
"riverCard"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_DealRiverCardMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_DealRiverCardMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (30 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (30 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DealRiverCardMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_DealRiverCardMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 509 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 532 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* riverCard at 511 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* riverCard at 534 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DealRiverCardMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_DealRiverCardMessage_specs_1 = {
|
||||||
sizeof(struct DealRiverCardMessage),
|
sizeof(struct DealRiverCardMessage),
|
||||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_DealRiverCardMessage_tags_1,
|
asn_DEF_DealRiverCardMessage_tags_1,
|
||||||
sizeof(asn_DEF_DealRiverCardMessage_tags_1)
|
sizeof(asn_DEF_DealRiverCardMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_DealRiverCardMessage_tags_1, /* Same as above */
|
asn_DEF_DealRiverCardMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_DealRiverCardMessage_tags_1)
|
sizeof(asn_DEF_DealRiverCardMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_DealRiverCardMessage_1,
|
asn_MBR_DealRiverCardMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* DealRiverCardMessage */
|
/* DealRiverCardMessage */
|
||||||
typedef struct DealRiverCardMessage {
|
typedef struct DealRiverCardMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
Card_t riverCard;
|
Card_t riverCard;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} DealRiverCardMessage_t;
|
} DealRiverCardMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-8
@@ -8,7 +8,7 @@
|
|||||||
#include "DealTurnCardMessage.h"
|
#include "DealTurnCardMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, turnCard),
|
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, turnCard),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_Card,
|
&asn_DEF_Card,
|
||||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"turnCard"
|
"turnCard"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_DealTurnCardMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_DealTurnCardMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (29 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (29 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DealTurnCardMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_DealTurnCardMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 504 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 527 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* turnCard at 506 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* turnCard at 529 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DealTurnCardMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_DealTurnCardMessage_specs_1 = {
|
||||||
sizeof(struct DealTurnCardMessage),
|
sizeof(struct DealTurnCardMessage),
|
||||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_DealTurnCardMessage_tags_1,
|
asn_DEF_DealTurnCardMessage_tags_1,
|
||||||
sizeof(asn_DEF_DealTurnCardMessage_tags_1)
|
sizeof(asn_DEF_DealTurnCardMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_DealTurnCardMessage_tags_1, /* Same as above */
|
asn_DEF_DealTurnCardMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_DealTurnCardMessage_tags_1)
|
sizeof(asn_DEF_DealTurnCardMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_DealTurnCardMessage_1,
|
asn_MBR_DealTurnCardMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -20,21 +20,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* DealTurnCardMessage */
|
/* DealTurnCardMessage */
|
||||||
typedef struct DealTurnCardMessage {
|
typedef struct DealTurnCardMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
Card_t turnCard;
|
Card_t turnCard;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} DealTurnCardMessage_t;
|
} DealTurnCardMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+12
-12
@@ -9,22 +9,22 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_notificationText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_notificationText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
size = UTF8String_length(st);
|
||||||
if((ssize_t)size < 0) {
|
if((ssize_t)size < 0) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
"%s: UTF-8: broken encoding (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ memb_notificationText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DialogMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_DialogMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DialogMessage, notificationText),
|
{ ATF_NOFLAGS, 0, offsetof(struct DialogMessage, notificationText),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_UTF8String,
|
&asn_DEF_UTF8String,
|
||||||
@@ -48,14 +48,14 @@ static asn_TYPE_member_t asn_MBR_DialogMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"notificationText"
|
"notificationText"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_DialogMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_DialogMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (132 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (132 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DialogMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_DialogMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* notificationText at 703 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* notificationText at 726 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DialogMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_DialogMessage_specs_1 = {
|
||||||
sizeof(struct DialogMessage),
|
sizeof(struct DialogMessage),
|
||||||
@@ -80,10 +80,10 @@ asn_TYPE_descriptor_t asn_DEF_DialogMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_DialogMessage_tags_1,
|
asn_DEF_DialogMessage_tags_1,
|
||||||
sizeof(asn_DEF_DialogMessage_tags_1)
|
sizeof(asn_DEF_DialogMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DialogMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_DialogMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_DialogMessage_tags_1, /* Same as above */
|
asn_DEF_DialogMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_DialogMessage_tags_1)
|
sizeof(asn_DEF_DialogMessage_tags_1)
|
||||||
/sizeof(asn_DEF_DialogMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_DialogMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_DialogMessage_1,
|
asn_MBR_DialogMessage_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
Vendored
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* DialogMessage */
|
/* DialogMessage */
|
||||||
typedef struct DialogMessage {
|
typedef struct DialogMessage {
|
||||||
UTF8String_t notificationText;
|
UTF8String_t notificationText;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} DialogMessage_t;
|
} DialogMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DialogMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_DialogMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-10
@@ -9,14 +9,14 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_cardData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_cardData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ memb_cardData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EncryptedCards_1[] = {
|
static asn_TYPE_member_t asn_MBR_EncryptedCards_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EncryptedCards, cardData),
|
{ ATF_NOFLAGS, 0, offsetof(struct EncryptedCards, cardData),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_OCTET_STRING,
|
&asn_DEF_OCTET_STRING,
|
||||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_EncryptedCards_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"cardData"
|
"cardData"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_EncryptedCards_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_EncryptedCards_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EncryptedCards_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_EncryptedCards_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* cardData at 447 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* cardData at 470 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EncryptedCards_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_EncryptedCards_specs_1 = {
|
||||||
sizeof(struct EncryptedCards),
|
sizeof(struct EncryptedCards),
|
||||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_EncryptedCards = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_EncryptedCards_tags_1,
|
asn_DEF_EncryptedCards_tags_1,
|
||||||
sizeof(asn_DEF_EncryptedCards_tags_1)
|
sizeof(asn_DEF_EncryptedCards_tags_1)
|
||||||
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
||||||
asn_DEF_EncryptedCards_tags_1, /* Same as above */
|
asn_DEF_EncryptedCards_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_EncryptedCards_tags_1)
|
sizeof(asn_DEF_EncryptedCards_tags_1)
|
||||||
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_EncryptedCards_1,
|
asn_MBR_EncryptedCards_1,
|
||||||
1, /* Elements count */
|
1, /* Elements count */
|
||||||
|
|||||||
+12
-12
@@ -19,20 +19,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* EncryptedCards */
|
/* EncryptedCards */
|
||||||
typedef struct EncryptedCards {
|
typedef struct EncryptedCards {
|
||||||
OCTET_STRING_t cardData;
|
OCTET_STRING_t cardData;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} EncryptedCards_t;
|
} EncryptedCards_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EncryptedCards;
|
extern asn_TYPE_descriptor_t asn_DEF_EncryptedCards;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+42
-42
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
petitionEndReason_7_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
petitionEndReason_7_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
/* Replace with underlying type checker */
|
/* Replace with underlying type checker */
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||||
@@ -33,62 +33,62 @@ petitionEndReason_7_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
td->elements = asn_DEF_NativeEnumerated.elements;
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
petitionEndReason_7_free(asn_TYPE_descriptor_t *td,
|
petitionEndReason_7_free(asn_TYPE_descriptor_t *td,
|
||||||
void *struct_ptr, int contents_only) {
|
void *struct_ptr, int contents_only) {
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
td->free_struct(td, struct_ptr, contents_only);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
petitionEndReason_7_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
petitionEndReason_7_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
petitionEndReason_7_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
petitionEndReason_7_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
petitionEndReason_7_encode_der(asn_TYPE_descriptor_t *td,
|
petitionEndReason_7_encode_der(asn_TYPE_descriptor_t *td,
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_dec_rval_t
|
static asn_dec_rval_t
|
||||||
petitionEndReason_7_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
petitionEndReason_7_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_enc_rval_t
|
static asn_enc_rval_t
|
||||||
petitionEndReason_7_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
petitionEndReason_7_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
int ilevel, enum xer_encoder_flags_e flags,
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_numVotesAgainstKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_numVotesAgainstKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,21 +99,21 @@ memb_numVotesAgainstKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_numVotesInFavourOfKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_numVotesInFavourOfKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,8 +124,8 @@ memb_numVotesInFavourOfKicking_constraint_1(asn_TYPE_descriptor_t *td, const voi
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -169,17 +169,17 @@ asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7 = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_petitionEndReason_tags_7,
|
asn_DEF_petitionEndReason_tags_7,
|
||||||
sizeof(asn_DEF_petitionEndReason_tags_7)
|
sizeof(asn_DEF_petitionEndReason_tags_7)
|
||||||
/sizeof(asn_DEF_petitionEndReason_tags_7[0]), /* 1 */
|
/sizeof(asn_DEF_petitionEndReason_tags_7[0]), /* 1 */
|
||||||
asn_DEF_petitionEndReason_tags_7, /* Same as above */
|
asn_DEF_petitionEndReason_tags_7, /* Same as above */
|
||||||
sizeof(asn_DEF_petitionEndReason_tags_7)
|
sizeof(asn_DEF_petitionEndReason_tags_7)
|
||||||
/sizeof(asn_DEF_petitionEndReason_tags_7[0]), /* 1 */
|
/sizeof(asn_DEF_petitionEndReason_tags_7[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
0, 0, /* Defined elsewhere */
|
0, 0, /* Defined elsewhere */
|
||||||
&asn_SPC_petitionEndReason_specs_7 /* Additional specs */
|
&asn_SPC_petitionEndReason_specs_7 /* Additional specs */
|
||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -187,8 +187,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionId),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -196,8 +196,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"petitionId"
|
"petitionId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesAgainstKicking),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesAgainstKicking),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -205,8 +205,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"numVotesAgainstKicking"
|
"numVotesAgainstKicking"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesInFavourOfKicking),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesInFavourOfKicking),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -214,8 +214,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"numVotesInFavourOfKicking"
|
"numVotesInFavourOfKicking"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, resultPlayerKicked),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, resultPlayerKicked),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_BOOLEAN,
|
&asn_DEF_BOOLEAN,
|
||||||
@@ -223,8 +223,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"resultPlayerKicked"
|
"resultPlayerKicked"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionEndReason),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionEndReason),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_petitionEndReason_7,
|
&asn_DEF_petitionEndReason_7,
|
||||||
@@ -232,19 +232,19 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"petitionEndReason"
|
"petitionEndReason"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_EndKickPetitionMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_EndKickPetitionMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (70 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (70 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndKickPetitionMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_EndKickPetitionMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 4, 0, 0 }, /* resultPlayerKicked at 628 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 4, 0, 0 }, /* resultPlayerKicked at 651 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 624 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 647 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* petitionId at 625 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* petitionId at 648 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* numVotesAgainstKicking at 626 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* numVotesAgainstKicking at 649 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 }, /* numVotesInFavourOfKicking at 627 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 }, /* numVotesInFavourOfKicking at 650 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, 0, 0 } /* petitionEndReason at 630 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, 0, 0 } /* petitionEndReason at 653 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndKickPetitionMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_EndKickPetitionMessage_specs_1 = {
|
||||||
sizeof(struct EndKickPetitionMessage),
|
sizeof(struct EndKickPetitionMessage),
|
||||||
@@ -269,10 +269,10 @@ asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_EndKickPetitionMessage_tags_1,
|
asn_DEF_EndKickPetitionMessage_tags_1,
|
||||||
sizeof(asn_DEF_EndKickPetitionMessage_tags_1)
|
sizeof(asn_DEF_EndKickPetitionMessage_tags_1)
|
||||||
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_EndKickPetitionMessage_tags_1, /* Same as above */
|
asn_DEF_EndKickPetitionMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_EndKickPetitionMessage_tags_1)
|
sizeof(asn_DEF_EndKickPetitionMessage_tags_1)
|
||||||
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_EndKickPetitionMessage_1,
|
asn_MBR_EndKickPetitionMessage_1,
|
||||||
6, /* Elements count */
|
6, /* Elements count */
|
||||||
|
|||||||
+26
-25
@@ -22,34 +22,35 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum petitionEndReason {
|
typedef enum petitionEndReason {
|
||||||
petitionEndReason_petitionEndEnoughVotes = 0,
|
petitionEndReason_petitionEndEnoughVotes = 0,
|
||||||
petitionEndReason_petitionEndTooFewPlayers = 1,
|
petitionEndReason_petitionEndTooFewPlayers = 1,
|
||||||
petitionEndReason_petitionEndPlayerLeft = 2,
|
petitionEndReason_petitionEndPlayerLeft = 2,
|
||||||
petitionEndReason_petitionEndTimeout = 3
|
petitionEndReason_petitionEndTimeout = 3
|
||||||
} e_petitionEndReason;
|
}
|
||||||
|
e_petitionEndReason;
|
||||||
|
|
||||||
/* EndKickPetitionMessage */
|
/* EndKickPetitionMessage */
|
||||||
typedef struct EndKickPetitionMessage {
|
typedef struct EndKickPetitionMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
NonZeroId_t petitionId;
|
NonZeroId_t petitionId;
|
||||||
long numVotesAgainstKicking;
|
long numVotesAgainstKicking;
|
||||||
long numVotesInFavourOfKicking;
|
long numVotesInFavourOfKicking;
|
||||||
BOOLEAN_t resultPlayerKicked;
|
BOOLEAN_t resultPlayerKicked;
|
||||||
long petitionEndReason;
|
long petitionEndReason;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} EndKickPetitionMessage_t;
|
} EndKickPetitionMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7; // (Use -fall-defs-global to expose) */
|
/* extern asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7; // (Use -fall-defs-global to expose) */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-8
@@ -8,7 +8,7 @@
|
|||||||
#include "EndOfGameMessage.h"
|
#include "EndOfGameMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, winnerPlayerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, winnerPlayerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"winnerPlayerId"
|
"winnerPlayerId"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfGameMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_EndOfGameMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (35 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (35 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfGameMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_EndOfGameMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 560 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 583 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* winnerPlayerId at 562 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* winnerPlayerId at 585 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfGameMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_EndOfGameMessage_specs_1 = {
|
||||||
sizeof(struct EndOfGameMessage),
|
sizeof(struct EndOfGameMessage),
|
||||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_EndOfGameMessage_tags_1,
|
asn_DEF_EndOfGameMessage_tags_1,
|
||||||
sizeof(asn_DEF_EndOfGameMessage_tags_1)
|
sizeof(asn_DEF_EndOfGameMessage_tags_1)
|
||||||
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_EndOfGameMessage_tags_1, /* Same as above */
|
asn_DEF_EndOfGameMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_EndOfGameMessage_tags_1)
|
sizeof(asn_DEF_EndOfGameMessage_tags_1)
|
||||||
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_EndOfGameMessage_1,
|
asn_MBR_EndOfGameMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+13
-13
@@ -19,21 +19,21 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* EndOfGameMessage */
|
/* EndOfGameMessage */
|
||||||
typedef struct EndOfGameMessage {
|
typedef struct EndOfGameMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
NonZeroId_t winnerPlayerId;
|
NonZeroId_t winnerPlayerId;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} EndOfGameMessage_t;
|
} EndOfGameMessage_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage;
|
extern asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+21
-21
@@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
memb_moneyWon_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_moneyWon_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,21 +26,21 @@ memb_moneyWon_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
memb_playerMoney_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
memb_playerMoney_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
if(!sptr) {
|
if(!sptr) {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: value not given (%s:%d)",
|
"%s: value not given (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,14 +51,14 @@ memb_playerMoney_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
_ASN_CTFAIL(app_key, td, sptr,
|
||||||
"%s: constraint failed (%s:%d)",
|
"%s: constraint failed (%s:%d)",
|
||||||
td->name, __FILE__, __LINE__);
|
td->name, __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerId),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -66,8 +66,8 @@ static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerId"
|
"playerId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, moneyWon),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, moneyWon),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -75,8 +75,8 @@ static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"moneyWon"
|
"moneyWon"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerMoney),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerMoney),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NativeInteger,
|
&asn_DEF_NativeInteger,
|
||||||
@@ -84,15 +84,15 @@ static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"playerMoney"
|
"playerMoney"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfHandHideCards_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_EndOfHandHideCards_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfHandHideCards_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_EndOfHandHideCards_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* playerId at 547 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* playerId at 570 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* moneyWon at 548 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* moneyWon at 571 */
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* playerMoney at 549 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* playerMoney at 572 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandHideCards_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandHideCards_specs_1 = {
|
||||||
sizeof(struct EndOfHandHideCards),
|
sizeof(struct EndOfHandHideCards),
|
||||||
@@ -117,10 +117,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_EndOfHandHideCards_tags_1,
|
asn_DEF_EndOfHandHideCards_tags_1,
|
||||||
sizeof(asn_DEF_EndOfHandHideCards_tags_1)
|
sizeof(asn_DEF_EndOfHandHideCards_tags_1)
|
||||||
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
||||||
asn_DEF_EndOfHandHideCards_tags_1, /* Same as above */
|
asn_DEF_EndOfHandHideCards_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_EndOfHandHideCards_tags_1)
|
sizeof(asn_DEF_EndOfHandHideCards_tags_1)
|
||||||
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_EndOfHandHideCards_1,
|
asn_MBR_EndOfHandHideCards_1,
|
||||||
3, /* Elements count */
|
3, /* Elements count */
|
||||||
|
|||||||
+14
-14
@@ -20,22 +20,22 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* EndOfHandHideCards */
|
/* EndOfHandHideCards */
|
||||||
typedef struct EndOfHandHideCards {
|
typedef struct EndOfHandHideCards {
|
||||||
NonZeroId_t playerId;
|
NonZeroId_t playerId;
|
||||||
long moneyWon;
|
long moneyWon;
|
||||||
long playerMoney;
|
long playerMoney;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} EndOfHandHideCards_t;
|
} EndOfHandHideCards_t;
|
||||||
|
|
||||||
/* Implementation */
|
/* Implementation */
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards;
|
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-15
@@ -8,7 +8,7 @@
|
|||||||
#include "EndOfHandMessage.h"
|
#include "EndOfHandMessage.h"
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandShowCards),
|
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandShowCards),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_EndOfHandShowCards,
|
&asn_DEF_EndOfHandShowCards,
|
||||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"endOfHandShowCards"
|
"endOfHandShowCards"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandHideCards),
|
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandHideCards),
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||||
-1, /* IMPLICIT tag at current level */
|
-1, /* IMPLICIT tag at current level */
|
||||||
&asn_DEF_EndOfHandHideCards,
|
&asn_DEF_EndOfHandHideCards,
|
||||||
@@ -25,11 +25,11 @@ static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"endOfHandHideCards"
|
"endOfHandHideCards"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_endOfHandType_tag2el_3[] = {
|
static asn_TYPE_tag2member_t asn_MAP_endOfHandType_tag2el_3[] = {
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* endOfHandShowCards at 527 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* endOfHandShowCards at 550 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 529 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 552 */
|
||||||
};
|
};
|
||||||
static asn_CHOICE_specifics_t asn_SPC_endOfHandType_specs_3 = {
|
static asn_CHOICE_specifics_t asn_SPC_endOfHandType_specs_3 = {
|
||||||
sizeof(struct endOfHandType),
|
sizeof(struct endOfHandType),
|
||||||
@@ -65,7 +65,7 @@ asn_TYPE_descriptor_t asn_DEF_endOfHandType_3 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, gameId),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, gameId),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||||
0,
|
0,
|
||||||
&asn_DEF_NonZeroId,
|
&asn_DEF_NonZeroId,
|
||||||
@@ -73,8 +73,8 @@ static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"gameId"
|
"gameId"
|
||||||
},
|
},
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, endOfHandType),
|
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, endOfHandType),
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
-1 /* Ambiguous tag (CHOICE?) */,
|
||||||
0,
|
0,
|
||||||
&asn_DEF_endOfHandType_3,
|
&asn_DEF_endOfHandType_3,
|
||||||
@@ -82,16 +82,16 @@ static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
|||||||
0, /* PER is not compiled, use -gen-PER */
|
0, /* PER is not compiled, use -gen-PER */
|
||||||
0,
|
0,
|
||||||
"endOfHandType"
|
"endOfHandType"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfHandMessage_tags_1[] = {
|
static ber_tlv_tag_t asn_DEF_EndOfHandMessage_tags_1[] = {
|
||||||
(ASN_TAG_CLASS_APPLICATION | (32 << 2)),
|
(ASN_TAG_CLASS_APPLICATION | (32 << 2)),
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||||
};
|
};
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfHandMessage_tag2el_1[] = {
|
static asn_TYPE_tag2member_t asn_MAP_EndOfHandMessage_tag2el_1[] = {
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 525 */
|
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 548 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* endOfHandShowCards at 527 */
|
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* endOfHandShowCards at 550 */
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 529 */
|
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 552 */
|
||||||
};
|
};
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandMessage_specs_1 = {
|
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandMessage_specs_1 = {
|
||||||
sizeof(struct EndOfHandMessage),
|
sizeof(struct EndOfHandMessage),
|
||||||
@@ -116,10 +116,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage = {
|
|||||||
0, /* Use generic outmost tag fetcher */
|
0, /* Use generic outmost tag fetcher */
|
||||||
asn_DEF_EndOfHandMessage_tags_1,
|
asn_DEF_EndOfHandMessage_tags_1,
|
||||||
sizeof(asn_DEF_EndOfHandMessage_tags_1)
|
sizeof(asn_DEF_EndOfHandMessage_tags_1)
|
||||||
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]) - 1, /* 1 */
|
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]) - 1, /* 1 */
|
||||||
asn_DEF_EndOfHandMessage_tags_1, /* Same as above */
|
asn_DEF_EndOfHandMessage_tags_1, /* Same as above */
|
||||||
sizeof(asn_DEF_EndOfHandMessage_tags_1)
|
sizeof(asn_DEF_EndOfHandMessage_tags_1)
|
||||||
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]), /* 2 */
|
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]), /* 2 */
|
||||||
0, /* No PER visible constraints */
|
0, /* No PER visible constraints */
|
||||||
asn_MBR_EndOfHandMessage_1,
|
asn_MBR_EndOfHandMessage_1,
|
||||||
2, /* Elements count */
|
2, /* Elements count */
|
||||||
|
|||||||
+32
-31
@@ -22,43 +22,44 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
typedef enum endOfHandType_PR {
|
typedef enum endOfHandType_PR {
|
||||||
endOfHandType_PR_NOTHING, /* No components present */
|
endOfHandType_PR_NOTHING, /* No components present */
|
||||||
endOfHandType_PR_endOfHandShowCards,
|
endOfHandType_PR_endOfHandShowCards,
|
||||||
endOfHandType_PR_endOfHandHideCards,
|
endOfHandType_PR_endOfHandHideCards,
|
||||||
/* Extensions may appear below */
|
/* Extensions may appear below */
|
||||||
|
|
||||||
} endOfHandType_PR;
|
}
|
||||||
|
endOfHandType_PR;
|
||||||
|
|
||||||
/* EndOfHandMessage */
|
/* EndOfHandMessage */
|
||||||
typedef struct EndOfHandMessage {
|
typedef struct EndOfHandMessage {
|
||||||
NonZeroId_t gameId;
|
NonZeroId_t gameId;
|
||||||
struct endOfHandType {
|
struct endOfHandType {
|
||||||
endOfHandType_PR present;
|
endOfHandType_PR present;
|
||||||
union EndOfHandMessage__endOfHandType_u {
|
union EndOfHandMessage__endOfHandType_u {
|
||||||
EndOfHandShowCards_t endOfHandShowCards;
|
EndOfHandShowCards_t endOfHandShowCards;
|
||||||
EndOfHandHideCards_t endOfHandHideCards;
|
EndOfHandHideCards_t endOfHandHideCards;
|
||||||
/*
|
/*
|
||||||
* This type is extensible,
|
* This type is extensible,
|
||||||
* possible extensions are below.
|
* possible extensions are below.
|
||||||
*/
|
*/
|
||||||
} choice;
|
} choice;
|
||||||
|
|
||||||
|
/* Context for parsing across buffer boundaries */
|
||||||
|
asn_struct_ctx_t _asn_ctx;
|
||||||
|
} endOfHandType;
|
||||||
|
/*
|
||||||
|
* This type is extensible,
|
||||||
|
* possible extensions are below.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Context for parsing across buffer boundaries */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
asn_struct_ctx_t _asn_ctx;
|
||||||
} endOfHandType;
|
} EndOfHandMessage_t;
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
/* Implementation */
|
||||||
asn_struct_ctx_t _asn_ctx;
|
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage;
|
||||||
} EndOfHandMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user