Removing old ASN.1 stuff.
This commit is contained in:
@@ -4,7 +4,7 @@ Requirements
|
|||||||
To compile PokerTH you need following libs:
|
To compile PokerTH you need following libs:
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
- Qt version >= 4.4.3, 4.8.0 recommended --> http://qtsoftware.com/
|
- Qt version >= 4.4.3, 4.8.x recommended --> http://qtsoftware.com/
|
||||||
- zlib version >= 1.2.3 --> http://www.zlib.net/
|
- zlib version >= 1.2.3 --> http://www.zlib.net/
|
||||||
- libcurl version >= 7.16 --> http://curl.haxx.se/
|
- libcurl version >= 7.16 --> http://curl.haxx.se/
|
||||||
- libgcrypt (e.g. version 1.4.6) --> http://www.gnu.org/software/libgcrypt/
|
- libgcrypt (e.g. version 1.4.6) --> http://www.gnu.org/software/libgcrypt/
|
||||||
@@ -15,6 +15,7 @@ Linux:
|
|||||||
- libSDL_mixer, libSDL --> http://www.libsdl.org/
|
- libSDL_mixer, libSDL --> http://www.libsdl.org/
|
||||||
- libSQLite3 --> http://sqlite.org/
|
- libSQLite3 --> http://sqlite.org/
|
||||||
- libtinyxml > 2.0 --> http://www.sourceforge.net/projects/tinyxml
|
- libtinyxml > 2.0 --> http://www.sourceforge.net/projects/tinyxml
|
||||||
|
- protoc >= 2.3.0 (during build), libprotobuf >= 2.3.0 -> http://code.google.com/p/protobuf/downloads/list
|
||||||
- For the server: libircclient 1.3 --> http://www.sourceforge.net/projects/libircclient/
|
- For the server: libircclient 1.3 --> http://www.sourceforge.net/projects/libircclient/
|
||||||
|
|
||||||
Windows:
|
Windows:
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
/* This file is now deprecated! google protocol buffers are used instead.
|
||||||
|
* Please refer to pokerth.proto. */
|
||||||
|
|
||||||
POKERTH-PROTOCOL DEFINITIONS
|
POKERTH-PROTOCOL DEFINITIONS
|
||||||
IMPLICIT TAGS
|
IMPLICIT TAGS
|
||||||
EXTENSIBILITY IMPLIED ::=
|
EXTENSIBILITY IMPLIED ::=
|
||||||
|
|||||||
+11
-254
@@ -25,324 +25,81 @@ DEPENDPATH += . \
|
|||||||
src/third_party/asn1
|
src/third_party/asn1
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
HEADERS += src/third_party/asn1/AllInShowCardsMessage.h \
|
HEADERS += src/third_party/asn1/asn_application.h \
|
||||||
src/third_party/asn1/ChatCleanerMessage.h \
|
|
||||||
src/third_party/asn1/CleanerInitMessage.h \
|
|
||||||
src/third_party/asn1/CleanerInitAckMessage.h \
|
|
||||||
src/third_party/asn1/CleanerChatRequestMessage.h \
|
|
||||||
src/third_party/asn1/CleanerChatReplyMessage.h \
|
|
||||||
src/third_party/asn1/GuestLogin.h \
|
|
||||||
src/third_party/asn1/AmountOfMoney.h \
|
|
||||||
src/third_party/asn1/InitialAmountOfMoney.h \
|
|
||||||
src/third_party/asn1/InitialNonZeroAmountOfMoney.h \
|
|
||||||
src/third_party/asn1/AskKickDeniedMessage.h \
|
|
||||||
src/third_party/asn1/AskKickPlayerMessage.h \
|
|
||||||
src/third_party/asn1/AuthMessage.h \
|
|
||||||
src/third_party/asn1/AuthClientResponse.h \
|
|
||||||
src/third_party/asn1/AuthServerChallenge.h \
|
|
||||||
src/third_party/asn1/AuthServerVerification.h \
|
|
||||||
src/third_party/asn1/asn_application.h \
|
|
||||||
src/third_party/asn1/asn_codecs.h \
|
src/third_party/asn1/asn_codecs.h \
|
||||||
src/third_party/asn1/asn_codecs_prim.h \
|
src/third_party/asn1/asn_codecs_prim.h \
|
||||||
src/third_party/asn1/asn_internal.h \
|
src/third_party/asn1/asn_internal.h \
|
||||||
src/third_party/asn1/asn_SEQUENCE_OF.h \
|
src/third_party/asn1/asn_SEQUENCE_OF.h \
|
||||||
src/third_party/asn1/asn_SET_OF.h \
|
src/third_party/asn1/asn_SET_OF.h \
|
||||||
src/third_party/asn1/asn_system.h \
|
src/third_party/asn1/asn_system.h \
|
||||||
src/third_party/asn1/AuthenticatedLogin.h \
|
|
||||||
src/third_party/asn1/AvatarData.h \
|
|
||||||
src/third_party/asn1/AvatarEnd.h \
|
|
||||||
src/third_party/asn1/AvatarHash.h \
|
|
||||||
src/third_party/asn1/AvatarHeader.h \
|
|
||||||
src/third_party/asn1/AvatarReplyMessage.h \
|
|
||||||
src/third_party/asn1/AvatarRequestMessage.h \
|
|
||||||
src/third_party/asn1/ber_decoder.h \
|
src/third_party/asn1/ber_decoder.h \
|
||||||
src/third_party/asn1/ber_tlv_length.h \
|
src/third_party/asn1/ber_tlv_length.h \
|
||||||
src/third_party/asn1/ber_tlv_tag.h \
|
src/third_party/asn1/ber_tlv_tag.h \
|
||||||
src/third_party/asn1/BIT_STRING.h \
|
src/third_party/asn1/BIT_STRING.h \
|
||||||
src/third_party/asn1/BOOLEAN.h \
|
src/third_party/asn1/BOOLEAN.h \
|
||||||
src/third_party/asn1/Card.h \
|
|
||||||
src/third_party/asn1/ChatMessage.h \
|
|
||||||
src/third_party/asn1/ChatTypeGame.h \
|
|
||||||
src/third_party/asn1/ChatTypeLobby.h \
|
|
||||||
src/third_party/asn1/ChatTypeBot.h \
|
|
||||||
src/third_party/asn1/ChatTypeBroadcast.h \
|
|
||||||
src/third_party/asn1/ChatRequestMessage.h \
|
|
||||||
src/third_party/asn1/ChatRequestTypeLobby.h \
|
|
||||||
src/third_party/asn1/ChatRequestTypeGame.h \
|
|
||||||
src/third_party/asn1/constraints.h \
|
src/third_party/asn1/constraints.h \
|
||||||
src/third_party/asn1/constr_CHOICE.h \
|
src/third_party/asn1/constr_CHOICE.h \
|
||||||
src/third_party/asn1/constr_SEQUENCE.h \
|
src/third_party/asn1/constr_SEQUENCE.h \
|
||||||
src/third_party/asn1/constr_SEQUENCE_OF.h \
|
src/third_party/asn1/constr_SEQUENCE_OF.h \
|
||||||
src/third_party/asn1/constr_SET_OF.h \
|
src/third_party/asn1/constr_SET_OF.h \
|
||||||
src/third_party/asn1/constr_TYPE.h \
|
src/third_party/asn1/constr_TYPE.h \
|
||||||
src/third_party/asn1/DealFlopCardsMessage.h \
|
|
||||||
src/third_party/asn1/DealRiverCardMessage.h \
|
|
||||||
src/third_party/asn1/DealTurnCardMessage.h \
|
|
||||||
src/third_party/asn1/der_encoder.h \
|
src/third_party/asn1/der_encoder.h \
|
||||||
src/third_party/asn1/DialogMessage.h \
|
|
||||||
src/third_party/asn1/EndKickPetitionMessage.h \
|
|
||||||
src/third_party/asn1/EndOfGameMessage.h \
|
|
||||||
src/third_party/asn1/EndOfHandHideCards.h \
|
|
||||||
src/third_party/asn1/EndOfHandMessage.h \
|
|
||||||
src/third_party/asn1/EndOfHandShowCards.h \
|
|
||||||
src/third_party/asn1/ErrorMessage.h \
|
|
||||||
src/third_party/asn1/GameAdminChanged.h \
|
|
||||||
src/third_party/asn1/GameListAdminChanged.h \
|
|
||||||
src/third_party/asn1/GameListMessage.h \
|
|
||||||
src/third_party/asn1/GameListNew.h \
|
|
||||||
src/third_party/asn1/GameListPlayerJoined.h \
|
|
||||||
src/third_party/asn1/GameListPlayerLeft.h \
|
|
||||||
src/third_party/asn1/GameListUpdate.h \
|
|
||||||
src/third_party/asn1/GamePlayerJoined.h \
|
|
||||||
src/third_party/asn1/GamePlayerLeft.h \
|
|
||||||
src/third_party/asn1/GamePlayerMessage.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/HandStartMessage.h \
|
|
||||||
src/third_party/asn1/Id.h \
|
|
||||||
src/third_party/asn1/InitAckMessage.h \
|
|
||||||
src/third_party/asn1/InitMessage.h \
|
|
||||||
src/third_party/asn1/INTEGER.h \
|
src/third_party/asn1/INTEGER.h \
|
||||||
src/third_party/asn1/InviteNotifyMessage.h \
|
|
||||||
src/third_party/asn1/InvitePlayerToGameMessage.h \
|
|
||||||
src/third_party/asn1/JoinExistingGame.h \
|
|
||||||
src/third_party/asn1/JoinGameAck.h \
|
|
||||||
src/third_party/asn1/JoinGameFailed.h \
|
|
||||||
src/third_party/asn1/JoinGameReplyMessage.h \
|
|
||||||
src/third_party/asn1/JoinGameRequestMessage.h \
|
|
||||||
src/third_party/asn1/JoinNewGame.h \
|
|
||||||
src/third_party/asn1/KickPetitionUpdateMessage.h \
|
|
||||||
src/third_party/asn1/KickPlayerRequestMessage.h \
|
|
||||||
src/third_party/asn1/LeaveGameRequestMessage.h \
|
|
||||||
src/third_party/asn1/MyActionRequestMessage.h \
|
|
||||||
src/third_party/asn1/NativeEnumerated.h \
|
src/third_party/asn1/NativeEnumerated.h \
|
||||||
src/third_party/asn1/NativeInteger.h \
|
src/third_party/asn1/NativeInteger.h \
|
||||||
src/third_party/asn1/NetAvatarType.h \
|
|
||||||
src/third_party/asn1/NetGameInfo.h \
|
|
||||||
src/third_party/asn1/NetGameMode.h \
|
|
||||||
src/third_party/asn1/NetGameState.h \
|
|
||||||
src/third_party/asn1/NetPlayerAction.h \
|
|
||||||
src/third_party/asn1/NetPlayerState.h \
|
|
||||||
src/third_party/asn1/NonZeroId.h \
|
|
||||||
src/third_party/asn1/OCTET_STRING.h \
|
src/third_party/asn1/OCTET_STRING.h \
|
||||||
src/third_party/asn1/per_decoder.h \
|
src/third_party/asn1/per_decoder.h \
|
||||||
src/third_party/asn1/per_encoder.h \
|
src/third_party/asn1/per_encoder.h \
|
||||||
src/third_party/asn1/per_opentype.h \
|
src/third_party/asn1/per_opentype.h \
|
||||||
src/third_party/asn1/per_support.h \
|
src/third_party/asn1/per_support.h \
|
||||||
src/third_party/asn1/PlayerAllIn.h \
|
|
||||||
src/third_party/asn1/PlayerIdChangedMessage.h \
|
|
||||||
src/third_party/asn1/PlayerInfoData.h \
|
|
||||||
src/third_party/asn1/PlayerInfoRights.h \
|
|
||||||
src/third_party/asn1/PlayerInfoReplyMessage.h \
|
|
||||||
src/third_party/asn1/PlayerInfoRequestMessage.h \
|
|
||||||
src/third_party/asn1/PlayerListMessage.h \
|
|
||||||
src/third_party/asn1/PlayerResult.h \
|
|
||||||
src/third_party/asn1/PlayersActionDoneMessage.h \
|
|
||||||
src/third_party/asn1/PlayersTurnMessage.h \
|
|
||||||
src/third_party/asn1/PokerTHMessage.h \
|
|
||||||
src/third_party/asn1/RejectGameInvitationMessage.h \
|
|
||||||
src/third_party/asn1/RejectGameInvReason.h \
|
|
||||||
src/third_party/asn1/RejectInvNotifyMessage.h \
|
|
||||||
src/third_party/asn1/RejoinEvent.h \
|
|
||||||
src/third_party/asn1/RejoinExistingGame.h \
|
|
||||||
src/third_party/asn1/RejoinPlayerData.h \
|
|
||||||
src/third_party/asn1/RemovedFromGame.h \
|
|
||||||
src/third_party/asn1/ResetTimeoutMessage.h \
|
|
||||||
src/third_party/asn1/StartEvent.h \
|
|
||||||
src/third_party/asn1/StartEventAckMessage.h \
|
|
||||||
src/third_party/asn1/StartEventMessage.h \
|
|
||||||
src/third_party/asn1/StartKickPetitionMessage.h \
|
|
||||||
src/third_party/asn1/StatisticsData.h \
|
|
||||||
src/third_party/asn1/StatisticsMessage.h \
|
|
||||||
src/third_party/asn1/SubscriptionRequestMessage.h \
|
|
||||||
src/third_party/asn1/TimeoutWarningMessage.h \
|
|
||||||
src/third_party/asn1/UnknownAvatar.h \
|
|
||||||
src/third_party/asn1/UnknownPlayerInfo.h \
|
|
||||||
src/third_party/asn1/UTF8String.h \
|
src/third_party/asn1/UTF8String.h \
|
||||||
src/third_party/asn1/Version.h \
|
|
||||||
src/third_party/asn1/VoteKickAck.h \
|
|
||||||
src/third_party/asn1/VoteKickDenied.h \
|
|
||||||
src/third_party/asn1/VoteKickReplyMessage.h \
|
|
||||||
src/third_party/asn1/VoteKickRequestMessage.h \
|
|
||||||
src/third_party/asn1/xer_decoder.h \
|
src/third_party/asn1/xer_decoder.h \
|
||||||
src/third_party/asn1/xer_encoder.h \
|
src/third_party/asn1/xer_encoder.h \
|
||||||
src/third_party/asn1/xer_support.h \
|
src/third_party/asn1/xer_support.h \
|
||||||
src/third_party/asn1/YourActionRejectedMessage.h \
|
src/third_party/asn1/ChatCleanerMessage.h \
|
||||||
src/third_party/asn1/AnnounceMessage.h \
|
|
||||||
src/third_party/asn1/UnauthenticatedLogin.h \
|
|
||||||
src/third_party/asn1/AfterHandShowCardsMessage.h \
|
|
||||||
src/third_party/asn1/ShowMyCardsRequestMessage.h \
|
|
||||||
src/third_party/asn1/PlainCards.h \
|
|
||||||
src/third_party/asn1/EncryptedCards.h \
|
|
||||||
src/third_party/asn1/ChatRequestTypePrivate.h \
|
|
||||||
src/third_party/asn1/ReportAvatarMessage.h \
|
|
||||||
src/third_party/asn1/ReportAvatarAckMessage.h \
|
|
||||||
src/third_party/asn1/ReportGameMessage.h \
|
|
||||||
src/third_party/asn1/ReportGameAckMessage.h \
|
|
||||||
src/third_party/asn1/CleanerChatTypeLobby.h \
|
src/third_party/asn1/CleanerChatTypeLobby.h \
|
||||||
src/third_party/asn1/CleanerChatTypeGame.h \
|
src/third_party/asn1/CleanerChatTypeGame.h \
|
||||||
src/third_party/asn1/CleanerChatType.h \
|
src/third_party/asn1/CleanerChatType.h \
|
||||||
src/third_party/asn1/ChatTypePrivate.h \
|
src/third_party/asn1/CleanerInitMessage.h \
|
||||||
src/third_party/asn1/ChatRejectMessage.h
|
src/third_party/asn1/CleanerInitAckMessage.h \
|
||||||
|
src/third_party/asn1/CleanerChatRequestMessage.h \
|
||||||
|
src/third_party/asn1/CleanerChatReplyMessage.h
|
||||||
|
HEADERS += src/third_party/protobuf/pokerth.pb.h
|
||||||
SOURCES += src/third_party/asn1/ChatCleanerMessage.c \
|
SOURCES += src/third_party/asn1/ChatCleanerMessage.c \
|
||||||
|
src/third_party/asn1/CleanerChatTypeLobby.c \
|
||||||
|
src/third_party/asn1/CleanerChatTypeGame.c \
|
||||||
|
src/third_party/asn1/CleanerChatType.c \
|
||||||
src/third_party/asn1/CleanerInitMessage.c \
|
src/third_party/asn1/CleanerInitMessage.c \
|
||||||
src/third_party/asn1/CleanerInitAckMessage.c \
|
src/third_party/asn1/CleanerInitAckMessage.c \
|
||||||
src/third_party/asn1/CleanerChatRequestMessage.c \
|
src/third_party/asn1/CleanerChatRequestMessage.c \
|
||||||
src/third_party/asn1/CleanerChatReplyMessage.c \
|
src/third_party/asn1/CleanerChatReplyMessage.c \
|
||||||
src/third_party/asn1/AmountOfMoney.c \
|
|
||||||
src/third_party/asn1/InitialAmountOfMoney.c \
|
|
||||||
src/third_party/asn1/InitialNonZeroAmountOfMoney.c \
|
|
||||||
src/third_party/asn1/AuthMessage.c \
|
|
||||||
src/third_party/asn1/AuthClientResponse.c \
|
|
||||||
src/third_party/asn1/AuthServerChallenge.c \
|
|
||||||
src/third_party/asn1/AuthServerVerification.c \
|
|
||||||
src/third_party/asn1/AllInShowCardsMessage.c \
|
|
||||||
src/third_party/asn1/YourActionRejectedMessage.c \
|
|
||||||
src/third_party/asn1/xer_support.c \
|
src/third_party/asn1/xer_support.c \
|
||||||
src/third_party/asn1/xer_encoder.c \
|
src/third_party/asn1/xer_encoder.c \
|
||||||
src/third_party/asn1/xer_decoder.c \
|
src/third_party/asn1/xer_decoder.c \
|
||||||
src/third_party/asn1/VoteKickRequestMessage.c \
|
|
||||||
src/third_party/asn1/VoteKickReplyMessage.c \
|
|
||||||
src/third_party/asn1/VoteKickDenied.c \
|
|
||||||
src/third_party/asn1/VoteKickAck.c \
|
|
||||||
src/third_party/asn1/Version.c \
|
|
||||||
src/third_party/asn1/UTF8String.c \
|
src/third_party/asn1/UTF8String.c \
|
||||||
src/third_party/asn1/UnknownPlayerInfo.c \
|
|
||||||
src/third_party/asn1/UnknownAvatar.c \
|
|
||||||
src/third_party/asn1/TimeoutWarningMessage.c \
|
|
||||||
src/third_party/asn1/SubscriptionRequestMessage.c \
|
|
||||||
src/third_party/asn1/StatisticsMessage.c \
|
|
||||||
src/third_party/asn1/StatisticsData.c \
|
|
||||||
src/third_party/asn1/StartKickPetitionMessage.c \
|
|
||||||
src/third_party/asn1/StartEvent.c \
|
|
||||||
src/third_party/asn1/StartEventMessage.c \
|
|
||||||
src/third_party/asn1/StartEventAckMessage.c \
|
|
||||||
src/third_party/asn1/ResetTimeoutMessage.c \
|
|
||||||
src/third_party/asn1/RemovedFromGame.c \
|
|
||||||
src/third_party/asn1/PokerTHMessage.c \
|
|
||||||
src/third_party/asn1/PlayersTurnMessage.c \
|
|
||||||
src/third_party/asn1/PlayersActionDoneMessage.c \
|
|
||||||
src/third_party/asn1/PlayerResult.c \
|
|
||||||
src/third_party/asn1/PlayerInfoRequestMessage.c \
|
|
||||||
src/third_party/asn1/PlayerInfoReplyMessage.c \
|
|
||||||
src/third_party/asn1/PlayerInfoData.c \
|
|
||||||
src/third_party/asn1/PlayerInfoRights.c \
|
|
||||||
src/third_party/asn1/PlayerAllIn.c \
|
|
||||||
src/third_party/asn1/PlayerIdChangedMessage.c \
|
|
||||||
src/third_party/asn1/PlayerListMessage.c \
|
|
||||||
src/third_party/asn1/per_support.c \
|
src/third_party/asn1/per_support.c \
|
||||||
src/third_party/asn1/per_opentype.c \
|
src/third_party/asn1/per_opentype.c \
|
||||||
src/third_party/asn1/per_encoder.c \
|
src/third_party/asn1/per_encoder.c \
|
||||||
src/third_party/asn1/per_decoder.c \
|
src/third_party/asn1/per_decoder.c \
|
||||||
src/third_party/asn1/OCTET_STRING.c \
|
src/third_party/asn1/OCTET_STRING.c \
|
||||||
src/third_party/asn1/NonZeroId.c \
|
|
||||||
src/third_party/asn1/NetPlayerAction.c \
|
|
||||||
src/third_party/asn1/NetPlayerState.c \
|
|
||||||
src/third_party/asn1/NetGameState.c \
|
|
||||||
src/third_party/asn1/NetGameMode.c \
|
|
||||||
src/third_party/asn1/NetGameInfo.c \
|
|
||||||
src/third_party/asn1/NetAvatarType.c \
|
|
||||||
src/third_party/asn1/NativeInteger.c \
|
src/third_party/asn1/NativeInteger.c \
|
||||||
src/third_party/asn1/NativeEnumerated.c \
|
src/third_party/asn1/NativeEnumerated.c \
|
||||||
src/third_party/asn1/MyActionRequestMessage.c \
|
|
||||||
src/third_party/asn1/LeaveGameRequestMessage.c \
|
|
||||||
src/third_party/asn1/KickPlayerRequestMessage.c \
|
|
||||||
src/third_party/asn1/KickPetitionUpdateMessage.c \
|
|
||||||
src/third_party/asn1/JoinNewGame.c \
|
|
||||||
src/third_party/asn1/JoinGameRequestMessage.c \
|
|
||||||
src/third_party/asn1/JoinGameReplyMessage.c \
|
|
||||||
src/third_party/asn1/JoinGameFailed.c \
|
|
||||||
src/third_party/asn1/JoinGameAck.c \
|
|
||||||
src/third_party/asn1/JoinExistingGame.c \
|
|
||||||
src/third_party/asn1/INTEGER.c \
|
src/third_party/asn1/INTEGER.c \
|
||||||
src/third_party/asn1/InitMessage.c \
|
|
||||||
src/third_party/asn1/InitAckMessage.c \
|
|
||||||
src/third_party/asn1/Id.c \
|
|
||||||
src/third_party/asn1/HandStartMessage.c \
|
|
||||||
src/third_party/asn1/Guid.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/GamePlayerLeft.c \
|
|
||||||
src/third_party/asn1/GamePlayerJoined.c \
|
|
||||||
src/third_party/asn1/GameListUpdate.c \
|
|
||||||
src/third_party/asn1/GameListPlayerLeft.c \
|
|
||||||
src/third_party/asn1/GameListPlayerJoined.c \
|
|
||||||
src/third_party/asn1/GameListNew.c \
|
|
||||||
src/third_party/asn1/GameListMessage.c \
|
|
||||||
src/third_party/asn1/GameListAdminChanged.c \
|
|
||||||
src/third_party/asn1/GameAdminChanged.c \
|
|
||||||
src/third_party/asn1/ErrorMessage.c \
|
|
||||||
src/third_party/asn1/EndOfHandShowCards.c \
|
|
||||||
src/third_party/asn1/EndOfHandMessage.c \
|
|
||||||
src/third_party/asn1/EndOfHandHideCards.c \
|
|
||||||
src/third_party/asn1/EndOfGameMessage.c \
|
|
||||||
src/third_party/asn1/EndKickPetitionMessage.c \
|
|
||||||
src/third_party/asn1/DialogMessage.c \
|
|
||||||
src/third_party/asn1/der_encoder.c \
|
src/third_party/asn1/der_encoder.c \
|
||||||
src/third_party/asn1/DealTurnCardMessage.c \
|
|
||||||
src/third_party/asn1/DealRiverCardMessage.c \
|
|
||||||
src/third_party/asn1/DealFlopCardsMessage.c \
|
|
||||||
src/third_party/asn1/constraints.c \
|
src/third_party/asn1/constraints.c \
|
||||||
src/third_party/asn1/constr_TYPE.c \
|
src/third_party/asn1/constr_TYPE.c \
|
||||||
src/third_party/asn1/constr_SET_OF.c \
|
src/third_party/asn1/constr_SET_OF.c \
|
||||||
src/third_party/asn1/constr_SEQUENCE_OF.c \
|
src/third_party/asn1/constr_SEQUENCE_OF.c \
|
||||||
src/third_party/asn1/constr_SEQUENCE.c \
|
src/third_party/asn1/constr_SEQUENCE.c \
|
||||||
src/third_party/asn1/constr_CHOICE.c \
|
src/third_party/asn1/constr_CHOICE.c \
|
||||||
src/third_party/asn1/ChatRequestMessage.c \
|
|
||||||
src/third_party/asn1/ChatRequestTypeLobby.c \
|
|
||||||
src/third_party/asn1/ChatRequestTypeGame.c \
|
|
||||||
src/third_party/asn1/ChatMessage.c \
|
|
||||||
src/third_party/asn1/ChatTypeGame.c \
|
|
||||||
src/third_party/asn1/ChatTypeLobby.c \
|
|
||||||
src/third_party/asn1/ChatTypeBot.c \
|
|
||||||
src/third_party/asn1/ChatTypeBroadcast.c \
|
|
||||||
src/third_party/asn1/Card.c \
|
|
||||||
src/third_party/asn1/BOOLEAN.c \
|
src/third_party/asn1/BOOLEAN.c \
|
||||||
src/third_party/asn1/BIT_STRING.c \
|
src/third_party/asn1/BIT_STRING.c \
|
||||||
src/third_party/asn1/ber_tlv_tag.c \
|
src/third_party/asn1/ber_tlv_tag.c \
|
||||||
src/third_party/asn1/ber_tlv_length.c \
|
src/third_party/asn1/ber_tlv_length.c \
|
||||||
src/third_party/asn1/ber_decoder.c \
|
src/third_party/asn1/ber_decoder.c \
|
||||||
src/third_party/asn1/AvatarRequestMessage.c \
|
|
||||||
src/third_party/asn1/AvatarReplyMessage.c \
|
|
||||||
src/third_party/asn1/AvatarHeader.c \
|
|
||||||
src/third_party/asn1/AvatarHash.c \
|
|
||||||
src/third_party/asn1/AvatarEnd.c \
|
|
||||||
src/third_party/asn1/AvatarData.c \
|
|
||||||
src/third_party/asn1/AuthenticatedLogin.c \
|
|
||||||
src/third_party/asn1/asn_SET_OF.c \
|
src/third_party/asn1/asn_SET_OF.c \
|
||||||
src/third_party/asn1/asn_SEQUENCE_OF.c \
|
src/third_party/asn1/asn_SEQUENCE_OF.c \
|
||||||
src/third_party/asn1/asn_codecs_prim.c \
|
src/third_party/asn1/asn_codecs_prim.c
|
||||||
src/third_party/asn1/AskKickPlayerMessage.c \
|
|
||||||
src/third_party/asn1/AskKickDeniedMessage.c \
|
|
||||||
src/third_party/asn1/GuestLogin.c \
|
|
||||||
src/third_party/asn1/AnnounceMessage.c \
|
|
||||||
src/third_party/asn1/UnauthenticatedLogin.c \
|
|
||||||
src/third_party/asn1/InvitePlayerToGameMessage.c \
|
|
||||||
src/third_party/asn1/InviteNotifyMessage.c \
|
|
||||||
src/third_party/asn1/RejectGameInvitationMessage.c \
|
|
||||||
src/third_party/asn1/RejectInvNotifyMessage.c \
|
|
||||||
src/third_party/asn1/RejectGameInvReason.c \
|
|
||||||
src/third_party/asn1/RejoinEvent.c \
|
|
||||||
src/third_party/asn1/RejoinExistingGame.c \
|
|
||||||
src/third_party/asn1/RejoinPlayerData.c \
|
|
||||||
src/third_party/asn1/AfterHandShowCardsMessage.c \
|
|
||||||
src/third_party/asn1/ShowMyCardsRequestMessage.c \
|
|
||||||
src/third_party/asn1/EncryptedCards.c \
|
|
||||||
src/third_party/asn1/PlainCards.c \
|
|
||||||
src/third_party/asn1/ChatRequestTypePrivate.c \
|
|
||||||
src/third_party/asn1/ReportAvatarMessage.c \
|
|
||||||
src/third_party/asn1/ReportAvatarAckMessage.c \
|
|
||||||
src/third_party/asn1/ReportGameMessage.c \
|
|
||||||
src/third_party/asn1/ReportGameAckMessage.c \
|
|
||||||
src/third_party/asn1/CleanerChatTypeLobby.c \
|
|
||||||
src/third_party/asn1/CleanerChatTypeGame.c \
|
|
||||||
src/third_party/asn1/CleanerChatType.c \
|
|
||||||
src/third_party/asn1/ChatTypePrivate.c \
|
|
||||||
src/third_party/asn1/ChatRejectMessage.c
|
|
||||||
SOURCES += src/third_party/protobuf/pokerth.pb.cc
|
SOURCES += src/third_party/protobuf/pokerth.pb.cc
|
||||||
win32 {
|
win32 {
|
||||||
DEFINES += CURL_STATICLIB
|
DEFINES += CURL_STATICLIB
|
||||||
|
|||||||
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AfterHandShowCardsMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AfterHandShowCardsMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AfterHandShowCardsMessage, playerResult),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_PlayerResult,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerResult"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AfterHandShowCardsMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (34 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AfterHandShowCardsMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerResult at 595 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AfterHandShowCardsMessage_specs_1 = {
|
|
||||||
sizeof(struct AfterHandShowCardsMessage),
|
|
||||||
offsetof(struct AfterHandShowCardsMessage, _asn_ctx),
|
|
||||||
asn_MAP_AfterHandShowCardsMessage_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage = {
|
|
||||||
"AfterHandShowCardsMessage",
|
|
||||||
"AfterHandShowCardsMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AfterHandShowCardsMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AfterHandShowCardsMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AfterHandShowCardsMessage_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_AfterHandShowCardsMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AfterHandShowCardsMessage_H_
|
|
||||||
#define _AfterHandShowCardsMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "PlayerResult.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AfterHandShowCardsMessage */
|
|
||||||
typedef struct AfterHandShowCardsMessage {
|
|
||||||
PlayerResult_t playerResult;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AfterHandShowCardsMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AfterHandShowCardsMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-140
@@ -1,140 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AllInShowCardsMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_playersAllIn_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Determine the number of elements */
|
|
||||||
size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 10)) {
|
|
||||||
/* Perform validation of the inner elements */
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_playersAllIn_3[] = {
|
|
||||||
{ ATF_POINTER, 0, 0,
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_PlayerAllIn,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
""
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_playersAllIn_tags_3[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SET_OF_specifics_t asn_SPC_playersAllIn_specs_3 = {
|
|
||||||
sizeof(struct playersAllIn),
|
|
||||||
offsetof(struct playersAllIn, _asn_ctx),
|
|
||||||
0, /* XER encoding is XMLDelimitedItemList */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_playersAllIn_3 = {
|
|
||||||
"playersAllIn",
|
|
||||||
"playersAllIn",
|
|
||||||
SEQUENCE_OF_free,
|
|
||||||
SEQUENCE_OF_print,
|
|
||||||
SEQUENCE_OF_constraint,
|
|
||||||
SEQUENCE_OF_decode_ber,
|
|
||||||
SEQUENCE_OF_encode_der,
|
|
||||||
SEQUENCE_OF_decode_xer,
|
|
||||||
SEQUENCE_OF_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_playersAllIn_tags_3,
|
|
||||||
sizeof(asn_DEF_playersAllIn_tags_3)
|
|
||||||
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
|
||||||
asn_DEF_playersAllIn_tags_3, /* Same as above */
|
|
||||||
sizeof(asn_DEF_playersAllIn_tags_3)
|
|
||||||
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_playersAllIn_3,
|
|
||||||
1, /* Single element */
|
|
||||||
&asn_SPC_playersAllIn_specs_3 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, playersAllIn),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_playersAllIn_3,
|
|
||||||
memb_playersAllIn_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playersAllIn"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AllInShowCardsMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (31 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AllInShowCardsMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 552 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* playersAllIn at 554 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AllInShowCardsMessage_specs_1 = {
|
|
||||||
sizeof(struct AllInShowCardsMessage),
|
|
||||||
offsetof(struct AllInShowCardsMessage, _asn_ctx),
|
|
||||||
asn_MAP_AllInShowCardsMessage_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage = {
|
|
||||||
"AllInShowCardsMessage",
|
|
||||||
"AllInShowCardsMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AllInShowCardsMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AllInShowCardsMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AllInShowCardsMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AllInShowCardsMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AllInShowCardsMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_AllInShowCardsMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-56
@@ -1,56 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AllInShowCardsMessage_H_
|
|
||||||
#define _AllInShowCardsMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <asn_SEQUENCE_OF.h>
|
|
||||||
#include <constr_SEQUENCE_OF.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Forward declarations */
|
|
||||||
struct PlayerAllIn;
|
|
||||||
|
|
||||||
/* AllInShowCardsMessage */
|
|
||||||
typedef struct AllInShowCardsMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
struct playersAllIn {
|
|
||||||
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 */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AllInShowCardsMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Referred external types */
|
|
||||||
#include "PlayerAllIn.h"
|
|
||||||
|
|
||||||
#endif /* _AllInShowCardsMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-125
@@ -1,125 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AmountOfMoney.h"
|
|
||||||
|
|
||||||
int
|
|
||||||
AmountOfMoney_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 0 && value <= 10000000)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeInteger,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeInteger.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeInteger.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
|
||||||
td->specifics = asn_DEF_NativeInteger.specifics;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
AmountOfMoney_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
AmountOfMoney_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_dec_rval_t
|
|
||||||
AmountOfMoney_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) {
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_enc_rval_t
|
|
||||||
AmountOfMoney_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_dec_rval_t
|
|
||||||
AmountOfMoney_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) {
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_enc_rval_t
|
|
||||||
AmountOfMoney_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
AmountOfMoney_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_AmountOfMoney_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AmountOfMoney = {
|
|
||||||
"AmountOfMoney",
|
|
||||||
"AmountOfMoney",
|
|
||||||
AmountOfMoney_free,
|
|
||||||
AmountOfMoney_print,
|
|
||||||
AmountOfMoney_constraint,
|
|
||||||
AmountOfMoney_decode_ber,
|
|
||||||
AmountOfMoney_encode_der,
|
|
||||||
AmountOfMoney_decode_xer,
|
|
||||||
AmountOfMoney_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AmountOfMoney_tags_1,
|
|
||||||
sizeof(asn_DEF_AmountOfMoney_tags_1)
|
|
||||||
/sizeof(asn_DEF_AmountOfMoney_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AmountOfMoney_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AmountOfMoney_tags_1)
|
|
||||||
/sizeof(asn_DEF_AmountOfMoney_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
0 /* No specifics */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-39
@@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AmountOfMoney_H_
|
|
||||||
#define _AmountOfMoney_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <NativeInteger.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AmountOfMoney */
|
|
||||||
typedef long AmountOfMoney_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AmountOfMoney;
|
|
||||||
asn_struct_free_f AmountOfMoney_free;
|
|
||||||
asn_struct_print_f AmountOfMoney_print;
|
|
||||||
asn_constr_check_f AmountOfMoney_constraint;
|
|
||||||
ber_type_decoder_f AmountOfMoney_decode_ber;
|
|
||||||
der_type_encoder_f AmountOfMoney_encode_der;
|
|
||||||
xer_type_decoder_f AmountOfMoney_decode_xer;
|
|
||||||
xer_type_encoder_f AmountOfMoney_encode_xer;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AmountOfMoney_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-269
@@ -1,269 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AnnounceMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
serverType_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
/* Replace with underlying type checker */
|
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeEnumerated,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
serverType_5_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
serverType_5_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
serverType_5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
serverType_5_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
serverType_5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
serverType_5_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_latestBetaRevision_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 0 && value <= 65535)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_numPlayersOnServer_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 0 && value <= 65535)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_INTEGER_enum_map_t asn_MAP_serverType_value2enum_5[] = {
|
|
||||||
{ 0, 13, "serverTypeLAN" },
|
|
||||||
{ 1, 24, "serverTypeInternetNoAuth" },
|
|
||||||
{ 2, 22, "serverTypeInternetAuth" }
|
|
||||||
};
|
|
||||||
static unsigned int asn_MAP_serverType_enum2value_5[] = {
|
|
||||||
2, /* serverTypeInternetAuth(2) */
|
|
||||||
1, /* serverTypeInternetNoAuth(1) */
|
|
||||||
0 /* serverTypeLAN(0) */
|
|
||||||
};
|
|
||||||
static asn_INTEGER_specifics_t asn_SPC_serverType_specs_5 = {
|
|
||||||
asn_MAP_serverType_value2enum_5, /* "tag" => N; sorted by tag */
|
|
||||||
asn_MAP_serverType_enum2value_5, /* N => "tag"; sorted by N */
|
|
||||||
3, /* Number of elements in the maps */
|
|
||||||
0, /* Enumeration is not extensible */
|
|
||||||
1, /* Strict enumeration */
|
|
||||||
0, /* Native long size */
|
|
||||||
0
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_serverType_tags_5[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_serverType_5 = {
|
|
||||||
"serverType",
|
|
||||||
"serverType",
|
|
||||||
serverType_5_free,
|
|
||||||
serverType_5_print,
|
|
||||||
serverType_5_constraint,
|
|
||||||
serverType_5_decode_ber,
|
|
||||||
serverType_5_encode_der,
|
|
||||||
serverType_5_decode_xer,
|
|
||||||
serverType_5_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_serverType_tags_5,
|
|
||||||
sizeof(asn_DEF_serverType_tags_5)
|
|
||||||
/sizeof(asn_DEF_serverType_tags_5[0]), /* 1 */
|
|
||||||
asn_DEF_serverType_tags_5, /* Same as above */
|
|
||||||
sizeof(asn_DEF_serverType_tags_5)
|
|
||||||
/sizeof(asn_DEF_serverType_tags_5[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* Defined elsewhere */
|
|
||||||
&asn_SPC_serverType_specs_5 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, protocolVersion),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Version,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"protocolVersion"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestGameVersion),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Version,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"latestGameVersion"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestBetaRevision),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NativeInteger,
|
|
||||||
memb_latestBetaRevision_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"latestBetaRevision"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, serverType),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_serverType_5,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"serverType"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, numPlayersOnServer),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NativeInteger,
|
|
||||||
memb_numPlayersOnServer_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"numPlayersOnServer"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AnnounceMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AnnounceMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 1 }, /* latestBetaRevision at 87 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -1, 0 }, /* numPlayersOnServer at 93 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* serverType at 89 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* protocolVersion at 85 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* latestGameVersion at 86 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AnnounceMessage_specs_1 = {
|
|
||||||
sizeof(struct AnnounceMessage),
|
|
||||||
offsetof(struct AnnounceMessage, _asn_ctx),
|
|
||||||
asn_MAP_AnnounceMessage_tag2el_1,
|
|
||||||
5, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
4, /* Start extensions */
|
|
||||||
6 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AnnounceMessage = {
|
|
||||||
"AnnounceMessage",
|
|
||||||
"AnnounceMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AnnounceMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AnnounceMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AnnounceMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AnnounceMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AnnounceMessage_1,
|
|
||||||
5, /* Elements count */
|
|
||||||
&asn_SPC_AnnounceMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-57
@@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AnnounceMessage_H_
|
|
||||||
#define _AnnounceMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "Version.h"
|
|
||||||
#include <NativeInteger.h>
|
|
||||||
#include <NativeEnumerated.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum serverType {
|
|
||||||
serverType_serverTypeLAN = 0,
|
|
||||||
serverType_serverTypeInternetNoAuth = 1,
|
|
||||||
serverType_serverTypeInternetAuth = 2
|
|
||||||
}
|
|
||||||
e_serverType;
|
|
||||||
|
|
||||||
/* AnnounceMessage */
|
|
||||||
typedef struct AnnounceMessage {
|
|
||||||
Version_t protocolVersion;
|
|
||||||
Version_t latestGameVersion;
|
|
||||||
long latestBetaRevision;
|
|
||||||
long serverType;
|
|
||||||
long numPlayersOnServer;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AnnounceMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_serverType_5; // (Use -fall-defs-global to expose) */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AnnounceMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AnnounceMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-203
@@ -1,203 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AskKickDeniedMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
kickDeniedReason_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
/* Replace with underlying type checker */
|
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeEnumerated,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
kickDeniedReason_4_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
kickDeniedReason_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
kickDeniedReason_4_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
kickDeniedReason_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
kickDeniedReason_4_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_INTEGER_enum_map_t asn_MAP_kickDeniedReason_value2enum_4[] = {
|
|
||||||
{ 0, 26, "kickDeniedInvalidGameState" },
|
|
||||||
{ 1, 21, "kickDeniedNotPossible" },
|
|
||||||
{ 2, 23, "kickDeniedTryAgainLater" },
|
|
||||||
{ 3, 27, "kickDeniedAlreadyInProgress" },
|
|
||||||
{ 4, 25, "kickDeniedInvalidPlayerId" }
|
|
||||||
};
|
|
||||||
static unsigned int asn_MAP_kickDeniedReason_enum2value_4[] = {
|
|
||||||
3, /* kickDeniedAlreadyInProgress(3) */
|
|
||||||
0, /* kickDeniedInvalidGameState(0) */
|
|
||||||
4, /* kickDeniedInvalidPlayerId(4) */
|
|
||||||
1, /* kickDeniedNotPossible(1) */
|
|
||||||
2 /* kickDeniedTryAgainLater(2) */
|
|
||||||
};
|
|
||||||
static asn_INTEGER_specifics_t asn_SPC_kickDeniedReason_specs_4 = {
|
|
||||||
asn_MAP_kickDeniedReason_value2enum_4, /* "tag" => N; sorted by tag */
|
|
||||||
asn_MAP_kickDeniedReason_enum2value_4, /* N => "tag"; sorted by N */
|
|
||||||
5, /* Number of elements in the maps */
|
|
||||||
0, /* Enumeration is not extensible */
|
|
||||||
1, /* Strict enumeration */
|
|
||||||
0, /* Native long size */
|
|
||||||
0
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_kickDeniedReason_tags_4[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4 = {
|
|
||||||
"kickDeniedReason",
|
|
||||||
"kickDeniedReason",
|
|
||||||
kickDeniedReason_4_free,
|
|
||||||
kickDeniedReason_4_print,
|
|
||||||
kickDeniedReason_4_constraint,
|
|
||||||
kickDeniedReason_4_decode_ber,
|
|
||||||
kickDeniedReason_4_encode_der,
|
|
||||||
kickDeniedReason_4_decode_xer,
|
|
||||||
kickDeniedReason_4_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_kickDeniedReason_tags_4,
|
|
||||||
sizeof(asn_DEF_kickDeniedReason_tags_4)
|
|
||||||
/sizeof(asn_DEF_kickDeniedReason_tags_4[0]), /* 1 */
|
|
||||||
asn_DEF_kickDeniedReason_tags_4, /* Same as above */
|
|
||||||
sizeof(asn_DEF_kickDeniedReason_tags_4)
|
|
||||||
/sizeof(asn_DEF_kickDeniedReason_tags_4[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* Defined elsewhere */
|
|
||||||
&asn_SPC_kickDeniedReason_specs_4 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, kickDeniedReason),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_kickDeniedReason_4,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"kickDeniedReason"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AskKickDeniedMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (65 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AskKickDeniedMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 613 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 614 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* kickDeniedReason at 616 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AskKickDeniedMessage_specs_1 = {
|
|
||||||
sizeof(struct AskKickDeniedMessage),
|
|
||||||
offsetof(struct AskKickDeniedMessage, _asn_ctx),
|
|
||||||
asn_MAP_AskKickDeniedMessage_tag2el_1,
|
|
||||||
3, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
2, /* Start extensions */
|
|
||||||
4 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage = {
|
|
||||||
"AskKickDeniedMessage",
|
|
||||||
"AskKickDeniedMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AskKickDeniedMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AskKickDeniedMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AskKickDeniedMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AskKickDeniedMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AskKickDeniedMessage_1,
|
|
||||||
3, /* Elements count */
|
|
||||||
&asn_SPC_AskKickDeniedMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-56
@@ -1,56 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AskKickDeniedMessage_H_
|
|
||||||
#define _AskKickDeniedMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <NativeEnumerated.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum kickDeniedReason {
|
|
||||||
kickDeniedReason_kickDeniedInvalidGameState = 0,
|
|
||||||
kickDeniedReason_kickDeniedNotPossible = 1,
|
|
||||||
kickDeniedReason_kickDeniedTryAgainLater = 2,
|
|
||||||
kickDeniedReason_kickDeniedAlreadyInProgress = 3,
|
|
||||||
kickDeniedReason_kickDeniedInvalidPlayerId = 4
|
|
||||||
}
|
|
||||||
e_kickDeniedReason;
|
|
||||||
|
|
||||||
/* AskKickDeniedMessage */
|
|
||||||
typedef struct AskKickDeniedMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
long kickDeniedReason;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AskKickDeniedMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4; // (Use -fall-defs-global to expose) */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AskKickDeniedMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-70
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AskKickPlayerMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AskKickPlayerMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (64 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AskKickPlayerMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 608 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 610 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AskKickPlayerMessage_specs_1 = {
|
|
||||||
sizeof(struct AskKickPlayerMessage),
|
|
||||||
offsetof(struct AskKickPlayerMessage, _asn_ctx),
|
|
||||||
asn_MAP_AskKickPlayerMessage_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage = {
|
|
||||||
"AskKickPlayerMessage",
|
|
||||||
"AskKickPlayerMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AskKickPlayerMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AskKickPlayerMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AskKickPlayerMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AskKickPlayerMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AskKickPlayerMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_AskKickPlayerMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-43
@@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AskKickPlayerMessage_H_
|
|
||||||
#define _AskKickPlayerMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AskKickPlayerMessage */
|
|
||||||
typedef struct AskKickPlayerMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AskKickPlayerMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AskKickPlayerMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-85
@@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AuthClientResponse.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_clientResponse_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 256)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthClientResponse_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthClientResponse, clientResponse),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_OCTET_STRING,
|
|
||||||
memb_clientResponse_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"clientResponse"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AuthClientResponse_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthClientResponse_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* clientResponse at 140 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthClientResponse_specs_1 = {
|
|
||||||
sizeof(struct AuthClientResponse),
|
|
||||||
offsetof(struct AuthClientResponse, _asn_ctx),
|
|
||||||
asn_MAP_AuthClientResponse_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AuthClientResponse = {
|
|
||||||
"AuthClientResponse",
|
|
||||||
"AuthClientResponse",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AuthClientResponse_tags_1,
|
|
||||||
sizeof(asn_DEF_AuthClientResponse_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AuthClientResponse_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AuthClientResponse_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AuthClientResponse_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_AuthClientResponse_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AuthClientResponse_H_
|
|
||||||
#define _AuthClientResponse_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AuthClientResponse */
|
|
||||||
typedef struct AuthClientResponse {
|
|
||||||
OCTET_STRING_t clientResponse;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AuthClientResponse_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthClientResponse;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AuthClientResponse_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-80
@@ -1,80 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AuthMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerChallenge),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_AuthServerChallenge,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"authServerChallenge"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authClientResponse),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_AuthClientResponse,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"authClientResponse"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerVerification),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_AuthServerVerification,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"authServerVerification"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AuthMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (2 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* authServerChallenge at 130 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authClientResponse at 131 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* authServerVerification at 133 */
|
|
||||||
};
|
|
||||||
static asn_CHOICE_specifics_t asn_SPC_AuthMessage_specs_1 = {
|
|
||||||
sizeof(struct AuthMessage),
|
|
||||||
offsetof(struct AuthMessage, _asn_ctx),
|
|
||||||
offsetof(struct AuthMessage, present),
|
|
||||||
sizeof(((struct AuthMessage *)0)->present),
|
|
||||||
asn_MAP_AuthMessage_tag2el_1,
|
|
||||||
3, /* Count of tags in the map */
|
|
||||||
0,
|
|
||||||
3 /* Extensions start */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AuthMessage = {
|
|
||||||
"AuthMessage",
|
|
||||||
"AuthMessage",
|
|
||||||
CHOICE_free,
|
|
||||||
CHOICE_print,
|
|
||||||
CHOICE_constraint,
|
|
||||||
CHOICE_decode_ber,
|
|
||||||
CHOICE_encode_der,
|
|
||||||
CHOICE_decode_xer,
|
|
||||||
CHOICE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
CHOICE_outmost_tag,
|
|
||||||
asn_DEF_AuthMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AuthMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AuthMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AuthMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AuthMessage_1,
|
|
||||||
3, /* Elements count */
|
|
||||||
&asn_SPC_AuthMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-60
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AuthMessage_H_
|
|
||||||
#define _AuthMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "AuthServerChallenge.h"
|
|
||||||
#include "AuthClientResponse.h"
|
|
||||||
#include "AuthServerVerification.h"
|
|
||||||
#include <constr_CHOICE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum AuthMessage_PR {
|
|
||||||
AuthMessage_PR_NOTHING, /* No components present */
|
|
||||||
AuthMessage_PR_authServerChallenge,
|
|
||||||
AuthMessage_PR_authClientResponse,
|
|
||||||
AuthMessage_PR_authServerVerification,
|
|
||||||
/* Extensions may appear below */
|
|
||||||
|
|
||||||
}
|
|
||||||
AuthMessage_PR;
|
|
||||||
|
|
||||||
/* AuthMessage */
|
|
||||||
typedef struct AuthMessage {
|
|
||||||
AuthMessage_PR present;
|
|
||||||
union AuthMessage_u {
|
|
||||||
AuthServerChallenge_t authServerChallenge;
|
|
||||||
AuthClientResponse_t authClientResponse;
|
|
||||||
AuthServerVerification_t authServerVerification;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
} choice;
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AuthMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AuthMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-85
@@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AuthServerChallenge.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_serverChallenge_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 256)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthServerChallenge_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerChallenge, serverChallenge),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_OCTET_STRING,
|
|
||||||
memb_serverChallenge_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"serverChallenge"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AuthServerChallenge_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthServerChallenge_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverChallenge at 136 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerChallenge_specs_1 = {
|
|
||||||
sizeof(struct AuthServerChallenge),
|
|
||||||
offsetof(struct AuthServerChallenge, _asn_ctx),
|
|
||||||
asn_MAP_AuthServerChallenge_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge = {
|
|
||||||
"AuthServerChallenge",
|
|
||||||
"AuthServerChallenge",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AuthServerChallenge_tags_1,
|
|
||||||
sizeof(asn_DEF_AuthServerChallenge_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AuthServerChallenge_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AuthServerChallenge_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AuthServerChallenge_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_AuthServerChallenge_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AuthServerChallenge_H_
|
|
||||||
#define _AuthServerChallenge_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AuthServerChallenge */
|
|
||||||
typedef struct AuthServerChallenge {
|
|
||||||
OCTET_STRING_t serverChallenge;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AuthServerChallenge_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AuthServerChallenge_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-85
@@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AuthServerVerification.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_serverVerification_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 256)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthServerVerification_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerVerification, serverVerification),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_OCTET_STRING,
|
|
||||||
memb_serverVerification_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"serverVerification"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AuthServerVerification_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthServerVerification_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverVerification at 144 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerVerification_specs_1 = {
|
|
||||||
sizeof(struct AuthServerVerification),
|
|
||||||
offsetof(struct AuthServerVerification, _asn_ctx),
|
|
||||||
asn_MAP_AuthServerVerification_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AuthServerVerification = {
|
|
||||||
"AuthServerVerification",
|
|
||||||
"AuthServerVerification",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AuthServerVerification_tags_1,
|
|
||||||
sizeof(asn_DEF_AuthServerVerification_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AuthServerVerification_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AuthServerVerification_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AuthServerVerification_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_AuthServerVerification_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AuthServerVerification_H_
|
|
||||||
#define _AuthServerVerification_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AuthServerVerification */
|
|
||||||
typedef struct AuthServerVerification {
|
|
||||||
OCTET_STRING_t serverVerification;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AuthServerVerification_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthServerVerification;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AuthServerVerification_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-95
@@ -1,95 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AuthenticatedLogin.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_clientUserData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 256)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthenticatedLogin, clientUserData),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_OCTET_STRING,
|
|
||||||
memb_clientUserData_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"clientUserData"
|
|
||||||
},
|
|
||||||
{ ATF_POINTER, 1, offsetof(struct AuthenticatedLogin, avatar),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_AvatarHash,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatar"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AuthenticatedLogin_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AuthenticatedLogin_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 1 }, /* clientUserData at 120 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, -1, 0 } /* avatar at 121 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthenticatedLogin_specs_1 = {
|
|
||||||
sizeof(struct AuthenticatedLogin),
|
|
||||||
offsetof(struct AuthenticatedLogin, _asn_ctx),
|
|
||||||
asn_MAP_AuthenticatedLogin_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin = {
|
|
||||||
"AuthenticatedLogin",
|
|
||||||
"AuthenticatedLogin",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AuthenticatedLogin_tags_1,
|
|
||||||
sizeof(asn_DEF_AuthenticatedLogin_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AuthenticatedLogin_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AuthenticatedLogin_tags_1)
|
|
||||||
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AuthenticatedLogin_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_AuthenticatedLogin_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AuthenticatedLogin_H_
|
|
||||||
#define _AuthenticatedLogin_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
#include "AvatarHash.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AuthenticatedLogin */
|
|
||||||
typedef struct AuthenticatedLogin {
|
|
||||||
OCTET_STRING_t clientUserData;
|
|
||||||
AvatarHash_t *avatar /* OPTIONAL */;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AuthenticatedLogin_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AuthenticatedLogin_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-85
@@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AvatarData.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_avatarBlock_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 256)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarData_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarData, avatarBlock),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_OCTET_STRING,
|
|
||||||
memb_avatarBlock_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarBlock"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarData_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarData_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* avatarBlock at 175 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarData_specs_1 = {
|
|
||||||
sizeof(struct AvatarData),
|
|
||||||
offsetof(struct AvatarData, _asn_ctx),
|
|
||||||
asn_MAP_AvatarData_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AvatarData = {
|
|
||||||
"AvatarData",
|
|
||||||
"AvatarData",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AvatarData_tags_1,
|
|
||||||
sizeof(asn_DEF_AvatarData_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AvatarData_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AvatarData_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AvatarData_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_AvatarData_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AvatarData_H_
|
|
||||||
#define _AvatarData_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AvatarData */
|
|
||||||
typedef struct AvatarData {
|
|
||||||
OCTET_STRING_t avatarBlock;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AvatarData_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarData;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AvatarData_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AvatarEnd.h"
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarEnd_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarEnd_specs_1 = {
|
|
||||||
sizeof(struct AvatarEnd),
|
|
||||||
offsetof(struct AvatarEnd, _asn_ctx),
|
|
||||||
0, /* No top level tags */
|
|
||||||
0, /* No tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
-1, /* Start extensions */
|
|
||||||
-1 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AvatarEnd = {
|
|
||||||
"AvatarEnd",
|
|
||||||
"AvatarEnd",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AvatarEnd_tags_1,
|
|
||||||
sizeof(asn_DEF_AvatarEnd_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AvatarEnd_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AvatarEnd_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
&asn_SPC_AvatarEnd_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-40
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AvatarEnd_H_
|
|
||||||
#define _AvatarEnd_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AvatarEnd */
|
|
||||||
typedef struct AvatarEnd {
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AvatarEnd_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarEnd;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AvatarEnd_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-126
@@ -1,126 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AvatarHash.h"
|
|
||||||
|
|
||||||
int
|
|
||||||
AvatarHash_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size == 16)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using OCTET_STRING,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_OCTET_STRING.free_struct;
|
|
||||||
td->print_struct = asn_DEF_OCTET_STRING.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
|
|
||||||
td->elements = asn_DEF_OCTET_STRING.elements;
|
|
||||||
td->elements_count = asn_DEF_OCTET_STRING.elements_count;
|
|
||||||
td->specifics = asn_DEF_OCTET_STRING.specifics;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
AvatarHash_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
AvatarHash_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_enc_rval_t
|
|
||||||
AvatarHash_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_enc_rval_t
|
|
||||||
AvatarHash_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
AvatarHash_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarHash_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AvatarHash = {
|
|
||||||
"AvatarHash",
|
|
||||||
"AvatarHash",
|
|
||||||
AvatarHash_free,
|
|
||||||
AvatarHash_print,
|
|
||||||
AvatarHash_constraint,
|
|
||||||
AvatarHash_decode_ber,
|
|
||||||
AvatarHash_encode_der,
|
|
||||||
AvatarHash_decode_xer,
|
|
||||||
AvatarHash_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AvatarHash_tags_1,
|
|
||||||
sizeof(asn_DEF_AvatarHash_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AvatarHash_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AvatarHash_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
0 /* No specifics */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-39
@@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AvatarHash_H_
|
|
||||||
#define _AvatarHash_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AvatarHash */
|
|
||||||
typedef OCTET_STRING_t AvatarHash_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarHash;
|
|
||||||
asn_struct_free_f AvatarHash_free;
|
|
||||||
asn_struct_print_f AvatarHash_print;
|
|
||||||
asn_constr_check_f AvatarHash_constraint;
|
|
||||||
ber_type_decoder_f AvatarHash_decode_ber;
|
|
||||||
der_type_encoder_f AvatarHash_encode_der;
|
|
||||||
xer_type_decoder_f AvatarHash_decode_xer;
|
|
||||||
xer_type_encoder_f AvatarHash_encode_xer;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AvatarHash_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-94
@@ -1,94 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AvatarHeader.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_avatarSize_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 32 && value <= 30720)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarHeader_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarType),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NetAvatarType,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarType"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarSize),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NativeInteger,
|
|
||||||
memb_avatarSize_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarSize"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarHeader_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarHeader_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* avatarSize at 171 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* avatarType at 170 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarHeader_specs_1 = {
|
|
||||||
sizeof(struct AvatarHeader),
|
|
||||||
offsetof(struct AvatarHeader, _asn_ctx),
|
|
||||||
asn_MAP_AvatarHeader_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AvatarHeader = {
|
|
||||||
"AvatarHeader",
|
|
||||||
"AvatarHeader",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AvatarHeader_tags_1,
|
|
||||||
sizeof(asn_DEF_AvatarHeader_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_AvatarHeader_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AvatarHeader_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AvatarHeader_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_AvatarHeader_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AvatarHeader_H_
|
|
||||||
#define _AvatarHeader_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NetAvatarType.h"
|
|
||||||
#include <NativeInteger.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AvatarHeader */
|
|
||||||
typedef struct AvatarHeader {
|
|
||||||
NetAvatarType_t avatarType;
|
|
||||||
long avatarSize;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AvatarHeader_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarHeader;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AvatarHeader_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-150
@@ -1,150 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AvatarReplyMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarHeader),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_AvatarHeader,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarHeader"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarData),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_AvatarData,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarData"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarEnd),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_AvatarEnd,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarEnd"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.unknownAvatar),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_UnknownAvatar,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"unknownAvatar"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_avatarResult_tag2el_3[] = {
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* avatarHeader at 162 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 163 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* avatarEnd at 164 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unknownAvatar at 166 */
|
|
||||||
};
|
|
||||||
static asn_CHOICE_specifics_t asn_SPC_avatarResult_specs_3 = {
|
|
||||||
sizeof(struct avatarResult),
|
|
||||||
offsetof(struct avatarResult, _asn_ctx),
|
|
||||||
offsetof(struct avatarResult, present),
|
|
||||||
sizeof(((struct avatarResult *)0)->present),
|
|
||||||
asn_MAP_avatarResult_tag2el_3,
|
|
||||||
4, /* Count of tags in the map */
|
|
||||||
0,
|
|
||||||
4 /* Extensions start */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_avatarResult_3 = {
|
|
||||||
"avatarResult",
|
|
||||||
"avatarResult",
|
|
||||||
CHOICE_free,
|
|
||||||
CHOICE_print,
|
|
||||||
CHOICE_constraint,
|
|
||||||
CHOICE_decode_ber,
|
|
||||||
CHOICE_encode_der,
|
|
||||||
CHOICE_decode_xer,
|
|
||||||
CHOICE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
CHOICE_outmost_tag,
|
|
||||||
0, /* No effective tags (pointer) */
|
|
||||||
0, /* No effective tags (count) */
|
|
||||||
0, /* No tags (pointer) */
|
|
||||||
0, /* No tags (count) */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_avatarResult_3,
|
|
||||||
4, /* Elements count */
|
|
||||||
&asn_SPC_avatarResult_specs_3 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, requestId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"requestId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, avatarResult),
|
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
|
||||||
0,
|
|
||||||
&asn_DEF_avatarResult_3,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatarResult"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarReplyMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (5 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarReplyMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 160 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* avatarHeader at 162 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 163 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* avatarEnd at 164 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* unknownAvatar at 166 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarReplyMessage_specs_1 = {
|
|
||||||
sizeof(struct AvatarReplyMessage),
|
|
||||||
offsetof(struct AvatarReplyMessage, _asn_ctx),
|
|
||||||
asn_MAP_AvatarReplyMessage_tag2el_1,
|
|
||||||
5, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage = {
|
|
||||||
"AvatarReplyMessage",
|
|
||||||
"AvatarReplyMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AvatarReplyMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AvatarReplyMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AvatarReplyMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AvatarReplyMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AvatarReplyMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_AvatarReplyMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-75
@@ -1,75 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AvatarReplyMessage_H_
|
|
||||||
#define _AvatarReplyMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "AvatarHeader.h"
|
|
||||||
#include "AvatarData.h"
|
|
||||||
#include "AvatarEnd.h"
|
|
||||||
#include "UnknownAvatar.h"
|
|
||||||
#include <constr_CHOICE.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum avatarResult_PR {
|
|
||||||
avatarResult_PR_NOTHING, /* No components present */
|
|
||||||
avatarResult_PR_avatarHeader,
|
|
||||||
avatarResult_PR_avatarData,
|
|
||||||
avatarResult_PR_avatarEnd,
|
|
||||||
avatarResult_PR_unknownAvatar,
|
|
||||||
/* Extensions may appear below */
|
|
||||||
|
|
||||||
}
|
|
||||||
avatarResult_PR;
|
|
||||||
|
|
||||||
/* AvatarReplyMessage */
|
|
||||||
typedef struct AvatarReplyMessage {
|
|
||||||
NonZeroId_t requestId;
|
|
||||||
struct avatarResult {
|
|
||||||
avatarResult_PR present;
|
|
||||||
union AvatarReplyMessage__avatarResult_u {
|
|
||||||
AvatarHeader_t avatarHeader;
|
|
||||||
AvatarData_t avatarData;
|
|
||||||
AvatarEnd_t avatarEnd;
|
|
||||||
UnknownAvatar_t unknownAvatar;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
} 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 */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AvatarReplyMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AvatarReplyMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-70
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "AvatarRequestMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, requestId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"requestId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, avatar),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_AvatarHash,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"avatar"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_AvatarRequestMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (4 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_AvatarRequestMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 155 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* avatar at 157 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarRequestMessage_specs_1 = {
|
|
||||||
sizeof(struct AvatarRequestMessage),
|
|
||||||
offsetof(struct AvatarRequestMessage, _asn_ctx),
|
|
||||||
asn_MAP_AvatarRequestMessage_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage = {
|
|
||||||
"AvatarRequestMessage",
|
|
||||||
"AvatarRequestMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_AvatarRequestMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_AvatarRequestMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_AvatarRequestMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_AvatarRequestMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_AvatarRequestMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_AvatarRequestMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _AvatarRequestMessage_H_
|
|
||||||
#define _AvatarRequestMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "AvatarHash.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AvatarRequestMessage */
|
|
||||||
typedef struct AvatarRequestMessage {
|
|
||||||
NonZeroId_t requestId;
|
|
||||||
AvatarHash_t avatar;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} AvatarRequestMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _AvatarRequestMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-125
@@ -1,125 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "Card.h"
|
|
||||||
|
|
||||||
int
|
|
||||||
Card_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 0 && value <= 51)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeInteger,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
Card_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeInteger.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeInteger.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeInteger.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeInteger.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeInteger.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeInteger.elements_count;
|
|
||||||
td->specifics = asn_DEF_NativeInteger.specifics;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
Card_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
Card_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_enc_rval_t
|
|
||||||
Card_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
asn_enc_rval_t
|
|
||||||
Card_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
Card_1_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_Card_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_Card = {
|
|
||||||
"Card",
|
|
||||||
"Card",
|
|
||||||
Card_free,
|
|
||||||
Card_print,
|
|
||||||
Card_constraint,
|
|
||||||
Card_decode_ber,
|
|
||||||
Card_encode_der,
|
|
||||||
Card_decode_xer,
|
|
||||||
Card_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_Card_tags_1,
|
|
||||||
sizeof(asn_DEF_Card_tags_1)
|
|
||||||
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_Card_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_Card_tags_1)
|
|
||||||
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
0 /* No specifics */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-39
@@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _Card_H_
|
|
||||||
#define _Card_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <NativeInteger.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Card */
|
|
||||||
typedef long Card_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_Card;
|
|
||||||
asn_struct_free_f Card_free;
|
|
||||||
asn_struct_print_f Card_print;
|
|
||||||
asn_constr_check_f Card_constraint;
|
|
||||||
ber_type_decoder_f Card_decode_ber;
|
|
||||||
der_type_encoder_f Card_encode_der;
|
|
||||||
xer_type_decoder_f Card_decode_xer;
|
|
||||||
xer_type_encoder_f Card_encode_xer;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _Card_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-193
@@ -1,193 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
|
||||||
if((ssize_t)size < 0) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 128)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeLobby),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatTypeLobby,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatTypeLobby"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeGame),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatTypeGame,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatTypeGame"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBot),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatTypeBot,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatTypeBot"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBroadcast),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatTypeBroadcast,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatTypeBroadcast"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypePrivate),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatTypePrivate,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatTypePrivate"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_chatType_tag2el_2[] = {
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 713 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatTypeGame at 714 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* chatTypeBot at 715 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* chatTypeBroadcast at 716 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* chatTypePrivate at 718 */
|
|
||||||
};
|
|
||||||
static asn_CHOICE_specifics_t asn_SPC_chatType_specs_2 = {
|
|
||||||
sizeof(struct chatType),
|
|
||||||
offsetof(struct chatType, _asn_ctx),
|
|
||||||
offsetof(struct chatType, present),
|
|
||||||
sizeof(((struct chatType *)0)->present),
|
|
||||||
asn_MAP_chatType_tag2el_2,
|
|
||||||
5, /* Count of tags in the map */
|
|
||||||
0,
|
|
||||||
5 /* Extensions start */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_chatType_2 = {
|
|
||||||
"chatType",
|
|
||||||
"chatType",
|
|
||||||
CHOICE_free,
|
|
||||||
CHOICE_print,
|
|
||||||
CHOICE_constraint,
|
|
||||||
CHOICE_decode_ber,
|
|
||||||
CHOICE_encode_der,
|
|
||||||
CHOICE_decode_xer,
|
|
||||||
CHOICE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
CHOICE_outmost_tag,
|
|
||||||
0, /* No effective tags (pointer) */
|
|
||||||
0, /* No effective tags (count) */
|
|
||||||
0, /* No tags (pointer) */
|
|
||||||
0, /* No tags (count) */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_chatType_2,
|
|
||||||
5, /* Elements count */
|
|
||||||
&asn_SPC_chatType_specs_2 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatType),
|
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
|
||||||
0,
|
|
||||||
&asn_DEF_chatType_2,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatType"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatText),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_UTF8String,
|
|
||||||
memb_chatText_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatText"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (130 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 719 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 713 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatTypeGame at 714 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* chatTypeBot at 715 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 }, /* chatTypeBroadcast at 716 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 } /* chatTypePrivate at 718 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatMessage_specs_1 = {
|
|
||||||
sizeof(struct ChatMessage),
|
|
||||||
offsetof(struct ChatMessage, _asn_ctx),
|
|
||||||
asn_MAP_ChatMessage_tag2el_1,
|
|
||||||
6, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatMessage = {
|
|
||||||
"ChatMessage",
|
|
||||||
"ChatMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_ChatMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_ChatMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-78
@@ -1,78 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatMessage_H_
|
|
||||||
#define _ChatMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <UTF8String.h>
|
|
||||||
#include "ChatTypeLobby.h"
|
|
||||||
#include "ChatTypeGame.h"
|
|
||||||
#include "ChatTypeBot.h"
|
|
||||||
#include "ChatTypeBroadcast.h"
|
|
||||||
#include "ChatTypePrivate.h"
|
|
||||||
#include <constr_CHOICE.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum chatType_PR {
|
|
||||||
chatType_PR_NOTHING, /* No components present */
|
|
||||||
chatType_PR_chatTypeLobby,
|
|
||||||
chatType_PR_chatTypeGame,
|
|
||||||
chatType_PR_chatTypeBot,
|
|
||||||
chatType_PR_chatTypeBroadcast,
|
|
||||||
chatType_PR_chatTypePrivate,
|
|
||||||
/* Extensions may appear below */
|
|
||||||
|
|
||||||
}
|
|
||||||
chatType_PR;
|
|
||||||
|
|
||||||
/* ChatMessage */
|
|
||||||
typedef struct ChatMessage {
|
|
||||||
struct chatType {
|
|
||||||
chatType_PR present;
|
|
||||||
union ChatMessage__chatType_u {
|
|
||||||
ChatTypeLobby_t chatTypeLobby;
|
|
||||||
ChatTypeGame_t chatTypeGame;
|
|
||||||
ChatTypeBot_t chatTypeBot;
|
|
||||||
ChatTypeBroadcast_t chatTypeBroadcast;
|
|
||||||
ChatTypePrivate_t chatTypePrivate;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
} choice;
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} chatType;
|
|
||||||
UTF8String_t chatText;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-92
@@ -1,92 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatRejectMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
|
||||||
if((ssize_t)size < 0) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 128)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRejectMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRejectMessage, chatText),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_UTF8String,
|
|
||||||
memb_chatText_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatText"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRejectMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (131 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRejectMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* chatText at 742 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRejectMessage_specs_1 = {
|
|
||||||
sizeof(struct ChatRejectMessage),
|
|
||||||
offsetof(struct ChatRejectMessage, _asn_ctx),
|
|
||||||
asn_MAP_ChatRejectMessage_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage = {
|
|
||||||
"ChatRejectMessage",
|
|
||||||
"ChatRejectMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatRejectMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatRejectMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_ChatRejectMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatRejectMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatRejectMessage_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_ChatRejectMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatRejectMessage_H_
|
|
||||||
#define _ChatRejectMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <UTF8String.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatRejectMessage */
|
|
||||||
typedef struct ChatRejectMessage {
|
|
||||||
UTF8String_t chatText;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatRejectMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatRejectMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-171
@@ -1,171 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatRequestMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_chatText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
|
||||||
if((ssize_t)size < 0) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 128)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeLobby),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatRequestTypeLobby,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatRequestTypeLobby"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeGame),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatRequestTypeGame,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatRequestTypeGame"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypePrivate),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_ChatRequestTypePrivate,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatRequestTypePrivate"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_chatRequestType_tag2el_2[] = {
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 693 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatRequestTypeGame at 694 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chatRequestTypePrivate at 696 */
|
|
||||||
};
|
|
||||||
static asn_CHOICE_specifics_t asn_SPC_chatRequestType_specs_2 = {
|
|
||||||
sizeof(struct chatRequestType),
|
|
||||||
offsetof(struct chatRequestType, _asn_ctx),
|
|
||||||
offsetof(struct chatRequestType, present),
|
|
||||||
sizeof(((struct chatRequestType *)0)->present),
|
|
||||||
asn_MAP_chatRequestType_tag2el_2,
|
|
||||||
3, /* Count of tags in the map */
|
|
||||||
0,
|
|
||||||
3 /* Extensions start */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_chatRequestType_2 = {
|
|
||||||
"chatRequestType",
|
|
||||||
"chatRequestType",
|
|
||||||
CHOICE_free,
|
|
||||||
CHOICE_print,
|
|
||||||
CHOICE_constraint,
|
|
||||||
CHOICE_decode_ber,
|
|
||||||
CHOICE_encode_der,
|
|
||||||
CHOICE_decode_xer,
|
|
||||||
CHOICE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
CHOICE_outmost_tag,
|
|
||||||
0, /* No effective tags (pointer) */
|
|
||||||
0, /* No effective tags (count) */
|
|
||||||
0, /* No tags (pointer) */
|
|
||||||
0, /* No tags (count) */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_chatRequestType_2,
|
|
||||||
3, /* Elements count */
|
|
||||||
&asn_SPC_chatRequestType_specs_2 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatRequestType),
|
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
|
||||||
0,
|
|
||||||
&asn_DEF_chatRequestType_2,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatRequestType"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatText),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_UTF8String,
|
|
||||||
memb_chatText_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"chatText"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (129 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRequestMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 697 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 693 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatRequestTypeGame at 694 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 } /* chatRequestTypePrivate at 696 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestMessage_specs_1 = {
|
|
||||||
sizeof(struct ChatRequestMessage),
|
|
||||||
offsetof(struct ChatRequestMessage, _asn_ctx),
|
|
||||||
asn_MAP_ChatRequestMessage_tag2el_1,
|
|
||||||
4, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage = {
|
|
||||||
"ChatRequestMessage",
|
|
||||||
"ChatRequestMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatRequestMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatRequestMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_ChatRequestMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatRequestMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatRequestMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_ChatRequestMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-72
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatRequestMessage_H_
|
|
||||||
#define _ChatRequestMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <UTF8String.h>
|
|
||||||
#include "ChatRequestTypeLobby.h"
|
|
||||||
#include "ChatRequestTypeGame.h"
|
|
||||||
#include "ChatRequestTypePrivate.h"
|
|
||||||
#include <constr_CHOICE.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum chatRequestType_PR {
|
|
||||||
chatRequestType_PR_NOTHING, /* No components present */
|
|
||||||
chatRequestType_PR_chatRequestTypeLobby,
|
|
||||||
chatRequestType_PR_chatRequestTypeGame,
|
|
||||||
chatRequestType_PR_chatRequestTypePrivate,
|
|
||||||
/* Extensions may appear below */
|
|
||||||
|
|
||||||
}
|
|
||||||
chatRequestType_PR;
|
|
||||||
|
|
||||||
/* ChatRequestMessage */
|
|
||||||
typedef struct ChatRequestMessage {
|
|
||||||
struct chatRequestType {
|
|
||||||
chatRequestType_PR present;
|
|
||||||
union ChatRequestMessage__chatRequestType_u {
|
|
||||||
ChatRequestTypeLobby_t chatRequestTypeLobby;
|
|
||||||
ChatRequestTypeGame_t chatRequestTypeGame;
|
|
||||||
ChatRequestTypePrivate_t chatRequestTypePrivate;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
} 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 */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatRequestMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatRequestMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatRequestTypeGame.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRequestTypeGame_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypeGame, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestTypeGame_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRequestTypeGame_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 705 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypeGame_specs_1 = {
|
|
||||||
sizeof(struct ChatRequestTypeGame),
|
|
||||||
offsetof(struct ChatRequestTypeGame, _asn_ctx),
|
|
||||||
asn_MAP_ChatRequestTypeGame_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame = {
|
|
||||||
"ChatRequestTypeGame",
|
|
||||||
"ChatRequestTypeGame",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatRequestTypeGame_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatRequestTypeGame_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatRequestTypeGame_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatRequestTypeGame_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatRequestTypeGame_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_ChatRequestTypeGame_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatRequestTypeGame_H_
|
|
||||||
#define _ChatRequestTypeGame_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatRequestTypeGame */
|
|
||||||
typedef struct ChatRequestTypeGame {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatRequestTypeGame_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatRequestTypeGame_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatRequestTypeLobby.h"
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestTypeLobby_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypeLobby_specs_1 = {
|
|
||||||
sizeof(struct ChatRequestTypeLobby),
|
|
||||||
offsetof(struct ChatRequestTypeLobby, _asn_ctx),
|
|
||||||
0, /* No top level tags */
|
|
||||||
0, /* No tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
-1, /* Start extensions */
|
|
||||||
-1 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby = {
|
|
||||||
"ChatRequestTypeLobby",
|
|
||||||
"ChatRequestTypeLobby",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatRequestTypeLobby_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatRequestTypeLobby_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatRequestTypeLobby_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatRequestTypeLobby_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
&asn_SPC_ChatRequestTypeLobby_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-40
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatRequestTypeLobby_H_
|
|
||||||
#define _ChatRequestTypeLobby_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatRequestTypeLobby */
|
|
||||||
typedef struct ChatRequestTypeLobby {
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatRequestTypeLobby_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatRequestTypeLobby_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatRequestTypePrivate.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatRequestTypePrivate_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypePrivate, targetPlayerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"targetPlayerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatRequestTypePrivate_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatRequestTypePrivate_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* targetPlayerId at 709 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypePrivate_specs_1 = {
|
|
||||||
sizeof(struct ChatRequestTypePrivate),
|
|
||||||
offsetof(struct ChatRequestTypePrivate, _asn_ctx),
|
|
||||||
asn_MAP_ChatRequestTypePrivate_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate = {
|
|
||||||
"ChatRequestTypePrivate",
|
|
||||||
"ChatRequestTypePrivate",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatRequestTypePrivate_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatRequestTypePrivate_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatRequestTypePrivate_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatRequestTypePrivate_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatRequestTypePrivate_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_ChatRequestTypePrivate_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatRequestTypePrivate_H_
|
|
||||||
#define _ChatRequestTypePrivate_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatRequestTypePrivate */
|
|
||||||
typedef struct ChatRequestTypePrivate {
|
|
||||||
NonZeroId_t targetPlayerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatRequestTypePrivate_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatRequestTypePrivate_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatTypeBot.h"
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypeBot_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeBot_specs_1 = {
|
|
||||||
sizeof(struct ChatTypeBot),
|
|
||||||
offsetof(struct ChatTypeBot, _asn_ctx),
|
|
||||||
0, /* No top level tags */
|
|
||||||
0, /* No tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
-1, /* Start extensions */
|
|
||||||
-1 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatTypeBot = {
|
|
||||||
"ChatTypeBot",
|
|
||||||
"ChatTypeBot",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatTypeBot_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatTypeBot_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatTypeBot_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatTypeBot_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
&asn_SPC_ChatTypeBot_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-40
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatTypeBot_H_
|
|
||||||
#define _ChatTypeBot_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatTypeBot */
|
|
||||||
typedef struct ChatTypeBot {
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatTypeBot_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBot;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatTypeBot_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatTypeBroadcast.h"
|
|
||||||
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypeBroadcast_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeBroadcast_specs_1 = {
|
|
||||||
sizeof(struct ChatTypeBroadcast),
|
|
||||||
offsetof(struct ChatTypeBroadcast, _asn_ctx),
|
|
||||||
0, /* No top level tags */
|
|
||||||
0, /* No tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
-1, /* Start extensions */
|
|
||||||
-1 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast = {
|
|
||||||
"ChatTypeBroadcast",
|
|
||||||
"ChatTypeBroadcast",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatTypeBroadcast_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatTypeBroadcast_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatTypeBroadcast_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatTypeBroadcast_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* No members */
|
|
||||||
&asn_SPC_ChatTypeBroadcast_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-40
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatTypeBroadcast_H_
|
|
||||||
#define _ChatTypeBroadcast_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatTypeBroadcast */
|
|
||||||
typedef struct ChatTypeBroadcast {
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatTypeBroadcast_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatTypeBroadcast_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-69
@@ -1,69 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatTypeGame.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypeGame_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatTypeGame_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 727 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 729 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeGame_specs_1 = {
|
|
||||||
sizeof(struct ChatTypeGame),
|
|
||||||
offsetof(struct ChatTypeGame, _asn_ctx),
|
|
||||||
asn_MAP_ChatTypeGame_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatTypeGame = {
|
|
||||||
"ChatTypeGame",
|
|
||||||
"ChatTypeGame",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatTypeGame_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatTypeGame_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatTypeGame_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatTypeGame_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatTypeGame_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_ChatTypeGame_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-43
@@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatTypeGame_H_
|
|
||||||
#define _ChatTypeGame_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatTypeGame */
|
|
||||||
typedef struct ChatTypeGame {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatTypeGame_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeGame;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatTypeGame_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatTypeLobby.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatTypeLobby_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeLobby, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypeLobby_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatTypeLobby_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 724 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeLobby_specs_1 = {
|
|
||||||
sizeof(struct ChatTypeLobby),
|
|
||||||
offsetof(struct ChatTypeLobby, _asn_ctx),
|
|
||||||
asn_MAP_ChatTypeLobby_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby = {
|
|
||||||
"ChatTypeLobby",
|
|
||||||
"ChatTypeLobby",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatTypeLobby_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatTypeLobby_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatTypeLobby_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatTypeLobby_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatTypeLobby_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_ChatTypeLobby_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatTypeLobby_H_
|
|
||||||
#define _ChatTypeLobby_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatTypeLobby */
|
|
||||||
typedef struct ChatTypeLobby {
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatTypeLobby_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatTypeLobby_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ChatTypePrivate.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ChatTypePrivate_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypePrivate, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ChatTypePrivate_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ChatTypePrivate_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 739 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypePrivate_specs_1 = {
|
|
||||||
sizeof(struct ChatTypePrivate),
|
|
||||||
offsetof(struct ChatTypePrivate, _asn_ctx),
|
|
||||||
asn_MAP_ChatTypePrivate_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate = {
|
|
||||||
"ChatTypePrivate",
|
|
||||||
"ChatTypePrivate",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ChatTypePrivate_tags_1,
|
|
||||||
sizeof(asn_DEF_ChatTypePrivate_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_ChatTypePrivate_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ChatTypePrivate_tags_1)
|
|
||||||
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ChatTypePrivate_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_ChatTypePrivate_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ChatTypePrivate_H_
|
|
||||||
#define _ChatTypePrivate_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ChatTypePrivate */
|
|
||||||
typedef struct ChatTypePrivate {
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ChatTypePrivate_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ChatTypePrivate_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-90
@@ -1,90 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "DealFlopCardsMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard1),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Card,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"flopCard1"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard2),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Card,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"flopCard2"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard3),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Card,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"flopCard3"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_DealFlopCardsMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (28 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DealFlopCardsMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 535 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* flopCard1 at 536 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* flopCard2 at 537 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 } /* flopCard3 at 539 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DealFlopCardsMessage_specs_1 = {
|
|
||||||
sizeof(struct DealFlopCardsMessage),
|
|
||||||
offsetof(struct DealFlopCardsMessage, _asn_ctx),
|
|
||||||
asn_MAP_DealFlopCardsMessage_tag2el_1,
|
|
||||||
4, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
3, /* Start extensions */
|
|
||||||
5 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage = {
|
|
||||||
"DealFlopCardsMessage",
|
|
||||||
"DealFlopCardsMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_DealFlopCardsMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_DealFlopCardsMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_DealFlopCardsMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_DealFlopCardsMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_DealFlopCardsMessage_1,
|
|
||||||
4, /* Elements count */
|
|
||||||
&asn_SPC_DealFlopCardsMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-46
@@ -1,46 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _DealFlopCardsMessage_H_
|
|
||||||
#define _DealFlopCardsMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "Card.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DealFlopCardsMessage */
|
|
||||||
typedef struct DealFlopCardsMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
Card_t flopCard1;
|
|
||||||
Card_t flopCard2;
|
|
||||||
Card_t flopCard3;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} DealFlopCardsMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _DealFlopCardsMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-70
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "DealRiverCardMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, riverCard),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Card,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"riverCard"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_DealRiverCardMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (30 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DealRiverCardMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 547 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* riverCard at 549 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DealRiverCardMessage_specs_1 = {
|
|
||||||
sizeof(struct DealRiverCardMessage),
|
|
||||||
offsetof(struct DealRiverCardMessage, _asn_ctx),
|
|
||||||
asn_MAP_DealRiverCardMessage_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage = {
|
|
||||||
"DealRiverCardMessage",
|
|
||||||
"DealRiverCardMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_DealRiverCardMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_DealRiverCardMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_DealRiverCardMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_DealRiverCardMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_DealRiverCardMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_DealRiverCardMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _DealRiverCardMessage_H_
|
|
||||||
#define _DealRiverCardMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "Card.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DealRiverCardMessage */
|
|
||||||
typedef struct DealRiverCardMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
Card_t riverCard;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} DealRiverCardMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _DealRiverCardMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-70
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "DealTurnCardMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, turnCard),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_Card,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"turnCard"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_DealTurnCardMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (29 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DealTurnCardMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 542 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* turnCard at 544 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DealTurnCardMessage_specs_1 = {
|
|
||||||
sizeof(struct DealTurnCardMessage),
|
|
||||||
offsetof(struct DealTurnCardMessage, _asn_ctx),
|
|
||||||
asn_MAP_DealTurnCardMessage_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage = {
|
|
||||||
"DealTurnCardMessage",
|
|
||||||
"DealTurnCardMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_DealTurnCardMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_DealTurnCardMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_DealTurnCardMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_DealTurnCardMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_DealTurnCardMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_DealTurnCardMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _DealTurnCardMessage_H_
|
|
||||||
#define _DealTurnCardMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "Card.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DealTurnCardMessage */
|
|
||||||
typedef struct DealTurnCardMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
Card_t turnCard;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} DealTurnCardMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _DealTurnCardMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-92
@@ -1,92 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "DialogMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_notificationText_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const UTF8String_t *st = (const UTF8String_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = UTF8String_length(st);
|
|
||||||
if((ssize_t)size < 0) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: UTF-8: broken encoding (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 128)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_DialogMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct DialogMessage, notificationText),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_UTF8String,
|
|
||||||
memb_notificationText_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"notificationText"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_DialogMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (132 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_DialogMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* notificationText at 746 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_DialogMessage_specs_1 = {
|
|
||||||
sizeof(struct DialogMessage),
|
|
||||||
offsetof(struct DialogMessage, _asn_ctx),
|
|
||||||
asn_MAP_DialogMessage_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_DialogMessage = {
|
|
||||||
"DialogMessage",
|
|
||||||
"DialogMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_DialogMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_DialogMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DialogMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_DialogMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_DialogMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_DialogMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_DialogMessage_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_DialogMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _DialogMessage_H_
|
|
||||||
#define _DialogMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <UTF8String.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DialogMessage */
|
|
||||||
typedef struct DialogMessage {
|
|
||||||
UTF8String_t notificationText;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} DialogMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_DialogMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _DialogMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-85
@@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "EncryptedCards.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_cardData_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
size = st->size;
|
|
||||||
|
|
||||||
if((size >= 16 && size <= 64)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EncryptedCards_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EncryptedCards, cardData),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_OCTET_STRING,
|
|
||||||
memb_cardData_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"cardData"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_EncryptedCards_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EncryptedCards_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* cardData at 484 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EncryptedCards_specs_1 = {
|
|
||||||
sizeof(struct EncryptedCards),
|
|
||||||
offsetof(struct EncryptedCards, _asn_ctx),
|
|
||||||
asn_MAP_EncryptedCards_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_EncryptedCards = {
|
|
||||||
"EncryptedCards",
|
|
||||||
"EncryptedCards",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_EncryptedCards_tags_1,
|
|
||||||
sizeof(asn_DEF_EncryptedCards_tags_1)
|
|
||||||
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_EncryptedCards_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_EncryptedCards_tags_1)
|
|
||||||
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_EncryptedCards_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_EncryptedCards_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EncryptedCards_H_
|
|
||||||
#define _EncryptedCards_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <OCTET_STRING.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* EncryptedCards */
|
|
||||||
typedef struct EncryptedCards {
|
|
||||||
OCTET_STRING_t cardData;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} EncryptedCards_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EncryptedCards;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _EncryptedCards_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-281
@@ -1,281 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "EndKickPetitionMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
petitionEndReason_7_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
/* Replace with underlying type checker */
|
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeEnumerated,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
petitionEndReason_7_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
petitionEndReason_7_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
petitionEndReason_7_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
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) {
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
petitionEndReason_7_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
petitionEndReason_7_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_numVotesAgainstKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 0 && value <= 9)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_numVotesInFavourOfKicking_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
long value;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
value = *(const long *)sptr;
|
|
||||||
|
|
||||||
if((value >= 1 && value <= 9)) {
|
|
||||||
/* Constraint check succeeded */
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_INTEGER_enum_map_t asn_MAP_petitionEndReason_value2enum_7[] = {
|
|
||||||
{ 0, 22, "petitionEndEnoughVotes" },
|
|
||||||
{ 1, 24, "petitionEndTooFewPlayers" },
|
|
||||||
{ 2, 21, "petitionEndPlayerLeft" },
|
|
||||||
{ 3, 18, "petitionEndTimeout" }
|
|
||||||
};
|
|
||||||
static unsigned int asn_MAP_petitionEndReason_enum2value_7[] = {
|
|
||||||
0, /* petitionEndEnoughVotes(0) */
|
|
||||||
2, /* petitionEndPlayerLeft(2) */
|
|
||||||
3, /* petitionEndTimeout(3) */
|
|
||||||
1 /* petitionEndTooFewPlayers(1) */
|
|
||||||
};
|
|
||||||
static asn_INTEGER_specifics_t asn_SPC_petitionEndReason_specs_7 = {
|
|
||||||
asn_MAP_petitionEndReason_value2enum_7, /* "tag" => N; sorted by tag */
|
|
||||||
asn_MAP_petitionEndReason_enum2value_7, /* N => "tag"; sorted by N */
|
|
||||||
4, /* Number of elements in the maps */
|
|
||||||
0, /* Enumeration is not extensible */
|
|
||||||
1, /* Strict enumeration */
|
|
||||||
0, /* Native long size */
|
|
||||||
0
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_petitionEndReason_tags_7[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7 = {
|
|
||||||
"petitionEndReason",
|
|
||||||
"petitionEndReason",
|
|
||||||
petitionEndReason_7_free,
|
|
||||||
petitionEndReason_7_print,
|
|
||||||
petitionEndReason_7_constraint,
|
|
||||||
petitionEndReason_7_decode_ber,
|
|
||||||
petitionEndReason_7_encode_der,
|
|
||||||
petitionEndReason_7_decode_xer,
|
|
||||||
petitionEndReason_7_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_petitionEndReason_tags_7,
|
|
||||||
sizeof(asn_DEF_petitionEndReason_tags_7)
|
|
||||||
/sizeof(asn_DEF_petitionEndReason_tags_7[0]), /* 1 */
|
|
||||||
asn_DEF_petitionEndReason_tags_7, /* Same as above */
|
|
||||||
sizeof(asn_DEF_petitionEndReason_tags_7)
|
|
||||||
/sizeof(asn_DEF_petitionEndReason_tags_7[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* Defined elsewhere */
|
|
||||||
&asn_SPC_petitionEndReason_specs_7 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"petitionId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesAgainstKicking),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NativeInteger,
|
|
||||||
memb_numVotesAgainstKicking_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"numVotesAgainstKicking"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesInFavourOfKicking),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NativeInteger,
|
|
||||||
memb_numVotesInFavourOfKicking_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"numVotesInFavourOfKicking"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, resultPlayerKicked),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_BOOLEAN,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"resultPlayerKicked"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionEndReason),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_petitionEndReason_7,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"petitionEndReason"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_EndKickPetitionMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (70 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndKickPetitionMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 4, 0, 0 }, /* resultPlayerKicked at 671 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 667 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* petitionId at 668 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* numVotesAgainstKicking at 669 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 }, /* numVotesInFavourOfKicking at 670 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, 0, 0 } /* petitionEndReason at 673 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndKickPetitionMessage_specs_1 = {
|
|
||||||
sizeof(struct EndKickPetitionMessage),
|
|
||||||
offsetof(struct EndKickPetitionMessage, _asn_ctx),
|
|
||||||
asn_MAP_EndKickPetitionMessage_tag2el_1,
|
|
||||||
6, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
5, /* Start extensions */
|
|
||||||
7 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage = {
|
|
||||||
"EndKickPetitionMessage",
|
|
||||||
"EndKickPetitionMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_EndKickPetitionMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_EndKickPetitionMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_EndKickPetitionMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_EndKickPetitionMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_EndKickPetitionMessage_1,
|
|
||||||
6, /* Elements count */
|
|
||||||
&asn_SPC_EndKickPetitionMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-60
@@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EndKickPetitionMessage_H_
|
|
||||||
#define _EndKickPetitionMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <NativeInteger.h>
|
|
||||||
#include <BOOLEAN.h>
|
|
||||||
#include <NativeEnumerated.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum petitionEndReason {
|
|
||||||
petitionEndReason_petitionEndEnoughVotes = 0,
|
|
||||||
petitionEndReason_petitionEndTooFewPlayers = 1,
|
|
||||||
petitionEndReason_petitionEndPlayerLeft = 2,
|
|
||||||
petitionEndReason_petitionEndTimeout = 3
|
|
||||||
}
|
|
||||||
e_petitionEndReason;
|
|
||||||
|
|
||||||
/* EndKickPetitionMessage */
|
|
||||||
typedef struct EndKickPetitionMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
NonZeroId_t petitionId;
|
|
||||||
long numVotesAgainstKicking;
|
|
||||||
long numVotesInFavourOfKicking;
|
|
||||||
BOOLEAN_t resultPlayerKicked;
|
|
||||||
long petitionEndReason;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} EndKickPetitionMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7; // (Use -fall-defs-global to expose) */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _EndKickPetitionMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-70
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "EndOfGameMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, winnerPlayerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"winnerPlayerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfGameMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (35 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfGameMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 598 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* winnerPlayerId at 600 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfGameMessage_specs_1 = {
|
|
||||||
sizeof(struct EndOfGameMessage),
|
|
||||||
offsetof(struct EndOfGameMessage, _asn_ctx),
|
|
||||||
asn_MAP_EndOfGameMessage_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage = {
|
|
||||||
"EndOfGameMessage",
|
|
||||||
"EndOfGameMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_EndOfGameMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_EndOfGameMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_EndOfGameMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_EndOfGameMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_EndOfGameMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_EndOfGameMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-43
@@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EndOfGameMessage_H_
|
|
||||||
#define _EndOfGameMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* EndOfGameMessage */
|
|
||||||
typedef struct EndOfGameMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
NonZeroId_t winnerPlayerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} EndOfGameMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _EndOfGameMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-79
@@ -1,79 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "EndOfHandHideCards.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, moneyWon),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_AmountOfMoney,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"moneyWon"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerMoney),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_AmountOfMoney,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerMoney"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfHandHideCards_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfHandHideCards_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* playerId at 585 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* moneyWon at 586 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* playerMoney at 588 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandHideCards_specs_1 = {
|
|
||||||
sizeof(struct EndOfHandHideCards),
|
|
||||||
offsetof(struct EndOfHandHideCards, _asn_ctx),
|
|
||||||
asn_MAP_EndOfHandHideCards_tag2el_1,
|
|
||||||
3, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
2, /* Start extensions */
|
|
||||||
4 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards = {
|
|
||||||
"EndOfHandHideCards",
|
|
||||||
"EndOfHandHideCards",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_EndOfHandHideCards_tags_1,
|
|
||||||
sizeof(asn_DEF_EndOfHandHideCards_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_EndOfHandHideCards_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_EndOfHandHideCards_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_EndOfHandHideCards_1,
|
|
||||||
3, /* Elements count */
|
|
||||||
&asn_SPC_EndOfHandHideCards_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-45
@@ -1,45 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EndOfHandHideCards_H_
|
|
||||||
#define _EndOfHandHideCards_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "AmountOfMoney.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* EndOfHandHideCards */
|
|
||||||
typedef struct EndOfHandHideCards {
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
AmountOfMoney_t moneyWon;
|
|
||||||
AmountOfMoney_t playerMoney;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} EndOfHandHideCards_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _EndOfHandHideCards_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-128
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "EndOfHandMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandShowCards),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_EndOfHandShowCards,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"endOfHandShowCards"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandHideCards),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_EndOfHandHideCards,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"endOfHandHideCards"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_endOfHandType_tag2el_3[] = {
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* endOfHandShowCards at 565 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 567 */
|
|
||||||
};
|
|
||||||
static asn_CHOICE_specifics_t asn_SPC_endOfHandType_specs_3 = {
|
|
||||||
sizeof(struct endOfHandType),
|
|
||||||
offsetof(struct endOfHandType, _asn_ctx),
|
|
||||||
offsetof(struct endOfHandType, present),
|
|
||||||
sizeof(((struct endOfHandType *)0)->present),
|
|
||||||
asn_MAP_endOfHandType_tag2el_3,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0,
|
|
||||||
2 /* Extensions start */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_endOfHandType_3 = {
|
|
||||||
"endOfHandType",
|
|
||||||
"endOfHandType",
|
|
||||||
CHOICE_free,
|
|
||||||
CHOICE_print,
|
|
||||||
CHOICE_constraint,
|
|
||||||
CHOICE_decode_ber,
|
|
||||||
CHOICE_encode_der,
|
|
||||||
CHOICE_decode_xer,
|
|
||||||
CHOICE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
CHOICE_outmost_tag,
|
|
||||||
0, /* No effective tags (pointer) */
|
|
||||||
0, /* No effective tags (count) */
|
|
||||||
0, /* No tags (pointer) */
|
|
||||||
0, /* No tags (count) */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_endOfHandType_3,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_endOfHandType_specs_3 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, endOfHandType),
|
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
|
||||||
0,
|
|
||||||
&asn_DEF_endOfHandType_3,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"endOfHandType"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfHandMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (32 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfHandMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 563 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* endOfHandShowCards at 565 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 567 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandMessage_specs_1 = {
|
|
||||||
sizeof(struct EndOfHandMessage),
|
|
||||||
offsetof(struct EndOfHandMessage, _asn_ctx),
|
|
||||||
asn_MAP_EndOfHandMessage_tag2el_1,
|
|
||||||
3, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage = {
|
|
||||||
"EndOfHandMessage",
|
|
||||||
"EndOfHandMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_EndOfHandMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_EndOfHandMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_EndOfHandMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_EndOfHandMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_EndOfHandMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_EndOfHandMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-69
@@ -1,69 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EndOfHandMessage_H_
|
|
||||||
#define _EndOfHandMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "EndOfHandShowCards.h"
|
|
||||||
#include "EndOfHandHideCards.h"
|
|
||||||
#include <constr_CHOICE.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum endOfHandType_PR {
|
|
||||||
endOfHandType_PR_NOTHING, /* No components present */
|
|
||||||
endOfHandType_PR_endOfHandShowCards,
|
|
||||||
endOfHandType_PR_endOfHandHideCards,
|
|
||||||
/* Extensions may appear below */
|
|
||||||
|
|
||||||
}
|
|
||||||
endOfHandType_PR;
|
|
||||||
|
|
||||||
/* EndOfHandMessage */
|
|
||||||
typedef struct EndOfHandMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
struct endOfHandType {
|
|
||||||
endOfHandType_PR present;
|
|
||||||
union EndOfHandMessage__endOfHandType_u {
|
|
||||||
EndOfHandShowCards_t endOfHandShowCards;
|
|
||||||
EndOfHandHideCards_t endOfHandHideCards;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
} 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 */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} EndOfHandMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _EndOfHandMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-129
@@ -1,129 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "EndOfHandShowCards.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_playerResults_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Determine the number of elements */
|
|
||||||
size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
|
|
||||||
|
|
||||||
if((size >= 1 && size <= 10)) {
|
|
||||||
/* Perform validation of the inner elements */
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_playerResults_2[] = {
|
|
||||||
{ ATF_POINTER, 0, 0,
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_PlayerResult,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
""
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_playerResults_tags_2[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SET_OF_specifics_t asn_SPC_playerResults_specs_2 = {
|
|
||||||
sizeof(struct playerResults),
|
|
||||||
offsetof(struct playerResults, _asn_ctx),
|
|
||||||
0, /* XER encoding is XMLDelimitedItemList */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_playerResults_2 = {
|
|
||||||
"playerResults",
|
|
||||||
"playerResults",
|
|
||||||
SEQUENCE_OF_free,
|
|
||||||
SEQUENCE_OF_print,
|
|
||||||
SEQUENCE_OF_constraint,
|
|
||||||
SEQUENCE_OF_decode_ber,
|
|
||||||
SEQUENCE_OF_encode_der,
|
|
||||||
SEQUENCE_OF_decode_xer,
|
|
||||||
SEQUENCE_OF_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_playerResults_tags_2,
|
|
||||||
sizeof(asn_DEF_playerResults_tags_2)
|
|
||||||
/sizeof(asn_DEF_playerResults_tags_2[0]), /* 1 */
|
|
||||||
asn_DEF_playerResults_tags_2, /* Same as above */
|
|
||||||
sizeof(asn_DEF_playerResults_tags_2)
|
|
||||||
/sizeof(asn_DEF_playerResults_tags_2[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_playerResults_2,
|
|
||||||
1, /* Single element */
|
|
||||||
&asn_SPC_playerResults_specs_2 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_EndOfHandShowCards_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandShowCards, playerResults),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_playerResults_2,
|
|
||||||
memb_playerResults_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerResults"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_EndOfHandShowCards_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_EndOfHandShowCards_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerResults at 572 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandShowCards_specs_1 = {
|
|
||||||
sizeof(struct EndOfHandShowCards),
|
|
||||||
offsetof(struct EndOfHandShowCards, _asn_ctx),
|
|
||||||
asn_MAP_EndOfHandShowCards_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_EndOfHandShowCards = {
|
|
||||||
"EndOfHandShowCards",
|
|
||||||
"EndOfHandShowCards",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_EndOfHandShowCards_tags_1,
|
|
||||||
sizeof(asn_DEF_EndOfHandShowCards_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfHandShowCards_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_EndOfHandShowCards_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_EndOfHandShowCards_tags_1)
|
|
||||||
/sizeof(asn_DEF_EndOfHandShowCards_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_EndOfHandShowCards_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_EndOfHandShowCards_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-54
@@ -1,54 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EndOfHandShowCards_H_
|
|
||||||
#define _EndOfHandShowCards_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <asn_SEQUENCE_OF.h>
|
|
||||||
#include <constr_SEQUENCE_OF.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Forward declarations */
|
|
||||||
struct PlayerResult;
|
|
||||||
|
|
||||||
/* EndOfHandShowCards */
|
|
||||||
typedef struct EndOfHandShowCards {
|
|
||||||
struct playerResults {
|
|
||||||
A_SEQUENCE_OF(struct PlayerResult) list;
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} playerResults;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} EndOfHandShowCards_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandShowCards;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Referred external types */
|
|
||||||
#include "PlayerResult.h"
|
|
||||||
|
|
||||||
#endif /* _EndOfHandShowCards_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-203
@@ -1,203 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ErrorMessage.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
errorReason_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
/* Replace with underlying type checker */
|
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeEnumerated,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
errorReason_2_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
errorReason_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
errorReason_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) {
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
errorReason_2_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
errorReason_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) {
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
errorReason_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
errorReason_2_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_INTEGER_enum_map_t asn_MAP_errorReason_value2enum_2[] = {
|
|
||||||
{ 0, 13, "errorReserved" },
|
|
||||||
{ 1, 28, "errorInitVersionNotSupported" },
|
|
||||||
{ 2, 19, "errorInitServerFull" },
|
|
||||||
{ 3, 20, "errorInitAuthFailure" },
|
|
||||||
{ 4, 24, "errorInitPlayerNameInUse" },
|
|
||||||
{ 5, 26, "errorInitInvalidPlayerName" },
|
|
||||||
{ 6, 26, "errorInitServerMaintenance" },
|
|
||||||
{ 7, 16, "errorInitBlocked" },
|
|
||||||
{ 8, 19, "errorAvatarTooLarge" },
|
|
||||||
{ 256, 18, "errorInvalidPacket" },
|
|
||||||
{ 257, 17, "errorInvalidState" },
|
|
||||||
{ 258, 21, "errorKickedFromServer" },
|
|
||||||
{ 259, 21, "errorBannedFromServer" },
|
|
||||||
{ 260, 20, "errorBlockedByServer" },
|
|
||||||
{ 261, 19, "errorSessionTimeout" }
|
|
||||||
};
|
|
||||||
static unsigned int asn_MAP_errorReason_enum2value_2[] = {
|
|
||||||
8, /* errorAvatarTooLarge(8) */
|
|
||||||
12, /* errorBannedFromServer(259) */
|
|
||||||
13, /* errorBlockedByServer(260) */
|
|
||||||
3, /* errorInitAuthFailure(3) */
|
|
||||||
7, /* errorInitBlocked(7) */
|
|
||||||
5, /* errorInitInvalidPlayerName(5) */
|
|
||||||
4, /* errorInitPlayerNameInUse(4) */
|
|
||||||
2, /* errorInitServerFull(2) */
|
|
||||||
6, /* errorInitServerMaintenance(6) */
|
|
||||||
1, /* errorInitVersionNotSupported(1) */
|
|
||||||
9, /* errorInvalidPacket(256) */
|
|
||||||
10, /* errorInvalidState(257) */
|
|
||||||
11, /* errorKickedFromServer(258) */
|
|
||||||
0, /* errorReserved(0) */
|
|
||||||
14 /* errorSessionTimeout(261) */
|
|
||||||
};
|
|
||||||
static asn_INTEGER_specifics_t asn_SPC_errorReason_specs_2 = {
|
|
||||||
asn_MAP_errorReason_value2enum_2, /* "tag" => N; sorted by tag */
|
|
||||||
asn_MAP_errorReason_enum2value_2, /* N => "tag"; sorted by N */
|
|
||||||
15, /* Number of elements in the maps */
|
|
||||||
0, /* Enumeration is not extensible */
|
|
||||||
1, /* Strict enumeration */
|
|
||||||
0, /* Native long size */
|
|
||||||
0
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_errorReason_tags_2[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_errorReason_2 = {
|
|
||||||
"errorReason",
|
|
||||||
"errorReason",
|
|
||||||
errorReason_2_free,
|
|
||||||
errorReason_2_print,
|
|
||||||
errorReason_2_constraint,
|
|
||||||
errorReason_2_decode_ber,
|
|
||||||
errorReason_2_encode_der,
|
|
||||||
errorReason_2_decode_xer,
|
|
||||||
errorReason_2_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_errorReason_tags_2,
|
|
||||||
sizeof(asn_DEF_errorReason_tags_2)
|
|
||||||
/sizeof(asn_DEF_errorReason_tags_2[0]), /* 1 */
|
|
||||||
asn_DEF_errorReason_tags_2, /* Same as above */
|
|
||||||
sizeof(asn_DEF_errorReason_tags_2)
|
|
||||||
/sizeof(asn_DEF_errorReason_tags_2[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* Defined elsewhere */
|
|
||||||
&asn_SPC_errorReason_specs_2 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_ErrorMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct ErrorMessage, errorReason),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_errorReason_2,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"errorReason"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_ErrorMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (255 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_ErrorMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* errorReason at 790 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_ErrorMessage_specs_1 = {
|
|
||||||
sizeof(struct ErrorMessage),
|
|
||||||
offsetof(struct ErrorMessage, _asn_ctx),
|
|
||||||
asn_MAP_ErrorMessage_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_ErrorMessage = {
|
|
||||||
"ErrorMessage",
|
|
||||||
"ErrorMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_ErrorMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_ErrorMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ErrorMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_ErrorMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_ErrorMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_ErrorMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_ErrorMessage_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_ErrorMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-63
@@ -1,63 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ErrorMessage_H_
|
|
||||||
#define _ErrorMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include <NativeEnumerated.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum errorReason {
|
|
||||||
errorReason_errorReserved = 0,
|
|
||||||
errorReason_errorInitVersionNotSupported = 1,
|
|
||||||
errorReason_errorInitServerFull = 2,
|
|
||||||
errorReason_errorInitAuthFailure = 3,
|
|
||||||
errorReason_errorInitPlayerNameInUse = 4,
|
|
||||||
errorReason_errorInitInvalidPlayerName = 5,
|
|
||||||
errorReason_errorInitServerMaintenance = 6,
|
|
||||||
errorReason_errorInitBlocked = 7,
|
|
||||||
errorReason_errorAvatarTooLarge = 8,
|
|
||||||
errorReason_errorInvalidPacket = 256,
|
|
||||||
errorReason_errorInvalidState = 257,
|
|
||||||
errorReason_errorKickedFromServer = 258,
|
|
||||||
errorReason_errorBannedFromServer = 259,
|
|
||||||
errorReason_errorBlockedByServer = 260,
|
|
||||||
errorReason_errorSessionTimeout = 261
|
|
||||||
}
|
|
||||||
e_errorReason;
|
|
||||||
|
|
||||||
/* ErrorMessage */
|
|
||||||
typedef struct ErrorMessage {
|
|
||||||
long errorReason;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} ErrorMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
/* extern asn_TYPE_descriptor_t asn_DEF_errorReason_2; // (Use -fall-defs-global to expose) */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_ErrorMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _ErrorMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameAdminChanged.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameAdminChanged_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameAdminChanged, newAdminPlayerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"newAdminPlayerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameAdminChanged_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameAdminChanged_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* newAdminPlayerId at 387 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameAdminChanged_specs_1 = {
|
|
||||||
sizeof(struct GameAdminChanged),
|
|
||||||
offsetof(struct GameAdminChanged, _asn_ctx),
|
|
||||||
asn_MAP_GameAdminChanged_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameAdminChanged = {
|
|
||||||
"GameAdminChanged",
|
|
||||||
"GameAdminChanged",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameAdminChanged_tags_1,
|
|
||||||
sizeof(asn_DEF_GameAdminChanged_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameAdminChanged_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GameAdminChanged_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameAdminChanged_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameAdminChanged_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameAdminChanged_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_GameAdminChanged_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameAdminChanged_H_
|
|
||||||
#define _GameAdminChanged_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GameAdminChanged */
|
|
||||||
typedef struct GameAdminChanged {
|
|
||||||
NonZeroId_t newAdminPlayerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameAdminChanged_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameAdminChanged;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameAdminChanged_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameListAdminChanged.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameListAdminChanged_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListAdminChanged, newAdminPlayerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"newAdminPlayerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameListAdminChanged_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameListAdminChanged_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* newAdminPlayerId at 233 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameListAdminChanged_specs_1 = {
|
|
||||||
sizeof(struct GameListAdminChanged),
|
|
||||||
offsetof(struct GameListAdminChanged, _asn_ctx),
|
|
||||||
asn_MAP_GameListAdminChanged_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameListAdminChanged = {
|
|
||||||
"GameListAdminChanged",
|
|
||||||
"GameListAdminChanged",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameListAdminChanged_tags_1,
|
|
||||||
sizeof(asn_DEF_GameListAdminChanged_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListAdminChanged_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GameListAdminChanged_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameListAdminChanged_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListAdminChanged_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameListAdminChanged_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_GameListAdminChanged_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameListAdminChanged_H_
|
|
||||||
#define _GameListAdminChanged_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GameListAdminChanged */
|
|
||||||
typedef struct GameListAdminChanged {
|
|
||||||
NonZeroId_t newAdminPlayerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameListAdminChanged_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameListAdminChanged;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameListAdminChanged_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-161
@@ -1,161 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameListMessage.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_gameListNotification_3[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct gameListNotification, choice.gameListNew),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_GameListNew,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameListNew"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct gameListNotification, choice.gameListUpdate),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_GameListUpdate,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameListUpdate"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct gameListNotification, choice.gameListPlayerJoined),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_GameListPlayerJoined,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameListPlayerJoined"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct gameListNotification, choice.gameListPlayerLeft),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_GameListPlayerLeft,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameListPlayerLeft"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct gameListNotification, choice.gameListAdminChanged),
|
|
||||||
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
|
||||||
-1, /* IMPLICIT tag at current level */
|
|
||||||
&asn_DEF_GameListAdminChanged,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameListAdminChanged"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_gameListNotification_tag2el_3[] = {
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gameListNew at 203 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gameListUpdate at 204 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gameListPlayerJoined at 205 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gameListPlayerLeft at 206 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* gameListAdminChanged at 208 */
|
|
||||||
};
|
|
||||||
static asn_CHOICE_specifics_t asn_SPC_gameListNotification_specs_3 = {
|
|
||||||
sizeof(struct gameListNotification),
|
|
||||||
offsetof(struct gameListNotification, _asn_ctx),
|
|
||||||
offsetof(struct gameListNotification, present),
|
|
||||||
sizeof(((struct gameListNotification *)0)->present),
|
|
||||||
asn_MAP_gameListNotification_tag2el_3,
|
|
||||||
5, /* Count of tags in the map */
|
|
||||||
0,
|
|
||||||
5 /* Extensions start */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_gameListNotification_3 = {
|
|
||||||
"gameListNotification",
|
|
||||||
"gameListNotification",
|
|
||||||
CHOICE_free,
|
|
||||||
CHOICE_print,
|
|
||||||
CHOICE_constraint,
|
|
||||||
CHOICE_decode_ber,
|
|
||||||
CHOICE_encode_der,
|
|
||||||
CHOICE_decode_xer,
|
|
||||||
CHOICE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
CHOICE_outmost_tag,
|
|
||||||
0, /* No effective tags (pointer) */
|
|
||||||
0, /* No effective tags (count) */
|
|
||||||
0, /* No tags (pointer) */
|
|
||||||
0, /* No tags (count) */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_gameListNotification_3,
|
|
||||||
5, /* Elements count */
|
|
||||||
&asn_SPC_gameListNotification_specs_3 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameListMessage_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListMessage, gameId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListMessage, gameListNotification),
|
|
||||||
-1 /* Ambiguous tag (CHOICE?) */,
|
|
||||||
0,
|
|
||||||
&asn_DEF_gameListNotification_3,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameListNotification"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameListMessage_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_APPLICATION | (7 << 2)),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameListMessage_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 201 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* gameListNew at 203 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gameListUpdate at 204 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* gameListPlayerJoined at 205 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 }, /* gameListPlayerLeft at 206 */
|
|
||||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 1, 0, 0 } /* gameListAdminChanged at 208 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameListMessage_specs_1 = {
|
|
||||||
sizeof(struct GameListMessage),
|
|
||||||
offsetof(struct GameListMessage, _asn_ctx),
|
|
||||||
asn_MAP_GameListMessage_tag2el_1,
|
|
||||||
6, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameListMessage = {
|
|
||||||
"GameListMessage",
|
|
||||||
"GameListMessage",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameListMessage_tags_1,
|
|
||||||
sizeof(asn_DEF_GameListMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListMessage_tags_1[0]) - 1, /* 1 */
|
|
||||||
asn_DEF_GameListMessage_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameListMessage_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListMessage_tags_1[0]), /* 2 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameListMessage_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_GameListMessage_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-78
@@ -1,78 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameListMessage_H_
|
|
||||||
#define _GameListMessage_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "GameListNew.h"
|
|
||||||
#include "GameListUpdate.h"
|
|
||||||
#include "GameListPlayerJoined.h"
|
|
||||||
#include "GameListPlayerLeft.h"
|
|
||||||
#include "GameListAdminChanged.h"
|
|
||||||
#include <constr_CHOICE.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Dependencies */
|
|
||||||
typedef enum gameListNotification_PR {
|
|
||||||
gameListNotification_PR_NOTHING, /* No components present */
|
|
||||||
gameListNotification_PR_gameListNew,
|
|
||||||
gameListNotification_PR_gameListUpdate,
|
|
||||||
gameListNotification_PR_gameListPlayerJoined,
|
|
||||||
gameListNotification_PR_gameListPlayerLeft,
|
|
||||||
gameListNotification_PR_gameListAdminChanged,
|
|
||||||
/* Extensions may appear below */
|
|
||||||
|
|
||||||
}
|
|
||||||
gameListNotification_PR;
|
|
||||||
|
|
||||||
/* GameListMessage */
|
|
||||||
typedef struct GameListMessage {
|
|
||||||
NonZeroId_t gameId;
|
|
||||||
struct gameListNotification {
|
|
||||||
gameListNotification_PR present;
|
|
||||||
union GameListMessage__gameListNotification_u {
|
|
||||||
GameListNew_t gameListNew;
|
|
||||||
GameListUpdate_t gameListUpdate;
|
|
||||||
GameListPlayerJoined_t gameListPlayerJoined;
|
|
||||||
GameListPlayerLeft_t gameListPlayerLeft;
|
|
||||||
GameListAdminChanged_t gameListAdminChanged;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
} choice;
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} gameListNotification;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameListMessage_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameListMessage;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameListMessage_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
Vendored
-169
@@ -1,169 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameListNew.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
memb_playerIds_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if(!sptr) {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: value not given (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Determine the number of elements */
|
|
||||||
size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
|
|
||||||
|
|
||||||
if((size <= 10)) {
|
|
||||||
/* Perform validation of the inner elements */
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
} else {
|
|
||||||
_ASN_CTFAIL(app_key, td, sptr,
|
|
||||||
"%s: constraint failed (%s:%d)",
|
|
||||||
td->name, __FILE__, __LINE__);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_playerIds_4[] = {
|
|
||||||
{ ATF_POINTER, 0, 0,
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
""
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_playerIds_tags_4[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_SET_OF_specifics_t asn_SPC_playerIds_specs_4 = {
|
|
||||||
sizeof(struct playerIds),
|
|
||||||
offsetof(struct playerIds, _asn_ctx),
|
|
||||||
0, /* XER encoding is XMLDelimitedItemList */
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_playerIds_4 = {
|
|
||||||
"playerIds",
|
|
||||||
"playerIds",
|
|
||||||
SEQUENCE_OF_free,
|
|
||||||
SEQUENCE_OF_print,
|
|
||||||
SEQUENCE_OF_constraint,
|
|
||||||
SEQUENCE_OF_decode_ber,
|
|
||||||
SEQUENCE_OF_encode_der,
|
|
||||||
SEQUENCE_OF_decode_xer,
|
|
||||||
SEQUENCE_OF_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_playerIds_tags_4,
|
|
||||||
sizeof(asn_DEF_playerIds_tags_4)
|
|
||||||
/sizeof(asn_DEF_playerIds_tags_4[0]), /* 1 */
|
|
||||||
asn_DEF_playerIds_tags_4, /* Same as above */
|
|
||||||
sizeof(asn_DEF_playerIds_tags_4)
|
|
||||||
/sizeof(asn_DEF_playerIds_tags_4[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_playerIds_4,
|
|
||||||
1, /* Single element */
|
|
||||||
&asn_SPC_playerIds_specs_4 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameListNew_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListNew, gameMode),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NetGameMode,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameMode"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListNew, isPrivate),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_BOOLEAN,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"isPrivate"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListNew, playerIds),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_playerIds_4,
|
|
||||||
memb_playerIds_constraint_1,
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerIds"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListNew, adminPlayerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"adminPlayerId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListNew, gameInfo),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NetGameInfo,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameInfo"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameListNew_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameListNew_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 1, 0, 0 }, /* isPrivate at 213 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, 0, 0 }, /* adminPlayerId at 215 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* gameMode at 212 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 1 }, /* playerIds at 214 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, -1, 0 } /* gameInfo at 217 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameListNew_specs_1 = {
|
|
||||||
sizeof(struct GameListNew),
|
|
||||||
offsetof(struct GameListNew, _asn_ctx),
|
|
||||||
asn_MAP_GameListNew_tag2el_1,
|
|
||||||
5, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
4, /* Start extensions */
|
|
||||||
6 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameListNew = {
|
|
||||||
"GameListNew",
|
|
||||||
"GameListNew",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameListNew_tags_1,
|
|
||||||
sizeof(asn_DEF_GameListNew_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListNew_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GameListNew_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameListNew_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListNew_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameListNew_1,
|
|
||||||
5, /* Elements count */
|
|
||||||
&asn_SPC_GameListNew_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Vendored
-56
@@ -1,56 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameListNew_H_
|
|
||||||
#define _GameListNew_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NetGameMode.h"
|
|
||||||
#include <BOOLEAN.h>
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include "NetGameInfo.h"
|
|
||||||
#include <asn_SEQUENCE_OF.h>
|
|
||||||
#include <constr_SEQUENCE_OF.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GameListNew */
|
|
||||||
typedef struct GameListNew {
|
|
||||||
NetGameMode_t gameMode;
|
|
||||||
BOOLEAN_t isPrivate;
|
|
||||||
struct playerIds {
|
|
||||||
A_SEQUENCE_OF(NonZeroId_t) list;
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} playerIds;
|
|
||||||
NonZeroId_t adminPlayerId;
|
|
||||||
NetGameInfo_t gameInfo;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameListNew_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameListNew;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameListNew_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameListPlayerJoined.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameListPlayerJoined_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListPlayerJoined, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameListPlayerJoined_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameListPlayerJoined_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 225 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameListPlayerJoined_specs_1 = {
|
|
||||||
sizeof(struct GameListPlayerJoined),
|
|
||||||
offsetof(struct GameListPlayerJoined, _asn_ctx),
|
|
||||||
asn_MAP_GameListPlayerJoined_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameListPlayerJoined = {
|
|
||||||
"GameListPlayerJoined",
|
|
||||||
"GameListPlayerJoined",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameListPlayerJoined_tags_1,
|
|
||||||
sizeof(asn_DEF_GameListPlayerJoined_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListPlayerJoined_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GameListPlayerJoined_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameListPlayerJoined_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListPlayerJoined_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameListPlayerJoined_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_GameListPlayerJoined_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameListPlayerJoined_H_
|
|
||||||
#define _GameListPlayerJoined_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GameListPlayerJoined */
|
|
||||||
typedef struct GameListPlayerJoined {
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameListPlayerJoined_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameListPlayerJoined;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameListPlayerJoined_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameListPlayerLeft.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameListPlayerLeft_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListPlayerLeft, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameListPlayerLeft_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameListPlayerLeft_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 229 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameListPlayerLeft_specs_1 = {
|
|
||||||
sizeof(struct GameListPlayerLeft),
|
|
||||||
offsetof(struct GameListPlayerLeft, _asn_ctx),
|
|
||||||
asn_MAP_GameListPlayerLeft_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameListPlayerLeft = {
|
|
||||||
"GameListPlayerLeft",
|
|
||||||
"GameListPlayerLeft",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameListPlayerLeft_tags_1,
|
|
||||||
sizeof(asn_DEF_GameListPlayerLeft_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListPlayerLeft_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GameListPlayerLeft_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameListPlayerLeft_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListPlayerLeft_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameListPlayerLeft_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_GameListPlayerLeft_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameListPlayerLeft_H_
|
|
||||||
#define _GameListPlayerLeft_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GameListPlayerLeft */
|
|
||||||
typedef struct GameListPlayerLeft {
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameListPlayerLeft_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameListPlayerLeft;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameListPlayerLeft_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-59
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GameListUpdate.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GameListUpdate_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GameListUpdate, gameMode),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NetGameMode,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gameMode"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GameListUpdate_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GameListUpdate_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* gameMode at 221 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GameListUpdate_specs_1 = {
|
|
||||||
sizeof(struct GameListUpdate),
|
|
||||||
offsetof(struct GameListUpdate, _asn_ctx),
|
|
||||||
asn_MAP_GameListUpdate_tag2el_1,
|
|
||||||
1, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
0, /* Start extensions */
|
|
||||||
2 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GameListUpdate = {
|
|
||||||
"GameListUpdate",
|
|
||||||
"GameListUpdate",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GameListUpdate_tags_1,
|
|
||||||
sizeof(asn_DEF_GameListUpdate_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListUpdate_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GameListUpdate_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GameListUpdate_tags_1)
|
|
||||||
/sizeof(asn_DEF_GameListUpdate_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GameListUpdate_1,
|
|
||||||
1, /* Elements count */
|
|
||||||
&asn_SPC_GameListUpdate_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GameListUpdate_H_
|
|
||||||
#define _GameListUpdate_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NetGameMode.h"
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GameListUpdate */
|
|
||||||
typedef struct GameListUpdate {
|
|
||||||
NetGameMode_t gameMode;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GameListUpdate_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GameListUpdate;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GameListUpdate_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-69
@@ -1,69 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GamePlayerJoined.h"
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GamePlayerJoined_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerJoined, isGameAdmin),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_BOOLEAN,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"isGameAdmin"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GamePlayerJoined_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GamePlayerJoined_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 1, 0, 0 }, /* isGameAdmin at 373 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 372 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerJoined_specs_1 = {
|
|
||||||
sizeof(struct GamePlayerJoined),
|
|
||||||
offsetof(struct GamePlayerJoined, _asn_ctx),
|
|
||||||
asn_MAP_GamePlayerJoined_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GamePlayerJoined = {
|
|
||||||
"GamePlayerJoined",
|
|
||||||
"GamePlayerJoined",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GamePlayerJoined_tags_1,
|
|
||||||
sizeof(asn_DEF_GamePlayerJoined_tags_1)
|
|
||||||
/sizeof(asn_DEF_GamePlayerJoined_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GamePlayerJoined_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GamePlayerJoined_tags_1)
|
|
||||||
/sizeof(asn_DEF_GamePlayerJoined_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GamePlayerJoined_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_GamePlayerJoined_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GamePlayerJoined_H_
|
|
||||||
#define _GamePlayerJoined_H_
|
|
||||||
|
|
||||||
|
|
||||||
#include <asn_application.h>
|
|
||||||
|
|
||||||
/* Including external dependencies */
|
|
||||||
#include "NonZeroId.h"
|
|
||||||
#include <BOOLEAN.h>
|
|
||||||
#include <constr_SEQUENCE.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GamePlayerJoined */
|
|
||||||
typedef struct GamePlayerJoined {
|
|
||||||
NonZeroId_t playerId;
|
|
||||||
BOOLEAN_t isGameAdmin;
|
|
||||||
/*
|
|
||||||
* This type is extensible,
|
|
||||||
* possible extensions are below.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Context for parsing across buffer boundaries */
|
|
||||||
asn_struct_ctx_t _asn_ctx;
|
|
||||||
} GamePlayerJoined_t;
|
|
||||||
|
|
||||||
/* Implementation */
|
|
||||||
extern asn_TYPE_descriptor_t asn_DEF_GamePlayerJoined;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GamePlayerJoined_H_ */
|
|
||||||
#include <asn_internal.h>
|
|
||||||
-188
@@ -1,188 +0,0 @@
|
|||||||
/*
|
|
||||||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
|
|
||||||
* From ASN.1 module "POKERTH-PROTOCOL"
|
|
||||||
* found in "../../../docs/pokerth.asn1"
|
|
||||||
* `asn1c -fskeletons-copy`
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "GamePlayerLeft.h"
|
|
||||||
|
|
||||||
static int
|
|
||||||
gamePlayerLeftReason_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
|
||||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
|
||||||
/* Replace with underlying type checker */
|
|
||||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
|
||||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This type is implemented using NativeEnumerated,
|
|
||||||
* so here we adjust the DEF accordingly.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
|
||||||
td->free_struct = asn_DEF_NativeEnumerated.free_struct;
|
|
||||||
td->print_struct = asn_DEF_NativeEnumerated.print_struct;
|
|
||||||
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder;
|
|
||||||
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder;
|
|
||||||
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder;
|
|
||||||
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder;
|
|
||||||
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder;
|
|
||||||
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
|
|
||||||
if(!td->per_constraints)
|
|
||||||
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
|
|
||||||
td->elements = asn_DEF_NativeEnumerated.elements;
|
|
||||||
td->elements_count = asn_DEF_NativeEnumerated.elements_count;
|
|
||||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gamePlayerLeftReason_3_free(asn_TYPE_descriptor_t *td,
|
|
||||||
void *struct_ptr, int contents_only) {
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(td);
|
|
||||||
td->free_struct(td, struct_ptr, contents_only);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
gamePlayerLeftReason_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
|
||||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(td);
|
|
||||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
gamePlayerLeftReason_3_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) {
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(td);
|
|
||||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
gamePlayerLeftReason_3_encode_der(asn_TYPE_descriptor_t *td,
|
|
||||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(td);
|
|
||||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_dec_rval_t
|
|
||||||
gamePlayerLeftReason_3_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) {
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_enc_rval_t
|
|
||||||
gamePlayerLeftReason_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
|
|
||||||
int ilevel, enum xer_encoder_flags_e flags,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
|
||||||
gamePlayerLeftReason_3_inherit_TYPE_descriptor(td);
|
|
||||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
||||||
}
|
|
||||||
|
|
||||||
static asn_INTEGER_enum_map_t asn_MAP_gamePlayerLeftReason_value2enum_3[] = {
|
|
||||||
{ 0, 13, "leftOnRequest" },
|
|
||||||
{ 1, 10, "leftKicked" },
|
|
||||||
{ 2, 9, "leftError" }
|
|
||||||
};
|
|
||||||
static unsigned int asn_MAP_gamePlayerLeftReason_enum2value_3[] = {
|
|
||||||
2, /* leftError(2) */
|
|
||||||
1, /* leftKicked(1) */
|
|
||||||
0 /* leftOnRequest(0) */
|
|
||||||
};
|
|
||||||
static asn_INTEGER_specifics_t asn_SPC_gamePlayerLeftReason_specs_3 = {
|
|
||||||
asn_MAP_gamePlayerLeftReason_value2enum_3, /* "tag" => N; sorted by tag */
|
|
||||||
asn_MAP_gamePlayerLeftReason_enum2value_3, /* N => "tag"; sorted by N */
|
|
||||||
3, /* Number of elements in the maps */
|
|
||||||
0, /* Enumeration is not extensible */
|
|
||||||
1, /* Strict enumeration */
|
|
||||||
0, /* Native long size */
|
|
||||||
0
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_gamePlayerLeftReason_tags_3[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
|
|
||||||
};
|
|
||||||
static /* Use -fall-defs-global to expose */
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_gamePlayerLeftReason_3 = {
|
|
||||||
"gamePlayerLeftReason",
|
|
||||||
"gamePlayerLeftReason",
|
|
||||||
gamePlayerLeftReason_3_free,
|
|
||||||
gamePlayerLeftReason_3_print,
|
|
||||||
gamePlayerLeftReason_3_constraint,
|
|
||||||
gamePlayerLeftReason_3_decode_ber,
|
|
||||||
gamePlayerLeftReason_3_encode_der,
|
|
||||||
gamePlayerLeftReason_3_decode_xer,
|
|
||||||
gamePlayerLeftReason_3_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_gamePlayerLeftReason_tags_3,
|
|
||||||
sizeof(asn_DEF_gamePlayerLeftReason_tags_3)
|
|
||||||
/sizeof(asn_DEF_gamePlayerLeftReason_tags_3[0]), /* 1 */
|
|
||||||
asn_DEF_gamePlayerLeftReason_tags_3, /* Same as above */
|
|
||||||
sizeof(asn_DEF_gamePlayerLeftReason_tags_3)
|
|
||||||
/sizeof(asn_DEF_gamePlayerLeftReason_tags_3[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
0, 0, /* Defined elsewhere */
|
|
||||||
&asn_SPC_gamePlayerLeftReason_specs_3 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static asn_TYPE_member_t asn_MBR_GamePlayerLeft_1[] = {
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerLeft, playerId),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_NonZeroId,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"playerId"
|
|
||||||
},
|
|
||||||
{ ATF_NOFLAGS, 0, offsetof(struct GamePlayerLeft, gamePlayerLeftReason),
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
|
||||||
0,
|
|
||||||
&asn_DEF_gamePlayerLeftReason_3,
|
|
||||||
0, /* Defer constraints checking to the member type */
|
|
||||||
0, /* PER is not compiled, use -gen-PER */
|
|
||||||
0,
|
|
||||||
"gamePlayerLeftReason"
|
|
||||||
},
|
|
||||||
};
|
|
||||||
static ber_tlv_tag_t asn_DEF_GamePlayerLeft_tags_1[] = {
|
|
||||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
||||||
};
|
|
||||||
static asn_TYPE_tag2member_t asn_MAP_GamePlayerLeft_tag2el_1[] = {
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* playerId at 377 */
|
|
||||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* gamePlayerLeftReason at 379 */
|
|
||||||
};
|
|
||||||
static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerLeft_specs_1 = {
|
|
||||||
sizeof(struct GamePlayerLeft),
|
|
||||||
offsetof(struct GamePlayerLeft, _asn_ctx),
|
|
||||||
asn_MAP_GamePlayerLeft_tag2el_1,
|
|
||||||
2, /* Count of tags in the map */
|
|
||||||
0, 0, 0, /* Optional elements (not needed) */
|
|
||||||
1, /* Start extensions */
|
|
||||||
3 /* Stop extensions */
|
|
||||||
};
|
|
||||||
asn_TYPE_descriptor_t asn_DEF_GamePlayerLeft = {
|
|
||||||
"GamePlayerLeft",
|
|
||||||
"GamePlayerLeft",
|
|
||||||
SEQUENCE_free,
|
|
||||||
SEQUENCE_print,
|
|
||||||
SEQUENCE_constraint,
|
|
||||||
SEQUENCE_decode_ber,
|
|
||||||
SEQUENCE_encode_der,
|
|
||||||
SEQUENCE_decode_xer,
|
|
||||||
SEQUENCE_encode_xer,
|
|
||||||
0, 0, /* No PER support, use "-gen-PER" to enable */
|
|
||||||
0, /* Use generic outmost tag fetcher */
|
|
||||||
asn_DEF_GamePlayerLeft_tags_1,
|
|
||||||
sizeof(asn_DEF_GamePlayerLeft_tags_1)
|
|
||||||
/sizeof(asn_DEF_GamePlayerLeft_tags_1[0]), /* 1 */
|
|
||||||
asn_DEF_GamePlayerLeft_tags_1, /* Same as above */
|
|
||||||
sizeof(asn_DEF_GamePlayerLeft_tags_1)
|
|
||||||
/sizeof(asn_DEF_GamePlayerLeft_tags_1[0]), /* 1 */
|
|
||||||
0, /* No PER visible constraints */
|
|
||||||
asn_MBR_GamePlayerLeft_1,
|
|
||||||
2, /* Elements count */
|
|
||||||
&asn_SPC_GamePlayerLeft_specs_1 /* Additional specs */
|
|
||||||
};
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user