From e16d4908bd361dc0ecac58d1c608017969b28d75 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 22 Sep 2012 15:42:59 +0200 Subject: [PATCH] Removing old ASN.1 stuff. --- INSTALL | 3 +- docs/pokerth.asn1 | 3 + pokerth_protocol.pro | 271 +------ .../asn1/AfterHandShowCardsMessage.c | 60 -- .../asn1/AfterHandShowCardsMessage.h | 42 - src/third_party/asn1/AllInShowCardsMessage.c | 140 ---- src/third_party/asn1/AllInShowCardsMessage.h | 56 -- src/third_party/asn1/AmountOfMoney.c | 125 --- src/third_party/asn1/AmountOfMoney.h | 39 - src/third_party/asn1/AnnounceMessage.c | 269 ------- src/third_party/asn1/AnnounceMessage.h | 57 -- src/third_party/asn1/AskKickDeniedMessage.c | 203 ----- src/third_party/asn1/AskKickDeniedMessage.h | 56 -- src/third_party/asn1/AskKickPlayerMessage.c | 70 -- src/third_party/asn1/AskKickPlayerMessage.h | 43 - src/third_party/asn1/AuthClientResponse.c | 85 -- src/third_party/asn1/AuthClientResponse.h | 42 - src/third_party/asn1/AuthMessage.c | 80 -- src/third_party/asn1/AuthMessage.h | 60 -- src/third_party/asn1/AuthServerChallenge.c | 85 -- src/third_party/asn1/AuthServerChallenge.h | 42 - src/third_party/asn1/AuthServerVerification.c | 85 -- src/third_party/asn1/AuthServerVerification.h | 42 - src/third_party/asn1/AuthenticatedLogin.c | 95 --- src/third_party/asn1/AuthenticatedLogin.h | 44 -- src/third_party/asn1/AvatarData.c | 85 -- src/third_party/asn1/AvatarData.h | 42 - src/third_party/asn1/AvatarEnd.c | 44 -- src/third_party/asn1/AvatarEnd.h | 40 - src/third_party/asn1/AvatarHash.c | 126 --- src/third_party/asn1/AvatarHash.h | 39 - src/third_party/asn1/AvatarHeader.c | 94 --- src/third_party/asn1/AvatarHeader.h | 44 -- src/third_party/asn1/AvatarReplyMessage.c | 150 ---- src/third_party/asn1/AvatarReplyMessage.h | 75 -- src/third_party/asn1/AvatarRequestMessage.c | 70 -- src/third_party/asn1/AvatarRequestMessage.h | 44 -- src/third_party/asn1/Card.c | 125 --- src/third_party/asn1/Card.h | 39 - src/third_party/asn1/ChatMessage.c | 193 ----- src/third_party/asn1/ChatMessage.h | 78 -- src/third_party/asn1/ChatRejectMessage.c | 92 --- src/third_party/asn1/ChatRejectMessage.h | 42 - src/third_party/asn1/ChatRequestMessage.c | 171 ---- src/third_party/asn1/ChatRequestMessage.h | 72 -- src/third_party/asn1/ChatRequestTypeGame.c | 59 -- src/third_party/asn1/ChatRequestTypeGame.h | 42 - src/third_party/asn1/ChatRequestTypeLobby.c | 44 -- src/third_party/asn1/ChatRequestTypeLobby.h | 40 - src/third_party/asn1/ChatRequestTypePrivate.c | 59 -- src/third_party/asn1/ChatRequestTypePrivate.h | 42 - src/third_party/asn1/ChatTypeBot.c | 44 -- src/third_party/asn1/ChatTypeBot.h | 40 - src/third_party/asn1/ChatTypeBroadcast.c | 44 -- src/third_party/asn1/ChatTypeBroadcast.h | 40 - src/third_party/asn1/ChatTypeGame.c | 69 -- src/third_party/asn1/ChatTypeGame.h | 43 - src/third_party/asn1/ChatTypeLobby.c | 59 -- src/third_party/asn1/ChatTypeLobby.h | 42 - src/third_party/asn1/ChatTypePrivate.c | 59 -- src/third_party/asn1/ChatTypePrivate.h | 42 - src/third_party/asn1/DealFlopCardsMessage.c | 90 --- src/third_party/asn1/DealFlopCardsMessage.h | 46 -- src/third_party/asn1/DealRiverCardMessage.c | 70 -- src/third_party/asn1/DealRiverCardMessage.h | 44 -- src/third_party/asn1/DealTurnCardMessage.c | 70 -- src/third_party/asn1/DealTurnCardMessage.h | 44 -- src/third_party/asn1/DialogMessage.c | 92 --- src/third_party/asn1/DialogMessage.h | 42 - src/third_party/asn1/EncryptedCards.c | 85 -- src/third_party/asn1/EncryptedCards.h | 42 - src/third_party/asn1/EndKickPetitionMessage.c | 281 ------- src/third_party/asn1/EndKickPetitionMessage.h | 60 -- src/third_party/asn1/EndOfGameMessage.c | 70 -- src/third_party/asn1/EndOfGameMessage.h | 43 - src/third_party/asn1/EndOfHandHideCards.c | 79 -- src/third_party/asn1/EndOfHandHideCards.h | 45 -- src/third_party/asn1/EndOfHandMessage.c | 128 --- src/third_party/asn1/EndOfHandMessage.h | 69 -- src/third_party/asn1/EndOfHandShowCards.c | 129 --- src/third_party/asn1/EndOfHandShowCards.h | 54 -- src/third_party/asn1/ErrorMessage.c | 203 ----- src/third_party/asn1/ErrorMessage.h | 63 -- src/third_party/asn1/GameAdminChanged.c | 59 -- src/third_party/asn1/GameAdminChanged.h | 42 - src/third_party/asn1/GameListAdminChanged.c | 59 -- src/third_party/asn1/GameListAdminChanged.h | 42 - src/third_party/asn1/GameListMessage.c | 161 ---- src/third_party/asn1/GameListMessage.h | 78 -- src/third_party/asn1/GameListNew.c | 169 ---- src/third_party/asn1/GameListNew.h | 56 -- src/third_party/asn1/GameListPlayerJoined.c | 59 -- src/third_party/asn1/GameListPlayerJoined.h | 42 - src/third_party/asn1/GameListPlayerLeft.c | 59 -- src/third_party/asn1/GameListPlayerLeft.h | 42 - src/third_party/asn1/GameListUpdate.c | 59 -- src/third_party/asn1/GameListUpdate.h | 42 - src/third_party/asn1/GamePlayerJoined.c | 69 -- src/third_party/asn1/GamePlayerJoined.h | 44 -- src/third_party/asn1/GamePlayerLeft.c | 188 ----- src/third_party/asn1/GamePlayerLeft.h | 53 -- src/third_party/asn1/GamePlayerMessage.c | 150 ---- src/third_party/asn1/GamePlayerMessage.h | 75 -- src/third_party/asn1/GameStartMessage.c | 138 ---- src/third_party/asn1/GameStartMessage.h | 70 -- src/third_party/asn1/GameStartModeInitial.c | 129 --- src/third_party/asn1/GameStartModeInitial.h | 49 -- src/third_party/asn1/GameStartModeRejoin.c | 139 ---- src/third_party/asn1/GameStartModeRejoin.h | 56 -- src/third_party/asn1/GuestLogin.c | 91 --- src/third_party/asn1/GuestLogin.h | 42 - src/third_party/asn1/Guid.c | 126 --- src/third_party/asn1/Guid.h | 39 - src/third_party/asn1/HandStartMessage.c | 243 ------ src/third_party/asn1/HandStartMessage.h | 80 -- src/third_party/asn1/Id.c | 123 --- src/third_party/asn1/Id.h | 39 - src/third_party/asn1/InitAckMessage.c | 90 --- src/third_party/asn1/InitAckMessage.h | 47 -- src/third_party/asn1/InitMessage.c | 201 ----- src/third_party/asn1/InitMessage.h | 78 -- src/third_party/asn1/InitialAmountOfMoney.c | 125 --- src/third_party/asn1/InitialAmountOfMoney.h | 39 - .../asn1/InitialNonZeroAmountOfMoney.c | 125 --- .../asn1/InitialNonZeroAmountOfMoney.h | 39 - src/third_party/asn1/InviteNotifyMessage.c | 80 -- src/third_party/asn1/InviteNotifyMessage.h | 44 -- .../asn1/InvitePlayerToGameMessage.c | 70 -- .../asn1/InvitePlayerToGameMessage.h | 43 - src/third_party/asn1/JoinExistingGame.c | 101 --- src/third_party/asn1/JoinExistingGame.h | 44 -- src/third_party/asn1/JoinGameAck.c | 69 -- src/third_party/asn1/JoinGameAck.h | 44 -- src/third_party/asn1/JoinGameFailed.c | 194 ----- src/third_party/asn1/JoinGameFailed.h | 59 -- src/third_party/asn1/JoinGameReplyMessage.c | 128 --- src/third_party/asn1/JoinGameReplyMessage.h | 69 -- src/third_party/asn1/JoinGameRequestMessage.c | 139 ---- src/third_party/asn1/JoinGameRequestMessage.h | 72 -- src/third_party/asn1/JoinNewGame.c | 101 --- src/third_party/asn1/JoinNewGame.h | 44 -- .../asn1/KickPetitionUpdateMessage.c | 175 ---- .../asn1/KickPetitionUpdateMessage.h | 47 -- .../asn1/KickPlayerRequestMessage.c | 70 -- .../asn1/KickPlayerRequestMessage.h | 43 - .../asn1/LeaveGameRequestMessage.c | 60 -- .../asn1/LeaveGameRequestMessage.h | 42 - src/third_party/asn1/MyActionRequestMessage.c | 100 --- src/third_party/asn1/MyActionRequestMessage.h | 49 -- src/third_party/asn1/NetAvatarType.c | 127 --- src/third_party/asn1/NetAvatarType.h | 47 -- src/third_party/asn1/NetGameInfo.c | 744 ------------------ src/third_party/asn1/NetGameInfo.h | 101 --- src/third_party/asn1/NetGameMode.c | 127 --- src/third_party/asn1/NetGameMode.h | 47 -- src/third_party/asn1/NetGameState.c | 133 ---- src/third_party/asn1/NetGameState.h | 50 -- src/third_party/asn1/NetPlayerAction.c | 135 ---- src/third_party/asn1/NetPlayerAction.h | 51 -- src/third_party/asn1/NetPlayerState.c | 127 --- src/third_party/asn1/NetPlayerState.h | 47 -- src/third_party/asn1/NonZeroId.c | 130 --- src/third_party/asn1/NonZeroId.h | 39 - src/third_party/asn1/PlainCards.c | 69 -- src/third_party/asn1/PlainCards.h | 43 - src/third_party/asn1/PlayerAllIn.c | 79 -- src/third_party/asn1/PlayerAllIn.h | 45 -- src/third_party/asn1/PlayerIdChangedMessage.c | 70 -- src/third_party/asn1/PlayerIdChangedMessage.h | 43 - src/third_party/asn1/PlayerInfoData.c | 224 ------ src/third_party/asn1/PlayerInfoData.h | 60 -- src/third_party/asn1/PlayerInfoReplyMessage.c | 128 --- src/third_party/asn1/PlayerInfoReplyMessage.h | 69 -- .../asn1/PlayerInfoRequestMessage.c | 60 -- .../asn1/PlayerInfoRequestMessage.h | 42 - src/third_party/asn1/PlayerInfoRights.c | 127 --- src/third_party/asn1/PlayerInfoRights.h | 47 -- src/third_party/asn1/PlayerListMessage.c | 187 ----- src/third_party/asn1/PlayerListMessage.h | 52 -- src/third_party/asn1/PlayerResult.c | 189 ----- src/third_party/asn1/PlayerResult.h | 58 -- .../asn1/PlayersActionDoneMessage.c | 130 --- .../asn1/PlayersActionDoneMessage.h | 52 -- src/third_party/asn1/PlayersTurnMessage.c | 80 -- src/third_party/asn1/PlayersTurnMessage.h | 45 -- src/third_party/asn1/PokerTHMessage.c | 605 -------------- src/third_party/asn1/PokerTHMessage.h | 219 ------ src/third_party/asn1/RejectGameInvReason.c | 125 --- src/third_party/asn1/RejectGameInvReason.h | 46 -- .../asn1/RejectGameInvitationMessage.c | 70 -- .../asn1/RejectGameInvitationMessage.h | 44 -- src/third_party/asn1/RejectInvNotifyMessage.c | 80 -- src/third_party/asn1/RejectInvNotifyMessage.h | 45 -- src/third_party/asn1/RejoinEvent.c | 44 -- src/third_party/asn1/RejoinEvent.h | 40 - src/third_party/asn1/RejoinExistingGame.c | 59 -- src/third_party/asn1/RejoinExistingGame.h | 42 - src/third_party/asn1/RejoinPlayerData.c | 69 -- src/third_party/asn1/RejoinPlayerData.h | 44 -- src/third_party/asn1/RemovedFromGame.c | 184 ----- src/third_party/asn1/RemovedFromGame.h | 54 -- src/third_party/asn1/ReportAvatarAckMessage.c | 189 ----- src/third_party/asn1/ReportAvatarAckMessage.h | 53 -- src/third_party/asn1/ReportAvatarMessage.c | 70 -- src/third_party/asn1/ReportAvatarMessage.h | 44 -- src/third_party/asn1/ReportGameAckMessage.c | 189 ----- src/third_party/asn1/ReportGameAckMessage.h | 53 -- src/third_party/asn1/ReportGameMessage.c | 60 -- src/third_party/asn1/ReportGameMessage.h | 42 - src/third_party/asn1/ResetTimeoutMessage.c | 45 -- src/third_party/asn1/ResetTimeoutMessage.h | 40 - .../asn1/ShowMyCardsRequestMessage.c | 45 -- .../asn1/ShowMyCardsRequestMessage.h | 40 - src/third_party/asn1/StartEvent.c | 59 -- src/third_party/asn1/StartEvent.h | 42 - src/third_party/asn1/StartEventAckMessage.c | 60 -- src/third_party/asn1/StartEventAckMessage.h | 42 - src/third_party/asn1/StartEventMessage.c | 128 --- src/third_party/asn1/StartEventMessage.h | 69 -- .../asn1/StartKickPetitionMessage.c | 160 ---- .../asn1/StartKickPetitionMessage.h | 48 -- src/third_party/asn1/StatisticsData.c | 184 ----- src/third_party/asn1/StatisticsData.h | 51 -- src/third_party/asn1/StatisticsMessage.c | 130 --- src/third_party/asn1/StatisticsMessage.h | 54 -- .../asn1/SubscriptionRequestMessage.c | 177 ----- .../asn1/SubscriptionRequestMessage.h | 50 -- src/third_party/asn1/TimeoutWarningMessage.c | 189 ----- src/third_party/asn1/TimeoutWarningMessage.h | 53 -- src/third_party/asn1/UnauthenticatedLogin.c | 101 --- src/third_party/asn1/UnauthenticatedLogin.h | 44 -- src/third_party/asn1/UnknownAvatar.c | 44 -- src/third_party/asn1/UnknownAvatar.h | 40 - src/third_party/asn1/UnknownPlayerInfo.c | 44 -- src/third_party/asn1/UnknownPlayerInfo.h | 40 - src/third_party/asn1/Version.c | 119 --- src/third_party/asn1/Version.h | 43 - src/third_party/asn1/VoteKickAck.c | 44 -- src/third_party/asn1/VoteKickAck.h | 40 - src/third_party/asn1/VoteKickDenied.c | 176 ----- src/third_party/asn1/VoteKickDenied.h | 50 -- src/third_party/asn1/VoteKickReplyMessage.c | 138 ---- src/third_party/asn1/VoteKickReplyMessage.h | 70 -- src/third_party/asn1/VoteKickRequestMessage.c | 80 -- src/third_party/asn1/VoteKickRequestMessage.h | 45 -- .../asn1/YourActionRejectedMessage.c | 219 ------ .../asn1/YourActionRejectedMessage.h | 59 -- 247 files changed, 19 insertions(+), 21239 deletions(-) delete mode 100644 src/third_party/asn1/AfterHandShowCardsMessage.c delete mode 100644 src/third_party/asn1/AfterHandShowCardsMessage.h delete mode 100644 src/third_party/asn1/AllInShowCardsMessage.c delete mode 100644 src/third_party/asn1/AllInShowCardsMessage.h delete mode 100644 src/third_party/asn1/AmountOfMoney.c delete mode 100644 src/third_party/asn1/AmountOfMoney.h delete mode 100644 src/third_party/asn1/AnnounceMessage.c delete mode 100644 src/third_party/asn1/AnnounceMessage.h delete mode 100644 src/third_party/asn1/AskKickDeniedMessage.c delete mode 100644 src/third_party/asn1/AskKickDeniedMessage.h delete mode 100644 src/third_party/asn1/AskKickPlayerMessage.c delete mode 100644 src/third_party/asn1/AskKickPlayerMessage.h delete mode 100644 src/third_party/asn1/AuthClientResponse.c delete mode 100644 src/third_party/asn1/AuthClientResponse.h delete mode 100644 src/third_party/asn1/AuthMessage.c delete mode 100644 src/third_party/asn1/AuthMessage.h delete mode 100644 src/third_party/asn1/AuthServerChallenge.c delete mode 100644 src/third_party/asn1/AuthServerChallenge.h delete mode 100644 src/third_party/asn1/AuthServerVerification.c delete mode 100644 src/third_party/asn1/AuthServerVerification.h delete mode 100644 src/third_party/asn1/AuthenticatedLogin.c delete mode 100644 src/third_party/asn1/AuthenticatedLogin.h delete mode 100644 src/third_party/asn1/AvatarData.c delete mode 100644 src/third_party/asn1/AvatarData.h delete mode 100644 src/third_party/asn1/AvatarEnd.c delete mode 100644 src/third_party/asn1/AvatarEnd.h delete mode 100644 src/third_party/asn1/AvatarHash.c delete mode 100644 src/third_party/asn1/AvatarHash.h delete mode 100644 src/third_party/asn1/AvatarHeader.c delete mode 100644 src/third_party/asn1/AvatarHeader.h delete mode 100644 src/third_party/asn1/AvatarReplyMessage.c delete mode 100644 src/third_party/asn1/AvatarReplyMessage.h delete mode 100644 src/third_party/asn1/AvatarRequestMessage.c delete mode 100644 src/third_party/asn1/AvatarRequestMessage.h delete mode 100644 src/third_party/asn1/Card.c delete mode 100644 src/third_party/asn1/Card.h delete mode 100644 src/third_party/asn1/ChatMessage.c delete mode 100644 src/third_party/asn1/ChatMessage.h delete mode 100644 src/third_party/asn1/ChatRejectMessage.c delete mode 100644 src/third_party/asn1/ChatRejectMessage.h delete mode 100644 src/third_party/asn1/ChatRequestMessage.c delete mode 100644 src/third_party/asn1/ChatRequestMessage.h delete mode 100644 src/third_party/asn1/ChatRequestTypeGame.c delete mode 100644 src/third_party/asn1/ChatRequestTypeGame.h delete mode 100644 src/third_party/asn1/ChatRequestTypeLobby.c delete mode 100644 src/third_party/asn1/ChatRequestTypeLobby.h delete mode 100644 src/third_party/asn1/ChatRequestTypePrivate.c delete mode 100644 src/third_party/asn1/ChatRequestTypePrivate.h delete mode 100644 src/third_party/asn1/ChatTypeBot.c delete mode 100644 src/third_party/asn1/ChatTypeBot.h delete mode 100644 src/third_party/asn1/ChatTypeBroadcast.c delete mode 100644 src/third_party/asn1/ChatTypeBroadcast.h delete mode 100644 src/third_party/asn1/ChatTypeGame.c delete mode 100644 src/third_party/asn1/ChatTypeGame.h delete mode 100644 src/third_party/asn1/ChatTypeLobby.c delete mode 100644 src/third_party/asn1/ChatTypeLobby.h delete mode 100644 src/third_party/asn1/ChatTypePrivate.c delete mode 100644 src/third_party/asn1/ChatTypePrivate.h delete mode 100644 src/third_party/asn1/DealFlopCardsMessage.c delete mode 100644 src/third_party/asn1/DealFlopCardsMessage.h delete mode 100644 src/third_party/asn1/DealRiverCardMessage.c delete mode 100644 src/third_party/asn1/DealRiverCardMessage.h delete mode 100644 src/third_party/asn1/DealTurnCardMessage.c delete mode 100644 src/third_party/asn1/DealTurnCardMessage.h delete mode 100644 src/third_party/asn1/DialogMessage.c delete mode 100644 src/third_party/asn1/DialogMessage.h delete mode 100644 src/third_party/asn1/EncryptedCards.c delete mode 100644 src/third_party/asn1/EncryptedCards.h delete mode 100644 src/third_party/asn1/EndKickPetitionMessage.c delete mode 100644 src/third_party/asn1/EndKickPetitionMessage.h delete mode 100644 src/third_party/asn1/EndOfGameMessage.c delete mode 100644 src/third_party/asn1/EndOfGameMessage.h delete mode 100644 src/third_party/asn1/EndOfHandHideCards.c delete mode 100644 src/third_party/asn1/EndOfHandHideCards.h delete mode 100644 src/third_party/asn1/EndOfHandMessage.c delete mode 100644 src/third_party/asn1/EndOfHandMessage.h delete mode 100644 src/third_party/asn1/EndOfHandShowCards.c delete mode 100644 src/third_party/asn1/EndOfHandShowCards.h delete mode 100644 src/third_party/asn1/ErrorMessage.c delete mode 100644 src/third_party/asn1/ErrorMessage.h delete mode 100644 src/third_party/asn1/GameAdminChanged.c delete mode 100644 src/third_party/asn1/GameAdminChanged.h delete mode 100644 src/third_party/asn1/GameListAdminChanged.c delete mode 100644 src/third_party/asn1/GameListAdminChanged.h delete mode 100644 src/third_party/asn1/GameListMessage.c delete mode 100644 src/third_party/asn1/GameListMessage.h delete mode 100644 src/third_party/asn1/GameListNew.c delete mode 100644 src/third_party/asn1/GameListNew.h delete mode 100644 src/third_party/asn1/GameListPlayerJoined.c delete mode 100644 src/third_party/asn1/GameListPlayerJoined.h delete mode 100644 src/third_party/asn1/GameListPlayerLeft.c delete mode 100644 src/third_party/asn1/GameListPlayerLeft.h delete mode 100644 src/third_party/asn1/GameListUpdate.c delete mode 100644 src/third_party/asn1/GameListUpdate.h delete mode 100644 src/third_party/asn1/GamePlayerJoined.c delete mode 100644 src/third_party/asn1/GamePlayerJoined.h delete mode 100644 src/third_party/asn1/GamePlayerLeft.c delete mode 100644 src/third_party/asn1/GamePlayerLeft.h delete mode 100644 src/third_party/asn1/GamePlayerMessage.c delete mode 100644 src/third_party/asn1/GamePlayerMessage.h delete mode 100644 src/third_party/asn1/GameStartMessage.c delete mode 100644 src/third_party/asn1/GameStartMessage.h delete mode 100644 src/third_party/asn1/GameStartModeInitial.c delete mode 100644 src/third_party/asn1/GameStartModeInitial.h delete mode 100644 src/third_party/asn1/GameStartModeRejoin.c delete mode 100644 src/third_party/asn1/GameStartModeRejoin.h delete mode 100644 src/third_party/asn1/GuestLogin.c delete mode 100644 src/third_party/asn1/GuestLogin.h delete mode 100644 src/third_party/asn1/Guid.c delete mode 100644 src/third_party/asn1/Guid.h delete mode 100644 src/third_party/asn1/HandStartMessage.c delete mode 100644 src/third_party/asn1/HandStartMessage.h delete mode 100644 src/third_party/asn1/Id.c delete mode 100644 src/third_party/asn1/Id.h delete mode 100644 src/third_party/asn1/InitAckMessage.c delete mode 100644 src/third_party/asn1/InitAckMessage.h delete mode 100644 src/third_party/asn1/InitMessage.c delete mode 100644 src/third_party/asn1/InitMessage.h delete mode 100644 src/third_party/asn1/InitialAmountOfMoney.c delete mode 100644 src/third_party/asn1/InitialAmountOfMoney.h delete mode 100644 src/third_party/asn1/InitialNonZeroAmountOfMoney.c delete mode 100644 src/third_party/asn1/InitialNonZeroAmountOfMoney.h delete mode 100644 src/third_party/asn1/InviteNotifyMessage.c delete mode 100644 src/third_party/asn1/InviteNotifyMessage.h delete mode 100644 src/third_party/asn1/InvitePlayerToGameMessage.c delete mode 100644 src/third_party/asn1/InvitePlayerToGameMessage.h delete mode 100644 src/third_party/asn1/JoinExistingGame.c delete mode 100644 src/third_party/asn1/JoinExistingGame.h delete mode 100644 src/third_party/asn1/JoinGameAck.c delete mode 100644 src/third_party/asn1/JoinGameAck.h delete mode 100644 src/third_party/asn1/JoinGameFailed.c delete mode 100644 src/third_party/asn1/JoinGameFailed.h delete mode 100644 src/third_party/asn1/JoinGameReplyMessage.c delete mode 100644 src/third_party/asn1/JoinGameReplyMessage.h delete mode 100644 src/third_party/asn1/JoinGameRequestMessage.c delete mode 100644 src/third_party/asn1/JoinGameRequestMessage.h delete mode 100644 src/third_party/asn1/JoinNewGame.c delete mode 100644 src/third_party/asn1/JoinNewGame.h delete mode 100644 src/third_party/asn1/KickPetitionUpdateMessage.c delete mode 100644 src/third_party/asn1/KickPetitionUpdateMessage.h delete mode 100644 src/third_party/asn1/KickPlayerRequestMessage.c delete mode 100644 src/third_party/asn1/KickPlayerRequestMessage.h delete mode 100644 src/third_party/asn1/LeaveGameRequestMessage.c delete mode 100644 src/third_party/asn1/LeaveGameRequestMessage.h delete mode 100644 src/third_party/asn1/MyActionRequestMessage.c delete mode 100644 src/third_party/asn1/MyActionRequestMessage.h delete mode 100644 src/third_party/asn1/NetAvatarType.c delete mode 100644 src/third_party/asn1/NetAvatarType.h delete mode 100644 src/third_party/asn1/NetGameInfo.c delete mode 100644 src/third_party/asn1/NetGameInfo.h delete mode 100644 src/third_party/asn1/NetGameMode.c delete mode 100644 src/third_party/asn1/NetGameMode.h delete mode 100644 src/third_party/asn1/NetGameState.c delete mode 100644 src/third_party/asn1/NetGameState.h delete mode 100644 src/third_party/asn1/NetPlayerAction.c delete mode 100644 src/third_party/asn1/NetPlayerAction.h delete mode 100644 src/third_party/asn1/NetPlayerState.c delete mode 100644 src/third_party/asn1/NetPlayerState.h delete mode 100644 src/third_party/asn1/NonZeroId.c delete mode 100644 src/third_party/asn1/NonZeroId.h delete mode 100644 src/third_party/asn1/PlainCards.c delete mode 100644 src/third_party/asn1/PlainCards.h delete mode 100644 src/third_party/asn1/PlayerAllIn.c delete mode 100644 src/third_party/asn1/PlayerAllIn.h delete mode 100644 src/third_party/asn1/PlayerIdChangedMessage.c delete mode 100644 src/third_party/asn1/PlayerIdChangedMessage.h delete mode 100644 src/third_party/asn1/PlayerInfoData.c delete mode 100644 src/third_party/asn1/PlayerInfoData.h delete mode 100644 src/third_party/asn1/PlayerInfoReplyMessage.c delete mode 100644 src/third_party/asn1/PlayerInfoReplyMessage.h delete mode 100644 src/third_party/asn1/PlayerInfoRequestMessage.c delete mode 100644 src/third_party/asn1/PlayerInfoRequestMessage.h delete mode 100644 src/third_party/asn1/PlayerInfoRights.c delete mode 100644 src/third_party/asn1/PlayerInfoRights.h delete mode 100644 src/third_party/asn1/PlayerListMessage.c delete mode 100644 src/third_party/asn1/PlayerListMessage.h delete mode 100644 src/third_party/asn1/PlayerResult.c delete mode 100644 src/third_party/asn1/PlayerResult.h delete mode 100644 src/third_party/asn1/PlayersActionDoneMessage.c delete mode 100644 src/third_party/asn1/PlayersActionDoneMessage.h delete mode 100644 src/third_party/asn1/PlayersTurnMessage.c delete mode 100644 src/third_party/asn1/PlayersTurnMessage.h delete mode 100644 src/third_party/asn1/PokerTHMessage.c delete mode 100644 src/third_party/asn1/PokerTHMessage.h delete mode 100644 src/third_party/asn1/RejectGameInvReason.c delete mode 100644 src/third_party/asn1/RejectGameInvReason.h delete mode 100644 src/third_party/asn1/RejectGameInvitationMessage.c delete mode 100644 src/third_party/asn1/RejectGameInvitationMessage.h delete mode 100644 src/third_party/asn1/RejectInvNotifyMessage.c delete mode 100644 src/third_party/asn1/RejectInvNotifyMessage.h delete mode 100644 src/third_party/asn1/RejoinEvent.c delete mode 100644 src/third_party/asn1/RejoinEvent.h delete mode 100644 src/third_party/asn1/RejoinExistingGame.c delete mode 100644 src/third_party/asn1/RejoinExistingGame.h delete mode 100644 src/third_party/asn1/RejoinPlayerData.c delete mode 100644 src/third_party/asn1/RejoinPlayerData.h delete mode 100644 src/third_party/asn1/RemovedFromGame.c delete mode 100644 src/third_party/asn1/RemovedFromGame.h delete mode 100644 src/third_party/asn1/ReportAvatarAckMessage.c delete mode 100644 src/third_party/asn1/ReportAvatarAckMessage.h delete mode 100644 src/third_party/asn1/ReportAvatarMessage.c delete mode 100644 src/third_party/asn1/ReportAvatarMessage.h delete mode 100644 src/third_party/asn1/ReportGameAckMessage.c delete mode 100644 src/third_party/asn1/ReportGameAckMessage.h delete mode 100644 src/third_party/asn1/ReportGameMessage.c delete mode 100644 src/third_party/asn1/ReportGameMessage.h delete mode 100644 src/third_party/asn1/ResetTimeoutMessage.c delete mode 100644 src/third_party/asn1/ResetTimeoutMessage.h delete mode 100644 src/third_party/asn1/ShowMyCardsRequestMessage.c delete mode 100644 src/third_party/asn1/ShowMyCardsRequestMessage.h delete mode 100644 src/third_party/asn1/StartEvent.c delete mode 100644 src/third_party/asn1/StartEvent.h delete mode 100644 src/third_party/asn1/StartEventAckMessage.c delete mode 100644 src/third_party/asn1/StartEventAckMessage.h delete mode 100644 src/third_party/asn1/StartEventMessage.c delete mode 100644 src/third_party/asn1/StartEventMessage.h delete mode 100644 src/third_party/asn1/StartKickPetitionMessage.c delete mode 100644 src/third_party/asn1/StartKickPetitionMessage.h delete mode 100644 src/third_party/asn1/StatisticsData.c delete mode 100644 src/third_party/asn1/StatisticsData.h delete mode 100644 src/third_party/asn1/StatisticsMessage.c delete mode 100644 src/third_party/asn1/StatisticsMessage.h delete mode 100644 src/third_party/asn1/SubscriptionRequestMessage.c delete mode 100644 src/third_party/asn1/SubscriptionRequestMessage.h delete mode 100644 src/third_party/asn1/TimeoutWarningMessage.c delete mode 100644 src/third_party/asn1/TimeoutWarningMessage.h delete mode 100644 src/third_party/asn1/UnauthenticatedLogin.c delete mode 100644 src/third_party/asn1/UnauthenticatedLogin.h delete mode 100644 src/third_party/asn1/UnknownAvatar.c delete mode 100644 src/third_party/asn1/UnknownAvatar.h delete mode 100644 src/third_party/asn1/UnknownPlayerInfo.c delete mode 100644 src/third_party/asn1/UnknownPlayerInfo.h delete mode 100644 src/third_party/asn1/Version.c delete mode 100644 src/third_party/asn1/Version.h delete mode 100644 src/third_party/asn1/VoteKickAck.c delete mode 100644 src/third_party/asn1/VoteKickAck.h delete mode 100644 src/third_party/asn1/VoteKickDenied.c delete mode 100644 src/third_party/asn1/VoteKickDenied.h delete mode 100644 src/third_party/asn1/VoteKickReplyMessage.c delete mode 100644 src/third_party/asn1/VoteKickReplyMessage.h delete mode 100644 src/third_party/asn1/VoteKickRequestMessage.c delete mode 100644 src/third_party/asn1/VoteKickRequestMessage.h delete mode 100644 src/third_party/asn1/YourActionRejectedMessage.c delete mode 100644 src/third_party/asn1/YourActionRejectedMessage.h diff --git a/INSTALL b/INSTALL index c772457b..ff5c6195 100644 --- a/INSTALL +++ b/INSTALL @@ -4,7 +4,7 @@ Requirements To compile PokerTH you need following libs: 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/ - libcurl version >= 7.16 --> http://curl.haxx.se/ - 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/ - libSQLite3 --> http://sqlite.org/ - 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/ Windows: diff --git a/docs/pokerth.asn1 b/docs/pokerth.asn1 index 9f824527..adddceaf 100644 --- a/docs/pokerth.asn1 +++ b/docs/pokerth.asn1 @@ -16,6 +16,9 @@ * along with this program. If not, see . * *****************************************************************************/ + /* This file is now deprecated! google protocol buffers are used instead. + * Please refer to pokerth.proto. */ + POKERTH-PROTOCOL DEFINITIONS IMPLICIT TAGS EXTENSIBILITY IMPLIED ::= diff --git a/pokerth_protocol.pro b/pokerth_protocol.pro index 238b8b63..c45113f9 100644 --- a/pokerth_protocol.pro +++ b/pokerth_protocol.pro @@ -25,324 +25,81 @@ DEPENDPATH += . \ src/third_party/asn1 # Input -HEADERS += src/third_party/asn1/AllInShowCardsMessage.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 \ +HEADERS += src/third_party/asn1/asn_application.h \ src/third_party/asn1/asn_codecs.h \ src/third_party/asn1/asn_codecs_prim.h \ src/third_party/asn1/asn_internal.h \ src/third_party/asn1/asn_SEQUENCE_OF.h \ src/third_party/asn1/asn_SET_OF.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_tlv_length.h \ src/third_party/asn1/ber_tlv_tag.h \ src/third_party/asn1/BIT_STRING.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/constr_CHOICE.h \ src/third_party/asn1/constr_SEQUENCE.h \ src/third_party/asn1/constr_SEQUENCE_OF.h \ src/third_party/asn1/constr_SET_OF.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/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/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/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/per_decoder.h \ src/third_party/asn1/per_encoder.h \ src/third_party/asn1/per_opentype.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/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_encoder.h \ src/third_party/asn1/xer_support.h \ - src/third_party/asn1/YourActionRejectedMessage.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/CleanerChatTypeGame.h \ - src/third_party/asn1/CleanerChatType.h \ - src/third_party/asn1/ChatTypePrivate.h \ - src/third_party/asn1/ChatRejectMessage.h + src/third_party/asn1/ChatCleanerMessage.h \ + src/third_party/asn1/CleanerChatTypeLobby.h \ + src/third_party/asn1/CleanerChatTypeGame.h \ + src/third_party/asn1/CleanerChatType.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 +HEADERS += src/third_party/protobuf/pokerth.pb.h 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/CleanerInitAckMessage.c \ src/third_party/asn1/CleanerChatRequestMessage.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_encoder.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/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_opentype.c \ src/third_party/asn1/per_encoder.c \ src/third_party/asn1/per_decoder.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/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/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/DealTurnCardMessage.c \ - src/third_party/asn1/DealRiverCardMessage.c \ - src/third_party/asn1/DealFlopCardsMessage.c \ src/third_party/asn1/constraints.c \ src/third_party/asn1/constr_TYPE.c \ src/third_party/asn1/constr_SET_OF.c \ src/third_party/asn1/constr_SEQUENCE_OF.c \ src/third_party/asn1/constr_SEQUENCE.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/BIT_STRING.c \ src/third_party/asn1/ber_tlv_tag.c \ src/third_party/asn1/ber_tlv_length.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_SEQUENCE_OF.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 + src/third_party/asn1/asn_codecs_prim.c SOURCES += src/third_party/protobuf/pokerth.pb.cc win32 { DEFINES += CURL_STATICLIB diff --git a/src/third_party/asn1/AfterHandShowCardsMessage.c b/src/third_party/asn1/AfterHandShowCardsMessage.c deleted file mode 100644 index bb894ad1..00000000 --- a/src/third_party/asn1/AfterHandShowCardsMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AfterHandShowCardsMessage.h b/src/third_party/asn1/AfterHandShowCardsMessage.h deleted file mode 100644 index d5dd3524..00000000 --- a/src/third_party/asn1/AfterHandShowCardsMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "PlayerResult.h" -#include - -#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 diff --git a/src/third_party/asn1/AllInShowCardsMessage.c b/src/third_party/asn1/AllInShowCardsMessage.c deleted file mode 100644 index 9bd835d3..00000000 --- a/src/third_party/asn1/AllInShowCardsMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AllInShowCardsMessage.h b/src/third_party/asn1/AllInShowCardsMessage.h deleted file mode 100644 index ecaf20b0..00000000 --- a/src/third_party/asn1/AllInShowCardsMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include -#include - -#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 diff --git a/src/third_party/asn1/AmountOfMoney.c b/src/third_party/asn1/AmountOfMoney.c deleted file mode 100644 index d3cef0dc..00000000 --- a/src/third_party/asn1/AmountOfMoney.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AmountOfMoney.h b/src/third_party/asn1/AmountOfMoney.h deleted file mode 100644 index bb923ca6..00000000 --- a/src/third_party/asn1/AmountOfMoney.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/AnnounceMessage.c b/src/third_party/asn1/AnnounceMessage.c deleted file mode 100644 index 6a8326be..00000000 --- a/src/third_party/asn1/AnnounceMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AnnounceMessage.h b/src/third_party/asn1/AnnounceMessage.h deleted file mode 100644 index c554723c..00000000 --- a/src/third_party/asn1/AnnounceMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "Version.h" -#include -#include -#include - -#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 diff --git a/src/third_party/asn1/AskKickDeniedMessage.c b/src/third_party/asn1/AskKickDeniedMessage.c deleted file mode 100644 index f0d31ecc..00000000 --- a/src/third_party/asn1/AskKickDeniedMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AskKickDeniedMessage.h b/src/third_party/asn1/AskKickDeniedMessage.h deleted file mode 100644 index 9fa920ad..00000000 --- a/src/third_party/asn1/AskKickDeniedMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/AskKickPlayerMessage.c b/src/third_party/asn1/AskKickPlayerMessage.c deleted file mode 100644 index 4b5103b0..00000000 --- a/src/third_party/asn1/AskKickPlayerMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AskKickPlayerMessage.h b/src/third_party/asn1/AskKickPlayerMessage.h deleted file mode 100644 index 23b4f3b7..00000000 --- a/src/third_party/asn1/AskKickPlayerMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/AuthClientResponse.c b/src/third_party/asn1/AuthClientResponse.c deleted file mode 100644 index 349ed4b5..00000000 --- a/src/third_party/asn1/AuthClientResponse.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AuthClientResponse.h b/src/third_party/asn1/AuthClientResponse.h deleted file mode 100644 index 180aae14..00000000 --- a/src/third_party/asn1/AuthClientResponse.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/AuthMessage.c b/src/third_party/asn1/AuthMessage.c deleted file mode 100644 index 8f0ede8c..00000000 --- a/src/third_party/asn1/AuthMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AuthMessage.h b/src/third_party/asn1/AuthMessage.h deleted file mode 100644 index e141383b..00000000 --- a/src/third_party/asn1/AuthMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "AuthServerChallenge.h" -#include "AuthClientResponse.h" -#include "AuthServerVerification.h" -#include - -#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 diff --git a/src/third_party/asn1/AuthServerChallenge.c b/src/third_party/asn1/AuthServerChallenge.c deleted file mode 100644 index 1b97ab83..00000000 --- a/src/third_party/asn1/AuthServerChallenge.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AuthServerChallenge.h b/src/third_party/asn1/AuthServerChallenge.h deleted file mode 100644 index 259e688c..00000000 --- a/src/third_party/asn1/AuthServerChallenge.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/AuthServerVerification.c b/src/third_party/asn1/AuthServerVerification.c deleted file mode 100644 index cf8f37c2..00000000 --- a/src/third_party/asn1/AuthServerVerification.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AuthServerVerification.h b/src/third_party/asn1/AuthServerVerification.h deleted file mode 100644 index 6fe0282c..00000000 --- a/src/third_party/asn1/AuthServerVerification.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/AuthenticatedLogin.c b/src/third_party/asn1/AuthenticatedLogin.c deleted file mode 100644 index a8127082..00000000 --- a/src/third_party/asn1/AuthenticatedLogin.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AuthenticatedLogin.h b/src/third_party/asn1/AuthenticatedLogin.h deleted file mode 100644 index c6445b6d..00000000 --- a/src/third_party/asn1/AuthenticatedLogin.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include "AvatarHash.h" -#include - -#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 diff --git a/src/third_party/asn1/AvatarData.c b/src/third_party/asn1/AvatarData.c deleted file mode 100644 index 181d5116..00000000 --- a/src/third_party/asn1/AvatarData.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AvatarData.h b/src/third_party/asn1/AvatarData.h deleted file mode 100644 index 0a7a11f8..00000000 --- a/src/third_party/asn1/AvatarData.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/AvatarEnd.c b/src/third_party/asn1/AvatarEnd.c deleted file mode 100644 index c0a75523..00000000 --- a/src/third_party/asn1/AvatarEnd.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AvatarEnd.h b/src/third_party/asn1/AvatarEnd.h deleted file mode 100644 index 69b62379..00000000 --- a/src/third_party/asn1/AvatarEnd.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/AvatarHash.c b/src/third_party/asn1/AvatarHash.c deleted file mode 100644 index 6034cdc1..00000000 --- a/src/third_party/asn1/AvatarHash.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AvatarHash.h b/src/third_party/asn1/AvatarHash.h deleted file mode 100644 index 8507e6b9..00000000 --- a/src/third_party/asn1/AvatarHash.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/AvatarHeader.c b/src/third_party/asn1/AvatarHeader.c deleted file mode 100644 index 3499e5d5..00000000 --- a/src/third_party/asn1/AvatarHeader.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AvatarHeader.h b/src/third_party/asn1/AvatarHeader.h deleted file mode 100644 index 19a132f9..00000000 --- a/src/third_party/asn1/AvatarHeader.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NetAvatarType.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/AvatarReplyMessage.c b/src/third_party/asn1/AvatarReplyMessage.c deleted file mode 100644 index f5d5520f..00000000 --- a/src/third_party/asn1/AvatarReplyMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AvatarReplyMessage.h b/src/third_party/asn1/AvatarReplyMessage.h deleted file mode 100644 index 98d0554e..00000000 --- a/src/third_party/asn1/AvatarReplyMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "AvatarHeader.h" -#include "AvatarData.h" -#include "AvatarEnd.h" -#include "UnknownAvatar.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/AvatarRequestMessage.c b/src/third_party/asn1/AvatarRequestMessage.c deleted file mode 100644 index ee1a468b..00000000 --- a/src/third_party/asn1/AvatarRequestMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/AvatarRequestMessage.h b/src/third_party/asn1/AvatarRequestMessage.h deleted file mode 100644 index 325c04b4..00000000 --- a/src/third_party/asn1/AvatarRequestMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "AvatarHash.h" -#include - -#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 diff --git a/src/third_party/asn1/Card.c b/src/third_party/asn1/Card.c deleted file mode 100644 index e7274955..00000000 --- a/src/third_party/asn1/Card.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/Card.h b/src/third_party/asn1/Card.h deleted file mode 100644 index 802864c2..00000000 --- a/src/third_party/asn1/Card.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/ChatMessage.c b/src/third_party/asn1/ChatMessage.c deleted file mode 100644 index ce7d84f3..00000000 --- a/src/third_party/asn1/ChatMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatMessage.h b/src/third_party/asn1/ChatMessage.h deleted file mode 100644 index eaad2e37..00000000 --- a/src/third_party/asn1/ChatMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include "ChatTypeLobby.h" -#include "ChatTypeGame.h" -#include "ChatTypeBot.h" -#include "ChatTypeBroadcast.h" -#include "ChatTypePrivate.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/ChatRejectMessage.c b/src/third_party/asn1/ChatRejectMessage.c deleted file mode 100644 index 614c9b04..00000000 --- a/src/third_party/asn1/ChatRejectMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatRejectMessage.h b/src/third_party/asn1/ChatRejectMessage.h deleted file mode 100644 index c8a2d28c..00000000 --- a/src/third_party/asn1/ChatRejectMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/ChatRequestMessage.c b/src/third_party/asn1/ChatRequestMessage.c deleted file mode 100644 index 5d85436d..00000000 --- a/src/third_party/asn1/ChatRequestMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatRequestMessage.h b/src/third_party/asn1/ChatRequestMessage.h deleted file mode 100644 index ef2a8af5..00000000 --- a/src/third_party/asn1/ChatRequestMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include "ChatRequestTypeLobby.h" -#include "ChatRequestTypeGame.h" -#include "ChatRequestTypePrivate.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/ChatRequestTypeGame.c b/src/third_party/asn1/ChatRequestTypeGame.c deleted file mode 100644 index 68d37bd3..00000000 --- a/src/third_party/asn1/ChatRequestTypeGame.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatRequestTypeGame.h b/src/third_party/asn1/ChatRequestTypeGame.h deleted file mode 100644 index 650d76fb..00000000 --- a/src/third_party/asn1/ChatRequestTypeGame.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/ChatRequestTypeLobby.c b/src/third_party/asn1/ChatRequestTypeLobby.c deleted file mode 100644 index 85ee5da9..00000000 --- a/src/third_party/asn1/ChatRequestTypeLobby.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatRequestTypeLobby.h b/src/third_party/asn1/ChatRequestTypeLobby.h deleted file mode 100644 index 50801bb9..00000000 --- a/src/third_party/asn1/ChatRequestTypeLobby.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/ChatRequestTypePrivate.c b/src/third_party/asn1/ChatRequestTypePrivate.c deleted file mode 100644 index 8741b5bc..00000000 --- a/src/third_party/asn1/ChatRequestTypePrivate.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatRequestTypePrivate.h b/src/third_party/asn1/ChatRequestTypePrivate.h deleted file mode 100644 index 66012306..00000000 --- a/src/third_party/asn1/ChatRequestTypePrivate.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/ChatTypeBot.c b/src/third_party/asn1/ChatTypeBot.c deleted file mode 100644 index b2eee7a5..00000000 --- a/src/third_party/asn1/ChatTypeBot.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatTypeBot.h b/src/third_party/asn1/ChatTypeBot.h deleted file mode 100644 index 06474d15..00000000 --- a/src/third_party/asn1/ChatTypeBot.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/ChatTypeBroadcast.c b/src/third_party/asn1/ChatTypeBroadcast.c deleted file mode 100644 index 49913fbe..00000000 --- a/src/third_party/asn1/ChatTypeBroadcast.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatTypeBroadcast.h b/src/third_party/asn1/ChatTypeBroadcast.h deleted file mode 100644 index b3939f20..00000000 --- a/src/third_party/asn1/ChatTypeBroadcast.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include - -#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 diff --git a/src/third_party/asn1/ChatTypeGame.c b/src/third_party/asn1/ChatTypeGame.c deleted file mode 100644 index 7573f653..00000000 --- a/src/third_party/asn1/ChatTypeGame.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatTypeGame.h b/src/third_party/asn1/ChatTypeGame.h deleted file mode 100644 index fb545260..00000000 --- a/src/third_party/asn1/ChatTypeGame.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/ChatTypeLobby.c b/src/third_party/asn1/ChatTypeLobby.c deleted file mode 100644 index 5816a0cd..00000000 --- a/src/third_party/asn1/ChatTypeLobby.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatTypeLobby.h b/src/third_party/asn1/ChatTypeLobby.h deleted file mode 100644 index 75fc452f..00000000 --- a/src/third_party/asn1/ChatTypeLobby.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/ChatTypePrivate.c b/src/third_party/asn1/ChatTypePrivate.c deleted file mode 100644 index 830f49ae..00000000 --- a/src/third_party/asn1/ChatTypePrivate.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ChatTypePrivate.h b/src/third_party/asn1/ChatTypePrivate.h deleted file mode 100644 index 3d9d8bd5..00000000 --- a/src/third_party/asn1/ChatTypePrivate.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/DealFlopCardsMessage.c b/src/third_party/asn1/DealFlopCardsMessage.c deleted file mode 100644 index c51a55fa..00000000 --- a/src/third_party/asn1/DealFlopCardsMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/DealFlopCardsMessage.h b/src/third_party/asn1/DealFlopCardsMessage.h deleted file mode 100644 index 99f5b808..00000000 --- a/src/third_party/asn1/DealFlopCardsMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "Card.h" -#include - -#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 diff --git a/src/third_party/asn1/DealRiverCardMessage.c b/src/third_party/asn1/DealRiverCardMessage.c deleted file mode 100644 index 31703c0b..00000000 --- a/src/third_party/asn1/DealRiverCardMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/DealRiverCardMessage.h b/src/third_party/asn1/DealRiverCardMessage.h deleted file mode 100644 index 41d3ae4a..00000000 --- a/src/third_party/asn1/DealRiverCardMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "Card.h" -#include - -#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 diff --git a/src/third_party/asn1/DealTurnCardMessage.c b/src/third_party/asn1/DealTurnCardMessage.c deleted file mode 100644 index d645365a..00000000 --- a/src/third_party/asn1/DealTurnCardMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/DealTurnCardMessage.h b/src/third_party/asn1/DealTurnCardMessage.h deleted file mode 100644 index ffc7d92f..00000000 --- a/src/third_party/asn1/DealTurnCardMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "Card.h" -#include - -#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 diff --git a/src/third_party/asn1/DialogMessage.c b/src/third_party/asn1/DialogMessage.c deleted file mode 100644 index d5a4d6db..00000000 --- a/src/third_party/asn1/DialogMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/DialogMessage.h b/src/third_party/asn1/DialogMessage.h deleted file mode 100644 index ff7e9796..00000000 --- a/src/third_party/asn1/DialogMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/EncryptedCards.c b/src/third_party/asn1/EncryptedCards.c deleted file mode 100644 index adae938a..00000000 --- a/src/third_party/asn1/EncryptedCards.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/EncryptedCards.h b/src/third_party/asn1/EncryptedCards.h deleted file mode 100644 index 52861a46..00000000 --- a/src/third_party/asn1/EncryptedCards.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/EndKickPetitionMessage.c b/src/third_party/asn1/EndKickPetitionMessage.c deleted file mode 100644 index cef618d8..00000000 --- a/src/third_party/asn1/EndKickPetitionMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/EndKickPetitionMessage.h b/src/third_party/asn1/EndKickPetitionMessage.h deleted file mode 100644 index 70d64c4a..00000000 --- a/src/third_party/asn1/EndKickPetitionMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include -#include -#include - -#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 diff --git a/src/third_party/asn1/EndOfGameMessage.c b/src/third_party/asn1/EndOfGameMessage.c deleted file mode 100644 index 19f4f556..00000000 --- a/src/third_party/asn1/EndOfGameMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/EndOfGameMessage.h b/src/third_party/asn1/EndOfGameMessage.h deleted file mode 100644 index 80601a06..00000000 --- a/src/third_party/asn1/EndOfGameMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/EndOfHandHideCards.c b/src/third_party/asn1/EndOfHandHideCards.c deleted file mode 100644 index f792b462..00000000 --- a/src/third_party/asn1/EndOfHandHideCards.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/EndOfHandHideCards.h b/src/third_party/asn1/EndOfHandHideCards.h deleted file mode 100644 index 301f5798..00000000 --- a/src/third_party/asn1/EndOfHandHideCards.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "AmountOfMoney.h" -#include - -#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 diff --git a/src/third_party/asn1/EndOfHandMessage.c b/src/third_party/asn1/EndOfHandMessage.c deleted file mode 100644 index 13c94677..00000000 --- a/src/third_party/asn1/EndOfHandMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/EndOfHandMessage.h b/src/third_party/asn1/EndOfHandMessage.h deleted file mode 100644 index 804e58d6..00000000 --- a/src/third_party/asn1/EndOfHandMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "EndOfHandShowCards.h" -#include "EndOfHandHideCards.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/EndOfHandShowCards.c b/src/third_party/asn1/EndOfHandShowCards.c deleted file mode 100644 index 39b6e9ee..00000000 --- a/src/third_party/asn1/EndOfHandShowCards.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/EndOfHandShowCards.h b/src/third_party/asn1/EndOfHandShowCards.h deleted file mode 100644 index af3947bd..00000000 --- a/src/third_party/asn1/EndOfHandShowCards.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include -#include - -#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 diff --git a/src/third_party/asn1/ErrorMessage.c b/src/third_party/asn1/ErrorMessage.c deleted file mode 100644 index 8a2562d6..00000000 --- a/src/third_party/asn1/ErrorMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/ErrorMessage.h b/src/third_party/asn1/ErrorMessage.h deleted file mode 100644 index 9bde1055..00000000 --- a/src/third_party/asn1/ErrorMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include -#include - -#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 diff --git a/src/third_party/asn1/GameAdminChanged.c b/src/third_party/asn1/GameAdminChanged.c deleted file mode 100644 index 1023aa3b..00000000 --- a/src/third_party/asn1/GameAdminChanged.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameAdminChanged.h b/src/third_party/asn1/GameAdminChanged.h deleted file mode 100644 index 9365dd6f..00000000 --- a/src/third_party/asn1/GameAdminChanged.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/GameListAdminChanged.c b/src/third_party/asn1/GameListAdminChanged.c deleted file mode 100644 index 41fd770e..00000000 --- a/src/third_party/asn1/GameListAdminChanged.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameListAdminChanged.h b/src/third_party/asn1/GameListAdminChanged.h deleted file mode 100644 index 164f9c3d..00000000 --- a/src/third_party/asn1/GameListAdminChanged.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/GameListMessage.c b/src/third_party/asn1/GameListMessage.c deleted file mode 100644 index 22a49f4c..00000000 --- a/src/third_party/asn1/GameListMessage.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameListMessage.h b/src/third_party/asn1/GameListMessage.h deleted file mode 100644 index c19d49fc..00000000 --- a/src/third_party/asn1/GameListMessage.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "GameListNew.h" -#include "GameListUpdate.h" -#include "GameListPlayerJoined.h" -#include "GameListPlayerLeft.h" -#include "GameListAdminChanged.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/GameListNew.c b/src/third_party/asn1/GameListNew.c deleted file mode 100644 index a13820db..00000000 --- a/src/third_party/asn1/GameListNew.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameListNew.h b/src/third_party/asn1/GameListNew.h deleted file mode 100644 index a3ccfae1..00000000 --- a/src/third_party/asn1/GameListNew.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NetGameMode.h" -#include -#include "NonZeroId.h" -#include "NetGameInfo.h" -#include -#include -#include - -#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 diff --git a/src/third_party/asn1/GameListPlayerJoined.c b/src/third_party/asn1/GameListPlayerJoined.c deleted file mode 100644 index 2a0177d1..00000000 --- a/src/third_party/asn1/GameListPlayerJoined.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameListPlayerJoined.h b/src/third_party/asn1/GameListPlayerJoined.h deleted file mode 100644 index 67bc0b22..00000000 --- a/src/third_party/asn1/GameListPlayerJoined.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/GameListPlayerLeft.c b/src/third_party/asn1/GameListPlayerLeft.c deleted file mode 100644 index 33c2ec87..00000000 --- a/src/third_party/asn1/GameListPlayerLeft.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameListPlayerLeft.h b/src/third_party/asn1/GameListPlayerLeft.h deleted file mode 100644 index 36558466..00000000 --- a/src/third_party/asn1/GameListPlayerLeft.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#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 diff --git a/src/third_party/asn1/GameListUpdate.c b/src/third_party/asn1/GameListUpdate.c deleted file mode 100644 index ac60ab4e..00000000 --- a/src/third_party/asn1/GameListUpdate.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GameListUpdate.h b/src/third_party/asn1/GameListUpdate.h deleted file mode 100644 index ceed3011..00000000 --- a/src/third_party/asn1/GameListUpdate.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NetGameMode.h" -#include - -#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 diff --git a/src/third_party/asn1/GamePlayerJoined.c b/src/third_party/asn1/GamePlayerJoined.c deleted file mode 100644 index e2618955..00000000 --- a/src/third_party/asn1/GamePlayerJoined.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GamePlayerJoined.h b/src/third_party/asn1/GamePlayerJoined.h deleted file mode 100644 index c8a137ff..00000000 --- a/src/third_party/asn1/GamePlayerJoined.h +++ /dev/null @@ -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 - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#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 diff --git a/src/third_party/asn1/GamePlayerLeft.c b/src/third_party/asn1/GamePlayerLeft.c deleted file mode 100644 index 99123af8..00000000 --- a/src/third_party/asn1/GamePlayerLeft.c +++ /dev/null @@ -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 */ -}; - diff --git a/src/third_party/asn1/GamePlayerLeft.h b/src/third_party/asn1/GamePlayerLeft.h deleted file mode 100644 index b45401bd..00000000 --- a/src/third_party/asn1/GamePlayerLeft.h +++ /dev/null @@ -1,53 +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 _GamePlayerLeft_H_ -#define _GamePlayerLeft_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum gamePlayerLeftReason { - gamePlayerLeftReason_leftOnRequest = 0, - gamePlayerLeftReason_leftKicked = 1, - gamePlayerLeftReason_leftError = 2 - } - e_gamePlayerLeftReason; - - /* GamePlayerLeft */ - typedef struct GamePlayerLeft { - NonZeroId_t playerId; - long gamePlayerLeftReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } GamePlayerLeft_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_gamePlayerLeftReason_3; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_GamePlayerLeft; - -#ifdef __cplusplus -} -#endif - -#endif /* _GamePlayerLeft_H_ */ -#include diff --git a/src/third_party/asn1/GamePlayerMessage.c b/src/third_party/asn1/GamePlayerMessage.c deleted file mode 100644 index ed2c4013..00000000 --- a/src/third_party/asn1/GamePlayerMessage.c +++ /dev/null @@ -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 "GamePlayerMessage.h" - -static asn_TYPE_member_t asn_MBR_gamePlayerNotification_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct gamePlayerNotification, choice.gamePlayerJoined), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GamePlayerJoined, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gamePlayerJoined" - }, - { ATF_NOFLAGS, 0, offsetof(struct gamePlayerNotification, choice.gamePlayerLeft), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GamePlayerLeft, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gamePlayerLeft" - }, - { ATF_NOFLAGS, 0, offsetof(struct gamePlayerNotification, choice.gameAdminChanged), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GameAdminChanged, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameAdminChanged" - }, - { ATF_NOFLAGS, 0, offsetof(struct gamePlayerNotification, choice.removedFromGame), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RemovedFromGame, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "removedFromGame" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_gamePlayerNotification_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gamePlayerJoined at 364 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gamePlayerLeft at 365 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* gameAdminChanged at 366 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* removedFromGame at 368 */ -}; -static asn_CHOICE_specifics_t asn_SPC_gamePlayerNotification_specs_3 = { - sizeof(struct gamePlayerNotification), - offsetof(struct gamePlayerNotification, _asn_ctx), - offsetof(struct gamePlayerNotification, present), - sizeof(((struct gamePlayerNotification *)0)->present), - asn_MAP_gamePlayerNotification_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_gamePlayerNotification_3 = { - "gamePlayerNotification", - "gamePlayerNotification", - 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_gamePlayerNotification_3, - 4, /* Elements count */ - &asn_SPC_gamePlayerNotification_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_GamePlayerMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GamePlayerMessage, 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 GamePlayerMessage, gamePlayerNotification), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_gamePlayerNotification_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gamePlayerNotification" - }, -}; -static ber_tlv_tag_t asn_DEF_GamePlayerMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (13 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_GamePlayerMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 362 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* gamePlayerJoined at 364 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gamePlayerLeft at 365 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* gameAdminChanged at 366 */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* removedFromGame at 368 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_GamePlayerMessage_specs_1 = { - sizeof(struct GamePlayerMessage), - offsetof(struct GamePlayerMessage, _asn_ctx), - asn_MAP_GamePlayerMessage_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_GamePlayerMessage = { - "GamePlayerMessage", - "GamePlayerMessage", - 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_GamePlayerMessage_tags_1, - sizeof(asn_DEF_GamePlayerMessage_tags_1) - /sizeof(asn_DEF_GamePlayerMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_GamePlayerMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_GamePlayerMessage_tags_1) - /sizeof(asn_DEF_GamePlayerMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_GamePlayerMessage_1, - 2, /* Elements count */ - &asn_SPC_GamePlayerMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/GamePlayerMessage.h b/src/third_party/asn1/GamePlayerMessage.h deleted file mode 100644 index c0646279..00000000 --- a/src/third_party/asn1/GamePlayerMessage.h +++ /dev/null @@ -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 _GamePlayerMessage_H_ -#define _GamePlayerMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "GamePlayerJoined.h" -#include "GamePlayerLeft.h" -#include "GameAdminChanged.h" -#include "RemovedFromGame.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum gamePlayerNotification_PR { - gamePlayerNotification_PR_NOTHING, /* No components present */ - gamePlayerNotification_PR_gamePlayerJoined, - gamePlayerNotification_PR_gamePlayerLeft, - gamePlayerNotification_PR_gameAdminChanged, - gamePlayerNotification_PR_removedFromGame, - /* Extensions may appear below */ - - } - gamePlayerNotification_PR; - - /* GamePlayerMessage */ - typedef struct GamePlayerMessage { - NonZeroId_t gameId; - struct gamePlayerNotification { - gamePlayerNotification_PR present; - union GamePlayerMessage__gamePlayerNotification_u { - GamePlayerJoined_t gamePlayerJoined; - GamePlayerLeft_t gamePlayerLeft; - GameAdminChanged_t gameAdminChanged; - RemovedFromGame_t removedFromGame; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } gamePlayerNotification; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } GamePlayerMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_GamePlayerMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _GamePlayerMessage_H_ */ -#include diff --git a/src/third_party/asn1/GameStartMessage.c b/src/third_party/asn1/GameStartMessage.c deleted file mode 100644 index d1a0719f..00000000 --- a/src/third_party/asn1/GameStartMessage.c +++ /dev/null @@ -1,138 +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 "GameStartMessage.h" - -static asn_TYPE_member_t asn_MBR_gameStartMode_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct gameStartMode, choice.gameStartModeInitial), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GameStartModeInitial, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameStartModeInitial" - }, - { ATF_NOFLAGS, 0, offsetof(struct gameStartMode, choice.gameStartModeRejoin), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GameStartModeRejoin, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameStartModeRejoin" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_gameStartMode_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gameStartModeInitial at 473 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gameStartModeRejoin at 475 */ -}; -static asn_CHOICE_specifics_t asn_SPC_gameStartMode_specs_4 = { - sizeof(struct gameStartMode), - offsetof(struct gameStartMode, _asn_ctx), - offsetof(struct gameStartMode, present), - sizeof(((struct gameStartMode *)0)->present), - asn_MAP_gameStartMode_tag2el_4, - 2, /* Count of tags in the map */ - 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_gameStartMode_4 = { - "gameStartMode", - "gameStartMode", - 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_gameStartMode_4, - 2, /* Elements count */ - &asn_SPC_gameStartMode_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_GameStartMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GameStartMessage, 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 GameStartMessage, startDealerPlayerId), - (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, - "startDealerPlayerId" - }, - { ATF_NOFLAGS, 0, offsetof(struct GameStartMessage, gameStartMode), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_gameStartMode_4, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameStartMode" - }, -}; -static ber_tlv_tag_t asn_DEF_GameStartMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (22 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_GameStartMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 470 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* startDealerPlayerId at 471 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* gameStartModeInitial at 473 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 } /* gameStartModeRejoin at 475 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_GameStartMessage_specs_1 = { - sizeof(struct GameStartMessage), - offsetof(struct GameStartMessage, _asn_ctx), - asn_MAP_GameStartMessage_tag2el_1, - 4, /* 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_GameStartMessage = { - "GameStartMessage", - "GameStartMessage", - 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_GameStartMessage_tags_1, - sizeof(asn_DEF_GameStartMessage_tags_1) - /sizeof(asn_DEF_GameStartMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_GameStartMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_GameStartMessage_tags_1) - /sizeof(asn_DEF_GameStartMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_GameStartMessage_1, - 3, /* Elements count */ - &asn_SPC_GameStartMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/GameStartMessage.h b/src/third_party/asn1/GameStartMessage.h deleted file mode 100644 index f3ac340f..00000000 --- a/src/third_party/asn1/GameStartMessage.h +++ /dev/null @@ -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` - */ - -#ifndef _GameStartMessage_H_ -#define _GameStartMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "GameStartModeInitial.h" -#include "GameStartModeRejoin.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum gameStartMode_PR { - gameStartMode_PR_NOTHING, /* No components present */ - gameStartMode_PR_gameStartModeInitial, - gameStartMode_PR_gameStartModeRejoin, - /* Extensions may appear below */ - - } - gameStartMode_PR; - - /* GameStartMessage */ - typedef struct GameStartMessage { - NonZeroId_t gameId; - NonZeroId_t startDealerPlayerId; - struct gameStartMode { - gameStartMode_PR present; - union GameStartMessage__gameStartMode_u { - GameStartModeInitial_t gameStartModeInitial; - GameStartModeRejoin_t gameStartModeRejoin; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } gameStartMode; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } GameStartMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_GameStartMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _GameStartMessage_H_ */ -#include diff --git a/src/third_party/asn1/GameStartModeInitial.c b/src/third_party/asn1/GameStartModeInitial.c deleted file mode 100644 index 980c3592..00000000 --- a/src/third_party/asn1/GameStartModeInitial.c +++ /dev/null @@ -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 "GameStartModeInitial.h" - -static int -memb_playerSeats_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 >= 2 && 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_playerSeats_2[] = { - { 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_playerSeats_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_playerSeats_specs_2 = { - sizeof(struct playerSeats), - offsetof(struct playerSeats, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_playerSeats_2 = { - "playerSeats", - "playerSeats", - 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_playerSeats_tags_2, - sizeof(asn_DEF_playerSeats_tags_2) - /sizeof(asn_DEF_playerSeats_tags_2[0]), /* 1 */ - asn_DEF_playerSeats_tags_2, /* Same as above */ - sizeof(asn_DEF_playerSeats_tags_2) - /sizeof(asn_DEF_playerSeats_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_playerSeats_2, - 1, /* Single element */ - &asn_SPC_playerSeats_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_GameStartModeInitial_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GameStartModeInitial, playerSeats), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_playerSeats_2, - memb_playerSeats_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerSeats" - }, -}; -static ber_tlv_tag_t asn_DEF_GameStartModeInitial_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_GameStartModeInitial_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerSeats at 462 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_GameStartModeInitial_specs_1 = { - sizeof(struct GameStartModeInitial), - offsetof(struct GameStartModeInitial, _asn_ctx), - asn_MAP_GameStartModeInitial_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_GameStartModeInitial = { - "GameStartModeInitial", - "GameStartModeInitial", - 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_GameStartModeInitial_tags_1, - sizeof(asn_DEF_GameStartModeInitial_tags_1) - /sizeof(asn_DEF_GameStartModeInitial_tags_1[0]), /* 1 */ - asn_DEF_GameStartModeInitial_tags_1, /* Same as above */ - sizeof(asn_DEF_GameStartModeInitial_tags_1) - /sizeof(asn_DEF_GameStartModeInitial_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_GameStartModeInitial_1, - 1, /* Elements count */ - &asn_SPC_GameStartModeInitial_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/GameStartModeInitial.h b/src/third_party/asn1/GameStartModeInitial.h deleted file mode 100644 index c00f44f6..00000000 --- a/src/third_party/asn1/GameStartModeInitial.h +++ /dev/null @@ -1,49 +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 _GameStartModeInitial_H_ -#define _GameStartModeInitial_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* GameStartModeInitial */ - typedef struct GameStartModeInitial { - struct playerSeats { - A_SEQUENCE_OF(NonZeroId_t) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } playerSeats; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } GameStartModeInitial_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_GameStartModeInitial; - -#ifdef __cplusplus -} -#endif - -#endif /* _GameStartModeInitial_H_ */ -#include diff --git a/src/third_party/asn1/GameStartModeRejoin.c b/src/third_party/asn1/GameStartModeRejoin.c deleted file mode 100644 index d44b74b5..00000000 --- a/src/third_party/asn1/GameStartModeRejoin.c +++ /dev/null @@ -1,139 +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 "GameStartModeRejoin.h" - -static int -memb_rejoinPlayerData_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 >= 2 && 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_rejoinPlayerData_3[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RejoinPlayerData, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "" - }, -}; -static ber_tlv_tag_t asn_DEF_rejoinPlayerData_tags_3[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_rejoinPlayerData_specs_3 = { - sizeof(struct rejoinPlayerData), - offsetof(struct rejoinPlayerData, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_rejoinPlayerData_3 = { - "rejoinPlayerData", - "rejoinPlayerData", - 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_rejoinPlayerData_tags_3, - sizeof(asn_DEF_rejoinPlayerData_tags_3) - /sizeof(asn_DEF_rejoinPlayerData_tags_3[0]), /* 1 */ - asn_DEF_rejoinPlayerData_tags_3, /* Same as above */ - sizeof(asn_DEF_rejoinPlayerData_tags_3) - /sizeof(asn_DEF_rejoinPlayerData_tags_3[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_rejoinPlayerData_3, - 1, /* Single element */ - &asn_SPC_rejoinPlayerData_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_GameStartModeRejoin_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GameStartModeRejoin, handNum), - (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, - "handNum" - }, - { ATF_NOFLAGS, 0, offsetof(struct GameStartModeRejoin, rejoinPlayerData), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_rejoinPlayerData_3, - memb_rejoinPlayerData_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "rejoinPlayerData" - }, -}; -static ber_tlv_tag_t asn_DEF_GameStartModeRejoin_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_GameStartModeRejoin_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* handNum at 465 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* rejoinPlayerData at 467 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_GameStartModeRejoin_specs_1 = { - sizeof(struct GameStartModeRejoin), - offsetof(struct GameStartModeRejoin, _asn_ctx), - asn_MAP_GameStartModeRejoin_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_GameStartModeRejoin = { - "GameStartModeRejoin", - "GameStartModeRejoin", - 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_GameStartModeRejoin_tags_1, - sizeof(asn_DEF_GameStartModeRejoin_tags_1) - /sizeof(asn_DEF_GameStartModeRejoin_tags_1[0]), /* 1 */ - asn_DEF_GameStartModeRejoin_tags_1, /* Same as above */ - sizeof(asn_DEF_GameStartModeRejoin_tags_1) - /sizeof(asn_DEF_GameStartModeRejoin_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_GameStartModeRejoin_1, - 2, /* Elements count */ - &asn_SPC_GameStartModeRejoin_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/GameStartModeRejoin.h b/src/third_party/asn1/GameStartModeRejoin.h deleted file mode 100644 index 2e3e04b7..00000000 --- a/src/third_party/asn1/GameStartModeRejoin.h +++ /dev/null @@ -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 _GameStartModeRejoin_H_ -#define _GameStartModeRejoin_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Forward declarations */ - struct RejoinPlayerData; - - /* GameStartModeRejoin */ - typedef struct GameStartModeRejoin { - NonZeroId_t handNum; - struct rejoinPlayerData { - A_SEQUENCE_OF(struct RejoinPlayerData) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } rejoinPlayerData; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } GameStartModeRejoin_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_GameStartModeRejoin; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "RejoinPlayerData.h" - -#endif /* _GameStartModeRejoin_H_ */ -#include diff --git a/src/third_party/asn1/GuestLogin.c b/src/third_party/asn1/GuestLogin.c deleted file mode 100644 index 45b09065..00000000 --- a/src/third_party/asn1/GuestLogin.c +++ /dev/null @@ -1,91 +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 "GuestLogin.h" - -static int -memb_nickName_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 <= 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_GuestLogin_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GuestLogin, nickName), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_nickName_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "nickName" - }, -}; -static ber_tlv_tag_t asn_DEF_GuestLogin_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_GuestLogin_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* nickName at 115 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_GuestLogin_specs_1 = { - sizeof(struct GuestLogin), - offsetof(struct GuestLogin, _asn_ctx), - asn_MAP_GuestLogin_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_GuestLogin = { - "GuestLogin", - "GuestLogin", - 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_GuestLogin_tags_1, - sizeof(asn_DEF_GuestLogin_tags_1) - /sizeof(asn_DEF_GuestLogin_tags_1[0]), /* 1 */ - asn_DEF_GuestLogin_tags_1, /* Same as above */ - sizeof(asn_DEF_GuestLogin_tags_1) - /sizeof(asn_DEF_GuestLogin_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_GuestLogin_1, - 1, /* Elements count */ - &asn_SPC_GuestLogin_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/GuestLogin.h b/src/third_party/asn1/GuestLogin.h deleted file mode 100644 index a3b93194..00000000 --- a/src/third_party/asn1/GuestLogin.h +++ /dev/null @@ -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 _GuestLogin_H_ -#define _GuestLogin_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* GuestLogin */ - typedef struct GuestLogin { - UTF8String_t nickName; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } GuestLogin_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_GuestLogin; - -#ifdef __cplusplus -} -#endif - -#endif /* _GuestLogin_H_ */ -#include diff --git a/src/third_party/asn1/Guid.c b/src/third_party/asn1/Guid.c deleted file mode 100644 index c70aa159..00000000 --- a/src/third_party/asn1/Guid.c +++ /dev/null @@ -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 "Guid.h" - -int -Guid_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 -Guid_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 -Guid_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - Guid_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -Guid_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Guid_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -Guid_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) { - Guid_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -Guid_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) { - Guid_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -Guid_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) { - Guid_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -Guid_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) { - Guid_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static ber_tlv_tag_t asn_DEF_Guid_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Guid = { - "Guid", - "Guid", - Guid_free, - Guid_print, - Guid_constraint, - Guid_decode_ber, - Guid_encode_der, - Guid_decode_xer, - Guid_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Guid_tags_1, - sizeof(asn_DEF_Guid_tags_1) - /sizeof(asn_DEF_Guid_tags_1[0]), /* 1 */ - asn_DEF_Guid_tags_1, /* Same as above */ - sizeof(asn_DEF_Guid_tags_1) - /sizeof(asn_DEF_Guid_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/src/third_party/asn1/Guid.h b/src/third_party/asn1/Guid.h deleted file mode 100644 index b2d8ddf2..00000000 --- a/src/third_party/asn1/Guid.h +++ /dev/null @@ -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 _Guid_H_ -#define _Guid_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Guid */ - typedef OCTET_STRING_t Guid_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_Guid; - asn_struct_free_f Guid_free; - asn_struct_print_f Guid_print; - asn_constr_check_f Guid_constraint; - ber_type_decoder_f Guid_decode_ber; - der_type_encoder_f Guid_encode_der; - xer_type_decoder_f Guid_decode_xer; - xer_type_encoder_f Guid_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _Guid_H_ */ -#include diff --git a/src/third_party/asn1/HandStartMessage.c b/src/third_party/asn1/HandStartMessage.c deleted file mode 100644 index bc06f855..00000000 --- a/src/third_party/asn1/HandStartMessage.c +++ /dev/null @@ -1,243 +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 "HandStartMessage.h" - -static int -memb_smallBlind_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 <= 100000000)) { - /* 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_seatStates_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 >= 2 && 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_yourCards_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct yourCards, choice.plainCards), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PlainCards, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "plainCards" - }, - { ATF_NOFLAGS, 0, offsetof(struct yourCards, choice.encryptedCards), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EncryptedCards, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "encryptedCards" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_yourCards_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plainCards at 490 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* encryptedCards at 492 */ -}; -static asn_CHOICE_specifics_t asn_SPC_yourCards_specs_3 = { - sizeof(struct yourCards), - offsetof(struct yourCards, _asn_ctx), - offsetof(struct yourCards, present), - sizeof(((struct yourCards *)0)->present), - asn_MAP_yourCards_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_yourCards_3 = { - "yourCards", - "yourCards", - 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_yourCards_3, - 2, /* Elements count */ - &asn_SPC_yourCards_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_seatStates_8[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetPlayerState, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "" - }, -}; -static ber_tlv_tag_t asn_DEF_seatStates_tags_8[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_seatStates_specs_8 = { - sizeof(struct seatStates), - offsetof(struct seatStates, _asn_ctx), - 1, /* XER encoding is XMLValueList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_seatStates_8 = { - "seatStates", - "seatStates", - 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_seatStates_tags_8, - sizeof(asn_DEF_seatStates_tags_8) - /sizeof(asn_DEF_seatStates_tags_8[0]), /* 1 */ - asn_DEF_seatStates_tags_8, /* Same as above */ - sizeof(asn_DEF_seatStates_tags_8) - /sizeof(asn_DEF_seatStates_tags_8[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_seatStates_8, - 1, /* Single element */ - &asn_SPC_seatStates_specs_8 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_HandStartMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HandStartMessage, 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 HandStartMessage, yourCards), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_yourCards_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "yourCards" - }, - { ATF_NOFLAGS, 0, offsetof(struct HandStartMessage, smallBlind), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_smallBlind_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "smallBlind" - }, - { ATF_NOFLAGS, 0, offsetof(struct HandStartMessage, seatStates), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_seatStates_8, - memb_seatStates_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "seatStates" - }, -}; -static ber_tlv_tag_t asn_DEF_HandStartMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (23 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_HandStartMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 488 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* smallBlind at 493 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, 0, 0 }, /* seatStates at 495 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* plainCards at 490 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* encryptedCards at 492 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_HandStartMessage_specs_1 = { - sizeof(struct HandStartMessage), - offsetof(struct HandStartMessage, _asn_ctx), - asn_MAP_HandStartMessage_tag2el_1, - 5, /* 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_HandStartMessage = { - "HandStartMessage", - "HandStartMessage", - 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_HandStartMessage_tags_1, - sizeof(asn_DEF_HandStartMessage_tags_1) - /sizeof(asn_DEF_HandStartMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_HandStartMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_HandStartMessage_tags_1) - /sizeof(asn_DEF_HandStartMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_HandStartMessage_1, - 4, /* Elements count */ - &asn_SPC_HandStartMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/HandStartMessage.h b/src/third_party/asn1/HandStartMessage.h deleted file mode 100644 index 1bfaf8bc..00000000 --- a/src/third_party/asn1/HandStartMessage.h +++ /dev/null @@ -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` - */ - -#ifndef _HandStartMessage_H_ -#define _HandStartMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include "PlainCards.h" -#include "EncryptedCards.h" -#include -#include "NetPlayerState.h" -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum yourCards_PR { - yourCards_PR_NOTHING, /* No components present */ - yourCards_PR_plainCards, - yourCards_PR_encryptedCards, - /* Extensions may appear below */ - - } - yourCards_PR; - - /* HandStartMessage */ - typedef struct HandStartMessage { - NonZeroId_t gameId; - struct yourCards { - yourCards_PR present; - union HandStartMessage__yourCards_u { - PlainCards_t plainCards; - EncryptedCards_t encryptedCards; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } yourCards; - long smallBlind; - struct seatStates { - A_SEQUENCE_OF(NetPlayerState_t) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } seatStates; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } HandStartMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_HandStartMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _HandStartMessage_H_ */ -#include diff --git a/src/third_party/asn1/Id.c b/src/third_party/asn1/Id.c deleted file mode 100644 index 6989585d..00000000 --- a/src/third_party/asn1/Id.c +++ /dev/null @@ -1,123 +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 "Id.h" - -int -Id_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - unsigned long value; - - if(!sptr) { - _ASN_CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const unsigned long *)sptr; - - /* Constraint check succeeded */ - return 0; -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -static void -Id_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; // Defined explicitly */ -} - -void -Id_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - Id_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -Id_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Id_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -Id_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) { - Id_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -Id_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) { - Id_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -Id_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) { - Id_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -Id_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) { - Id_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_specifics_t asn_SPC_Id_specs_1 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static ber_tlv_tag_t asn_DEF_Id_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Id = { - "Id", - "Id", - Id_free, - Id_print, - Id_constraint, - Id_decode_ber, - Id_encode_der, - Id_decode_xer, - Id_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Id_tags_1, - sizeof(asn_DEF_Id_tags_1) - /sizeof(asn_DEF_Id_tags_1[0]), /* 1 */ - asn_DEF_Id_tags_1, /* Same as above */ - sizeof(asn_DEF_Id_tags_1) - /sizeof(asn_DEF_Id_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_Id_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/Id.h b/src/third_party/asn1/Id.h deleted file mode 100644 index 66d5ef97..00000000 --- a/src/third_party/asn1/Id.h +++ /dev/null @@ -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 _Id_H_ -#define _Id_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Id */ - typedef unsigned long Id_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_Id; - asn_struct_free_f Id_free; - asn_struct_print_f Id_print; - asn_constr_check_f Id_constraint; - ber_type_decoder_f Id_decode_ber; - der_type_encoder_f Id_encode_der; - xer_type_decoder_f Id_decode_xer; - xer_type_encoder_f Id_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _Id_H_ */ -#include diff --git a/src/third_party/asn1/InitAckMessage.c b/src/third_party/asn1/InitAckMessage.c deleted file mode 100644 index 1b318a4e..00000000 --- a/src/third_party/asn1/InitAckMessage.c +++ /dev/null @@ -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 "InitAckMessage.h" - -static asn_TYPE_member_t asn_MBR_InitAckMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InitAckMessage, yourSessionId), - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), - 0, - &asn_DEF_Guid, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "yourSessionId" - }, - { ATF_NOFLAGS, 0, offsetof(struct InitAckMessage, yourPlayerId), - (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, - "yourPlayerId" - }, - { ATF_POINTER, 2, offsetof(struct InitAckMessage, yourAvatar), - (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, - "yourAvatar" - }, - { ATF_POINTER, 1, offsetof(struct InitAckMessage, rejoinGameId), - (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, - "rejoinGameId" - }, -}; -static ber_tlv_tag_t asn_DEF_InitAckMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (3 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_InitAckMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 1 }, /* yourPlayerId at 149 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -1, 0 }, /* rejoinGameId at 151 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 1 }, /* yourSessionId at 148 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 2, -1, 0 } /* yourAvatar at 150 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_InitAckMessage_specs_1 = { - sizeof(struct InitAckMessage), - offsetof(struct InitAckMessage, _asn_ctx), - asn_MAP_InitAckMessage_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_InitAckMessage = { - "InitAckMessage", - "InitAckMessage", - 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_InitAckMessage_tags_1, - sizeof(asn_DEF_InitAckMessage_tags_1) - /sizeof(asn_DEF_InitAckMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_InitAckMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_InitAckMessage_tags_1) - /sizeof(asn_DEF_InitAckMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_InitAckMessage_1, - 4, /* Elements count */ - &asn_SPC_InitAckMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/InitAckMessage.h b/src/third_party/asn1/InitAckMessage.h deleted file mode 100644 index bba6adbd..00000000 --- a/src/third_party/asn1/InitAckMessage.h +++ /dev/null @@ -1,47 +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 _InitAckMessage_H_ -#define _InitAckMessage_H_ - - -#include - -/* Including external dependencies */ -#include "Guid.h" -#include "NonZeroId.h" -#include "AvatarHash.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* InitAckMessage */ - typedef struct InitAckMessage { - Guid_t yourSessionId; - NonZeroId_t yourPlayerId; - AvatarHash_t *yourAvatar /* OPTIONAL */; - NonZeroId_t *rejoinGameId /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } InitAckMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_InitAckMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _InitAckMessage_H_ */ -#include diff --git a/src/third_party/asn1/InitMessage.c b/src/third_party/asn1/InitMessage.c deleted file mode 100644 index e0faf3e4..00000000 --- a/src/third_party/asn1/InitMessage.c +++ /dev/null @@ -1,201 +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 "InitMessage.h" - -static int -memb_authServerPassword_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 <= 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_login_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct login, choice.guestLogin), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GuestLogin, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "guestLogin" - }, - { ATF_NOFLAGS, 0, offsetof(struct login, choice.authenticatedLogin), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AuthenticatedLogin, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "authenticatedLogin" - }, - { ATF_NOFLAGS, 0, offsetof(struct login, choice.unauthenticatedLogin), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UnauthenticatedLogin, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "unauthenticatedLogin" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_login_tag2el_6[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* guestLogin at 103 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authenticatedLogin at 104 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* unauthenticatedLogin at 106 */ -}; -static asn_CHOICE_specifics_t asn_SPC_login_specs_6 = { - sizeof(struct login), - offsetof(struct login, _asn_ctx), - offsetof(struct login, present), - sizeof(((struct login *)0)->present), - asn_MAP_login_tag2el_6, - 3, /* Count of tags in the map */ - 0, - 3 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_login_6 = { - "login", - "login", - 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_login_6, - 3, /* Elements count */ - &asn_SPC_login_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_InitMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InitMessage, requestedVersion), - (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, - "requestedVersion" - }, - { ATF_NOFLAGS, 0, offsetof(struct InitMessage, buildId), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "buildId" - }, - { ATF_POINTER, 2, offsetof(struct InitMessage, myLastSessionId), - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), - 0, - &asn_DEF_Guid, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "myLastSessionId" - }, - { ATF_POINTER, 1, offsetof(struct InitMessage, authServerPassword), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_authServerPassword_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "authServerPassword" - }, - { ATF_NOFLAGS, 0, offsetof(struct InitMessage, login), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_login_6, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "login" - }, -}; -static ber_tlv_tag_t asn_DEF_InitMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (1 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_InitMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* buildId at 99 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 2, 0, 0 }, /* myLastSessionId at 100 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 3, 0, 0 }, /* authServerPassword at 101 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* requestedVersion at 98 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 4, 0, 0 }, /* guestLogin at 103 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 4, 0, 0 }, /* authenticatedLogin at 104 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 4, 0, 0 } /* unauthenticatedLogin at 106 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_InitMessage_specs_1 = { - sizeof(struct InitMessage), - offsetof(struct InitMessage, _asn_ctx), - asn_MAP_InitMessage_tag2el_1, - 7, /* 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_InitMessage = { - "InitMessage", - "InitMessage", - 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_InitMessage_tags_1, - sizeof(asn_DEF_InitMessage_tags_1) - /sizeof(asn_DEF_InitMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_InitMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_InitMessage_tags_1) - /sizeof(asn_DEF_InitMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_InitMessage_1, - 5, /* Elements count */ - &asn_SPC_InitMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/InitMessage.h b/src/third_party/asn1/InitMessage.h deleted file mode 100644 index 13e508ca..00000000 --- a/src/third_party/asn1/InitMessage.h +++ /dev/null @@ -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 _InitMessage_H_ -#define _InitMessage_H_ - - -#include - -/* Including external dependencies */ -#include "Version.h" -#include -#include "Guid.h" -#include -#include "GuestLogin.h" -#include "AuthenticatedLogin.h" -#include "UnauthenticatedLogin.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum login_PR { - login_PR_NOTHING, /* No components present */ - login_PR_guestLogin, - login_PR_authenticatedLogin, - login_PR_unauthenticatedLogin, - /* Extensions may appear below */ - - } - login_PR; - - /* InitMessage */ - typedef struct InitMessage { - Version_t requestedVersion; - long buildId; - Guid_t *myLastSessionId /* OPTIONAL */; - UTF8String_t *authServerPassword /* OPTIONAL */; - struct login { - login_PR present; - union InitMessage__login_u { - GuestLogin_t guestLogin; - AuthenticatedLogin_t authenticatedLogin; - UnauthenticatedLogin_t unauthenticatedLogin; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } login; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } InitMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_InitMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _InitMessage_H_ */ -#include diff --git a/src/third_party/asn1/InitialAmountOfMoney.c b/src/third_party/asn1/InitialAmountOfMoney.c deleted file mode 100644 index 4f4a95ff..00000000 --- a/src/third_party/asn1/InitialAmountOfMoney.c +++ /dev/null @@ -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 "InitialAmountOfMoney.h" - -int -InitialAmountOfMoney_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 <= 1000000)) { - /* 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 -InitialAmountOfMoney_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 -InitialAmountOfMoney_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - InitialAmountOfMoney_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -InitialAmountOfMoney_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - InitialAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -InitialAmountOfMoney_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) { - InitialAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -InitialAmountOfMoney_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) { - InitialAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -InitialAmountOfMoney_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) { - InitialAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -InitialAmountOfMoney_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) { - InitialAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static ber_tlv_tag_t asn_DEF_InitialAmountOfMoney_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_InitialAmountOfMoney = { - "InitialAmountOfMoney", - "InitialAmountOfMoney", - InitialAmountOfMoney_free, - InitialAmountOfMoney_print, - InitialAmountOfMoney_constraint, - InitialAmountOfMoney_decode_ber, - InitialAmountOfMoney_encode_der, - InitialAmountOfMoney_decode_xer, - InitialAmountOfMoney_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_InitialAmountOfMoney_tags_1, - sizeof(asn_DEF_InitialAmountOfMoney_tags_1) - /sizeof(asn_DEF_InitialAmountOfMoney_tags_1[0]), /* 1 */ - asn_DEF_InitialAmountOfMoney_tags_1, /* Same as above */ - sizeof(asn_DEF_InitialAmountOfMoney_tags_1) - /sizeof(asn_DEF_InitialAmountOfMoney_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/src/third_party/asn1/InitialAmountOfMoney.h b/src/third_party/asn1/InitialAmountOfMoney.h deleted file mode 100644 index 8a88f8a8..00000000 --- a/src/third_party/asn1/InitialAmountOfMoney.h +++ /dev/null @@ -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 _InitialAmountOfMoney_H_ -#define _InitialAmountOfMoney_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* InitialAmountOfMoney */ - typedef long InitialAmountOfMoney_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_InitialAmountOfMoney; - asn_struct_free_f InitialAmountOfMoney_free; - asn_struct_print_f InitialAmountOfMoney_print; - asn_constr_check_f InitialAmountOfMoney_constraint; - ber_type_decoder_f InitialAmountOfMoney_decode_ber; - der_type_encoder_f InitialAmountOfMoney_encode_der; - xer_type_decoder_f InitialAmountOfMoney_decode_xer; - xer_type_encoder_f InitialAmountOfMoney_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _InitialAmountOfMoney_H_ */ -#include diff --git a/src/third_party/asn1/InitialNonZeroAmountOfMoney.c b/src/third_party/asn1/InitialNonZeroAmountOfMoney.c deleted file mode 100644 index fa4c104c..00000000 --- a/src/third_party/asn1/InitialNonZeroAmountOfMoney.c +++ /dev/null @@ -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 "InitialNonZeroAmountOfMoney.h" - -int -InitialNonZeroAmountOfMoney_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 >= 1 && value <= 1000000)) { - /* 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 -InitialNonZeroAmountOfMoney_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 -InitialNonZeroAmountOfMoney_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - InitialNonZeroAmountOfMoney_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -InitialNonZeroAmountOfMoney_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - InitialNonZeroAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -InitialNonZeroAmountOfMoney_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) { - InitialNonZeroAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -InitialNonZeroAmountOfMoney_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) { - InitialNonZeroAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -InitialNonZeroAmountOfMoney_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) { - InitialNonZeroAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -InitialNonZeroAmountOfMoney_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) { - InitialNonZeroAmountOfMoney_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static ber_tlv_tag_t asn_DEF_InitialNonZeroAmountOfMoney_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_InitialNonZeroAmountOfMoney = { - "InitialNonZeroAmountOfMoney", - "InitialNonZeroAmountOfMoney", - InitialNonZeroAmountOfMoney_free, - InitialNonZeroAmountOfMoney_print, - InitialNonZeroAmountOfMoney_constraint, - InitialNonZeroAmountOfMoney_decode_ber, - InitialNonZeroAmountOfMoney_encode_der, - InitialNonZeroAmountOfMoney_decode_xer, - InitialNonZeroAmountOfMoney_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_InitialNonZeroAmountOfMoney_tags_1, - sizeof(asn_DEF_InitialNonZeroAmountOfMoney_tags_1) - /sizeof(asn_DEF_InitialNonZeroAmountOfMoney_tags_1[0]), /* 1 */ - asn_DEF_InitialNonZeroAmountOfMoney_tags_1, /* Same as above */ - sizeof(asn_DEF_InitialNonZeroAmountOfMoney_tags_1) - /sizeof(asn_DEF_InitialNonZeroAmountOfMoney_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/src/third_party/asn1/InitialNonZeroAmountOfMoney.h b/src/third_party/asn1/InitialNonZeroAmountOfMoney.h deleted file mode 100644 index 4da8c5c9..00000000 --- a/src/third_party/asn1/InitialNonZeroAmountOfMoney.h +++ /dev/null @@ -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 _InitialNonZeroAmountOfMoney_H_ -#define _InitialNonZeroAmountOfMoney_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* InitialNonZeroAmountOfMoney */ - typedef long InitialNonZeroAmountOfMoney_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_InitialNonZeroAmountOfMoney; - asn_struct_free_f InitialNonZeroAmountOfMoney_free; - asn_struct_print_f InitialNonZeroAmountOfMoney_print; - asn_constr_check_f InitialNonZeroAmountOfMoney_constraint; - ber_type_decoder_f InitialNonZeroAmountOfMoney_decode_ber; - der_type_encoder_f InitialNonZeroAmountOfMoney_encode_der; - xer_type_decoder_f InitialNonZeroAmountOfMoney_decode_xer; - xer_type_encoder_f InitialNonZeroAmountOfMoney_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _InitialNonZeroAmountOfMoney_H_ */ -#include diff --git a/src/third_party/asn1/InviteNotifyMessage.c b/src/third_party/asn1/InviteNotifyMessage.c deleted file mode 100644 index d837b839..00000000 --- a/src/third_party/asn1/InviteNotifyMessage.c +++ /dev/null @@ -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 "InviteNotifyMessage.h" - -static asn_TYPE_member_t asn_MBR_InviteNotifyMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InviteNotifyMessage, 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 InviteNotifyMessage, playerIdWho), - (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, - "playerIdWho" - }, - { ATF_NOFLAGS, 0, offsetof(struct InviteNotifyMessage, playerIdByWhom), - (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, - "playerIdByWhom" - }, -}; -static ber_tlv_tag_t asn_DEF_InviteNotifyMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (17 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_InviteNotifyMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* gameId at 415 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* playerIdWho at 416 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* playerIdByWhom at 418 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_InviteNotifyMessage_specs_1 = { - sizeof(struct InviteNotifyMessage), - offsetof(struct InviteNotifyMessage, _asn_ctx), - asn_MAP_InviteNotifyMessage_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_InviteNotifyMessage = { - "InviteNotifyMessage", - "InviteNotifyMessage", - 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_InviteNotifyMessage_tags_1, - sizeof(asn_DEF_InviteNotifyMessage_tags_1) - /sizeof(asn_DEF_InviteNotifyMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_InviteNotifyMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_InviteNotifyMessage_tags_1) - /sizeof(asn_DEF_InviteNotifyMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_InviteNotifyMessage_1, - 3, /* Elements count */ - &asn_SPC_InviteNotifyMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/InviteNotifyMessage.h b/src/third_party/asn1/InviteNotifyMessage.h deleted file mode 100644 index 6520d84c..00000000 --- a/src/third_party/asn1/InviteNotifyMessage.h +++ /dev/null @@ -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 _InviteNotifyMessage_H_ -#define _InviteNotifyMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* InviteNotifyMessage */ - typedef struct InviteNotifyMessage { - NonZeroId_t gameId; - NonZeroId_t playerIdWho; - NonZeroId_t playerIdByWhom; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } InviteNotifyMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_InviteNotifyMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _InviteNotifyMessage_H_ */ -#include diff --git a/src/third_party/asn1/InvitePlayerToGameMessage.c b/src/third_party/asn1/InvitePlayerToGameMessage.c deleted file mode 100644 index f6cf682f..00000000 --- a/src/third_party/asn1/InvitePlayerToGameMessage.c +++ /dev/null @@ -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 "InvitePlayerToGameMessage.h" - -static asn_TYPE_member_t asn_MBR_InvitePlayerToGameMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InvitePlayerToGameMessage, 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 InvitePlayerToGameMessage, 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_InvitePlayerToGameMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (16 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_InvitePlayerToGameMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 410 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 412 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_InvitePlayerToGameMessage_specs_1 = { - sizeof(struct InvitePlayerToGameMessage), - offsetof(struct InvitePlayerToGameMessage, _asn_ctx), - asn_MAP_InvitePlayerToGameMessage_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_InvitePlayerToGameMessage = { - "InvitePlayerToGameMessage", - "InvitePlayerToGameMessage", - 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_InvitePlayerToGameMessage_tags_1, - sizeof(asn_DEF_InvitePlayerToGameMessage_tags_1) - /sizeof(asn_DEF_InvitePlayerToGameMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_InvitePlayerToGameMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_InvitePlayerToGameMessage_tags_1) - /sizeof(asn_DEF_InvitePlayerToGameMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_InvitePlayerToGameMessage_1, - 2, /* Elements count */ - &asn_SPC_InvitePlayerToGameMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/InvitePlayerToGameMessage.h b/src/third_party/asn1/InvitePlayerToGameMessage.h deleted file mode 100644 index f9fa5339..00000000 --- a/src/third_party/asn1/InvitePlayerToGameMessage.h +++ /dev/null @@ -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 _InvitePlayerToGameMessage_H_ -#define _InvitePlayerToGameMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* InvitePlayerToGameMessage */ - typedef struct InvitePlayerToGameMessage { - 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; - } InvitePlayerToGameMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_InvitePlayerToGameMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _InvitePlayerToGameMessage_H_ */ -#include diff --git a/src/third_party/asn1/JoinExistingGame.c b/src/third_party/asn1/JoinExistingGame.c deleted file mode 100644 index a47779ed..00000000 --- a/src/third_party/asn1/JoinExistingGame.c +++ /dev/null @@ -1,101 +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 "JoinExistingGame.h" - -static int -memb_password_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 <= 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_JoinExistingGame_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinExistingGame, 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_POINTER, 1, offsetof(struct JoinExistingGame, password), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_password_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "password" - }, -}; -static ber_tlv_tag_t asn_DEF_JoinExistingGame_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_JoinExistingGame_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 292 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* password at 293 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_JoinExistingGame_specs_1 = { - sizeof(struct JoinExistingGame), - offsetof(struct JoinExistingGame, _asn_ctx), - asn_MAP_JoinExistingGame_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_JoinExistingGame = { - "JoinExistingGame", - "JoinExistingGame", - 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_JoinExistingGame_tags_1, - sizeof(asn_DEF_JoinExistingGame_tags_1) - /sizeof(asn_DEF_JoinExistingGame_tags_1[0]), /* 1 */ - asn_DEF_JoinExistingGame_tags_1, /* Same as above */ - sizeof(asn_DEF_JoinExistingGame_tags_1) - /sizeof(asn_DEF_JoinExistingGame_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_JoinExistingGame_1, - 2, /* Elements count */ - &asn_SPC_JoinExistingGame_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/JoinExistingGame.h b/src/third_party/asn1/JoinExistingGame.h deleted file mode 100644 index 86ff52ef..00000000 --- a/src/third_party/asn1/JoinExistingGame.h +++ /dev/null @@ -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 _JoinExistingGame_H_ -#define _JoinExistingGame_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* JoinExistingGame */ - typedef struct JoinExistingGame { - NonZeroId_t gameId; - UTF8String_t *password /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } JoinExistingGame_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_JoinExistingGame; - -#ifdef __cplusplus -} -#endif - -#endif /* _JoinExistingGame_H_ */ -#include diff --git a/src/third_party/asn1/JoinGameAck.c b/src/third_party/asn1/JoinGameAck.c deleted file mode 100644 index 7fa53fab..00000000 --- a/src/third_party/asn1/JoinGameAck.c +++ /dev/null @@ -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 "JoinGameAck.h" - -static asn_TYPE_member_t asn_MBR_JoinGameAck_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, areYouGameAdmin), - (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, - "areYouGameAdmin" - }, - { ATF_NOFLAGS, 0, offsetof(struct JoinGameAck, 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_JoinGameAck_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_JoinGameAck_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* areYouGameAdmin at 314 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* gameInfo at 316 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_JoinGameAck_specs_1 = { - sizeof(struct JoinGameAck), - offsetof(struct JoinGameAck, _asn_ctx), - asn_MAP_JoinGameAck_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_JoinGameAck = { - "JoinGameAck", - "JoinGameAck", - 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_JoinGameAck_tags_1, - sizeof(asn_DEF_JoinGameAck_tags_1) - /sizeof(asn_DEF_JoinGameAck_tags_1[0]), /* 1 */ - asn_DEF_JoinGameAck_tags_1, /* Same as above */ - sizeof(asn_DEF_JoinGameAck_tags_1) - /sizeof(asn_DEF_JoinGameAck_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_JoinGameAck_1, - 2, /* Elements count */ - &asn_SPC_JoinGameAck_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/JoinGameAck.h b/src/third_party/asn1/JoinGameAck.h deleted file mode 100644 index b7574ed0..00000000 --- a/src/third_party/asn1/JoinGameAck.h +++ /dev/null @@ -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 _JoinGameAck_H_ -#define _JoinGameAck_H_ - - -#include - -/* Including external dependencies */ -#include -#include "NetGameInfo.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* JoinGameAck */ - typedef struct JoinGameAck { - BOOLEAN_t areYouGameAdmin; - NetGameInfo_t gameInfo; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } JoinGameAck_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_JoinGameAck; - -#ifdef __cplusplus -} -#endif - -#endif /* _JoinGameAck_H_ */ -#include diff --git a/src/third_party/asn1/JoinGameFailed.c b/src/third_party/asn1/JoinGameFailed.c deleted file mode 100644 index edec88bc..00000000 --- a/src/third_party/asn1/JoinGameFailed.c +++ /dev/null @@ -1,194 +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 "JoinGameFailed.h" - -static int -joinGameFailureReason_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 -joinGameFailureReason_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 -joinGameFailureReason_2_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - joinGameFailureReason_2_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -joinGameFailureReason_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - joinGameFailureReason_2_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -joinGameFailureReason_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) { - joinGameFailureReason_2_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -joinGameFailureReason_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) { - joinGameFailureReason_2_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -joinGameFailureReason_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) { - joinGameFailureReason_2_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -joinGameFailureReason_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) { - joinGameFailureReason_2_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_joinGameFailureReason_value2enum_2[] = { - { 1, 11, "invalidGame" }, - { 2, 10, "gameIsFull" }, - { 3, 13, "gameIsRunning" }, - { 4, 15, "invalidPassword" }, - { 5, 17, "notAllowedAsGuest" }, - { 6, 10, "notInvited" }, - { 7, 13, "gameNameInUse" }, - { 8, 11, "badGameName" }, - { 9, 15, "invalidSettings" }, - { 10, 16, "ipAddressBlocked" }, - { 11, 12, "rejoinFailed" } -}; -static unsigned int asn_MAP_joinGameFailureReason_enum2value_2[] = { - 7, /* badGameName(8) */ - 1, /* gameIsFull(2) */ - 2, /* gameIsRunning(3) */ - 6, /* gameNameInUse(7) */ - 0, /* invalidGame(1) */ - 3, /* invalidPassword(4) */ - 8, /* invalidSettings(9) */ - 9, /* ipAddressBlocked(10) */ - 4, /* notAllowedAsGuest(5) */ - 5, /* notInvited(6) */ - 10 /* rejoinFailed(11) */ -}; -static asn_INTEGER_specifics_t asn_SPC_joinGameFailureReason_specs_2 = { - asn_MAP_joinGameFailureReason_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_joinGameFailureReason_enum2value_2, /* N => "tag"; sorted by N */ - 11, /* 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_joinGameFailureReason_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_joinGameFailureReason_2 = { - "joinGameFailureReason", - "joinGameFailureReason", - joinGameFailureReason_2_free, - joinGameFailureReason_2_print, - joinGameFailureReason_2_constraint, - joinGameFailureReason_2_decode_ber, - joinGameFailureReason_2_encode_der, - joinGameFailureReason_2_decode_xer, - joinGameFailureReason_2_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_joinGameFailureReason_tags_2, - sizeof(asn_DEF_joinGameFailureReason_tags_2) - /sizeof(asn_DEF_joinGameFailureReason_tags_2[0]), /* 1 */ - asn_DEF_joinGameFailureReason_tags_2, /* Same as above */ - sizeof(asn_DEF_joinGameFailureReason_tags_2) - /sizeof(asn_DEF_joinGameFailureReason_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_joinGameFailureReason_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_JoinGameFailed_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinGameFailed, joinGameFailureReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_joinGameFailureReason_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameFailureReason" - }, -}; -static ber_tlv_tag_t asn_DEF_JoinGameFailed_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_JoinGameFailed_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* joinGameFailureReason at 320 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_JoinGameFailed_specs_1 = { - sizeof(struct JoinGameFailed), - offsetof(struct JoinGameFailed, _asn_ctx), - asn_MAP_JoinGameFailed_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_JoinGameFailed = { - "JoinGameFailed", - "JoinGameFailed", - 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_JoinGameFailed_tags_1, - sizeof(asn_DEF_JoinGameFailed_tags_1) - /sizeof(asn_DEF_JoinGameFailed_tags_1[0]), /* 1 */ - asn_DEF_JoinGameFailed_tags_1, /* Same as above */ - sizeof(asn_DEF_JoinGameFailed_tags_1) - /sizeof(asn_DEF_JoinGameFailed_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_JoinGameFailed_1, - 1, /* Elements count */ - &asn_SPC_JoinGameFailed_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/JoinGameFailed.h b/src/third_party/asn1/JoinGameFailed.h deleted file mode 100644 index 78021f7e..00000000 --- a/src/third_party/asn1/JoinGameFailed.h +++ /dev/null @@ -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` - */ - -#ifndef _JoinGameFailed_H_ -#define _JoinGameFailed_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum joinGameFailureReason { - joinGameFailureReason_invalidGame = 1, - joinGameFailureReason_gameIsFull = 2, - joinGameFailureReason_gameIsRunning = 3, - joinGameFailureReason_invalidPassword = 4, - joinGameFailureReason_notAllowedAsGuest = 5, - joinGameFailureReason_notInvited = 6, - joinGameFailureReason_gameNameInUse = 7, - joinGameFailureReason_badGameName = 8, - joinGameFailureReason_invalidSettings = 9, - joinGameFailureReason_ipAddressBlocked = 10, - joinGameFailureReason_rejoinFailed = 11 - } - e_joinGameFailureReason; - - /* JoinGameFailed */ - typedef struct JoinGameFailed { - long joinGameFailureReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } JoinGameFailed_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_joinGameFailureReason_2; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_JoinGameFailed; - -#ifdef __cplusplus -} -#endif - -#endif /* _JoinGameFailed_H_ */ -#include diff --git a/src/third_party/asn1/JoinGameReplyMessage.c b/src/third_party/asn1/JoinGameReplyMessage.c deleted file mode 100644 index a2fd843c..00000000 --- a/src/third_party/asn1/JoinGameReplyMessage.c +++ /dev/null @@ -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 "JoinGameReplyMessage.h" - -static asn_TYPE_member_t asn_MBR_joinGameResult_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct joinGameResult, choice.joinGameAck), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_JoinGameAck, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameAck" - }, - { ATF_NOFLAGS, 0, offsetof(struct joinGameResult, choice.joinGameFailed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_JoinGameFailed, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameFailed" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_joinGameResult_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* joinGameAck at 308 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* joinGameFailed at 310 */ -}; -static asn_CHOICE_specifics_t asn_SPC_joinGameResult_specs_3 = { - sizeof(struct joinGameResult), - offsetof(struct joinGameResult, _asn_ctx), - offsetof(struct joinGameResult, present), - sizeof(((struct joinGameResult *)0)->present), - asn_MAP_joinGameResult_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_joinGameResult_3 = { - "joinGameResult", - "joinGameResult", - 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_joinGameResult_3, - 2, /* Elements count */ - &asn_SPC_joinGameResult_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_JoinGameReplyMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinGameReplyMessage, 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 JoinGameReplyMessage, joinGameResult), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_joinGameResult_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameResult" - }, -}; -static ber_tlv_tag_t asn_DEF_JoinGameReplyMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (12 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_JoinGameReplyMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 306 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* joinGameAck at 308 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* joinGameFailed at 310 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_JoinGameReplyMessage_specs_1 = { - sizeof(struct JoinGameReplyMessage), - offsetof(struct JoinGameReplyMessage, _asn_ctx), - asn_MAP_JoinGameReplyMessage_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_JoinGameReplyMessage = { - "JoinGameReplyMessage", - "JoinGameReplyMessage", - 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_JoinGameReplyMessage_tags_1, - sizeof(asn_DEF_JoinGameReplyMessage_tags_1) - /sizeof(asn_DEF_JoinGameReplyMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_JoinGameReplyMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_JoinGameReplyMessage_tags_1) - /sizeof(asn_DEF_JoinGameReplyMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_JoinGameReplyMessage_1, - 2, /* Elements count */ - &asn_SPC_JoinGameReplyMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/JoinGameReplyMessage.h b/src/third_party/asn1/JoinGameReplyMessage.h deleted file mode 100644 index 071d026f..00000000 --- a/src/third_party/asn1/JoinGameReplyMessage.h +++ /dev/null @@ -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 _JoinGameReplyMessage_H_ -#define _JoinGameReplyMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "JoinGameAck.h" -#include "JoinGameFailed.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum joinGameResult_PR { - joinGameResult_PR_NOTHING, /* No components present */ - joinGameResult_PR_joinGameAck, - joinGameResult_PR_joinGameFailed, - /* Extensions may appear below */ - - } - joinGameResult_PR; - - /* JoinGameReplyMessage */ - typedef struct JoinGameReplyMessage { - NonZeroId_t gameId; - struct joinGameResult { - joinGameResult_PR present; - union JoinGameReplyMessage__joinGameResult_u { - JoinGameAck_t joinGameAck; - JoinGameFailed_t joinGameFailed; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } joinGameResult; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } JoinGameReplyMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_JoinGameReplyMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _JoinGameReplyMessage_H_ */ -#include diff --git a/src/third_party/asn1/JoinGameRequestMessage.c b/src/third_party/asn1/JoinGameRequestMessage.c deleted file mode 100644 index 1641b44e..00000000 --- a/src/third_party/asn1/JoinGameRequestMessage.c +++ /dev/null @@ -1,139 +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 "JoinGameRequestMessage.h" - -static asn_TYPE_member_t asn_MBR_joinGameAction_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct joinGameAction, choice.joinExistingGame), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_JoinExistingGame, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinExistingGame" - }, - { ATF_NOFLAGS, 0, offsetof(struct joinGameAction, choice.joinNewGame), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_JoinNewGame, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinNewGame" - }, - { ATF_NOFLAGS, 0, offsetof(struct joinGameAction, choice.rejoinExistingGame), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RejoinExistingGame, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "rejoinExistingGame" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_joinGameAction_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* joinExistingGame at 284 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* joinNewGame at 285 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rejoinExistingGame at 287 */ -}; -static asn_CHOICE_specifics_t asn_SPC_joinGameAction_specs_2 = { - sizeof(struct joinGameAction), - offsetof(struct joinGameAction, _asn_ctx), - offsetof(struct joinGameAction, present), - sizeof(((struct joinGameAction *)0)->present), - asn_MAP_joinGameAction_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_joinGameAction_2 = { - "joinGameAction", - "joinGameAction", - 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_joinGameAction_2, - 3, /* Elements count */ - &asn_SPC_joinGameAction_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_JoinGameRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinGameRequestMessage, joinGameAction), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_joinGameAction_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameAction" - }, - { ATF_NOFLAGS, 0, offsetof(struct JoinGameRequestMessage, autoLeave), - (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, - "autoLeave" - }, -}; -static ber_tlv_tag_t asn_DEF_JoinGameRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (11 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_JoinGameRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 1, 0, 0 }, /* autoLeave at 288 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* joinExistingGame at 284 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* joinNewGame at 285 */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 } /* rejoinExistingGame at 287 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_JoinGameRequestMessage_specs_1 = { - sizeof(struct JoinGameRequestMessage), - offsetof(struct JoinGameRequestMessage, _asn_ctx), - asn_MAP_JoinGameRequestMessage_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_JoinGameRequestMessage = { - "JoinGameRequestMessage", - "JoinGameRequestMessage", - 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_JoinGameRequestMessage_tags_1, - sizeof(asn_DEF_JoinGameRequestMessage_tags_1) - /sizeof(asn_DEF_JoinGameRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_JoinGameRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_JoinGameRequestMessage_tags_1) - /sizeof(asn_DEF_JoinGameRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_JoinGameRequestMessage_1, - 2, /* Elements count */ - &asn_SPC_JoinGameRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/JoinGameRequestMessage.h b/src/third_party/asn1/JoinGameRequestMessage.h deleted file mode 100644 index c2283c32..00000000 --- a/src/third_party/asn1/JoinGameRequestMessage.h +++ /dev/null @@ -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 _JoinGameRequestMessage_H_ -#define _JoinGameRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include -#include "JoinExistingGame.h" -#include "JoinNewGame.h" -#include "RejoinExistingGame.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum joinGameAction_PR { - joinGameAction_PR_NOTHING, /* No components present */ - joinGameAction_PR_joinExistingGame, - joinGameAction_PR_joinNewGame, - joinGameAction_PR_rejoinExistingGame, - /* Extensions may appear below */ - - } - joinGameAction_PR; - - /* JoinGameRequestMessage */ - typedef struct JoinGameRequestMessage { - struct joinGameAction { - joinGameAction_PR present; - union JoinGameRequestMessage__joinGameAction_u { - JoinExistingGame_t joinExistingGame; - JoinNewGame_t joinNewGame; - RejoinExistingGame_t rejoinExistingGame; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } joinGameAction; - BOOLEAN_t autoLeave; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } JoinGameRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_JoinGameRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _JoinGameRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/JoinNewGame.c b/src/third_party/asn1/JoinNewGame.c deleted file mode 100644 index 98c01f3c..00000000 --- a/src/third_party/asn1/JoinNewGame.c +++ /dev/null @@ -1,101 +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 "JoinNewGame.h" - -static int -memb_password_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 <= 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_JoinNewGame_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct JoinNewGame, 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" - }, - { ATF_POINTER, 1, offsetof(struct JoinNewGame, password), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_password_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "password" - }, -}; -static ber_tlv_tag_t asn_DEF_JoinNewGame_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_JoinNewGame_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* password at 298 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* gameInfo at 297 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_JoinNewGame_specs_1 = { - sizeof(struct JoinNewGame), - offsetof(struct JoinNewGame, _asn_ctx), - asn_MAP_JoinNewGame_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_JoinNewGame = { - "JoinNewGame", - "JoinNewGame", - 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_JoinNewGame_tags_1, - sizeof(asn_DEF_JoinNewGame_tags_1) - /sizeof(asn_DEF_JoinNewGame_tags_1[0]), /* 1 */ - asn_DEF_JoinNewGame_tags_1, /* Same as above */ - sizeof(asn_DEF_JoinNewGame_tags_1) - /sizeof(asn_DEF_JoinNewGame_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_JoinNewGame_1, - 2, /* Elements count */ - &asn_SPC_JoinNewGame_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/JoinNewGame.h b/src/third_party/asn1/JoinNewGame.h deleted file mode 100644 index 98dab381..00000000 --- a/src/third_party/asn1/JoinNewGame.h +++ /dev/null @@ -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 _JoinNewGame_H_ -#define _JoinNewGame_H_ - - -#include - -/* Including external dependencies */ -#include "NetGameInfo.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* JoinNewGame */ - typedef struct JoinNewGame { - NetGameInfo_t gameInfo; - UTF8String_t *password /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } JoinNewGame_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_JoinNewGame; - -#ifdef __cplusplus -} -#endif - -#endif /* _JoinNewGame_H_ */ -#include diff --git a/src/third_party/asn1/KickPetitionUpdateMessage.c b/src/third_party/asn1/KickPetitionUpdateMessage.c deleted file mode 100644 index ea8af128..00000000 --- a/src/third_party/asn1/KickPetitionUpdateMessage.c +++ /dev/null @@ -1,175 +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 "KickPetitionUpdateMessage.h" - -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 int -memb_numVotesNeededToKick_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_TYPE_member_t asn_MBR_KickPetitionUpdateMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct KickPetitionUpdateMessage, 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 KickPetitionUpdateMessage, 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 KickPetitionUpdateMessage, 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 KickPetitionUpdateMessage, 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 KickPetitionUpdateMessage, numVotesNeededToKick), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_numVotesNeededToKick_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "numVotesNeededToKick" - }, -}; -static ber_tlv_tag_t asn_DEF_KickPetitionUpdateMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (69 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_KickPetitionUpdateMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 4 }, /* gameId at 659 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 3 }, /* petitionId at 660 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 2 }, /* numVotesAgainstKicking at 661 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 1 }, /* numVotesInFavourOfKicking at 662 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -4, 0 } /* numVotesNeededToKick at 663 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_KickPetitionUpdateMessage_specs_1 = { - sizeof(struct KickPetitionUpdateMessage), - offsetof(struct KickPetitionUpdateMessage, _asn_ctx), - asn_MAP_KickPetitionUpdateMessage_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_KickPetitionUpdateMessage = { - "KickPetitionUpdateMessage", - "KickPetitionUpdateMessage", - 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_KickPetitionUpdateMessage_tags_1, - sizeof(asn_DEF_KickPetitionUpdateMessage_tags_1) - /sizeof(asn_DEF_KickPetitionUpdateMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_KickPetitionUpdateMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_KickPetitionUpdateMessage_tags_1) - /sizeof(asn_DEF_KickPetitionUpdateMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_KickPetitionUpdateMessage_1, - 5, /* Elements count */ - &asn_SPC_KickPetitionUpdateMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/KickPetitionUpdateMessage.h b/src/third_party/asn1/KickPetitionUpdateMessage.h deleted file mode 100644 index e16da6bb..00000000 --- a/src/third_party/asn1/KickPetitionUpdateMessage.h +++ /dev/null @@ -1,47 +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 _KickPetitionUpdateMessage_H_ -#define _KickPetitionUpdateMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* KickPetitionUpdateMessage */ - typedef struct KickPetitionUpdateMessage { - NonZeroId_t gameId; - NonZeroId_t petitionId; - long numVotesAgainstKicking; - long numVotesInFavourOfKicking; - long numVotesNeededToKick; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } KickPetitionUpdateMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_KickPetitionUpdateMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _KickPetitionUpdateMessage_H_ */ -#include diff --git a/src/third_party/asn1/KickPlayerRequestMessage.c b/src/third_party/asn1/KickPlayerRequestMessage.c deleted file mode 100644 index 5cbf453a..00000000 --- a/src/third_party/asn1/KickPlayerRequestMessage.c +++ /dev/null @@ -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 "KickPlayerRequestMessage.h" - -static asn_TYPE_member_t asn_MBR_KickPlayerRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct KickPlayerRequestMessage, 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 KickPlayerRequestMessage, 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_KickPlayerRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (14 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_KickPlayerRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 401 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 403 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_KickPlayerRequestMessage_specs_1 = { - sizeof(struct KickPlayerRequestMessage), - offsetof(struct KickPlayerRequestMessage, _asn_ctx), - asn_MAP_KickPlayerRequestMessage_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_KickPlayerRequestMessage = { - "KickPlayerRequestMessage", - "KickPlayerRequestMessage", - 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_KickPlayerRequestMessage_tags_1, - sizeof(asn_DEF_KickPlayerRequestMessage_tags_1) - /sizeof(asn_DEF_KickPlayerRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_KickPlayerRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_KickPlayerRequestMessage_tags_1) - /sizeof(asn_DEF_KickPlayerRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_KickPlayerRequestMessage_1, - 2, /* Elements count */ - &asn_SPC_KickPlayerRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/KickPlayerRequestMessage.h b/src/third_party/asn1/KickPlayerRequestMessage.h deleted file mode 100644 index 710b0c05..00000000 --- a/src/third_party/asn1/KickPlayerRequestMessage.h +++ /dev/null @@ -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 _KickPlayerRequestMessage_H_ -#define _KickPlayerRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* KickPlayerRequestMessage */ - typedef struct KickPlayerRequestMessage { - 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; - } KickPlayerRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_KickPlayerRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _KickPlayerRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/LeaveGameRequestMessage.c b/src/third_party/asn1/LeaveGameRequestMessage.c deleted file mode 100644 index 4e504ac3..00000000 --- a/src/third_party/asn1/LeaveGameRequestMessage.c +++ /dev/null @@ -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 "LeaveGameRequestMessage.h" - -static asn_TYPE_member_t asn_MBR_LeaveGameRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LeaveGameRequestMessage, 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_LeaveGameRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (15 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_LeaveGameRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 407 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_LeaveGameRequestMessage_specs_1 = { - sizeof(struct LeaveGameRequestMessage), - offsetof(struct LeaveGameRequestMessage, _asn_ctx), - asn_MAP_LeaveGameRequestMessage_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_LeaveGameRequestMessage = { - "LeaveGameRequestMessage", - "LeaveGameRequestMessage", - 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_LeaveGameRequestMessage_tags_1, - sizeof(asn_DEF_LeaveGameRequestMessage_tags_1) - /sizeof(asn_DEF_LeaveGameRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_LeaveGameRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_LeaveGameRequestMessage_tags_1) - /sizeof(asn_DEF_LeaveGameRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_LeaveGameRequestMessage_1, - 1, /* Elements count */ - &asn_SPC_LeaveGameRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/LeaveGameRequestMessage.h b/src/third_party/asn1/LeaveGameRequestMessage.h deleted file mode 100644 index df6b941d..00000000 --- a/src/third_party/asn1/LeaveGameRequestMessage.h +++ /dev/null @@ -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 _LeaveGameRequestMessage_H_ -#define _LeaveGameRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* LeaveGameRequestMessage */ - typedef struct LeaveGameRequestMessage { - NonZeroId_t gameId; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } LeaveGameRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_LeaveGameRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _LeaveGameRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/MyActionRequestMessage.c b/src/third_party/asn1/MyActionRequestMessage.c deleted file mode 100644 index 35588c31..00000000 --- a/src/third_party/asn1/MyActionRequestMessage.c +++ /dev/null @@ -1,100 +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 "MyActionRequestMessage.h" - -static asn_TYPE_member_t asn_MBR_MyActionRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MyActionRequestMessage, 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 MyActionRequestMessage, handNum), - (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, - "handNum" - }, - { ATF_NOFLAGS, 0, offsetof(struct MyActionRequestMessage, gameState), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetGameState, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameState" - }, - { ATF_NOFLAGS, 0, offsetof(struct MyActionRequestMessage, myAction), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetPlayerAction, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "myAction" - }, - { ATF_NOFLAGS, 0, offsetof(struct MyActionRequestMessage, myRelativeBet), - (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, - "myRelativeBet" - }, -}; -static ber_tlv_tag_t asn_DEF_MyActionRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (25 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_MyActionRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* gameId at 504 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* handNum at 505 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -2, 0 }, /* myRelativeBet at 509 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 1 }, /* gameState at 506 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, -1, 0 } /* myAction at 507 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MyActionRequestMessage_specs_1 = { - sizeof(struct MyActionRequestMessage), - offsetof(struct MyActionRequestMessage, _asn_ctx), - asn_MAP_MyActionRequestMessage_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_MyActionRequestMessage = { - "MyActionRequestMessage", - "MyActionRequestMessage", - 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_MyActionRequestMessage_tags_1, - sizeof(asn_DEF_MyActionRequestMessage_tags_1) - /sizeof(asn_DEF_MyActionRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_MyActionRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_MyActionRequestMessage_tags_1) - /sizeof(asn_DEF_MyActionRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_MyActionRequestMessage_1, - 5, /* Elements count */ - &asn_SPC_MyActionRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/MyActionRequestMessage.h b/src/third_party/asn1/MyActionRequestMessage.h deleted file mode 100644 index 8d897544..00000000 --- a/src/third_party/asn1/MyActionRequestMessage.h +++ /dev/null @@ -1,49 +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 _MyActionRequestMessage_H_ -#define _MyActionRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "NetGameState.h" -#include "NetPlayerAction.h" -#include "AmountOfMoney.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* MyActionRequestMessage */ - typedef struct MyActionRequestMessage { - NonZeroId_t gameId; - NonZeroId_t handNum; - NetGameState_t gameState; - NetPlayerAction_t myAction; - AmountOfMoney_t myRelativeBet; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } MyActionRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_MyActionRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _MyActionRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/NetAvatarType.c b/src/third_party/asn1/NetAvatarType.c deleted file mode 100644 index 5535bc66..00000000 --- a/src/third_party/asn1/NetAvatarType.c +++ /dev/null @@ -1,127 +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 "NetAvatarType.h" - -int -NetAvatarType_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 -NetAvatarType_1_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 */ -} - -void -NetAvatarType_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - NetAvatarType_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -NetAvatarType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - NetAvatarType_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -NetAvatarType_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) { - NetAvatarType_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -NetAvatarType_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) { - NetAvatarType_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -NetAvatarType_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) { - NetAvatarType_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -NetAvatarType_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) { - NetAvatarType_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_NetAvatarType_value2enum_1[] = { - { 1, 14, "avatarImagePng" }, - { 2, 14, "avatarImageJpg" }, - { 3, 14, "avatarImageGif" } -}; -static unsigned int asn_MAP_NetAvatarType_enum2value_1[] = { - 2, /* avatarImageGif(3) */ - 1, /* avatarImageJpg(2) */ - 0 /* avatarImagePng(1) */ -}; -static asn_INTEGER_specifics_t asn_SPC_NetAvatarType_specs_1 = { - asn_MAP_NetAvatarType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NetAvatarType_enum2value_1, /* 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_NetAvatarType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NetAvatarType = { - "NetAvatarType", - "NetAvatarType", - NetAvatarType_free, - NetAvatarType_print, - NetAvatarType_constraint, - NetAvatarType_decode_ber, - NetAvatarType_encode_der, - NetAvatarType_decode_xer, - NetAvatarType_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NetAvatarType_tags_1, - sizeof(asn_DEF_NetAvatarType_tags_1) - /sizeof(asn_DEF_NetAvatarType_tags_1[0]), /* 1 */ - asn_DEF_NetAvatarType_tags_1, /* Same as above */ - sizeof(asn_DEF_NetAvatarType_tags_1) - /sizeof(asn_DEF_NetAvatarType_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_NetAvatarType_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NetAvatarType.h b/src/third_party/asn1/NetAvatarType.h deleted file mode 100644 index 7a7b0102..00000000 --- a/src/third_party/asn1/NetAvatarType.h +++ /dev/null @@ -1,47 +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 _NetAvatarType_H_ -#define _NetAvatarType_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum NetAvatarType { - NetAvatarType_avatarImagePng = 1, - NetAvatarType_avatarImageJpg = 2, - NetAvatarType_avatarImageGif = 3 - } - e_NetAvatarType; - - /* NetAvatarType */ - typedef long NetAvatarType_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_NetAvatarType; - asn_struct_free_f NetAvatarType_free; - asn_struct_print_f NetAvatarType_print; - asn_constr_check_f NetAvatarType_constraint; - ber_type_decoder_f NetAvatarType_decode_ber; - der_type_encoder_f NetAvatarType_encode_der; - xer_type_decoder_f NetAvatarType_decode_xer; - xer_type_encoder_f NetAvatarType_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _NetAvatarType_H_ */ -#include diff --git a/src/third_party/asn1/NetGameInfo.c b/src/third_party/asn1/NetGameInfo.c deleted file mode 100644 index 305cdf8e..00000000 --- a/src/third_party/asn1/NetGameInfo.c +++ /dev/null @@ -1,744 +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 "NetGameInfo.h" - -static int -netGameType_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 -netGameType_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 -netGameType_3_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - netGameType_3_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -netGameType_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - netGameType_3_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -netGameType_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) { - netGameType_3_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -netGameType_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) { - netGameType_3_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -netGameType_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) { - netGameType_3_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -netGameType_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) { - netGameType_3_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static int -memb_raiseEveryHands_constraint_9(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 <= 1000)) { - /* 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_raiseEveryMinutes_constraint_9(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 <= 1000)) { - /* 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 -endRaiseMode_13_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 -endRaiseMode_13_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 -endRaiseMode_13_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - endRaiseMode_13_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -endRaiseMode_13_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - endRaiseMode_13_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -endRaiseMode_13_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) { - endRaiseMode_13_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -endRaiseMode_13_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) { - endRaiseMode_13_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -endRaiseMode_13_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) { - endRaiseMode_13_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -endRaiseMode_13_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) { - endRaiseMode_13_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static int -memb_gameName_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 <= 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 int -memb_maxNumPlayers_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 >= 2 && value <= 10)) { - /* 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_proposedGuiSpeed_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 <= 11)) { - /* 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_delayBetweenHands_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 >= 5 && value <= 20)) { - /* 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_playerActionTimeout_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 <= 60)) { - /* 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_firstSmallBlind_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 <= 20000)) { - /* 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_manualBlinds_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 <= 30)) { - /* 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_INTEGER_enum_map_t asn_MAP_netGameType_value2enum_3[] = { - { 1, 10, "normalGame" }, - { 2, 18, "registeredOnlyGame" }, - { 3, 14, "inviteOnlyGame" }, - { 4, 11, "rankingGame" } -}; -static unsigned int asn_MAP_netGameType_enum2value_3[] = { - 2, /* inviteOnlyGame(3) */ - 0, /* normalGame(1) */ - 3, /* rankingGame(4) */ - 1 /* registeredOnlyGame(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_netGameType_specs_3 = { - asn_MAP_netGameType_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_netGameType_enum2value_3, /* 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_netGameType_tags_3[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_netGameType_3 = { - "netGameType", - "netGameType", - netGameType_3_free, - netGameType_3_print, - netGameType_3_constraint, - netGameType_3_decode_ber, - netGameType_3_encode_der, - netGameType_3_decode_xer, - netGameType_3_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_netGameType_tags_3, - sizeof(asn_DEF_netGameType_tags_3) - /sizeof(asn_DEF_netGameType_tags_3[0]), /* 1 */ - asn_DEF_netGameType_tags_3, /* Same as above */ - sizeof(asn_DEF_netGameType_tags_3) - /sizeof(asn_DEF_netGameType_tags_3[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_netGameType_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_raiseIntervalMode_9[] = { - { ATF_NOFLAGS, 0, offsetof(struct raiseIntervalMode, choice.raiseEveryHands), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - memb_raiseEveryHands_constraint_9, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "raiseEveryHands" - }, - { ATF_NOFLAGS, 0, offsetof(struct raiseIntervalMode, choice.raiseEveryMinutes), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - memb_raiseEveryMinutes_constraint_9, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "raiseEveryMinutes" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_raiseIntervalMode_tag2el_9[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* raiseEveryHands at 344 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* raiseEveryMinutes at 345 */ -}; -static asn_CHOICE_specifics_t asn_SPC_raiseIntervalMode_specs_9 = { - sizeof(struct raiseIntervalMode), - offsetof(struct raiseIntervalMode, _asn_ctx), - offsetof(struct raiseIntervalMode, present), - sizeof(((struct raiseIntervalMode *)0)->present), - asn_MAP_raiseIntervalMode_tag2el_9, - 2, /* Count of tags in the map */ - 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_raiseIntervalMode_9 = { - "raiseIntervalMode", - "raiseIntervalMode", - 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_raiseIntervalMode_9, - 2, /* Elements count */ - &asn_SPC_raiseIntervalMode_specs_9 /* Additional specs */ -}; - -static asn_INTEGER_enum_map_t asn_MAP_endRaiseMode_value2enum_13[] = { - { 1, 12, "doubleBlinds" }, - { 2, 15, "raiseByEndValue" }, - { 3, 13, "keepLastBlind" } -}; -static unsigned int asn_MAP_endRaiseMode_enum2value_13[] = { - 0, /* doubleBlinds(1) */ - 2, /* keepLastBlind(3) */ - 1 /* raiseByEndValue(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_endRaiseMode_specs_13 = { - asn_MAP_endRaiseMode_value2enum_13, /* "tag" => N; sorted by tag */ - asn_MAP_endRaiseMode_enum2value_13, /* 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_endRaiseMode_tags_13[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_endRaiseMode_13 = { - "endRaiseMode", - "endRaiseMode", - endRaiseMode_13_free, - endRaiseMode_13_print, - endRaiseMode_13_constraint, - endRaiseMode_13_decode_ber, - endRaiseMode_13_encode_der, - endRaiseMode_13_decode_xer, - endRaiseMode_13_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_endRaiseMode_tags_13, - sizeof(asn_DEF_endRaiseMode_tags_13) - /sizeof(asn_DEF_endRaiseMode_tags_13[0]), /* 1 */ - asn_DEF_endRaiseMode_tags_13, /* Same as above */ - sizeof(asn_DEF_endRaiseMode_tags_13) - /sizeof(asn_DEF_endRaiseMode_tags_13[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_endRaiseMode_specs_13 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_manualBlinds_23[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_InitialNonZeroAmountOfMoney, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "" - }, -}; -static ber_tlv_tag_t asn_DEF_manualBlinds_tags_23[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_manualBlinds_specs_23 = { - sizeof(struct manualBlinds), - offsetof(struct manualBlinds, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_manualBlinds_23 = { - "manualBlinds", - "manualBlinds", - 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_manualBlinds_tags_23, - sizeof(asn_DEF_manualBlinds_tags_23) - /sizeof(asn_DEF_manualBlinds_tags_23[0]), /* 1 */ - asn_DEF_manualBlinds_tags_23, /* Same as above */ - sizeof(asn_DEF_manualBlinds_tags_23) - /sizeof(asn_DEF_manualBlinds_tags_23[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_manualBlinds_23, - 1, /* Single element */ - &asn_SPC_manualBlinds_specs_23 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_NetGameInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, gameName), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_gameName_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameName" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, netGameType), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_netGameType_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "netGameType" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, maxNumPlayers), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_maxNumPlayers_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "maxNumPlayers" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, raiseIntervalMode), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_raiseIntervalMode_9, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "raiseIntervalMode" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, endRaiseMode), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_endRaiseMode_13, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "endRaiseMode" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, proposedGuiSpeed), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_proposedGuiSpeed_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "proposedGuiSpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, delayBetweenHands), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_delayBetweenHands_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "delayBetweenHands" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, playerActionTimeout), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_playerActionTimeout_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerActionTimeout" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, firstSmallBlind), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_firstSmallBlind_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "firstSmallBlind" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, endRaiseSmallBlindValue), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_InitialAmountOfMoney, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "endRaiseSmallBlindValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, startMoney), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_InitialNonZeroAmountOfMoney, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "startMoney" - }, - { ATF_NOFLAGS, 0, offsetof(struct NetGameInfo, manualBlinds), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_manualBlinds_23, - memb_manualBlinds_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "manualBlinds" - }, -}; -static ber_tlv_tag_t asn_DEF_NetGameInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_NetGameInfo_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 6 }, /* maxNumPlayers at 342 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 5, -1, 5 }, /* proposedGuiSpeed at 352 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 6, -2, 4 }, /* delayBetweenHands at 353 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 7, -3, 3 }, /* playerActionTimeout at 354 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 8, -4, 2 }, /* firstSmallBlind at 355 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 9, -5, 1 }, /* endRaiseSmallBlindValue at 356 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 10, -6, 0 }, /* startMoney at 357 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 1 }, /* netGameType at 337 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 4, -1, 0 }, /* endRaiseMode at 348 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* gameName at 335 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 11, 0, 0 }, /* manualBlinds at 359 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* raiseEveryHands at 344 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 } /* raiseEveryMinutes at 345 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_NetGameInfo_specs_1 = { - sizeof(struct NetGameInfo), - offsetof(struct NetGameInfo, _asn_ctx), - asn_MAP_NetGameInfo_tag2el_1, - 13, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 11, /* Start extensions */ - 13 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_NetGameInfo = { - "NetGameInfo", - "NetGameInfo", - 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_NetGameInfo_tags_1, - sizeof(asn_DEF_NetGameInfo_tags_1) - /sizeof(asn_DEF_NetGameInfo_tags_1[0]), /* 1 */ - asn_DEF_NetGameInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_NetGameInfo_tags_1) - /sizeof(asn_DEF_NetGameInfo_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_NetGameInfo_1, - 12, /* Elements count */ - &asn_SPC_NetGameInfo_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NetGameInfo.h b/src/third_party/asn1/NetGameInfo.h deleted file mode 100644 index 492ef1b2..00000000 --- a/src/third_party/asn1/NetGameInfo.h +++ /dev/null @@ -1,101 +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 _NetGameInfo_H_ -#define _NetGameInfo_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include -#include "InitialAmountOfMoney.h" -#include "InitialNonZeroAmountOfMoney.h" -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum netGameType { - netGameType_normalGame = 1, - netGameType_registeredOnlyGame = 2, - netGameType_inviteOnlyGame = 3, - netGameType_rankingGame = 4 - } - e_netGameType; - typedef enum raiseIntervalMode_PR { - raiseIntervalMode_PR_NOTHING, /* No components present */ - raiseIntervalMode_PR_raiseEveryHands, - raiseIntervalMode_PR_raiseEveryMinutes, - /* Extensions may appear below */ - - } raiseIntervalMode_PR; - typedef enum endRaiseMode { - endRaiseMode_doubleBlinds = 1, - endRaiseMode_raiseByEndValue = 2, - endRaiseMode_keepLastBlind = 3 - } e_endRaiseMode; - - /* NetGameInfo */ - typedef struct NetGameInfo { - UTF8String_t gameName; - long netGameType; - long maxNumPlayers; - struct raiseIntervalMode { - raiseIntervalMode_PR present; - union NetGameInfo__raiseIntervalMode_u { - long raiseEveryHands; - long raiseEveryMinutes; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } raiseIntervalMode; - long endRaiseMode; - long proposedGuiSpeed; - long delayBetweenHands; - long playerActionTimeout; - long firstSmallBlind; - InitialAmountOfMoney_t endRaiseSmallBlindValue; - InitialNonZeroAmountOfMoney_t startMoney; - struct manualBlinds { - A_SEQUENCE_OF(InitialNonZeroAmountOfMoney_t) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } manualBlinds; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } NetGameInfo_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_netGameType_3; // (Use -fall-defs-global to expose) */ - /* extern asn_TYPE_descriptor_t asn_DEF_endRaiseMode_13; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_NetGameInfo; - -#ifdef __cplusplus -} -#endif - -#endif /* _NetGameInfo_H_ */ -#include diff --git a/src/third_party/asn1/NetGameMode.c b/src/third_party/asn1/NetGameMode.c deleted file mode 100644 index d76f0400..00000000 --- a/src/third_party/asn1/NetGameMode.c +++ /dev/null @@ -1,127 +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 "NetGameMode.h" - -int -NetGameMode_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 -NetGameMode_1_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 */ -} - -void -NetGameMode_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - NetGameMode_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -NetGameMode_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - NetGameMode_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -NetGameMode_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) { - NetGameMode_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -NetGameMode_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) { - NetGameMode_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -NetGameMode_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) { - NetGameMode_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -NetGameMode_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) { - NetGameMode_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_NetGameMode_value2enum_1[] = { - { 1, 11, "gameCreated" }, - { 2, 11, "gameStarted" }, - { 3, 10, "gameClosed" } -}; -static unsigned int asn_MAP_NetGameMode_enum2value_1[] = { - 2, /* gameClosed(3) */ - 0, /* gameCreated(1) */ - 1 /* gameStarted(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_NetGameMode_specs_1 = { - asn_MAP_NetGameMode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NetGameMode_enum2value_1, /* 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_NetGameMode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NetGameMode = { - "NetGameMode", - "NetGameMode", - NetGameMode_free, - NetGameMode_print, - NetGameMode_constraint, - NetGameMode_decode_ber, - NetGameMode_encode_der, - NetGameMode_decode_xer, - NetGameMode_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NetGameMode_tags_1, - sizeof(asn_DEF_NetGameMode_tags_1) - /sizeof(asn_DEF_NetGameMode_tags_1[0]), /* 1 */ - asn_DEF_NetGameMode_tags_1, /* Same as above */ - sizeof(asn_DEF_NetGameMode_tags_1) - /sizeof(asn_DEF_NetGameMode_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_NetGameMode_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NetGameMode.h b/src/third_party/asn1/NetGameMode.h deleted file mode 100644 index 4693e2bf..00000000 --- a/src/third_party/asn1/NetGameMode.h +++ /dev/null @@ -1,47 +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 _NetGameMode_H_ -#define _NetGameMode_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum NetGameMode { - NetGameMode_gameCreated = 1, - NetGameMode_gameStarted = 2, - NetGameMode_gameClosed = 3 - } - e_NetGameMode; - - /* NetGameMode */ - typedef long NetGameMode_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_NetGameMode; - asn_struct_free_f NetGameMode_free; - asn_struct_print_f NetGameMode_print; - asn_constr_check_f NetGameMode_constraint; - ber_type_decoder_f NetGameMode_decode_ber; - der_type_encoder_f NetGameMode_encode_der; - xer_type_decoder_f NetGameMode_decode_xer; - xer_type_encoder_f NetGameMode_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _NetGameMode_H_ */ -#include diff --git a/src/third_party/asn1/NetGameState.c b/src/third_party/asn1/NetGameState.c deleted file mode 100644 index c07ec3e3..00000000 --- a/src/third_party/asn1/NetGameState.c +++ /dev/null @@ -1,133 +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 "NetGameState.h" - -int -NetGameState_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 -NetGameState_1_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 */ -} - -void -NetGameState_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - NetGameState_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -NetGameState_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - NetGameState_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -NetGameState_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) { - NetGameState_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -NetGameState_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) { - NetGameState_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -NetGameState_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) { - NetGameState_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -NetGameState_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) { - NetGameState_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_NetGameState_value2enum_1[] = { - { 0, 12, "statePreflop" }, - { 1, 9, "stateFlop" }, - { 2, 9, "stateTurn" }, - { 3, 10, "stateRiver" }, - { 4, 22, "statePreflopSmallBlind" }, - { 5, 20, "statePreflopBigBlind" } -}; -static unsigned int asn_MAP_NetGameState_enum2value_1[] = { - 1, /* stateFlop(1) */ - 0, /* statePreflop(0) */ - 5, /* statePreflopBigBlind(5) */ - 4, /* statePreflopSmallBlind(4) */ - 3, /* stateRiver(3) */ - 2 /* stateTurn(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_NetGameState_specs_1 = { - asn_MAP_NetGameState_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NetGameState_enum2value_1, /* N => "tag"; sorted by N */ - 6, /* 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_NetGameState_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NetGameState = { - "NetGameState", - "NetGameState", - NetGameState_free, - NetGameState_print, - NetGameState_constraint, - NetGameState_decode_ber, - NetGameState_encode_der, - NetGameState_decode_xer, - NetGameState_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NetGameState_tags_1, - sizeof(asn_DEF_NetGameState_tags_1) - /sizeof(asn_DEF_NetGameState_tags_1[0]), /* 1 */ - asn_DEF_NetGameState_tags_1, /* Same as above */ - sizeof(asn_DEF_NetGameState_tags_1) - /sizeof(asn_DEF_NetGameState_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_NetGameState_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NetGameState.h b/src/third_party/asn1/NetGameState.h deleted file mode 100644 index f2f5c974..00000000 --- a/src/third_party/asn1/NetGameState.h +++ /dev/null @@ -1,50 +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 _NetGameState_H_ -#define _NetGameState_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum NetGameState { - NetGameState_statePreflop = 0, - NetGameState_stateFlop = 1, - NetGameState_stateTurn = 2, - NetGameState_stateRiver = 3, - NetGameState_statePreflopSmallBlind = 4, - NetGameState_statePreflopBigBlind = 5 - } - e_NetGameState; - - /* NetGameState */ - typedef long NetGameState_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_NetGameState; - asn_struct_free_f NetGameState_free; - asn_struct_print_f NetGameState_print; - asn_constr_check_f NetGameState_constraint; - ber_type_decoder_f NetGameState_decode_ber; - der_type_encoder_f NetGameState_encode_der; - xer_type_decoder_f NetGameState_decode_xer; - xer_type_encoder_f NetGameState_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _NetGameState_H_ */ -#include diff --git a/src/third_party/asn1/NetPlayerAction.c b/src/third_party/asn1/NetPlayerAction.c deleted file mode 100644 index 79bab4c2..00000000 --- a/src/third_party/asn1/NetPlayerAction.c +++ /dev/null @@ -1,135 +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 "NetPlayerAction.h" - -int -NetPlayerAction_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 -NetPlayerAction_1_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 */ -} - -void -NetPlayerAction_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - NetPlayerAction_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -NetPlayerAction_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - NetPlayerAction_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -NetPlayerAction_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) { - NetPlayerAction_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -NetPlayerAction_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) { - NetPlayerAction_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -NetPlayerAction_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) { - NetPlayerAction_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -NetPlayerAction_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) { - NetPlayerAction_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_NetPlayerAction_value2enum_1[] = { - { 0, 10, "actionNone" }, - { 1, 10, "actionFold" }, - { 2, 11, "actionCheck" }, - { 3, 10, "actionCall" }, - { 4, 9, "actionBet" }, - { 5, 11, "actionRaise" }, - { 6, 11, "actionAllIn" } -}; -static unsigned int asn_MAP_NetPlayerAction_enum2value_1[] = { - 6, /* actionAllIn(6) */ - 4, /* actionBet(4) */ - 3, /* actionCall(3) */ - 2, /* actionCheck(2) */ - 1, /* actionFold(1) */ - 0, /* actionNone(0) */ - 5 /* actionRaise(5) */ -}; -static asn_INTEGER_specifics_t asn_SPC_NetPlayerAction_specs_1 = { - asn_MAP_NetPlayerAction_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NetPlayerAction_enum2value_1, /* N => "tag"; sorted by N */ - 7, /* 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_NetPlayerAction_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NetPlayerAction = { - "NetPlayerAction", - "NetPlayerAction", - NetPlayerAction_free, - NetPlayerAction_print, - NetPlayerAction_constraint, - NetPlayerAction_decode_ber, - NetPlayerAction_encode_der, - NetPlayerAction_decode_xer, - NetPlayerAction_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NetPlayerAction_tags_1, - sizeof(asn_DEF_NetPlayerAction_tags_1) - /sizeof(asn_DEF_NetPlayerAction_tags_1[0]), /* 1 */ - asn_DEF_NetPlayerAction_tags_1, /* Same as above */ - sizeof(asn_DEF_NetPlayerAction_tags_1) - /sizeof(asn_DEF_NetPlayerAction_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_NetPlayerAction_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NetPlayerAction.h b/src/third_party/asn1/NetPlayerAction.h deleted file mode 100644 index c0284542..00000000 --- a/src/third_party/asn1/NetPlayerAction.h +++ /dev/null @@ -1,51 +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 _NetPlayerAction_H_ -#define _NetPlayerAction_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum NetPlayerAction { - NetPlayerAction_actionNone = 0, - NetPlayerAction_actionFold = 1, - NetPlayerAction_actionCheck = 2, - NetPlayerAction_actionCall = 3, - NetPlayerAction_actionBet = 4, - NetPlayerAction_actionRaise = 5, - NetPlayerAction_actionAllIn = 6 - } - e_NetPlayerAction; - - /* NetPlayerAction */ - typedef long NetPlayerAction_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_NetPlayerAction; - asn_struct_free_f NetPlayerAction_free; - asn_struct_print_f NetPlayerAction_print; - asn_constr_check_f NetPlayerAction_constraint; - ber_type_decoder_f NetPlayerAction_decode_ber; - der_type_encoder_f NetPlayerAction_encode_der; - xer_type_decoder_f NetPlayerAction_decode_xer; - xer_type_encoder_f NetPlayerAction_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _NetPlayerAction_H_ */ -#include diff --git a/src/third_party/asn1/NetPlayerState.c b/src/third_party/asn1/NetPlayerState.c deleted file mode 100644 index 713a6570..00000000 --- a/src/third_party/asn1/NetPlayerState.c +++ /dev/null @@ -1,127 +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 "NetPlayerState.h" - -int -NetPlayerState_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 -NetPlayerState_1_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 */ -} - -void -NetPlayerState_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - NetPlayerState_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -NetPlayerState_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - NetPlayerState_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -NetPlayerState_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) { - NetPlayerState_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -NetPlayerState_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) { - NetPlayerState_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -NetPlayerState_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) { - NetPlayerState_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -NetPlayerState_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) { - NetPlayerState_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_NetPlayerState_value2enum_1[] = { - { 0, 17, "playerStateNormal" }, - { 1, 26, "playerStateSessionInactive" }, - { 2, 18, "playerStateNoMoney" } -}; -static unsigned int asn_MAP_NetPlayerState_enum2value_1[] = { - 2, /* playerStateNoMoney(2) */ - 0, /* playerStateNormal(0) */ - 1 /* playerStateSessionInactive(1) */ -}; -static asn_INTEGER_specifics_t asn_SPC_NetPlayerState_specs_1 = { - asn_MAP_NetPlayerState_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_NetPlayerState_enum2value_1, /* 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_NetPlayerState_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NetPlayerState = { - "NetPlayerState", - "NetPlayerState", - NetPlayerState_free, - NetPlayerState_print, - NetPlayerState_constraint, - NetPlayerState_decode_ber, - NetPlayerState_encode_der, - NetPlayerState_decode_xer, - NetPlayerState_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NetPlayerState_tags_1, - sizeof(asn_DEF_NetPlayerState_tags_1) - /sizeof(asn_DEF_NetPlayerState_tags_1[0]), /* 1 */ - asn_DEF_NetPlayerState_tags_1, /* Same as above */ - sizeof(asn_DEF_NetPlayerState_tags_1) - /sizeof(asn_DEF_NetPlayerState_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_NetPlayerState_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NetPlayerState.h b/src/third_party/asn1/NetPlayerState.h deleted file mode 100644 index 6fb3e0a0..00000000 --- a/src/third_party/asn1/NetPlayerState.h +++ /dev/null @@ -1,47 +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 _NetPlayerState_H_ -#define _NetPlayerState_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum NetPlayerState { - NetPlayerState_playerStateNormal = 0, - NetPlayerState_playerStateSessionInactive = 1, - NetPlayerState_playerStateNoMoney = 2 - } - e_NetPlayerState; - - /* NetPlayerState */ - typedef long NetPlayerState_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_NetPlayerState; - asn_struct_free_f NetPlayerState_free; - asn_struct_print_f NetPlayerState_print; - asn_constr_check_f NetPlayerState_constraint; - ber_type_decoder_f NetPlayerState_decode_ber; - der_type_encoder_f NetPlayerState_encode_der; - xer_type_decoder_f NetPlayerState_decode_xer; - xer_type_encoder_f NetPlayerState_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _NetPlayerState_H_ */ -#include diff --git a/src/third_party/asn1/NonZeroId.c b/src/third_party/asn1/NonZeroId.c deleted file mode 100644 index 061608ef..00000000 --- a/src/third_party/asn1/NonZeroId.c +++ /dev/null @@ -1,130 +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 "NonZeroId.h" - -int -NonZeroId_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - unsigned long value; - - if(!sptr) { - _ASN_CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const unsigned long *)sptr; - - if((value >= 1 && value <= 4294967295)) { - /* 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 -NonZeroId_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; // Defined explicitly */ -} - -void -NonZeroId_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - NonZeroId_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -NonZeroId_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - NonZeroId_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -NonZeroId_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) { - NonZeroId_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -NonZeroId_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) { - NonZeroId_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -NonZeroId_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) { - NonZeroId_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -NonZeroId_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) { - NonZeroId_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_specifics_t asn_SPC_NonZeroId_specs_1 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static ber_tlv_tag_t asn_DEF_NonZeroId_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NonZeroId = { - "NonZeroId", - "NonZeroId", - NonZeroId_free, - NonZeroId_print, - NonZeroId_constraint, - NonZeroId_decode_ber, - NonZeroId_encode_der, - NonZeroId_decode_xer, - NonZeroId_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NonZeroId_tags_1, - sizeof(asn_DEF_NonZeroId_tags_1) - /sizeof(asn_DEF_NonZeroId_tags_1[0]), /* 1 */ - asn_DEF_NonZeroId_tags_1, /* Same as above */ - sizeof(asn_DEF_NonZeroId_tags_1) - /sizeof(asn_DEF_NonZeroId_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_NonZeroId_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/NonZeroId.h b/src/third_party/asn1/NonZeroId.h deleted file mode 100644 index 59eaa5db..00000000 --- a/src/third_party/asn1/NonZeroId.h +++ /dev/null @@ -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 _NonZeroId_H_ -#define _NonZeroId_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* NonZeroId */ - typedef unsigned long NonZeroId_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_NonZeroId; - asn_struct_free_f NonZeroId_free; - asn_struct_print_f NonZeroId_print; - asn_constr_check_f NonZeroId_constraint; - ber_type_decoder_f NonZeroId_decode_ber; - der_type_encoder_f NonZeroId_encode_der; - xer_type_decoder_f NonZeroId_decode_xer; - xer_type_encoder_f NonZeroId_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _NonZeroId_H_ */ -#include diff --git a/src/third_party/asn1/PlainCards.c b/src/third_party/asn1/PlainCards.c deleted file mode 100644 index ff6eb99d..00000000 --- a/src/third_party/asn1/PlainCards.c +++ /dev/null @@ -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 "PlainCards.h" - -static asn_TYPE_member_t asn_MBR_PlainCards_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlainCards, plainCard1), - (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, - "plainCard1" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlainCards, plainCard2), - (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, - "plainCard2" - }, -}; -static ber_tlv_tag_t asn_DEF_PlainCards_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlainCards_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* plainCard1 at 479 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* plainCard2 at 481 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlainCards_specs_1 = { - sizeof(struct PlainCards), - offsetof(struct PlainCards, _asn_ctx), - asn_MAP_PlainCards_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_PlainCards = { - "PlainCards", - "PlainCards", - 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_PlainCards_tags_1, - sizeof(asn_DEF_PlainCards_tags_1) - /sizeof(asn_DEF_PlainCards_tags_1[0]), /* 1 */ - asn_DEF_PlainCards_tags_1, /* Same as above */ - sizeof(asn_DEF_PlainCards_tags_1) - /sizeof(asn_DEF_PlainCards_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_PlainCards_1, - 2, /* Elements count */ - &asn_SPC_PlainCards_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlainCards.h b/src/third_party/asn1/PlainCards.h deleted file mode 100644 index 00290714..00000000 --- a/src/third_party/asn1/PlainCards.h +++ /dev/null @@ -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 _PlainCards_H_ -#define _PlainCards_H_ - - -#include - -/* Including external dependencies */ -#include "Card.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlainCards */ - typedef struct PlainCards { - Card_t plainCard1; - Card_t plainCard2; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlainCards_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlainCards; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlainCards_H_ */ -#include diff --git a/src/third_party/asn1/PlayerAllIn.c b/src/third_party/asn1/PlayerAllIn.c deleted file mode 100644 index 867b1df3..00000000 --- a/src/third_party/asn1/PlayerAllIn.c +++ /dev/null @@ -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 "PlayerAllIn.h" - -static asn_TYPE_member_t asn_MBR_PlayerAllIn_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerAllIn, 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 PlayerAllIn, allInCard1), - (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, - "allInCard1" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerAllIn, allInCard2), - (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, - "allInCard2" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayerAllIn_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerAllIn_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* playerId at 557 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* allInCard1 at 558 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* allInCard2 at 560 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerAllIn_specs_1 = { - sizeof(struct PlayerAllIn), - offsetof(struct PlayerAllIn, _asn_ctx), - asn_MAP_PlayerAllIn_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_PlayerAllIn = { - "PlayerAllIn", - "PlayerAllIn", - 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_PlayerAllIn_tags_1, - sizeof(asn_DEF_PlayerAllIn_tags_1) - /sizeof(asn_DEF_PlayerAllIn_tags_1[0]), /* 1 */ - asn_DEF_PlayerAllIn_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerAllIn_tags_1) - /sizeof(asn_DEF_PlayerAllIn_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerAllIn_1, - 3, /* Elements count */ - &asn_SPC_PlayerAllIn_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerAllIn.h b/src/third_party/asn1/PlayerAllIn.h deleted file mode 100644 index 2a073ae1..00000000 --- a/src/third_party/asn1/PlayerAllIn.h +++ /dev/null @@ -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 _PlayerAllIn_H_ -#define _PlayerAllIn_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "Card.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayerAllIn */ - typedef struct PlayerAllIn { - NonZeroId_t playerId; - Card_t allInCard1; - Card_t allInCard2; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerAllIn_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerAllIn; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerAllIn_H_ */ -#include diff --git a/src/third_party/asn1/PlayerIdChangedMessage.c b/src/third_party/asn1/PlayerIdChangedMessage.c deleted file mode 100644 index 89bebe31..00000000 --- a/src/third_party/asn1/PlayerIdChangedMessage.c +++ /dev/null @@ -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 "PlayerIdChangedMessage.h" - -static asn_TYPE_member_t asn_MBR_PlayerIdChangedMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerIdChangedMessage, oldPlayerId), - (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, - "oldPlayerId" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerIdChangedMessage, newPlayerId), - (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, - "newPlayerId" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayerIdChangedMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (36 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerIdChangedMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* oldPlayerId at 603 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* newPlayerId at 605 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerIdChangedMessage_specs_1 = { - sizeof(struct PlayerIdChangedMessage), - offsetof(struct PlayerIdChangedMessage, _asn_ctx), - asn_MAP_PlayerIdChangedMessage_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_PlayerIdChangedMessage = { - "PlayerIdChangedMessage", - "PlayerIdChangedMessage", - 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_PlayerIdChangedMessage_tags_1, - sizeof(asn_DEF_PlayerIdChangedMessage_tags_1) - /sizeof(asn_DEF_PlayerIdChangedMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_PlayerIdChangedMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerIdChangedMessage_tags_1) - /sizeof(asn_DEF_PlayerIdChangedMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerIdChangedMessage_1, - 2, /* Elements count */ - &asn_SPC_PlayerIdChangedMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerIdChangedMessage.h b/src/third_party/asn1/PlayerIdChangedMessage.h deleted file mode 100644 index db337d78..00000000 --- a/src/third_party/asn1/PlayerIdChangedMessage.h +++ /dev/null @@ -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 _PlayerIdChangedMessage_H_ -#define _PlayerIdChangedMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayerIdChangedMessage */ - typedef struct PlayerIdChangedMessage { - NonZeroId_t oldPlayerId; - NonZeroId_t newPlayerId; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerIdChangedMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerIdChangedMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerIdChangedMessage_H_ */ -#include diff --git a/src/third_party/asn1/PlayerInfoData.c b/src/third_party/asn1/PlayerInfoData.c deleted file mode 100644 index 51702528..00000000 --- a/src/third_party/asn1/PlayerInfoData.c +++ /dev/null @@ -1,224 +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 "PlayerInfoData.h" - -static int -memb_playerName_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 <= 32)) { - /* 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_countryCode_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 == 2)) { - /* 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_6[] = { - { ATF_NOFLAGS, 0, offsetof(struct avatarData, 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 avatarData, 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_avatarData_tags_6[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_avatarData_tag2el_6[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* avatar at 267 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* avatarType at 265 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_avatarData_specs_6 = { - sizeof(struct avatarData), - offsetof(struct avatarData, _asn_ctx), - asn_MAP_avatarData_tag2el_6, - 2, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_avatarData_6 = { - "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_6, - sizeof(asn_DEF_avatarData_tags_6) - /sizeof(asn_DEF_avatarData_tags_6[0]), /* 1 */ - asn_DEF_avatarData_tags_6, /* Same as above */ - sizeof(asn_DEF_avatarData_tags_6) - /sizeof(asn_DEF_avatarData_tags_6[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_avatarData_6, - 2, /* Elements count */ - &asn_SPC_avatarData_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_PlayerInfoData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerInfoData, playerName), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_playerName_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerName" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerInfoData, isHuman), - (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, - "isHuman" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerInfoData, playerRights), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_PlayerInfoRights, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerRights" - }, - { ATF_POINTER, 2, offsetof(struct PlayerInfoData, countryCode), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_countryCode_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "countryCode" - }, - { ATF_POINTER, 1, offsetof(struct PlayerInfoData, avatarData), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_avatarData_6, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "avatarData" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayerInfoData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerInfoData_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 1, 0, 0 }, /* isHuman at 261 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 }, /* playerRights at 262 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 1 }, /* playerName at 260 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 3, -1, 0 }, /* countryCode at 263 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, 0, 0 } /* avatarData at 265 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerInfoData_specs_1 = { - sizeof(struct PlayerInfoData), - offsetof(struct PlayerInfoData, _asn_ctx), - asn_MAP_PlayerInfoData_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_PlayerInfoData = { - "PlayerInfoData", - "PlayerInfoData", - 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_PlayerInfoData_tags_1, - sizeof(asn_DEF_PlayerInfoData_tags_1) - /sizeof(asn_DEF_PlayerInfoData_tags_1[0]), /* 1 */ - asn_DEF_PlayerInfoData_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerInfoData_tags_1) - /sizeof(asn_DEF_PlayerInfoData_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerInfoData_1, - 5, /* Elements count */ - &asn_SPC_PlayerInfoData_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerInfoData.h b/src/third_party/asn1/PlayerInfoData.h deleted file mode 100644 index cff0d161..00000000 --- a/src/third_party/asn1/PlayerInfoData.h +++ /dev/null @@ -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 _PlayerInfoData_H_ -#define _PlayerInfoData_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include "PlayerInfoRights.h" -#include "NetAvatarType.h" -#include "AvatarHash.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayerInfoData */ - typedef struct PlayerInfoData { - UTF8String_t playerName; - BOOLEAN_t isHuman; - PlayerInfoRights_t playerRights; - UTF8String_t *countryCode /* OPTIONAL */; - struct avatarData { - NetAvatarType_t avatarType; - AvatarHash_t avatar; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } *avatarData; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerInfoData_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerInfoData; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerInfoData_H_ */ -#include diff --git a/src/third_party/asn1/PlayerInfoReplyMessage.c b/src/third_party/asn1/PlayerInfoReplyMessage.c deleted file mode 100644 index 277283a9..00000000 --- a/src/third_party/asn1/PlayerInfoReplyMessage.c +++ /dev/null @@ -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 "PlayerInfoReplyMessage.h" - -static asn_TYPE_member_t asn_MBR_playerInfoResult_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct playerInfoResult, choice.playerInfoData), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PlayerInfoData, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerInfoData" - }, - { ATF_NOFLAGS, 0, offsetof(struct playerInfoResult, choice.unknownPlayerInfo), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UnknownPlayerInfo, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "unknownPlayerInfo" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_playerInfoResult_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* playerInfoData at 248 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* unknownPlayerInfo at 250 */ -}; -static asn_CHOICE_specifics_t asn_SPC_playerInfoResult_specs_3 = { - sizeof(struct playerInfoResult), - offsetof(struct playerInfoResult, _asn_ctx), - offsetof(struct playerInfoResult, present), - sizeof(((struct playerInfoResult *)0)->present), - asn_MAP_playerInfoResult_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_playerInfoResult_3 = { - "playerInfoResult", - "playerInfoResult", - 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_playerInfoResult_3, - 2, /* Elements count */ - &asn_SPC_playerInfoResult_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_PlayerInfoReplyMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerInfoReplyMessage, 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 PlayerInfoReplyMessage, playerInfoResult), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_playerInfoResult_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerInfoResult" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayerInfoReplyMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (9 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerInfoReplyMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* playerId at 246 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* playerInfoData at 248 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* unknownPlayerInfo at 250 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerInfoReplyMessage_specs_1 = { - sizeof(struct PlayerInfoReplyMessage), - offsetof(struct PlayerInfoReplyMessage, _asn_ctx), - asn_MAP_PlayerInfoReplyMessage_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_PlayerInfoReplyMessage = { - "PlayerInfoReplyMessage", - "PlayerInfoReplyMessage", - 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_PlayerInfoReplyMessage_tags_1, - sizeof(asn_DEF_PlayerInfoReplyMessage_tags_1) - /sizeof(asn_DEF_PlayerInfoReplyMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_PlayerInfoReplyMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerInfoReplyMessage_tags_1) - /sizeof(asn_DEF_PlayerInfoReplyMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerInfoReplyMessage_1, - 2, /* Elements count */ - &asn_SPC_PlayerInfoReplyMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerInfoReplyMessage.h b/src/third_party/asn1/PlayerInfoReplyMessage.h deleted file mode 100644 index ec4be446..00000000 --- a/src/third_party/asn1/PlayerInfoReplyMessage.h +++ /dev/null @@ -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 _PlayerInfoReplyMessage_H_ -#define _PlayerInfoReplyMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "PlayerInfoData.h" -#include "UnknownPlayerInfo.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum playerInfoResult_PR { - playerInfoResult_PR_NOTHING, /* No components present */ - playerInfoResult_PR_playerInfoData, - playerInfoResult_PR_unknownPlayerInfo, - /* Extensions may appear below */ - - } - playerInfoResult_PR; - - /* PlayerInfoReplyMessage */ - typedef struct PlayerInfoReplyMessage { - NonZeroId_t playerId; - struct playerInfoResult { - playerInfoResult_PR present; - union PlayerInfoReplyMessage__playerInfoResult_u { - PlayerInfoData_t playerInfoData; - UnknownPlayerInfo_t unknownPlayerInfo; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } playerInfoResult; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerInfoReplyMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerInfoReplyMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerInfoReplyMessage_H_ */ -#include diff --git a/src/third_party/asn1/PlayerInfoRequestMessage.c b/src/third_party/asn1/PlayerInfoRequestMessage.c deleted file mode 100644 index 1fce6010..00000000 --- a/src/third_party/asn1/PlayerInfoRequestMessage.c +++ /dev/null @@ -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 "PlayerInfoRequestMessage.h" - -static asn_TYPE_member_t asn_MBR_PlayerInfoRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerInfoRequestMessage, 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_PlayerInfoRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerInfoRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 243 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerInfoRequestMessage_specs_1 = { - sizeof(struct PlayerInfoRequestMessage), - offsetof(struct PlayerInfoRequestMessage, _asn_ctx), - asn_MAP_PlayerInfoRequestMessage_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_PlayerInfoRequestMessage = { - "PlayerInfoRequestMessage", - "PlayerInfoRequestMessage", - 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_PlayerInfoRequestMessage_tags_1, - sizeof(asn_DEF_PlayerInfoRequestMessage_tags_1) - /sizeof(asn_DEF_PlayerInfoRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_PlayerInfoRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerInfoRequestMessage_tags_1) - /sizeof(asn_DEF_PlayerInfoRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerInfoRequestMessage_1, - 1, /* Elements count */ - &asn_SPC_PlayerInfoRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerInfoRequestMessage.h b/src/third_party/asn1/PlayerInfoRequestMessage.h deleted file mode 100644 index 74001740..00000000 --- a/src/third_party/asn1/PlayerInfoRequestMessage.h +++ /dev/null @@ -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 _PlayerInfoRequestMessage_H_ -#define _PlayerInfoRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayerInfoRequestMessage */ - typedef struct PlayerInfoRequestMessage { - NonZeroId_t playerId; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerInfoRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerInfoRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerInfoRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/PlayerInfoRights.c b/src/third_party/asn1/PlayerInfoRights.c deleted file mode 100644 index 2da0bc1d..00000000 --- a/src/third_party/asn1/PlayerInfoRights.c +++ /dev/null @@ -1,127 +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 "PlayerInfoRights.h" - -int -PlayerInfoRights_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 -PlayerInfoRights_1_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 */ -} - -void -PlayerInfoRights_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - PlayerInfoRights_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -PlayerInfoRights_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - PlayerInfoRights_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -PlayerInfoRights_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) { - PlayerInfoRights_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -PlayerInfoRights_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) { - PlayerInfoRights_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -PlayerInfoRights_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) { - PlayerInfoRights_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -PlayerInfoRights_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) { - PlayerInfoRights_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_PlayerInfoRights_value2enum_1[] = { - { 1, 17, "playerRightsGuest" }, - { 2, 18, "playerRightsNormal" }, - { 3, 17, "playerRightsAdmin" } -}; -static unsigned int asn_MAP_PlayerInfoRights_enum2value_1[] = { - 2, /* playerRightsAdmin(3) */ - 0, /* playerRightsGuest(1) */ - 1 /* playerRightsNormal(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_PlayerInfoRights_specs_1 = { - asn_MAP_PlayerInfoRights_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_PlayerInfoRights_enum2value_1, /* 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_PlayerInfoRights_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PlayerInfoRights = { - "PlayerInfoRights", - "PlayerInfoRights", - PlayerInfoRights_free, - PlayerInfoRights_print, - PlayerInfoRights_constraint, - PlayerInfoRights_decode_ber, - PlayerInfoRights_encode_der, - PlayerInfoRights_decode_xer, - PlayerInfoRights_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_PlayerInfoRights_tags_1, - sizeof(asn_DEF_PlayerInfoRights_tags_1) - /sizeof(asn_DEF_PlayerInfoRights_tags_1[0]), /* 1 */ - asn_DEF_PlayerInfoRights_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerInfoRights_tags_1) - /sizeof(asn_DEF_PlayerInfoRights_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_PlayerInfoRights_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerInfoRights.h b/src/third_party/asn1/PlayerInfoRights.h deleted file mode 100644 index d36b6d91..00000000 --- a/src/third_party/asn1/PlayerInfoRights.h +++ /dev/null @@ -1,47 +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 _PlayerInfoRights_H_ -#define _PlayerInfoRights_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum PlayerInfoRights { - PlayerInfoRights_playerRightsGuest = 1, - PlayerInfoRights_playerRightsNormal = 2, - PlayerInfoRights_playerRightsAdmin = 3 - } - e_PlayerInfoRights; - - /* PlayerInfoRights */ - typedef long PlayerInfoRights_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerInfoRights; - asn_struct_free_f PlayerInfoRights_free; - asn_struct_print_f PlayerInfoRights_print; - asn_constr_check_f PlayerInfoRights_constraint; - ber_type_decoder_f PlayerInfoRights_decode_ber; - der_type_encoder_f PlayerInfoRights_encode_der; - xer_type_decoder_f PlayerInfoRights_decode_xer; - xer_type_encoder_f PlayerInfoRights_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerInfoRights_H_ */ -#include diff --git a/src/third_party/asn1/PlayerListMessage.c b/src/third_party/asn1/PlayerListMessage.c deleted file mode 100644 index 15736f94..00000000 --- a/src/third_party/asn1/PlayerListMessage.c +++ /dev/null @@ -1,187 +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 "PlayerListMessage.h" - -static int -playerListNotification_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 -playerListNotification_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 -playerListNotification_3_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - playerListNotification_3_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -playerListNotification_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - playerListNotification_3_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -playerListNotification_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) { - playerListNotification_3_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -playerListNotification_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) { - playerListNotification_3_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -playerListNotification_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) { - playerListNotification_3_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -playerListNotification_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) { - playerListNotification_3_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_playerListNotification_value2enum_3[] = { - { 0, 13, "playerListNew" }, - { 1, 14, "playerListLeft" } -}; -static unsigned int asn_MAP_playerListNotification_enum2value_3[] = { - 1, /* playerListLeft(1) */ - 0 /* playerListNew(0) */ -}; -static asn_INTEGER_specifics_t asn_SPC_playerListNotification_specs_3 = { - asn_MAP_playerListNotification_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_playerListNotification_enum2value_3, /* N => "tag"; sorted by N */ - 2, /* 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_playerListNotification_tags_3[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_playerListNotification_3 = { - "playerListNotification", - "playerListNotification", - playerListNotification_3_free, - playerListNotification_3_print, - playerListNotification_3_constraint, - playerListNotification_3_decode_ber, - playerListNotification_3_encode_der, - playerListNotification_3_decode_xer, - playerListNotification_3_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_playerListNotification_tags_3, - sizeof(asn_DEF_playerListNotification_tags_3) - /sizeof(asn_DEF_playerListNotification_tags_3[0]), /* 1 */ - asn_DEF_playerListNotification_tags_3, /* Same as above */ - sizeof(asn_DEF_playerListNotification_tags_3) - /sizeof(asn_DEF_playerListNotification_tags_3[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_playerListNotification_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_PlayerListMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerListMessage, 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 PlayerListMessage, playerListNotification), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_playerListNotification_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerListNotification" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayerListMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (6 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerListMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* playerId at 193 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* playerListNotification at 195 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerListMessage_specs_1 = { - sizeof(struct PlayerListMessage), - offsetof(struct PlayerListMessage, _asn_ctx), - asn_MAP_PlayerListMessage_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_PlayerListMessage = { - "PlayerListMessage", - "PlayerListMessage", - 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_PlayerListMessage_tags_1, - sizeof(asn_DEF_PlayerListMessage_tags_1) - /sizeof(asn_DEF_PlayerListMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_PlayerListMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerListMessage_tags_1) - /sizeof(asn_DEF_PlayerListMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerListMessage_1, - 2, /* Elements count */ - &asn_SPC_PlayerListMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerListMessage.h b/src/third_party/asn1/PlayerListMessage.h deleted file mode 100644 index 0f6d2558..00000000 --- a/src/third_party/asn1/PlayerListMessage.h +++ /dev/null @@ -1,52 +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 _PlayerListMessage_H_ -#define _PlayerListMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum playerListNotification { - playerListNotification_playerListNew = 0, - playerListNotification_playerListLeft = 1 - } - e_playerListNotification; - - /* PlayerListMessage */ - typedef struct PlayerListMessage { - NonZeroId_t playerId; - long playerListNotification; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerListMessage_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_playerListNotification_3; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerListMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerListMessage_H_ */ -#include diff --git a/src/third_party/asn1/PlayerResult.c b/src/third_party/asn1/PlayerResult.c deleted file mode 100644 index c7479445..00000000 --- a/src/third_party/asn1/PlayerResult.c +++ /dev/null @@ -1,189 +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 "PlayerResult.h" - -static int -memb_bestHandPosition_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 == 5)) { - /* 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_bestHandPosition_5[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "" - }, -}; -static ber_tlv_tag_t asn_DEF_bestHandPosition_tags_5[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_bestHandPosition_specs_5 = { - sizeof(struct bestHandPosition), - offsetof(struct bestHandPosition, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_bestHandPosition_5 = { - "bestHandPosition", - "bestHandPosition", - 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_bestHandPosition_tags_5, - sizeof(asn_DEF_bestHandPosition_tags_5) - /sizeof(asn_DEF_bestHandPosition_tags_5[0]), /* 1 */ - asn_DEF_bestHandPosition_tags_5, /* Same as above */ - sizeof(asn_DEF_bestHandPosition_tags_5) - /sizeof(asn_DEF_bestHandPosition_tags_5[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_bestHandPosition_5, - 1, /* Single element */ - &asn_SPC_bestHandPosition_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_PlayerResult_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayerResult, 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 PlayerResult, resultCard1), - (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, - "resultCard1" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerResult, resultCard2), - (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, - "resultCard2" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerResult, bestHandPosition), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_bestHandPosition_5, - memb_bestHandPosition_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "bestHandPosition" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayerResult, 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 PlayerResult, 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" - }, - { ATF_POINTER, 1, offsetof(struct PlayerResult, cardsValue), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "cardsValue" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayerResult_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayerResult_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 5 }, /* playerId at 575 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 4 }, /* resultCard1 at 576 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 3 }, /* resultCard2 at 577 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -3, 2 }, /* moneyWon at 579 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 5, -4, 1 }, /* playerMoney at 580 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 6, -5, 0 }, /* cardsValue at 581 */ - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, 0, 0 } /* bestHandPosition at 578 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayerResult_specs_1 = { - sizeof(struct PlayerResult), - offsetof(struct PlayerResult, _asn_ctx), - asn_MAP_PlayerResult_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 6, /* Start extensions */ - 8 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_PlayerResult = { - "PlayerResult", - "PlayerResult", - 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_PlayerResult_tags_1, - sizeof(asn_DEF_PlayerResult_tags_1) - /sizeof(asn_DEF_PlayerResult_tags_1[0]), /* 1 */ - asn_DEF_PlayerResult_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayerResult_tags_1) - /sizeof(asn_DEF_PlayerResult_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayerResult_1, - 7, /* Elements count */ - &asn_SPC_PlayerResult_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayerResult.h b/src/third_party/asn1/PlayerResult.h deleted file mode 100644 index e8a97a85..00000000 --- a/src/third_party/asn1/PlayerResult.h +++ /dev/null @@ -1,58 +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 _PlayerResult_H_ -#define _PlayerResult_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "Card.h" -#include "AmountOfMoney.h" -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayerResult */ - typedef struct PlayerResult { - NonZeroId_t playerId; - Card_t resultCard1; - Card_t resultCard2; - struct bestHandPosition { - A_SEQUENCE_OF(long) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } bestHandPosition; - AmountOfMoney_t moneyWon; - AmountOfMoney_t playerMoney; - long *cardsValue /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayerResult_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayerResult; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayerResult_H_ */ -#include diff --git a/src/third_party/asn1/PlayersActionDoneMessage.c b/src/third_party/asn1/PlayersActionDoneMessage.c deleted file mode 100644 index 20779abb..00000000 --- a/src/third_party/asn1/PlayersActionDoneMessage.c +++ /dev/null @@ -1,130 +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 "PlayersActionDoneMessage.h" - -static asn_TYPE_member_t asn_MBR_PlayersActionDoneMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayersActionDoneMessage, 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 PlayersActionDoneMessage, 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 PlayersActionDoneMessage, gameState), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetGameState, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameState" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayersActionDoneMessage, playerAction), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetPlayerAction, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerAction" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayersActionDoneMessage, totalPlayerBet), - (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, - "totalPlayerBet" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayersActionDoneMessage, 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" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayersActionDoneMessage, highestSet), - (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, - "highestSet" - }, - { ATF_NOFLAGS, 0, offsetof(struct PlayersActionDoneMessage, minimumRaise), - (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, - "minimumRaise" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayersActionDoneMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (27 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayersActionDoneMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 5 }, /* gameId at 524 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 4 }, /* playerId at 525 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -2, 3 }, /* totalPlayerBet at 528 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 5, -3, 2 }, /* playerMoney at 529 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 6, -4, 1 }, /* highestSet at 530 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 7, -5, 0 }, /* minimumRaise at 532 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 1 }, /* gameState at 526 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, -1, 0 } /* playerAction at 527 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayersActionDoneMessage_specs_1 = { - sizeof(struct PlayersActionDoneMessage), - offsetof(struct PlayersActionDoneMessage, _asn_ctx), - asn_MAP_PlayersActionDoneMessage_tag2el_1, - 8, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - 7, /* Start extensions */ - 9 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_PlayersActionDoneMessage = { - "PlayersActionDoneMessage", - "PlayersActionDoneMessage", - 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_PlayersActionDoneMessage_tags_1, - sizeof(asn_DEF_PlayersActionDoneMessage_tags_1) - /sizeof(asn_DEF_PlayersActionDoneMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_PlayersActionDoneMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayersActionDoneMessage_tags_1) - /sizeof(asn_DEF_PlayersActionDoneMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayersActionDoneMessage_1, - 8, /* Elements count */ - &asn_SPC_PlayersActionDoneMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayersActionDoneMessage.h b/src/third_party/asn1/PlayersActionDoneMessage.h deleted file mode 100644 index bf6f76f6..00000000 --- a/src/third_party/asn1/PlayersActionDoneMessage.h +++ /dev/null @@ -1,52 +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 _PlayersActionDoneMessage_H_ -#define _PlayersActionDoneMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "NetGameState.h" -#include "NetPlayerAction.h" -#include "AmountOfMoney.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayersActionDoneMessage */ - typedef struct PlayersActionDoneMessage { - NonZeroId_t gameId; - NonZeroId_t playerId; - NetGameState_t gameState; - NetPlayerAction_t playerAction; - AmountOfMoney_t totalPlayerBet; - AmountOfMoney_t playerMoney; - AmountOfMoney_t highestSet; - AmountOfMoney_t minimumRaise; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayersActionDoneMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayersActionDoneMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayersActionDoneMessage_H_ */ -#include diff --git a/src/third_party/asn1/PlayersTurnMessage.c b/src/third_party/asn1/PlayersTurnMessage.c deleted file mode 100644 index c4e55732..00000000 --- a/src/third_party/asn1/PlayersTurnMessage.c +++ /dev/null @@ -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 "PlayersTurnMessage.h" - -static asn_TYPE_member_t asn_MBR_PlayersTurnMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PlayersTurnMessage, 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 PlayersTurnMessage, 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 PlayersTurnMessage, gameState), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetGameState, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameState" - }, -}; -static ber_tlv_tag_t asn_DEF_PlayersTurnMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (24 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_PlayersTurnMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 498 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 499 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* gameState at 501 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_PlayersTurnMessage_specs_1 = { - sizeof(struct PlayersTurnMessage), - offsetof(struct PlayersTurnMessage, _asn_ctx), - asn_MAP_PlayersTurnMessage_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_PlayersTurnMessage = { - "PlayersTurnMessage", - "PlayersTurnMessage", - 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_PlayersTurnMessage_tags_1, - sizeof(asn_DEF_PlayersTurnMessage_tags_1) - /sizeof(asn_DEF_PlayersTurnMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_PlayersTurnMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PlayersTurnMessage_tags_1) - /sizeof(asn_DEF_PlayersTurnMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_PlayersTurnMessage_1, - 3, /* Elements count */ - &asn_SPC_PlayersTurnMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PlayersTurnMessage.h b/src/third_party/asn1/PlayersTurnMessage.h deleted file mode 100644 index 95b6eeff..00000000 --- a/src/third_party/asn1/PlayersTurnMessage.h +++ /dev/null @@ -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 _PlayersTurnMessage_H_ -#define _PlayersTurnMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "NetGameState.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* PlayersTurnMessage */ - typedef struct PlayersTurnMessage { - NonZeroId_t gameId; - NonZeroId_t playerId; - NetGameState_t gameState; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PlayersTurnMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PlayersTurnMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PlayersTurnMessage_H_ */ -#include diff --git a/src/third_party/asn1/PokerTHMessage.c b/src/third_party/asn1/PokerTHMessage.c deleted file mode 100644 index 0fe0bd5f..00000000 --- a/src/third_party/asn1/PokerTHMessage.c +++ /dev/null @@ -1,605 +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 "PokerTHMessage.h" - -static asn_TYPE_member_t asn_MBR_PokerTHMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.announceMessage), - (ASN_TAG_CLASS_APPLICATION | (0 << 2)), - 0, - &asn_DEF_AnnounceMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "announceMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.initMessage), - (ASN_TAG_CLASS_APPLICATION | (1 << 2)), - 0, - &asn_DEF_InitMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "initMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.authMessage), - (ASN_TAG_CLASS_APPLICATION | (2 << 2)), - 0, - &asn_DEF_AuthMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "authMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.initAckMessage), - (ASN_TAG_CLASS_APPLICATION | (3 << 2)), - 0, - &asn_DEF_InitAckMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "initAckMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.avatarRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (4 << 2)), - 0, - &asn_DEF_AvatarRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "avatarRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.avatarReplyMessage), - (ASN_TAG_CLASS_APPLICATION | (5 << 2)), - 0, - &asn_DEF_AvatarReplyMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "avatarReplyMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.playerListMessage), - (ASN_TAG_CLASS_APPLICATION | (6 << 2)), - 0, - &asn_DEF_PlayerListMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerListMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.gameListMessage), - (ASN_TAG_CLASS_APPLICATION | (7 << 2)), - 0, - &asn_DEF_GameListMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameListMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.playerInfoRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (8 << 2)), - 0, - &asn_DEF_PlayerInfoRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerInfoRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.playerInfoReplyMessage), - (ASN_TAG_CLASS_APPLICATION | (9 << 2)), - 0, - &asn_DEF_PlayerInfoReplyMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerInfoReplyMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.subscriptionRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (10 << 2)), - 0, - &asn_DEF_SubscriptionRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "subscriptionRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.joinGameRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (11 << 2)), - 0, - &asn_DEF_JoinGameRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.joinGameReplyMessage), - (ASN_TAG_CLASS_APPLICATION | (12 << 2)), - 0, - &asn_DEF_JoinGameReplyMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "joinGameReplyMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.gamePlayerMessage), - (ASN_TAG_CLASS_APPLICATION | (13 << 2)), - 0, - &asn_DEF_GamePlayerMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gamePlayerMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.kickPlayerRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (14 << 2)), - 0, - &asn_DEF_KickPlayerRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "kickPlayerRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.leaveGameRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (15 << 2)), - 0, - &asn_DEF_LeaveGameRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "leaveGameRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.invitePlayerToGameMessage), - (ASN_TAG_CLASS_APPLICATION | (16 << 2)), - 0, - &asn_DEF_InvitePlayerToGameMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "invitePlayerToGameMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.inviteNotifyMessage), - (ASN_TAG_CLASS_APPLICATION | (17 << 2)), - 0, - &asn_DEF_InviteNotifyMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "inviteNotifyMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.rejectGameInvitationMessage), - (ASN_TAG_CLASS_APPLICATION | (18 << 2)), - 0, - &asn_DEF_RejectGameInvitationMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "rejectGameInvitationMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.rejectInvNotifyMessage), - (ASN_TAG_CLASS_APPLICATION | (19 << 2)), - 0, - &asn_DEF_RejectInvNotifyMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "rejectInvNotifyMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.startEventMessage), - (ASN_TAG_CLASS_APPLICATION | (20 << 2)), - 0, - &asn_DEF_StartEventMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "startEventMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.startEventAckMessage), - (ASN_TAG_CLASS_APPLICATION | (21 << 2)), - 0, - &asn_DEF_StartEventAckMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "startEventAckMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.gameStartMessage), - (ASN_TAG_CLASS_APPLICATION | (22 << 2)), - 0, - &asn_DEF_GameStartMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameStartMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.handStartMessage), - (ASN_TAG_CLASS_APPLICATION | (23 << 2)), - 0, - &asn_DEF_HandStartMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "handStartMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.playersTurnMessage), - (ASN_TAG_CLASS_APPLICATION | (24 << 2)), - 0, - &asn_DEF_PlayersTurnMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playersTurnMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.myActionRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (25 << 2)), - 0, - &asn_DEF_MyActionRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "myActionRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.yourActionRejectedMessage), - (ASN_TAG_CLASS_APPLICATION | (26 << 2)), - 0, - &asn_DEF_YourActionRejectedMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "yourActionRejectedMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.playersActionDoneMessage), - (ASN_TAG_CLASS_APPLICATION | (27 << 2)), - 0, - &asn_DEF_PlayersActionDoneMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playersActionDoneMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.dealFlopCardsMessage), - (ASN_TAG_CLASS_APPLICATION | (28 << 2)), - 0, - &asn_DEF_DealFlopCardsMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "dealFlopCardsMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.dealTurnCardMessage), - (ASN_TAG_CLASS_APPLICATION | (29 << 2)), - 0, - &asn_DEF_DealTurnCardMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "dealTurnCardMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.dealRiverCardMessage), - (ASN_TAG_CLASS_APPLICATION | (30 << 2)), - 0, - &asn_DEF_DealRiverCardMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "dealRiverCardMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.allInShowCardsMessage), - (ASN_TAG_CLASS_APPLICATION | (31 << 2)), - 0, - &asn_DEF_AllInShowCardsMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "allInShowCardsMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.endOfHandMessage), - (ASN_TAG_CLASS_APPLICATION | (32 << 2)), - 0, - &asn_DEF_EndOfHandMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "endOfHandMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.showMyCardsRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (33 << 2)), - 0, - &asn_DEF_ShowMyCardsRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "showMyCardsRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.afterHandShowCardsMessage), - (ASN_TAG_CLASS_APPLICATION | (34 << 2)), - 0, - &asn_DEF_AfterHandShowCardsMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "afterHandShowCardsMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.endOfGameMessage), - (ASN_TAG_CLASS_APPLICATION | (35 << 2)), - 0, - &asn_DEF_EndOfGameMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "endOfGameMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.playerIdChangedMessage), - (ASN_TAG_CLASS_APPLICATION | (36 << 2)), - 0, - &asn_DEF_PlayerIdChangedMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerIdChangedMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.askKickPlayerMessage), - (ASN_TAG_CLASS_APPLICATION | (64 << 2)), - 0, - &asn_DEF_AskKickPlayerMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "askKickPlayerMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.askKickDeniedMessage), - (ASN_TAG_CLASS_APPLICATION | (65 << 2)), - 0, - &asn_DEF_AskKickDeniedMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "askKickDeniedMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.startKickPetitionMessage), - (ASN_TAG_CLASS_APPLICATION | (66 << 2)), - 0, - &asn_DEF_StartKickPetitionMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "startKickPetitionMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.voteKickRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (67 << 2)), - 0, - &asn_DEF_VoteKickRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "voteKickRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.voteKickReplyMessage), - (ASN_TAG_CLASS_APPLICATION | (68 << 2)), - 0, - &asn_DEF_VoteKickReplyMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "voteKickReplyMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.kickPetitionUpdateMessage), - (ASN_TAG_CLASS_APPLICATION | (69 << 2)), - 0, - &asn_DEF_KickPetitionUpdateMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "kickPetitionUpdateMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.endKickPetitionMessage), - (ASN_TAG_CLASS_APPLICATION | (70 << 2)), - 0, - &asn_DEF_EndKickPetitionMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "endKickPetitionMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.statisticsMessage), - (ASN_TAG_CLASS_APPLICATION | (128 << 2)), - 0, - &asn_DEF_StatisticsMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "statisticsMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.chatRequestMessage), - (ASN_TAG_CLASS_APPLICATION | (129 << 2)), - 0, - &asn_DEF_ChatRequestMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "chatRequestMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.chatMessage), - (ASN_TAG_CLASS_APPLICATION | (130 << 2)), - 0, - &asn_DEF_ChatMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "chatMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.chatRejectMessage), - (ASN_TAG_CLASS_APPLICATION | (131 << 2)), - 0, - &asn_DEF_ChatRejectMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "chatRejectMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.dialogMessage), - (ASN_TAG_CLASS_APPLICATION | (132 << 2)), - 0, - &asn_DEF_DialogMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "dialogMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.timeoutWarningMessage), - (ASN_TAG_CLASS_APPLICATION | (133 << 2)), - 0, - &asn_DEF_TimeoutWarningMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "timeoutWarningMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.resetTimeoutMessage), - (ASN_TAG_CLASS_APPLICATION | (134 << 2)), - 0, - &asn_DEF_ResetTimeoutMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "resetTimeoutMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.reportAvatarMessage), - (ASN_TAG_CLASS_APPLICATION | (135 << 2)), - 0, - &asn_DEF_ReportAvatarMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "reportAvatarMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.reportAvatarAckMessage), - (ASN_TAG_CLASS_APPLICATION | (136 << 2)), - 0, - &asn_DEF_ReportAvatarAckMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "reportAvatarAckMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.reportGameMessage), - (ASN_TAG_CLASS_APPLICATION | (137 << 2)), - 0, - &asn_DEF_ReportGameMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "reportGameMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.reportGameAckMessage), - (ASN_TAG_CLASS_APPLICATION | (138 << 2)), - 0, - &asn_DEF_ReportGameAckMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "reportGameAckMessage" - }, - { ATF_NOFLAGS, 0, offsetof(struct PokerTHMessage, choice.errorMessage), - (ASN_TAG_CLASS_APPLICATION | (255 << 2)), - 0, - &asn_DEF_ErrorMessage, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "errorMessage" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_PokerTHMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* announceMessage at 26 */ - { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* initMessage at 27 */ - { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* authMessage at 28 */ - { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 }, /* initAckMessage at 29 */ - { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 4, 0, 0 }, /* avatarRequestMessage at 30 */ - { (ASN_TAG_CLASS_APPLICATION | (5 << 2)), 5, 0, 0 }, /* avatarReplyMessage at 31 */ - { (ASN_TAG_CLASS_APPLICATION | (6 << 2)), 6, 0, 0 }, /* playerListMessage at 32 */ - { (ASN_TAG_CLASS_APPLICATION | (7 << 2)), 7, 0, 0 }, /* gameListMessage at 33 */ - { (ASN_TAG_CLASS_APPLICATION | (8 << 2)), 8, 0, 0 }, /* playerInfoRequestMessage at 34 */ - { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 9, 0, 0 }, /* playerInfoReplyMessage at 35 */ - { (ASN_TAG_CLASS_APPLICATION | (10 << 2)), 10, 0, 0 }, /* subscriptionRequestMessage at 36 */ - { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 11, 0, 0 }, /* joinGameRequestMessage at 37 */ - { (ASN_TAG_CLASS_APPLICATION | (12 << 2)), 12, 0, 0 }, /* joinGameReplyMessage at 38 */ - { (ASN_TAG_CLASS_APPLICATION | (13 << 2)), 13, 0, 0 }, /* gamePlayerMessage at 39 */ - { (ASN_TAG_CLASS_APPLICATION | (14 << 2)), 14, 0, 0 }, /* kickPlayerRequestMessage at 40 */ - { (ASN_TAG_CLASS_APPLICATION | (15 << 2)), 15, 0, 0 }, /* leaveGameRequestMessage at 41 */ - { (ASN_TAG_CLASS_APPLICATION | (16 << 2)), 16, 0, 0 }, /* invitePlayerToGameMessage at 42 */ - { (ASN_TAG_CLASS_APPLICATION | (17 << 2)), 17, 0, 0 }, /* inviteNotifyMessage at 43 */ - { (ASN_TAG_CLASS_APPLICATION | (18 << 2)), 18, 0, 0 }, /* rejectGameInvitationMessage at 44 */ - { (ASN_TAG_CLASS_APPLICATION | (19 << 2)), 19, 0, 0 }, /* rejectInvNotifyMessage at 45 */ - { (ASN_TAG_CLASS_APPLICATION | (20 << 2)), 20, 0, 0 }, /* startEventMessage at 46 */ - { (ASN_TAG_CLASS_APPLICATION | (21 << 2)), 21, 0, 0 }, /* startEventAckMessage at 47 */ - { (ASN_TAG_CLASS_APPLICATION | (22 << 2)), 22, 0, 0 }, /* gameStartMessage at 48 */ - { (ASN_TAG_CLASS_APPLICATION | (23 << 2)), 23, 0, 0 }, /* handStartMessage at 49 */ - { (ASN_TAG_CLASS_APPLICATION | (24 << 2)), 24, 0, 0 }, /* playersTurnMessage at 50 */ - { (ASN_TAG_CLASS_APPLICATION | (25 << 2)), 25, 0, 0 }, /* myActionRequestMessage at 51 */ - { (ASN_TAG_CLASS_APPLICATION | (26 << 2)), 26, 0, 0 }, /* yourActionRejectedMessage at 52 */ - { (ASN_TAG_CLASS_APPLICATION | (27 << 2)), 27, 0, 0 }, /* playersActionDoneMessage at 53 */ - { (ASN_TAG_CLASS_APPLICATION | (28 << 2)), 28, 0, 0 }, /* dealFlopCardsMessage at 54 */ - { (ASN_TAG_CLASS_APPLICATION | (29 << 2)), 29, 0, 0 }, /* dealTurnCardMessage at 55 */ - { (ASN_TAG_CLASS_APPLICATION | (30 << 2)), 30, 0, 0 }, /* dealRiverCardMessage at 56 */ - { (ASN_TAG_CLASS_APPLICATION | (31 << 2)), 31, 0, 0 }, /* allInShowCardsMessage at 57 */ - { (ASN_TAG_CLASS_APPLICATION | (32 << 2)), 32, 0, 0 }, /* endOfHandMessage at 58 */ - { (ASN_TAG_CLASS_APPLICATION | (33 << 2)), 33, 0, 0 }, /* showMyCardsRequestMessage at 59 */ - { (ASN_TAG_CLASS_APPLICATION | (34 << 2)), 34, 0, 0 }, /* afterHandShowCardsMessage at 60 */ - { (ASN_TAG_CLASS_APPLICATION | (35 << 2)), 35, 0, 0 }, /* endOfGameMessage at 61 */ - { (ASN_TAG_CLASS_APPLICATION | (36 << 2)), 36, 0, 0 }, /* playerIdChangedMessage at 62 */ - { (ASN_TAG_CLASS_APPLICATION | (64 << 2)), 37, 0, 0 }, /* askKickPlayerMessage at 63 */ - { (ASN_TAG_CLASS_APPLICATION | (65 << 2)), 38, 0, 0 }, /* askKickDeniedMessage at 64 */ - { (ASN_TAG_CLASS_APPLICATION | (66 << 2)), 39, 0, 0 }, /* startKickPetitionMessage at 65 */ - { (ASN_TAG_CLASS_APPLICATION | (67 << 2)), 40, 0, 0 }, /* voteKickRequestMessage at 66 */ - { (ASN_TAG_CLASS_APPLICATION | (68 << 2)), 41, 0, 0 }, /* voteKickReplyMessage at 67 */ - { (ASN_TAG_CLASS_APPLICATION | (69 << 2)), 42, 0, 0 }, /* kickPetitionUpdateMessage at 68 */ - { (ASN_TAG_CLASS_APPLICATION | (70 << 2)), 43, 0, 0 }, /* endKickPetitionMessage at 69 */ - { (ASN_TAG_CLASS_APPLICATION | (128 << 2)), 44, 0, 0 }, /* statisticsMessage at 70 */ - { (ASN_TAG_CLASS_APPLICATION | (129 << 2)), 45, 0, 0 }, /* chatRequestMessage at 71 */ - { (ASN_TAG_CLASS_APPLICATION | (130 << 2)), 46, 0, 0 }, /* chatMessage at 72 */ - { (ASN_TAG_CLASS_APPLICATION | (131 << 2)), 47, 0, 0 }, /* chatRejectMessage at 73 */ - { (ASN_TAG_CLASS_APPLICATION | (132 << 2)), 48, 0, 0 }, /* dialogMessage at 74 */ - { (ASN_TAG_CLASS_APPLICATION | (133 << 2)), 49, 0, 0 }, /* timeoutWarningMessage at 75 */ - { (ASN_TAG_CLASS_APPLICATION | (134 << 2)), 50, 0, 0 }, /* resetTimeoutMessage at 76 */ - { (ASN_TAG_CLASS_APPLICATION | (135 << 2)), 51, 0, 0 }, /* reportAvatarMessage at 77 */ - { (ASN_TAG_CLASS_APPLICATION | (136 << 2)), 52, 0, 0 }, /* reportAvatarAckMessage at 78 */ - { (ASN_TAG_CLASS_APPLICATION | (137 << 2)), 53, 0, 0 }, /* reportGameMessage at 79 */ - { (ASN_TAG_CLASS_APPLICATION | (138 << 2)), 54, 0, 0 }, /* reportGameAckMessage at 80 */ - { (ASN_TAG_CLASS_APPLICATION | (255 << 2)), 55, 0, 0 } /* errorMessage at 82 */ -}; -static asn_CHOICE_specifics_t asn_SPC_PokerTHMessage_specs_1 = { - sizeof(struct PokerTHMessage), - offsetof(struct PokerTHMessage, _asn_ctx), - offsetof(struct PokerTHMessage, present), - sizeof(((struct PokerTHMessage *)0)->present), - asn_MAP_PokerTHMessage_tag2el_1, - 56, /* Count of tags in the map */ - 0, - 56 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_PokerTHMessage = { - "PokerTHMessage", - "PokerTHMessage", - 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_PokerTHMessage_1, - 56, /* Elements count */ - &asn_SPC_PokerTHMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/PokerTHMessage.h b/src/third_party/asn1/PokerTHMessage.h deleted file mode 100644 index 6c27b45c..00000000 --- a/src/third_party/asn1/PokerTHMessage.h +++ /dev/null @@ -1,219 +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 _PokerTHMessage_H_ -#define _PokerTHMessage_H_ - - -#include - -/* Including external dependencies */ -#include "AnnounceMessage.h" -#include "InitMessage.h" -#include "AuthMessage.h" -#include "InitAckMessage.h" -#include "AvatarRequestMessage.h" -#include "AvatarReplyMessage.h" -#include "PlayerListMessage.h" -#include "GameListMessage.h" -#include "PlayerInfoRequestMessage.h" -#include "PlayerInfoReplyMessage.h" -#include "SubscriptionRequestMessage.h" -#include "JoinGameRequestMessage.h" -#include "JoinGameReplyMessage.h" -#include "GamePlayerMessage.h" -#include "KickPlayerRequestMessage.h" -#include "LeaveGameRequestMessage.h" -#include "InvitePlayerToGameMessage.h" -#include "InviteNotifyMessage.h" -#include "RejectGameInvitationMessage.h" -#include "RejectInvNotifyMessage.h" -#include "StartEventMessage.h" -#include "StartEventAckMessage.h" -#include "GameStartMessage.h" -#include "HandStartMessage.h" -#include "PlayersTurnMessage.h" -#include "MyActionRequestMessage.h" -#include "YourActionRejectedMessage.h" -#include "PlayersActionDoneMessage.h" -#include "DealFlopCardsMessage.h" -#include "DealTurnCardMessage.h" -#include "DealRiverCardMessage.h" -#include "AllInShowCardsMessage.h" -#include "EndOfHandMessage.h" -#include "ShowMyCardsRequestMessage.h" -#include "AfterHandShowCardsMessage.h" -#include "EndOfGameMessage.h" -#include "PlayerIdChangedMessage.h" -#include "AskKickPlayerMessage.h" -#include "AskKickDeniedMessage.h" -#include "StartKickPetitionMessage.h" -#include "VoteKickRequestMessage.h" -#include "VoteKickReplyMessage.h" -#include "KickPetitionUpdateMessage.h" -#include "EndKickPetitionMessage.h" -#include "StatisticsMessage.h" -#include "ChatRequestMessage.h" -#include "ChatMessage.h" -#include "ChatRejectMessage.h" -#include "DialogMessage.h" -#include "TimeoutWarningMessage.h" -#include "ResetTimeoutMessage.h" -#include "ReportAvatarMessage.h" -#include "ReportAvatarAckMessage.h" -#include "ReportGameMessage.h" -#include "ReportGameAckMessage.h" -#include "ErrorMessage.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum PokerTHMessage_PR { - PokerTHMessage_PR_NOTHING, /* No components present */ - PokerTHMessage_PR_announceMessage, - PokerTHMessage_PR_initMessage, - PokerTHMessage_PR_authMessage, - PokerTHMessage_PR_initAckMessage, - PokerTHMessage_PR_avatarRequestMessage, - PokerTHMessage_PR_avatarReplyMessage, - PokerTHMessage_PR_playerListMessage, - PokerTHMessage_PR_gameListMessage, - PokerTHMessage_PR_playerInfoRequestMessage, - PokerTHMessage_PR_playerInfoReplyMessage, - PokerTHMessage_PR_subscriptionRequestMessage, - PokerTHMessage_PR_joinGameRequestMessage, - PokerTHMessage_PR_joinGameReplyMessage, - PokerTHMessage_PR_gamePlayerMessage, - PokerTHMessage_PR_kickPlayerRequestMessage, - PokerTHMessage_PR_leaveGameRequestMessage, - PokerTHMessage_PR_invitePlayerToGameMessage, - PokerTHMessage_PR_inviteNotifyMessage, - PokerTHMessage_PR_rejectGameInvitationMessage, - PokerTHMessage_PR_rejectInvNotifyMessage, - PokerTHMessage_PR_startEventMessage, - PokerTHMessage_PR_startEventAckMessage, - PokerTHMessage_PR_gameStartMessage, - PokerTHMessage_PR_handStartMessage, - PokerTHMessage_PR_playersTurnMessage, - PokerTHMessage_PR_myActionRequestMessage, - PokerTHMessage_PR_yourActionRejectedMessage, - PokerTHMessage_PR_playersActionDoneMessage, - PokerTHMessage_PR_dealFlopCardsMessage, - PokerTHMessage_PR_dealTurnCardMessage, - PokerTHMessage_PR_dealRiverCardMessage, - PokerTHMessage_PR_allInShowCardsMessage, - PokerTHMessage_PR_endOfHandMessage, - PokerTHMessage_PR_showMyCardsRequestMessage, - PokerTHMessage_PR_afterHandShowCardsMessage, - PokerTHMessage_PR_endOfGameMessage, - PokerTHMessage_PR_playerIdChangedMessage, - PokerTHMessage_PR_askKickPlayerMessage, - PokerTHMessage_PR_askKickDeniedMessage, - PokerTHMessage_PR_startKickPetitionMessage, - PokerTHMessage_PR_voteKickRequestMessage, - PokerTHMessage_PR_voteKickReplyMessage, - PokerTHMessage_PR_kickPetitionUpdateMessage, - PokerTHMessage_PR_endKickPetitionMessage, - PokerTHMessage_PR_statisticsMessage, - PokerTHMessage_PR_chatRequestMessage, - PokerTHMessage_PR_chatMessage, - PokerTHMessage_PR_chatRejectMessage, - PokerTHMessage_PR_dialogMessage, - PokerTHMessage_PR_timeoutWarningMessage, - PokerTHMessage_PR_resetTimeoutMessage, - PokerTHMessage_PR_reportAvatarMessage, - PokerTHMessage_PR_reportAvatarAckMessage, - PokerTHMessage_PR_reportGameMessage, - PokerTHMessage_PR_reportGameAckMessage, - PokerTHMessage_PR_errorMessage, - /* Extensions may appear below */ - - } - PokerTHMessage_PR; - - /* PokerTHMessage */ - typedef struct PokerTHMessage { - PokerTHMessage_PR present; - union PokerTHMessage_u { - AnnounceMessage_t announceMessage; - InitMessage_t initMessage; - AuthMessage_t authMessage; - InitAckMessage_t initAckMessage; - AvatarRequestMessage_t avatarRequestMessage; - AvatarReplyMessage_t avatarReplyMessage; - PlayerListMessage_t playerListMessage; - GameListMessage_t gameListMessage; - PlayerInfoRequestMessage_t playerInfoRequestMessage; - PlayerInfoReplyMessage_t playerInfoReplyMessage; - SubscriptionRequestMessage_t subscriptionRequestMessage; - JoinGameRequestMessage_t joinGameRequestMessage; - JoinGameReplyMessage_t joinGameReplyMessage; - GamePlayerMessage_t gamePlayerMessage; - KickPlayerRequestMessage_t kickPlayerRequestMessage; - LeaveGameRequestMessage_t leaveGameRequestMessage; - InvitePlayerToGameMessage_t invitePlayerToGameMessage; - InviteNotifyMessage_t inviteNotifyMessage; - RejectGameInvitationMessage_t rejectGameInvitationMessage; - RejectInvNotifyMessage_t rejectInvNotifyMessage; - StartEventMessage_t startEventMessage; - StartEventAckMessage_t startEventAckMessage; - GameStartMessage_t gameStartMessage; - HandStartMessage_t handStartMessage; - PlayersTurnMessage_t playersTurnMessage; - MyActionRequestMessage_t myActionRequestMessage; - YourActionRejectedMessage_t yourActionRejectedMessage; - PlayersActionDoneMessage_t playersActionDoneMessage; - DealFlopCardsMessage_t dealFlopCardsMessage; - DealTurnCardMessage_t dealTurnCardMessage; - DealRiverCardMessage_t dealRiverCardMessage; - AllInShowCardsMessage_t allInShowCardsMessage; - EndOfHandMessage_t endOfHandMessage; - ShowMyCardsRequestMessage_t showMyCardsRequestMessage; - AfterHandShowCardsMessage_t afterHandShowCardsMessage; - EndOfGameMessage_t endOfGameMessage; - PlayerIdChangedMessage_t playerIdChangedMessage; - AskKickPlayerMessage_t askKickPlayerMessage; - AskKickDeniedMessage_t askKickDeniedMessage; - StartKickPetitionMessage_t startKickPetitionMessage; - VoteKickRequestMessage_t voteKickRequestMessage; - VoteKickReplyMessage_t voteKickReplyMessage; - KickPetitionUpdateMessage_t kickPetitionUpdateMessage; - EndKickPetitionMessage_t endKickPetitionMessage; - StatisticsMessage_t statisticsMessage; - ChatRequestMessage_t chatRequestMessage; - ChatMessage_t chatMessage; - ChatRejectMessage_t chatRejectMessage; - DialogMessage_t dialogMessage; - TimeoutWarningMessage_t timeoutWarningMessage; - ResetTimeoutMessage_t resetTimeoutMessage; - ReportAvatarMessage_t reportAvatarMessage; - ReportAvatarAckMessage_t reportAvatarAckMessage; - ReportGameMessage_t reportGameMessage; - ReportGameAckMessage_t reportGameAckMessage; - ErrorMessage_t errorMessage; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } PokerTHMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_PokerTHMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _PokerTHMessage_H_ */ -#include diff --git a/src/third_party/asn1/RejectGameInvReason.c b/src/third_party/asn1/RejectGameInvReason.c deleted file mode 100644 index b746b652..00000000 --- a/src/third_party/asn1/RejectGameInvReason.c +++ /dev/null @@ -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 "RejectGameInvReason.h" - -int -RejectGameInvReason_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 -RejectGameInvReason_1_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 */ -} - -void -RejectGameInvReason_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - RejectGameInvReason_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -RejectGameInvReason_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - RejectGameInvReason_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -RejectGameInvReason_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) { - RejectGameInvReason_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -RejectGameInvReason_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) { - RejectGameInvReason_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -RejectGameInvReason_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) { - RejectGameInvReason_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -RejectGameInvReason_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) { - RejectGameInvReason_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_RejectGameInvReason_value2enum_1[] = { - { 0, 2, "no" }, - { 1, 4, "busy" } -}; -static unsigned int asn_MAP_RejectGameInvReason_enum2value_1[] = { - 1, /* busy(1) */ - 0 /* no(0) */ -}; -static asn_INTEGER_specifics_t asn_SPC_RejectGameInvReason_specs_1 = { - asn_MAP_RejectGameInvReason_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RejectGameInvReason_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* 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_RejectGameInvReason_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RejectGameInvReason = { - "RejectGameInvReason", - "RejectGameInvReason", - RejectGameInvReason_free, - RejectGameInvReason_print, - RejectGameInvReason_constraint, - RejectGameInvReason_decode_ber, - RejectGameInvReason_encode_der, - RejectGameInvReason_decode_xer, - RejectGameInvReason_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_RejectGameInvReason_tags_1, - sizeof(asn_DEF_RejectGameInvReason_tags_1) - /sizeof(asn_DEF_RejectGameInvReason_tags_1[0]), /* 1 */ - asn_DEF_RejectGameInvReason_tags_1, /* Same as above */ - sizeof(asn_DEF_RejectGameInvReason_tags_1) - /sizeof(asn_DEF_RejectGameInvReason_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_RejectGameInvReason_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RejectGameInvReason.h b/src/third_party/asn1/RejectGameInvReason.h deleted file mode 100644 index 73626c32..00000000 --- a/src/third_party/asn1/RejectGameInvReason.h +++ /dev/null @@ -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 _RejectGameInvReason_H_ -#define _RejectGameInvReason_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum RejectGameInvReason { - RejectGameInvReason_no = 0, - RejectGameInvReason_busy = 1 - } - e_RejectGameInvReason; - - /* RejectGameInvReason */ - typedef long RejectGameInvReason_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_RejectGameInvReason; - asn_struct_free_f RejectGameInvReason_free; - asn_struct_print_f RejectGameInvReason_print; - asn_constr_check_f RejectGameInvReason_constraint; - ber_type_decoder_f RejectGameInvReason_decode_ber; - der_type_encoder_f RejectGameInvReason_encode_der; - xer_type_decoder_f RejectGameInvReason_decode_xer; - xer_type_encoder_f RejectGameInvReason_encode_xer; - -#ifdef __cplusplus -} -#endif - -#endif /* _RejectGameInvReason_H_ */ -#include diff --git a/src/third_party/asn1/RejectGameInvitationMessage.c b/src/third_party/asn1/RejectGameInvitationMessage.c deleted file mode 100644 index 621fa592..00000000 --- a/src/third_party/asn1/RejectGameInvitationMessage.c +++ /dev/null @@ -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 "RejectGameInvitationMessage.h" - -static asn_TYPE_member_t asn_MBR_RejectGameInvitationMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RejectGameInvitationMessage, 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 RejectGameInvitationMessage, myRejectReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_RejectGameInvReason, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "myRejectReason" - }, -}; -static ber_tlv_tag_t asn_DEF_RejectGameInvitationMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (18 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_RejectGameInvitationMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 426 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* myRejectReason at 428 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_RejectGameInvitationMessage_specs_1 = { - sizeof(struct RejectGameInvitationMessage), - offsetof(struct RejectGameInvitationMessage, _asn_ctx), - asn_MAP_RejectGameInvitationMessage_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_RejectGameInvitationMessage = { - "RejectGameInvitationMessage", - "RejectGameInvitationMessage", - 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_RejectGameInvitationMessage_tags_1, - sizeof(asn_DEF_RejectGameInvitationMessage_tags_1) - /sizeof(asn_DEF_RejectGameInvitationMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_RejectGameInvitationMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_RejectGameInvitationMessage_tags_1) - /sizeof(asn_DEF_RejectGameInvitationMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_RejectGameInvitationMessage_1, - 2, /* Elements count */ - &asn_SPC_RejectGameInvitationMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RejectGameInvitationMessage.h b/src/third_party/asn1/RejectGameInvitationMessage.h deleted file mode 100644 index b44419e0..00000000 --- a/src/third_party/asn1/RejectGameInvitationMessage.h +++ /dev/null @@ -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 _RejectGameInvitationMessage_H_ -#define _RejectGameInvitationMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "RejectGameInvReason.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* RejectGameInvitationMessage */ - typedef struct RejectGameInvitationMessage { - NonZeroId_t gameId; - RejectGameInvReason_t myRejectReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } RejectGameInvitationMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_RejectGameInvitationMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _RejectGameInvitationMessage_H_ */ -#include diff --git a/src/third_party/asn1/RejectInvNotifyMessage.c b/src/third_party/asn1/RejectInvNotifyMessage.c deleted file mode 100644 index 5b86b404..00000000 --- a/src/third_party/asn1/RejectInvNotifyMessage.c +++ /dev/null @@ -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 "RejectInvNotifyMessage.h" - -static asn_TYPE_member_t asn_MBR_RejectInvNotifyMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RejectInvNotifyMessage, 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 RejectInvNotifyMessage, 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 RejectInvNotifyMessage, playerRejectReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_RejectGameInvReason, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "playerRejectReason" - }, -}; -static ber_tlv_tag_t asn_DEF_RejectInvNotifyMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (19 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_RejectInvNotifyMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 431 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 432 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* playerRejectReason at 434 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_RejectInvNotifyMessage_specs_1 = { - sizeof(struct RejectInvNotifyMessage), - offsetof(struct RejectInvNotifyMessage, _asn_ctx), - asn_MAP_RejectInvNotifyMessage_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_RejectInvNotifyMessage = { - "RejectInvNotifyMessage", - "RejectInvNotifyMessage", - 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_RejectInvNotifyMessage_tags_1, - sizeof(asn_DEF_RejectInvNotifyMessage_tags_1) - /sizeof(asn_DEF_RejectInvNotifyMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_RejectInvNotifyMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_RejectInvNotifyMessage_tags_1) - /sizeof(asn_DEF_RejectInvNotifyMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_RejectInvNotifyMessage_1, - 3, /* Elements count */ - &asn_SPC_RejectInvNotifyMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RejectInvNotifyMessage.h b/src/third_party/asn1/RejectInvNotifyMessage.h deleted file mode 100644 index b9967fd0..00000000 --- a/src/third_party/asn1/RejectInvNotifyMessage.h +++ /dev/null @@ -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 _RejectInvNotifyMessage_H_ -#define _RejectInvNotifyMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "RejectGameInvReason.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* RejectInvNotifyMessage */ - typedef struct RejectInvNotifyMessage { - NonZeroId_t gameId; - NonZeroId_t playerId; - RejectGameInvReason_t playerRejectReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } RejectInvNotifyMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_RejectInvNotifyMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _RejectInvNotifyMessage_H_ */ -#include diff --git a/src/third_party/asn1/RejoinEvent.c b/src/third_party/asn1/RejoinEvent.c deleted file mode 100644 index ea82e79b..00000000 --- a/src/third_party/asn1/RejoinEvent.c +++ /dev/null @@ -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 "RejoinEvent.h" - -static ber_tlv_tag_t asn_DEF_RejoinEvent_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_RejoinEvent_specs_1 = { - sizeof(struct RejoinEvent), - offsetof(struct RejoinEvent, _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_RejoinEvent = { - "RejoinEvent", - "RejoinEvent", - 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_RejoinEvent_tags_1, - sizeof(asn_DEF_RejoinEvent_tags_1) - /sizeof(asn_DEF_RejoinEvent_tags_1[0]), /* 1 */ - asn_DEF_RejoinEvent_tags_1, /* Same as above */ - sizeof(asn_DEF_RejoinEvent_tags_1) - /sizeof(asn_DEF_RejoinEvent_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_RejoinEvent_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RejoinEvent.h b/src/third_party/asn1/RejoinEvent.h deleted file mode 100644 index b3fe0058..00000000 --- a/src/third_party/asn1/RejoinEvent.h +++ /dev/null @@ -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 _RejoinEvent_H_ -#define _RejoinEvent_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* RejoinEvent */ - typedef struct RejoinEvent { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } RejoinEvent_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_RejoinEvent; - -#ifdef __cplusplus -} -#endif - -#endif /* _RejoinEvent_H_ */ -#include diff --git a/src/third_party/asn1/RejoinExistingGame.c b/src/third_party/asn1/RejoinExistingGame.c deleted file mode 100644 index 7999f520..00000000 --- a/src/third_party/asn1/RejoinExistingGame.c +++ /dev/null @@ -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 "RejoinExistingGame.h" - -static asn_TYPE_member_t asn_MBR_RejoinExistingGame_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RejoinExistingGame, 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_RejoinExistingGame_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_RejoinExistingGame_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 303 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_RejoinExistingGame_specs_1 = { - sizeof(struct RejoinExistingGame), - offsetof(struct RejoinExistingGame, _asn_ctx), - asn_MAP_RejoinExistingGame_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_RejoinExistingGame = { - "RejoinExistingGame", - "RejoinExistingGame", - 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_RejoinExistingGame_tags_1, - sizeof(asn_DEF_RejoinExistingGame_tags_1) - /sizeof(asn_DEF_RejoinExistingGame_tags_1[0]), /* 1 */ - asn_DEF_RejoinExistingGame_tags_1, /* Same as above */ - sizeof(asn_DEF_RejoinExistingGame_tags_1) - /sizeof(asn_DEF_RejoinExistingGame_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_RejoinExistingGame_1, - 1, /* Elements count */ - &asn_SPC_RejoinExistingGame_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RejoinExistingGame.h b/src/third_party/asn1/RejoinExistingGame.h deleted file mode 100644 index 796a7188..00000000 --- a/src/third_party/asn1/RejoinExistingGame.h +++ /dev/null @@ -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 _RejoinExistingGame_H_ -#define _RejoinExistingGame_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* RejoinExistingGame */ - typedef struct RejoinExistingGame { - NonZeroId_t gameId; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } RejoinExistingGame_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_RejoinExistingGame; - -#ifdef __cplusplus -} -#endif - -#endif /* _RejoinExistingGame_H_ */ -#include diff --git a/src/third_party/asn1/RejoinPlayerData.c b/src/third_party/asn1/RejoinPlayerData.c deleted file mode 100644 index 2f12b1b3..00000000 --- a/src/third_party/asn1/RejoinPlayerData.c +++ /dev/null @@ -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 "RejoinPlayerData.h" - -static asn_TYPE_member_t asn_MBR_RejoinPlayerData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RejoinPlayerData, 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 RejoinPlayerData, 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_RejoinPlayerData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_RejoinPlayerData_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* playerId at 456 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerMoney at 458 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_RejoinPlayerData_specs_1 = { - sizeof(struct RejoinPlayerData), - offsetof(struct RejoinPlayerData, _asn_ctx), - asn_MAP_RejoinPlayerData_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_RejoinPlayerData = { - "RejoinPlayerData", - "RejoinPlayerData", - 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_RejoinPlayerData_tags_1, - sizeof(asn_DEF_RejoinPlayerData_tags_1) - /sizeof(asn_DEF_RejoinPlayerData_tags_1[0]), /* 1 */ - asn_DEF_RejoinPlayerData_tags_1, /* Same as above */ - sizeof(asn_DEF_RejoinPlayerData_tags_1) - /sizeof(asn_DEF_RejoinPlayerData_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_RejoinPlayerData_1, - 2, /* Elements count */ - &asn_SPC_RejoinPlayerData_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RejoinPlayerData.h b/src/third_party/asn1/RejoinPlayerData.h deleted file mode 100644 index 77336f30..00000000 --- a/src/third_party/asn1/RejoinPlayerData.h +++ /dev/null @@ -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 _RejoinPlayerData_H_ -#define _RejoinPlayerData_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "AmountOfMoney.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* RejoinPlayerData */ - typedef struct RejoinPlayerData { - NonZeroId_t playerId; - AmountOfMoney_t playerMoney; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } RejoinPlayerData_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_RejoinPlayerData; - -#ifdef __cplusplus -} -#endif - -#endif /* _RejoinPlayerData_H_ */ -#include diff --git a/src/third_party/asn1/RemovedFromGame.c b/src/third_party/asn1/RemovedFromGame.c deleted file mode 100644 index 0c81cb18..00000000 --- a/src/third_party/asn1/RemovedFromGame.c +++ /dev/null @@ -1,184 +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 "RemovedFromGame.h" - -static int -removedFromGameReason_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 -removedFromGameReason_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 -removedFromGameReason_2_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - removedFromGameReason_2_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -removedFromGameReason_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - removedFromGameReason_2_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -removedFromGameReason_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) { - removedFromGameReason_2_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -removedFromGameReason_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) { - removedFromGameReason_2_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -removedFromGameReason_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) { - removedFromGameReason_2_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -removedFromGameReason_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) { - removedFromGameReason_2_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_removedFromGameReason_value2enum_2[] = { - { 0, 16, "removedOnRequest" }, - { 1, 14, "kickedFromGame" }, - { 2, 10, "gameIsFull" }, - { 3, 13, "gameIsRunning" }, - { 4, 11, "gameTimeout" }, - { 5, 18, "removedStartFailed" } -}; -static unsigned int asn_MAP_removedFromGameReason_enum2value_2[] = { - 2, /* gameIsFull(2) */ - 3, /* gameIsRunning(3) */ - 4, /* gameTimeout(4) */ - 1, /* kickedFromGame(1) */ - 0, /* removedOnRequest(0) */ - 5 /* removedStartFailed(5) */ -}; -static asn_INTEGER_specifics_t asn_SPC_removedFromGameReason_specs_2 = { - asn_MAP_removedFromGameReason_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_removedFromGameReason_enum2value_2, /* N => "tag"; sorted by N */ - 6, /* 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_removedFromGameReason_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_removedFromGameReason_2 = { - "removedFromGameReason", - "removedFromGameReason", - removedFromGameReason_2_free, - removedFromGameReason_2_print, - removedFromGameReason_2_constraint, - removedFromGameReason_2_decode_ber, - removedFromGameReason_2_encode_der, - removedFromGameReason_2_decode_xer, - removedFromGameReason_2_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_removedFromGameReason_tags_2, - sizeof(asn_DEF_removedFromGameReason_tags_2) - /sizeof(asn_DEF_removedFromGameReason_tags_2[0]), /* 1 */ - asn_DEF_removedFromGameReason_tags_2, /* Same as above */ - sizeof(asn_DEF_removedFromGameReason_tags_2) - /sizeof(asn_DEF_removedFromGameReason_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_removedFromGameReason_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_RemovedFromGame_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RemovedFromGame, removedFromGameReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_removedFromGameReason_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "removedFromGameReason" - }, -}; -static ber_tlv_tag_t asn_DEF_RemovedFromGame_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_RemovedFromGame_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* removedFromGameReason at 391 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_RemovedFromGame_specs_1 = { - sizeof(struct RemovedFromGame), - offsetof(struct RemovedFromGame, _asn_ctx), - asn_MAP_RemovedFromGame_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_RemovedFromGame = { - "RemovedFromGame", - "RemovedFromGame", - 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_RemovedFromGame_tags_1, - sizeof(asn_DEF_RemovedFromGame_tags_1) - /sizeof(asn_DEF_RemovedFromGame_tags_1[0]), /* 1 */ - asn_DEF_RemovedFromGame_tags_1, /* Same as above */ - sizeof(asn_DEF_RemovedFromGame_tags_1) - /sizeof(asn_DEF_RemovedFromGame_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_RemovedFromGame_1, - 1, /* Elements count */ - &asn_SPC_RemovedFromGame_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/RemovedFromGame.h b/src/third_party/asn1/RemovedFromGame.h deleted file mode 100644 index c53e19bc..00000000 --- a/src/third_party/asn1/RemovedFromGame.h +++ /dev/null @@ -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 _RemovedFromGame_H_ -#define _RemovedFromGame_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum removedFromGameReason { - removedFromGameReason_removedOnRequest = 0, - removedFromGameReason_kickedFromGame = 1, - removedFromGameReason_gameIsFull = 2, - removedFromGameReason_gameIsRunning = 3, - removedFromGameReason_gameTimeout = 4, - removedFromGameReason_removedStartFailed = 5 - } - e_removedFromGameReason; - - /* RemovedFromGame */ - typedef struct RemovedFromGame { - long removedFromGameReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } RemovedFromGame_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_removedFromGameReason_2; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_RemovedFromGame; - -#ifdef __cplusplus -} -#endif - -#endif /* _RemovedFromGame_H_ */ -#include diff --git a/src/third_party/asn1/ReportAvatarAckMessage.c b/src/third_party/asn1/ReportAvatarAckMessage.c deleted file mode 100644 index bd2fdcea..00000000 --- a/src/third_party/asn1/ReportAvatarAckMessage.c +++ /dev/null @@ -1,189 +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 "ReportAvatarAckMessage.h" - -static int -reportAvatarResult_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 -reportAvatarResult_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 -reportAvatarResult_3_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - reportAvatarResult_3_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -reportAvatarResult_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - reportAvatarResult_3_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -reportAvatarResult_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) { - reportAvatarResult_3_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -reportAvatarResult_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) { - reportAvatarResult_3_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -reportAvatarResult_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) { - reportAvatarResult_3_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -reportAvatarResult_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) { - reportAvatarResult_3_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_reportAvatarResult_value2enum_3[] = { - { 0, 20, "avatarReportAccepted" }, - { 1, 21, "avatarReportDuplicate" }, - { 2, 19, "avatarReportInvalid" } -}; -static unsigned int asn_MAP_reportAvatarResult_enum2value_3[] = { - 0, /* avatarReportAccepted(0) */ - 1, /* avatarReportDuplicate(1) */ - 2 /* avatarReportInvalid(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_reportAvatarResult_specs_3 = { - asn_MAP_reportAvatarResult_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_reportAvatarResult_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_reportAvatarResult_tags_3[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_reportAvatarResult_3 = { - "reportAvatarResult", - "reportAvatarResult", - reportAvatarResult_3_free, - reportAvatarResult_3_print, - reportAvatarResult_3_constraint, - reportAvatarResult_3_decode_ber, - reportAvatarResult_3_encode_der, - reportAvatarResult_3_decode_xer, - reportAvatarResult_3_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_reportAvatarResult_tags_3, - sizeof(asn_DEF_reportAvatarResult_tags_3) - /sizeof(asn_DEF_reportAvatarResult_tags_3[0]), /* 1 */ - asn_DEF_reportAvatarResult_tags_3, /* Same as above */ - sizeof(asn_DEF_reportAvatarResult_tags_3) - /sizeof(asn_DEF_reportAvatarResult_tags_3[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_reportAvatarResult_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ReportAvatarAckMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportAvatarAckMessage, reportedPlayerId), - (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, - "reportedPlayerId" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReportAvatarAckMessage, reportAvatarResult), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_reportAvatarResult_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "reportAvatarResult" - }, -}; -static ber_tlv_tag_t asn_DEF_ReportAvatarAckMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (136 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_ReportAvatarAckMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* reportedPlayerId at 767 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* reportAvatarResult at 769 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ReportAvatarAckMessage_specs_1 = { - sizeof(struct ReportAvatarAckMessage), - offsetof(struct ReportAvatarAckMessage, _asn_ctx), - asn_MAP_ReportAvatarAckMessage_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_ReportAvatarAckMessage = { - "ReportAvatarAckMessage", - "ReportAvatarAckMessage", - 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_ReportAvatarAckMessage_tags_1, - sizeof(asn_DEF_ReportAvatarAckMessage_tags_1) - /sizeof(asn_DEF_ReportAvatarAckMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_ReportAvatarAckMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportAvatarAckMessage_tags_1) - /sizeof(asn_DEF_ReportAvatarAckMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_ReportAvatarAckMessage_1, - 2, /* Elements count */ - &asn_SPC_ReportAvatarAckMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/ReportAvatarAckMessage.h b/src/third_party/asn1/ReportAvatarAckMessage.h deleted file mode 100644 index 6165fe7c..00000000 --- a/src/third_party/asn1/ReportAvatarAckMessage.h +++ /dev/null @@ -1,53 +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 _ReportAvatarAckMessage_H_ -#define _ReportAvatarAckMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum reportAvatarResult { - reportAvatarResult_avatarReportAccepted = 0, - reportAvatarResult_avatarReportDuplicate = 1, - reportAvatarResult_avatarReportInvalid = 2 - } - e_reportAvatarResult; - - /* ReportAvatarAckMessage */ - typedef struct ReportAvatarAckMessage { - NonZeroId_t reportedPlayerId; - long reportAvatarResult; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ReportAvatarAckMessage_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_reportAvatarResult_3; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_ReportAvatarAckMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _ReportAvatarAckMessage_H_ */ -#include diff --git a/src/third_party/asn1/ReportAvatarMessage.c b/src/third_party/asn1/ReportAvatarMessage.c deleted file mode 100644 index 2e705337..00000000 --- a/src/third_party/asn1/ReportAvatarMessage.c +++ /dev/null @@ -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 "ReportAvatarMessage.h" - -static asn_TYPE_member_t asn_MBR_ReportAvatarMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportAvatarMessage, reportedPlayerId), - (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, - "reportedPlayerId" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReportAvatarMessage, reportedAvatar), - (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, - "reportedAvatar" - }, -}; -static ber_tlv_tag_t asn_DEF_ReportAvatarMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (135 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_ReportAvatarMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* reportedPlayerId at 762 */ - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* reportedAvatar at 764 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ReportAvatarMessage_specs_1 = { - sizeof(struct ReportAvatarMessage), - offsetof(struct ReportAvatarMessage, _asn_ctx), - asn_MAP_ReportAvatarMessage_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_ReportAvatarMessage = { - "ReportAvatarMessage", - "ReportAvatarMessage", - 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_ReportAvatarMessage_tags_1, - sizeof(asn_DEF_ReportAvatarMessage_tags_1) - /sizeof(asn_DEF_ReportAvatarMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_ReportAvatarMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportAvatarMessage_tags_1) - /sizeof(asn_DEF_ReportAvatarMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_ReportAvatarMessage_1, - 2, /* Elements count */ - &asn_SPC_ReportAvatarMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/ReportAvatarMessage.h b/src/third_party/asn1/ReportAvatarMessage.h deleted file mode 100644 index 28793941..00000000 --- a/src/third_party/asn1/ReportAvatarMessage.h +++ /dev/null @@ -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 _ReportAvatarMessage_H_ -#define _ReportAvatarMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "AvatarHash.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* ReportAvatarMessage */ - typedef struct ReportAvatarMessage { - NonZeroId_t reportedPlayerId; - AvatarHash_t reportedAvatar; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ReportAvatarMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_ReportAvatarMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _ReportAvatarMessage_H_ */ -#include diff --git a/src/third_party/asn1/ReportGameAckMessage.c b/src/third_party/asn1/ReportGameAckMessage.c deleted file mode 100644 index 8deb031a..00000000 --- a/src/third_party/asn1/ReportGameAckMessage.c +++ /dev/null @@ -1,189 +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 "ReportGameAckMessage.h" - -static int -reportGameResult_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 -reportGameResult_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 -reportGameResult_3_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - reportGameResult_3_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -reportGameResult_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - reportGameResult_3_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -reportGameResult_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) { - reportGameResult_3_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -reportGameResult_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) { - reportGameResult_3_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -reportGameResult_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) { - reportGameResult_3_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -reportGameResult_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) { - reportGameResult_3_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_reportGameResult_value2enum_3[] = { - { 0, 18, "gameReportAccepted" }, - { 1, 19, "gameReportDuplicate" }, - { 2, 17, "gameReportInvalid" } -}; -static unsigned int asn_MAP_reportGameResult_enum2value_3[] = { - 0, /* gameReportAccepted(0) */ - 1, /* gameReportDuplicate(1) */ - 2 /* gameReportInvalid(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_reportGameResult_specs_3 = { - asn_MAP_reportGameResult_value2enum_3, /* "tag" => N; sorted by tag */ - asn_MAP_reportGameResult_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_reportGameResult_tags_3[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_reportGameResult_3 = { - "reportGameResult", - "reportGameResult", - reportGameResult_3_free, - reportGameResult_3_print, - reportGameResult_3_constraint, - reportGameResult_3_decode_ber, - reportGameResult_3_encode_der, - reportGameResult_3_decode_xer, - reportGameResult_3_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_reportGameResult_tags_3, - sizeof(asn_DEF_reportGameResult_tags_3) - /sizeof(asn_DEF_reportGameResult_tags_3[0]), /* 1 */ - asn_DEF_reportGameResult_tags_3, /* Same as above */ - sizeof(asn_DEF_reportGameResult_tags_3) - /sizeof(asn_DEF_reportGameResult_tags_3[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_reportGameResult_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_ReportGameAckMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportGameAckMessage, reportedGameId), - (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, - "reportedGameId" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReportGameAckMessage, reportGameResult), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_reportGameResult_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "reportGameResult" - }, -}; -static ber_tlv_tag_t asn_DEF_ReportGameAckMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (138 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_ReportGameAckMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* reportedGameId at 780 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 } /* reportGameResult at 782 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ReportGameAckMessage_specs_1 = { - sizeof(struct ReportGameAckMessage), - offsetof(struct ReportGameAckMessage, _asn_ctx), - asn_MAP_ReportGameAckMessage_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_ReportGameAckMessage = { - "ReportGameAckMessage", - "ReportGameAckMessage", - 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_ReportGameAckMessage_tags_1, - sizeof(asn_DEF_ReportGameAckMessage_tags_1) - /sizeof(asn_DEF_ReportGameAckMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_ReportGameAckMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportGameAckMessage_tags_1) - /sizeof(asn_DEF_ReportGameAckMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_ReportGameAckMessage_1, - 2, /* Elements count */ - &asn_SPC_ReportGameAckMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/ReportGameAckMessage.h b/src/third_party/asn1/ReportGameAckMessage.h deleted file mode 100644 index 6e465bce..00000000 --- a/src/third_party/asn1/ReportGameAckMessage.h +++ /dev/null @@ -1,53 +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 _ReportGameAckMessage_H_ -#define _ReportGameAckMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum reportGameResult { - reportGameResult_gameReportAccepted = 0, - reportGameResult_gameReportDuplicate = 1, - reportGameResult_gameReportInvalid = 2 - } - e_reportGameResult; - - /* ReportGameAckMessage */ - typedef struct ReportGameAckMessage { - NonZeroId_t reportedGameId; - long reportGameResult; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ReportGameAckMessage_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_reportGameResult_3; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_ReportGameAckMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _ReportGameAckMessage_H_ */ -#include diff --git a/src/third_party/asn1/ReportGameMessage.c b/src/third_party/asn1/ReportGameMessage.c deleted file mode 100644 index d24614bb..00000000 --- a/src/third_party/asn1/ReportGameMessage.c +++ /dev/null @@ -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 "ReportGameMessage.h" - -static asn_TYPE_member_t asn_MBR_ReportGameMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportGameMessage, reportedGameId), - (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, - "reportedGameId" - }, -}; -static ber_tlv_tag_t asn_DEF_ReportGameMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (137 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_ReportGameMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* reportedGameId at 777 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_ReportGameMessage_specs_1 = { - sizeof(struct ReportGameMessage), - offsetof(struct ReportGameMessage, _asn_ctx), - asn_MAP_ReportGameMessage_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_ReportGameMessage = { - "ReportGameMessage", - "ReportGameMessage", - 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_ReportGameMessage_tags_1, - sizeof(asn_DEF_ReportGameMessage_tags_1) - /sizeof(asn_DEF_ReportGameMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_ReportGameMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_ReportGameMessage_tags_1) - /sizeof(asn_DEF_ReportGameMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_ReportGameMessage_1, - 1, /* Elements count */ - &asn_SPC_ReportGameMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/ReportGameMessage.h b/src/third_party/asn1/ReportGameMessage.h deleted file mode 100644 index 7231455e..00000000 --- a/src/third_party/asn1/ReportGameMessage.h +++ /dev/null @@ -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 _ReportGameMessage_H_ -#define _ReportGameMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* ReportGameMessage */ - typedef struct ReportGameMessage { - NonZeroId_t reportedGameId; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ReportGameMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_ReportGameMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _ReportGameMessage_H_ */ -#include diff --git a/src/third_party/asn1/ResetTimeoutMessage.c b/src/third_party/asn1/ResetTimeoutMessage.c deleted file mode 100644 index 6026c62c..00000000 --- a/src/third_party/asn1/ResetTimeoutMessage.c +++ /dev/null @@ -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` - */ - -#include "ResetTimeoutMessage.h" - -static ber_tlv_tag_t asn_DEF_ResetTimeoutMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (134 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_ResetTimeoutMessage_specs_1 = { - sizeof(struct ResetTimeoutMessage), - offsetof(struct ResetTimeoutMessage, _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_ResetTimeoutMessage = { - "ResetTimeoutMessage", - "ResetTimeoutMessage", - 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_ResetTimeoutMessage_tags_1, - sizeof(asn_DEF_ResetTimeoutMessage_tags_1) - /sizeof(asn_DEF_ResetTimeoutMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_ResetTimeoutMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_ResetTimeoutMessage_tags_1) - /sizeof(asn_DEF_ResetTimeoutMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_ResetTimeoutMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/ResetTimeoutMessage.h b/src/third_party/asn1/ResetTimeoutMessage.h deleted file mode 100644 index cb253c25..00000000 --- a/src/third_party/asn1/ResetTimeoutMessage.h +++ /dev/null @@ -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 _ResetTimeoutMessage_H_ -#define _ResetTimeoutMessage_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* ResetTimeoutMessage */ - typedef struct ResetTimeoutMessage { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ResetTimeoutMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_ResetTimeoutMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _ResetTimeoutMessage_H_ */ -#include diff --git a/src/third_party/asn1/ShowMyCardsRequestMessage.c b/src/third_party/asn1/ShowMyCardsRequestMessage.c deleted file mode 100644 index bf4ef645..00000000 --- a/src/third_party/asn1/ShowMyCardsRequestMessage.c +++ /dev/null @@ -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` - */ - -#include "ShowMyCardsRequestMessage.h" - -static ber_tlv_tag_t asn_DEF_ShowMyCardsRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (33 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_ShowMyCardsRequestMessage_specs_1 = { - sizeof(struct ShowMyCardsRequestMessage), - offsetof(struct ShowMyCardsRequestMessage, _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_ShowMyCardsRequestMessage = { - "ShowMyCardsRequestMessage", - "ShowMyCardsRequestMessage", - 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_ShowMyCardsRequestMessage_tags_1, - sizeof(asn_DEF_ShowMyCardsRequestMessage_tags_1) - /sizeof(asn_DEF_ShowMyCardsRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_ShowMyCardsRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_ShowMyCardsRequestMessage_tags_1) - /sizeof(asn_DEF_ShowMyCardsRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_ShowMyCardsRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/ShowMyCardsRequestMessage.h b/src/third_party/asn1/ShowMyCardsRequestMessage.h deleted file mode 100644 index 6bf7980f..00000000 --- a/src/third_party/asn1/ShowMyCardsRequestMessage.h +++ /dev/null @@ -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 _ShowMyCardsRequestMessage_H_ -#define _ShowMyCardsRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* ShowMyCardsRequestMessage */ - typedef struct ShowMyCardsRequestMessage { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ShowMyCardsRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_ShowMyCardsRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _ShowMyCardsRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/StartEvent.c b/src/third_party/asn1/StartEvent.c deleted file mode 100644 index b9355b96..00000000 --- a/src/third_party/asn1/StartEvent.c +++ /dev/null @@ -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 "StartEvent.h" - -static asn_TYPE_member_t asn_MBR_StartEvent_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StartEvent, fillWithComputerPlayers), - (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, - "fillWithComputerPlayers" - }, -}; -static ber_tlv_tag_t asn_DEF_StartEvent_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_StartEvent_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 } /* fillWithComputerPlayers at 445 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_StartEvent_specs_1 = { - sizeof(struct StartEvent), - offsetof(struct StartEvent, _asn_ctx), - asn_MAP_StartEvent_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_StartEvent = { - "StartEvent", - "StartEvent", - 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_StartEvent_tags_1, - sizeof(asn_DEF_StartEvent_tags_1) - /sizeof(asn_DEF_StartEvent_tags_1[0]), /* 1 */ - asn_DEF_StartEvent_tags_1, /* Same as above */ - sizeof(asn_DEF_StartEvent_tags_1) - /sizeof(asn_DEF_StartEvent_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_StartEvent_1, - 1, /* Elements count */ - &asn_SPC_StartEvent_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/StartEvent.h b/src/third_party/asn1/StartEvent.h deleted file mode 100644 index e2b00faf..00000000 --- a/src/third_party/asn1/StartEvent.h +++ /dev/null @@ -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 _StartEvent_H_ -#define _StartEvent_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* StartEvent */ - typedef struct StartEvent { - BOOLEAN_t fillWithComputerPlayers; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } StartEvent_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_StartEvent; - -#ifdef __cplusplus -} -#endif - -#endif /* _StartEvent_H_ */ -#include diff --git a/src/third_party/asn1/StartEventAckMessage.c b/src/third_party/asn1/StartEventAckMessage.c deleted file mode 100644 index 2675a9dd..00000000 --- a/src/third_party/asn1/StartEventAckMessage.c +++ /dev/null @@ -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 "StartEventAckMessage.h" - -static asn_TYPE_member_t asn_MBR_StartEventAckMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StartEventAckMessage, 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_StartEventAckMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (21 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_StartEventAckMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 453 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_StartEventAckMessage_specs_1 = { - sizeof(struct StartEventAckMessage), - offsetof(struct StartEventAckMessage, _asn_ctx), - asn_MAP_StartEventAckMessage_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_StartEventAckMessage = { - "StartEventAckMessage", - "StartEventAckMessage", - 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_StartEventAckMessage_tags_1, - sizeof(asn_DEF_StartEventAckMessage_tags_1) - /sizeof(asn_DEF_StartEventAckMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_StartEventAckMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_StartEventAckMessage_tags_1) - /sizeof(asn_DEF_StartEventAckMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_StartEventAckMessage_1, - 1, /* Elements count */ - &asn_SPC_StartEventAckMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/StartEventAckMessage.h b/src/third_party/asn1/StartEventAckMessage.h deleted file mode 100644 index e98d074a..00000000 --- a/src/third_party/asn1/StartEventAckMessage.h +++ /dev/null @@ -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 _StartEventAckMessage_H_ -#define _StartEventAckMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* StartEventAckMessage */ - typedef struct StartEventAckMessage { - NonZeroId_t gameId; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } StartEventAckMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_StartEventAckMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _StartEventAckMessage_H_ */ -#include diff --git a/src/third_party/asn1/StartEventMessage.c b/src/third_party/asn1/StartEventMessage.c deleted file mode 100644 index f213be0e..00000000 --- a/src/third_party/asn1/StartEventMessage.c +++ /dev/null @@ -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 "StartEventMessage.h" - -static asn_TYPE_member_t asn_MBR_startEventType_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct startEventType, choice.startEvent), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StartEvent, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "startEvent" - }, - { ATF_NOFLAGS, 0, offsetof(struct startEventType, choice.rejoinEvent), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RejoinEvent, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "rejoinEvent" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_startEventType_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startEvent at 439 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rejoinEvent at 441 */ -}; -static asn_CHOICE_specifics_t asn_SPC_startEventType_specs_3 = { - sizeof(struct startEventType), - offsetof(struct startEventType, _asn_ctx), - offsetof(struct startEventType, present), - sizeof(((struct startEventType *)0)->present), - asn_MAP_startEventType_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_startEventType_3 = { - "startEventType", - "startEventType", - 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_startEventType_3, - 2, /* Elements count */ - &asn_SPC_startEventType_specs_3 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_StartEventMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StartEventMessage, 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 StartEventMessage, startEventType), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_startEventType_3, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "startEventType" - }, -}; -static ber_tlv_tag_t asn_DEF_StartEventMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (20 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_StartEventMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 437 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* startEvent at 439 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rejoinEvent at 441 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_StartEventMessage_specs_1 = { - sizeof(struct StartEventMessage), - offsetof(struct StartEventMessage, _asn_ctx), - asn_MAP_StartEventMessage_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_StartEventMessage = { - "StartEventMessage", - "StartEventMessage", - 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_StartEventMessage_tags_1, - sizeof(asn_DEF_StartEventMessage_tags_1) - /sizeof(asn_DEF_StartEventMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_StartEventMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_StartEventMessage_tags_1) - /sizeof(asn_DEF_StartEventMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_StartEventMessage_1, - 2, /* Elements count */ - &asn_SPC_StartEventMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/StartEventMessage.h b/src/third_party/asn1/StartEventMessage.h deleted file mode 100644 index 0df052f5..00000000 --- a/src/third_party/asn1/StartEventMessage.h +++ /dev/null @@ -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 _StartEventMessage_H_ -#define _StartEventMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "StartEvent.h" -#include "RejoinEvent.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum startEventType_PR { - startEventType_PR_NOTHING, /* No components present */ - startEventType_PR_startEvent, - startEventType_PR_rejoinEvent, - /* Extensions may appear below */ - - } - startEventType_PR; - - /* StartEventMessage */ - typedef struct StartEventMessage { - NonZeroId_t gameId; - struct startEventType { - startEventType_PR present; - union StartEventMessage__startEventType_u { - StartEvent_t startEvent; - RejoinEvent_t rejoinEvent; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } startEventType; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } StartEventMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_StartEventMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _StartEventMessage_H_ */ -#include diff --git a/src/third_party/asn1/StartKickPetitionMessage.c b/src/third_party/asn1/StartKickPetitionMessage.c deleted file mode 100644 index f67ad342..00000000 --- a/src/third_party/asn1/StartKickPetitionMessage.c +++ /dev/null @@ -1,160 +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 "StartKickPetitionMessage.h" - -static int -memb_kickTimeoutSec_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 <= 120)) { - /* 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_numVotesNeededToKick_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_TYPE_member_t asn_MBR_StartKickPetitionMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StartKickPetitionMessage, 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 StartKickPetitionMessage, 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 StartKickPetitionMessage, proposingPlayerId), - (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, - "proposingPlayerId" - }, - { ATF_NOFLAGS, 0, offsetof(struct StartKickPetitionMessage, kickPlayerId), - (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, - "kickPlayerId" - }, - { ATF_NOFLAGS, 0, offsetof(struct StartKickPetitionMessage, kickTimeoutSec), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_kickTimeoutSec_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "kickTimeoutSec" - }, - { ATF_NOFLAGS, 0, offsetof(struct StartKickPetitionMessage, numVotesNeededToKick), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_numVotesNeededToKick_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "numVotesNeededToKick" - }, -}; -static ber_tlv_tag_t asn_DEF_StartKickPetitionMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (66 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_StartKickPetitionMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 5 }, /* gameId at 625 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 4 }, /* petitionId at 626 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 3 }, /* proposingPlayerId at 627 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 2 }, /* kickPlayerId at 628 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -4, 1 }, /* kickTimeoutSec at 629 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 5, -5, 0 } /* numVotesNeededToKick at 630 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_StartKickPetitionMessage_specs_1 = { - sizeof(struct StartKickPetitionMessage), - offsetof(struct StartKickPetitionMessage, _asn_ctx), - asn_MAP_StartKickPetitionMessage_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_StartKickPetitionMessage = { - "StartKickPetitionMessage", - "StartKickPetitionMessage", - 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_StartKickPetitionMessage_tags_1, - sizeof(asn_DEF_StartKickPetitionMessage_tags_1) - /sizeof(asn_DEF_StartKickPetitionMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_StartKickPetitionMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_StartKickPetitionMessage_tags_1) - /sizeof(asn_DEF_StartKickPetitionMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_StartKickPetitionMessage_1, - 6, /* Elements count */ - &asn_SPC_StartKickPetitionMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/StartKickPetitionMessage.h b/src/third_party/asn1/StartKickPetitionMessage.h deleted file mode 100644 index da220727..00000000 --- a/src/third_party/asn1/StartKickPetitionMessage.h +++ /dev/null @@ -1,48 +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 _StartKickPetitionMessage_H_ -#define _StartKickPetitionMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* StartKickPetitionMessage */ - typedef struct StartKickPetitionMessage { - NonZeroId_t gameId; - NonZeroId_t petitionId; - NonZeroId_t proposingPlayerId; - NonZeroId_t kickPlayerId; - long kickTimeoutSec; - long numVotesNeededToKick; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } StartKickPetitionMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_StartKickPetitionMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _StartKickPetitionMessage_H_ */ -#include diff --git a/src/third_party/asn1/StatisticsData.c b/src/third_party/asn1/StatisticsData.c deleted file mode 100644 index fe684907..00000000 --- a/src/third_party/asn1/StatisticsData.c +++ /dev/null @@ -1,184 +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 "StatisticsData.h" - -static int -statisticsType_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 -statisticsType_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 -statisticsType_2_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - statisticsType_2_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -statisticsType_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - statisticsType_2_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -statisticsType_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) { - statisticsType_2_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -statisticsType_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) { - statisticsType_2_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -statisticsType_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) { - statisticsType_2_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -statisticsType_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) { - statisticsType_2_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_statisticsType_value2enum_2[] = { - { 1, 19, "statNumberOfPlayers" } -}; -static unsigned int asn_MAP_statisticsType_enum2value_2[] = { - 0 /* statNumberOfPlayers(1) */ -}; -static asn_INTEGER_specifics_t asn_SPC_statisticsType_specs_2 = { - asn_MAP_statisticsType_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_statisticsType_enum2value_2, /* N => "tag"; sorted by N */ - 1, /* 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_statisticsType_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_statisticsType_2 = { - "statisticsType", - "statisticsType", - statisticsType_2_free, - statisticsType_2_print, - statisticsType_2_constraint, - statisticsType_2_decode_ber, - statisticsType_2_encode_der, - statisticsType_2_decode_xer, - statisticsType_2_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_statisticsType_tags_2, - sizeof(asn_DEF_statisticsType_tags_2) - /sizeof(asn_DEF_statisticsType_tags_2[0]), /* 1 */ - asn_DEF_statisticsType_tags_2, /* Same as above */ - sizeof(asn_DEF_statisticsType_tags_2) - /sizeof(asn_DEF_statisticsType_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_statisticsType_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_StatisticsData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StatisticsData, statisticsType), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_statisticsType_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "statisticsType" - }, - { ATF_NOFLAGS, 0, offsetof(struct StatisticsData, statisticsValue), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "statisticsValue" - }, -}; -static ber_tlv_tag_t asn_DEF_StatisticsData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_StatisticsData_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* statisticsValue at 689 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* statisticsType at 686 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_StatisticsData_specs_1 = { - sizeof(struct StatisticsData), - offsetof(struct StatisticsData, _asn_ctx), - asn_MAP_StatisticsData_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_StatisticsData = { - "StatisticsData", - "StatisticsData", - 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_StatisticsData_tags_1, - sizeof(asn_DEF_StatisticsData_tags_1) - /sizeof(asn_DEF_StatisticsData_tags_1[0]), /* 1 */ - asn_DEF_StatisticsData_tags_1, /* Same as above */ - sizeof(asn_DEF_StatisticsData_tags_1) - /sizeof(asn_DEF_StatisticsData_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_StatisticsData_1, - 2, /* Elements count */ - &asn_SPC_StatisticsData_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/StatisticsData.h b/src/third_party/asn1/StatisticsData.h deleted file mode 100644 index 0accee42..00000000 --- a/src/third_party/asn1/StatisticsData.h +++ /dev/null @@ -1,51 +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 _StatisticsData_H_ -#define _StatisticsData_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum statisticsType { - statisticsType_statNumberOfPlayers = 1 - } - e_statisticsType; - - /* StatisticsData */ - typedef struct StatisticsData { - long statisticsType; - long statisticsValue; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } StatisticsData_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_statisticsType_2; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_StatisticsData; - -#ifdef __cplusplus -} -#endif - -#endif /* _StatisticsData_H_ */ -#include diff --git a/src/third_party/asn1/StatisticsMessage.c b/src/third_party/asn1/StatisticsMessage.c deleted file mode 100644 index 5ad583dd..00000000 --- a/src/third_party/asn1/StatisticsMessage.c +++ /dev/null @@ -1,130 +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 "StatisticsMessage.h" - -static int -memb_statisticsData_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 <= 32)) { - /* 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_statisticsData_2[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_StatisticsData, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "" - }, -}; -static ber_tlv_tag_t asn_DEF_statisticsData_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_statisticsData_specs_2 = { - sizeof(struct statisticsData), - offsetof(struct statisticsData, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_statisticsData_2 = { - "statisticsData", - "statisticsData", - 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_statisticsData_tags_2, - sizeof(asn_DEF_statisticsData_tags_2) - /sizeof(asn_DEF_statisticsData_tags_2[0]), /* 1 */ - asn_DEF_statisticsData_tags_2, /* Same as above */ - sizeof(asn_DEF_statisticsData_tags_2) - /sizeof(asn_DEF_statisticsData_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_statisticsData_2, - 1, /* Single element */ - &asn_SPC_statisticsData_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_StatisticsMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct StatisticsMessage, statisticsData), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_statisticsData_2, - memb_statisticsData_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "statisticsData" - }, -}; -static ber_tlv_tag_t asn_DEF_StatisticsMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (128 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_StatisticsMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* statisticsData at 682 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_StatisticsMessage_specs_1 = { - sizeof(struct StatisticsMessage), - offsetof(struct StatisticsMessage, _asn_ctx), - asn_MAP_StatisticsMessage_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_StatisticsMessage = { - "StatisticsMessage", - "StatisticsMessage", - 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_StatisticsMessage_tags_1, - sizeof(asn_DEF_StatisticsMessage_tags_1) - /sizeof(asn_DEF_StatisticsMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_StatisticsMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_StatisticsMessage_tags_1) - /sizeof(asn_DEF_StatisticsMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_StatisticsMessage_1, - 1, /* Elements count */ - &asn_SPC_StatisticsMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/StatisticsMessage.h b/src/third_party/asn1/StatisticsMessage.h deleted file mode 100644 index 3850b6bf..00000000 --- a/src/third_party/asn1/StatisticsMessage.h +++ /dev/null @@ -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 _StatisticsMessage_H_ -#define _StatisticsMessage_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Forward declarations */ - struct StatisticsData; - - /* StatisticsMessage */ - typedef struct StatisticsMessage { - struct statisticsData { - A_SEQUENCE_OF(struct StatisticsData) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } statisticsData; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } StatisticsMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_StatisticsMessage; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include "StatisticsData.h" - -#endif /* _StatisticsMessage_H_ */ -#include diff --git a/src/third_party/asn1/SubscriptionRequestMessage.c b/src/third_party/asn1/SubscriptionRequestMessage.c deleted file mode 100644 index c7eb7b31..00000000 --- a/src/third_party/asn1/SubscriptionRequestMessage.c +++ /dev/null @@ -1,177 +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 "SubscriptionRequestMessage.h" - -static int -subscriptionAction_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 -subscriptionAction_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 -subscriptionAction_2_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - subscriptionAction_2_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -subscriptionAction_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - subscriptionAction_2_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -subscriptionAction_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) { - subscriptionAction_2_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -subscriptionAction_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) { - subscriptionAction_2_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -subscriptionAction_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) { - subscriptionAction_2_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -subscriptionAction_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) { - subscriptionAction_2_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_subscriptionAction_value2enum_2[] = { - { 1, 19, "unsubscribeGameList" }, - { 2, 19, "resubscribeGameList" } -}; -static unsigned int asn_MAP_subscriptionAction_enum2value_2[] = { - 1, /* resubscribeGameList(2) */ - 0 /* unsubscribeGameList(1) */ -}; -static asn_INTEGER_specifics_t asn_SPC_subscriptionAction_specs_2 = { - asn_MAP_subscriptionAction_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_subscriptionAction_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* 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_subscriptionAction_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_subscriptionAction_2 = { - "subscriptionAction", - "subscriptionAction", - subscriptionAction_2_free, - subscriptionAction_2_print, - subscriptionAction_2_constraint, - subscriptionAction_2_decode_ber, - subscriptionAction_2_encode_der, - subscriptionAction_2_decode_xer, - subscriptionAction_2_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_subscriptionAction_tags_2, - sizeof(asn_DEF_subscriptionAction_tags_2) - /sizeof(asn_DEF_subscriptionAction_tags_2[0]), /* 1 */ - asn_DEF_subscriptionAction_tags_2, /* Same as above */ - sizeof(asn_DEF_subscriptionAction_tags_2) - /sizeof(asn_DEF_subscriptionAction_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_subscriptionAction_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_SubscriptionRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SubscriptionRequestMessage, subscriptionAction), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_subscriptionAction_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "subscriptionAction" - }, -}; -static ber_tlv_tag_t asn_DEF_SubscriptionRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (10 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_SubscriptionRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* subscriptionAction at 277 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_SubscriptionRequestMessage_specs_1 = { - sizeof(struct SubscriptionRequestMessage), - offsetof(struct SubscriptionRequestMessage, _asn_ctx), - asn_MAP_SubscriptionRequestMessage_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_SubscriptionRequestMessage = { - "SubscriptionRequestMessage", - "SubscriptionRequestMessage", - 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_SubscriptionRequestMessage_tags_1, - sizeof(asn_DEF_SubscriptionRequestMessage_tags_1) - /sizeof(asn_DEF_SubscriptionRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_SubscriptionRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_SubscriptionRequestMessage_tags_1) - /sizeof(asn_DEF_SubscriptionRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_SubscriptionRequestMessage_1, - 1, /* Elements count */ - &asn_SPC_SubscriptionRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/SubscriptionRequestMessage.h b/src/third_party/asn1/SubscriptionRequestMessage.h deleted file mode 100644 index 913bcc32..00000000 --- a/src/third_party/asn1/SubscriptionRequestMessage.h +++ /dev/null @@ -1,50 +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 _SubscriptionRequestMessage_H_ -#define _SubscriptionRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum subscriptionAction { - subscriptionAction_unsubscribeGameList = 1, - subscriptionAction_resubscribeGameList = 2 - } - e_subscriptionAction; - - /* SubscriptionRequestMessage */ - typedef struct SubscriptionRequestMessage { - long subscriptionAction; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } SubscriptionRequestMessage_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_subscriptionAction_2; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_SubscriptionRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _SubscriptionRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/TimeoutWarningMessage.c b/src/third_party/asn1/TimeoutWarningMessage.c deleted file mode 100644 index 6d9839b0..00000000 --- a/src/third_party/asn1/TimeoutWarningMessage.c +++ /dev/null @@ -1,189 +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 "TimeoutWarningMessage.h" - -static int -timeoutReason_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 -timeoutReason_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 -timeoutReason_2_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - timeoutReason_2_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -timeoutReason_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - timeoutReason_2_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -timeoutReason_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) { - timeoutReason_2_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -timeoutReason_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) { - timeoutReason_2_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -timeoutReason_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) { - timeoutReason_2_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -timeoutReason_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) { - timeoutReason_2_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_timeoutReason_value2enum_2[] = { - { 0, 21, "timeoutNoDataReceived" }, - { 1, 19, "timeoutInactiveGame" }, - { 2, 24, "timeoutKickAfterAutofold" } -}; -static unsigned int asn_MAP_timeoutReason_enum2value_2[] = { - 1, /* timeoutInactiveGame(1) */ - 2, /* timeoutKickAfterAutofold(2) */ - 0 /* timeoutNoDataReceived(0) */ -}; -static asn_INTEGER_specifics_t asn_SPC_timeoutReason_specs_2 = { - asn_MAP_timeoutReason_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_timeoutReason_enum2value_2, /* 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_timeoutReason_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_timeoutReason_2 = { - "timeoutReason", - "timeoutReason", - timeoutReason_2_free, - timeoutReason_2_print, - timeoutReason_2_constraint, - timeoutReason_2_decode_ber, - timeoutReason_2_encode_der, - timeoutReason_2_decode_xer, - timeoutReason_2_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_timeoutReason_tags_2, - sizeof(asn_DEF_timeoutReason_tags_2) - /sizeof(asn_DEF_timeoutReason_tags_2[0]), /* 1 */ - asn_DEF_timeoutReason_tags_2, /* Same as above */ - sizeof(asn_DEF_timeoutReason_tags_2) - /sizeof(asn_DEF_timeoutReason_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_timeoutReason_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_TimeoutWarningMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TimeoutWarningMessage, timeoutReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_timeoutReason_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "timeoutReason" - }, - { ATF_NOFLAGS, 0, offsetof(struct TimeoutWarningMessage, remainingSeconds), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "remainingSeconds" - }, -}; -static ber_tlv_tag_t asn_DEF_TimeoutWarningMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (133 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_TimeoutWarningMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* remainingSeconds at 756 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* timeoutReason at 751 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_TimeoutWarningMessage_specs_1 = { - sizeof(struct TimeoutWarningMessage), - offsetof(struct TimeoutWarningMessage, _asn_ctx), - asn_MAP_TimeoutWarningMessage_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_TimeoutWarningMessage = { - "TimeoutWarningMessage", - "TimeoutWarningMessage", - 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_TimeoutWarningMessage_tags_1, - sizeof(asn_DEF_TimeoutWarningMessage_tags_1) - /sizeof(asn_DEF_TimeoutWarningMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_TimeoutWarningMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_TimeoutWarningMessage_tags_1) - /sizeof(asn_DEF_TimeoutWarningMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_TimeoutWarningMessage_1, - 2, /* Elements count */ - &asn_SPC_TimeoutWarningMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/TimeoutWarningMessage.h b/src/third_party/asn1/TimeoutWarningMessage.h deleted file mode 100644 index 376b94c1..00000000 --- a/src/third_party/asn1/TimeoutWarningMessage.h +++ /dev/null @@ -1,53 +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 _TimeoutWarningMessage_H_ -#define _TimeoutWarningMessage_H_ - - -#include - -/* Including external dependencies */ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum timeoutReason { - timeoutReason_timeoutNoDataReceived = 0, - timeoutReason_timeoutInactiveGame = 1, - timeoutReason_timeoutKickAfterAutofold = 2 - } - e_timeoutReason; - - /* TimeoutWarningMessage */ - typedef struct TimeoutWarningMessage { - long timeoutReason; - long remainingSeconds; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } TimeoutWarningMessage_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_timeoutReason_2; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_TimeoutWarningMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _TimeoutWarningMessage_H_ */ -#include diff --git a/src/third_party/asn1/UnauthenticatedLogin.c b/src/third_party/asn1/UnauthenticatedLogin.c deleted file mode 100644 index 6e83214a..00000000 --- a/src/third_party/asn1/UnauthenticatedLogin.c +++ /dev/null @@ -1,101 +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 "UnauthenticatedLogin.h" - -static int -memb_nickName_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 <= 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_UnauthenticatedLogin_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UnauthenticatedLogin, nickName), - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), - 0, - &asn_DEF_UTF8String, - memb_nickName_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "nickName" - }, - { ATF_POINTER, 1, offsetof(struct UnauthenticatedLogin, 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_UnauthenticatedLogin_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_UnauthenticatedLogin_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* avatar at 126 */ - { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* nickName at 125 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_UnauthenticatedLogin_specs_1 = { - sizeof(struct UnauthenticatedLogin), - offsetof(struct UnauthenticatedLogin, _asn_ctx), - asn_MAP_UnauthenticatedLogin_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_UnauthenticatedLogin = { - "UnauthenticatedLogin", - "UnauthenticatedLogin", - 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_UnauthenticatedLogin_tags_1, - sizeof(asn_DEF_UnauthenticatedLogin_tags_1) - /sizeof(asn_DEF_UnauthenticatedLogin_tags_1[0]), /* 1 */ - asn_DEF_UnauthenticatedLogin_tags_1, /* Same as above */ - sizeof(asn_DEF_UnauthenticatedLogin_tags_1) - /sizeof(asn_DEF_UnauthenticatedLogin_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_UnauthenticatedLogin_1, - 2, /* Elements count */ - &asn_SPC_UnauthenticatedLogin_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/UnauthenticatedLogin.h b/src/third_party/asn1/UnauthenticatedLogin.h deleted file mode 100644 index fe4ac648..00000000 --- a/src/third_party/asn1/UnauthenticatedLogin.h +++ /dev/null @@ -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 _UnauthenticatedLogin_H_ -#define _UnauthenticatedLogin_H_ - - -#include - -/* Including external dependencies */ -#include -#include "AvatarHash.h" -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* UnauthenticatedLogin */ - typedef struct UnauthenticatedLogin { - UTF8String_t nickName; - AvatarHash_t *avatar /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } UnauthenticatedLogin_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_UnauthenticatedLogin; - -#ifdef __cplusplus -} -#endif - -#endif /* _UnauthenticatedLogin_H_ */ -#include diff --git a/src/third_party/asn1/UnknownAvatar.c b/src/third_party/asn1/UnknownAvatar.c deleted file mode 100644 index da73c517..00000000 --- a/src/third_party/asn1/UnknownAvatar.c +++ /dev/null @@ -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 "UnknownAvatar.h" - -static ber_tlv_tag_t asn_DEF_UnknownAvatar_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_UnknownAvatar_specs_1 = { - sizeof(struct UnknownAvatar), - offsetof(struct UnknownAvatar, _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_UnknownAvatar = { - "UnknownAvatar", - "UnknownAvatar", - 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_UnknownAvatar_tags_1, - sizeof(asn_DEF_UnknownAvatar_tags_1) - /sizeof(asn_DEF_UnknownAvatar_tags_1[0]), /* 1 */ - asn_DEF_UnknownAvatar_tags_1, /* Same as above */ - sizeof(asn_DEF_UnknownAvatar_tags_1) - /sizeof(asn_DEF_UnknownAvatar_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_UnknownAvatar_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/UnknownAvatar.h b/src/third_party/asn1/UnknownAvatar.h deleted file mode 100644 index 16089cb7..00000000 --- a/src/third_party/asn1/UnknownAvatar.h +++ /dev/null @@ -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 _UnknownAvatar_H_ -#define _UnknownAvatar_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* UnknownAvatar */ - typedef struct UnknownAvatar { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } UnknownAvatar_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_UnknownAvatar; - -#ifdef __cplusplus -} -#endif - -#endif /* _UnknownAvatar_H_ */ -#include diff --git a/src/third_party/asn1/UnknownPlayerInfo.c b/src/third_party/asn1/UnknownPlayerInfo.c deleted file mode 100644 index 2aee5848..00000000 --- a/src/third_party/asn1/UnknownPlayerInfo.c +++ /dev/null @@ -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 "UnknownPlayerInfo.h" - -static ber_tlv_tag_t asn_DEF_UnknownPlayerInfo_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_UnknownPlayerInfo_specs_1 = { - sizeof(struct UnknownPlayerInfo), - offsetof(struct UnknownPlayerInfo, _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_UnknownPlayerInfo = { - "UnknownPlayerInfo", - "UnknownPlayerInfo", - 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_UnknownPlayerInfo_tags_1, - sizeof(asn_DEF_UnknownPlayerInfo_tags_1) - /sizeof(asn_DEF_UnknownPlayerInfo_tags_1[0]), /* 1 */ - asn_DEF_UnknownPlayerInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_UnknownPlayerInfo_tags_1) - /sizeof(asn_DEF_UnknownPlayerInfo_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_UnknownPlayerInfo_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/UnknownPlayerInfo.h b/src/third_party/asn1/UnknownPlayerInfo.h deleted file mode 100644 index 08be94be..00000000 --- a/src/third_party/asn1/UnknownPlayerInfo.h +++ /dev/null @@ -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 _UnknownPlayerInfo_H_ -#define _UnknownPlayerInfo_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* UnknownPlayerInfo */ - typedef struct UnknownPlayerInfo { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } UnknownPlayerInfo_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_UnknownPlayerInfo; - -#ifdef __cplusplus -} -#endif - -#endif /* _UnknownPlayerInfo_H_ */ -#include diff --git a/src/third_party/asn1/Version.c b/src/third_party/asn1/Version.c deleted file mode 100644 index 11d93945..00000000 --- a/src/third_party/asn1/Version.c +++ /dev/null @@ -1,119 +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 "Version.h" - -static int -memb_major_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_minor_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_TYPE_member_t asn_MBR_Version_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Version, major), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_major_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "major" - }, - { ATF_NOFLAGS, 0, offsetof(struct Version, minor), - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_NativeInteger, - memb_minor_constraint_1, - 0, /* PER is not compiled, use -gen-PER */ - 0, - "minor" - }, -}; -static ber_tlv_tag_t asn_DEF_Version_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_Version_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* major at 110 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* minor at 111 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_Version_specs_1 = { - sizeof(struct Version), - offsetof(struct Version, _asn_ctx), - asn_MAP_Version_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_Version = { - "Version", - "Version", - 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_Version_tags_1, - sizeof(asn_DEF_Version_tags_1) - /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ - asn_DEF_Version_tags_1, /* Same as above */ - sizeof(asn_DEF_Version_tags_1) - /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_Version_1, - 2, /* Elements count */ - &asn_SPC_Version_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/Version.h b/src/third_party/asn1/Version.h deleted file mode 100644 index 3bfa4723..00000000 --- a/src/third_party/asn1/Version.h +++ /dev/null @@ -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 _Version_H_ -#define _Version_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Version */ - typedef struct Version { - long major; - long minor; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } Version_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_Version; - -#ifdef __cplusplus -} -#endif - -#endif /* _Version_H_ */ -#include diff --git a/src/third_party/asn1/VoteKickAck.c b/src/third_party/asn1/VoteKickAck.c deleted file mode 100644 index 1e361266..00000000 --- a/src/third_party/asn1/VoteKickAck.c +++ /dev/null @@ -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 "VoteKickAck.h" - -static ber_tlv_tag_t asn_DEF_VoteKickAck_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SEQUENCE_specifics_t asn_SPC_VoteKickAck_specs_1 = { - sizeof(struct VoteKickAck), - offsetof(struct VoteKickAck, _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_VoteKickAck = { - "VoteKickAck", - "VoteKickAck", - 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_VoteKickAck_tags_1, - sizeof(asn_DEF_VoteKickAck_tags_1) - /sizeof(asn_DEF_VoteKickAck_tags_1[0]), /* 1 */ - asn_DEF_VoteKickAck_tags_1, /* Same as above */ - sizeof(asn_DEF_VoteKickAck_tags_1) - /sizeof(asn_DEF_VoteKickAck_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* No members */ - &asn_SPC_VoteKickAck_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/VoteKickAck.h b/src/third_party/asn1/VoteKickAck.h deleted file mode 100644 index 2696b4d4..00000000 --- a/src/third_party/asn1/VoteKickAck.h +++ /dev/null @@ -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 _VoteKickAck_H_ -#define _VoteKickAck_H_ - - -#include - -/* Including external dependencies */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* VoteKickAck */ - typedef struct VoteKickAck { - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } VoteKickAck_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_VoteKickAck; - -#ifdef __cplusplus -} -#endif - -#endif /* _VoteKickAck_H_ */ -#include diff --git a/src/third_party/asn1/VoteKickDenied.c b/src/third_party/asn1/VoteKickDenied.c deleted file mode 100644 index b6e3c138..00000000 --- a/src/third_party/asn1/VoteKickDenied.c +++ /dev/null @@ -1,176 +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 "VoteKickDenied.h" - -static int -voteKickDeniedReason_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 -voteKickDeniedReason_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 -voteKickDeniedReason_2_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - voteKickDeniedReason_2_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -voteKickDeniedReason_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - voteKickDeniedReason_2_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -voteKickDeniedReason_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) { - voteKickDeniedReason_2_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -voteKickDeniedReason_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) { - voteKickDeniedReason_2_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -voteKickDeniedReason_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) { - voteKickDeniedReason_2_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -voteKickDeniedReason_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) { - voteKickDeniedReason_2_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_voteKickDeniedReason_value2enum_2[] = { - { 0, 21, "voteKickDeniedInvalid" }, - { 1, 26, "voteKickDeniedAlreadyVoted" } -}; -static unsigned int asn_MAP_voteKickDeniedReason_enum2value_2[] = { - 1, /* voteKickDeniedAlreadyVoted(1) */ - 0 /* voteKickDeniedInvalid(0) */ -}; -static asn_INTEGER_specifics_t asn_SPC_voteKickDeniedReason_specs_2 = { - asn_MAP_voteKickDeniedReason_value2enum_2, /* "tag" => N; sorted by tag */ - asn_MAP_voteKickDeniedReason_enum2value_2, /* N => "tag"; sorted by N */ - 2, /* 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_voteKickDeniedReason_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_voteKickDeniedReason_2 = { - "voteKickDeniedReason", - "voteKickDeniedReason", - voteKickDeniedReason_2_free, - voteKickDeniedReason_2_print, - voteKickDeniedReason_2_constraint, - voteKickDeniedReason_2_decode_ber, - voteKickDeniedReason_2_encode_der, - voteKickDeniedReason_2_decode_xer, - voteKickDeniedReason_2_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_voteKickDeniedReason_tags_2, - sizeof(asn_DEF_voteKickDeniedReason_tags_2) - /sizeof(asn_DEF_voteKickDeniedReason_tags_2[0]), /* 1 */ - asn_DEF_voteKickDeniedReason_tags_2, /* Same as above */ - sizeof(asn_DEF_voteKickDeniedReason_tags_2) - /sizeof(asn_DEF_voteKickDeniedReason_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_voteKickDeniedReason_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_VoteKickDenied_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VoteKickDenied, voteKickDeniedReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_voteKickDeniedReason_2, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "voteKickDeniedReason" - }, -}; -static ber_tlv_tag_t asn_DEF_VoteKickDenied_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_VoteKickDenied_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* voteKickDeniedReason at 653 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_VoteKickDenied_specs_1 = { - sizeof(struct VoteKickDenied), - offsetof(struct VoteKickDenied, _asn_ctx), - asn_MAP_VoteKickDenied_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_VoteKickDenied = { - "VoteKickDenied", - "VoteKickDenied", - 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_VoteKickDenied_tags_1, - sizeof(asn_DEF_VoteKickDenied_tags_1) - /sizeof(asn_DEF_VoteKickDenied_tags_1[0]), /* 1 */ - asn_DEF_VoteKickDenied_tags_1, /* Same as above */ - sizeof(asn_DEF_VoteKickDenied_tags_1) - /sizeof(asn_DEF_VoteKickDenied_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_VoteKickDenied_1, - 1, /* Elements count */ - &asn_SPC_VoteKickDenied_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/VoteKickDenied.h b/src/third_party/asn1/VoteKickDenied.h deleted file mode 100644 index 9c1df434..00000000 --- a/src/third_party/asn1/VoteKickDenied.h +++ /dev/null @@ -1,50 +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 _VoteKickDenied_H_ -#define _VoteKickDenied_H_ - - -#include - -/* Including external dependencies */ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum voteKickDeniedReason { - voteKickDeniedReason_voteKickDeniedInvalid = 0, - voteKickDeniedReason_voteKickDeniedAlreadyVoted = 1 - } - e_voteKickDeniedReason; - - /* VoteKickDenied */ - typedef struct VoteKickDenied { - long voteKickDeniedReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } VoteKickDenied_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_voteKickDeniedReason_2; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_VoteKickDenied; - -#ifdef __cplusplus -} -#endif - -#endif /* _VoteKickDenied_H_ */ -#include diff --git a/src/third_party/asn1/VoteKickReplyMessage.c b/src/third_party/asn1/VoteKickReplyMessage.c deleted file mode 100644 index 9b4233d4..00000000 --- a/src/third_party/asn1/VoteKickReplyMessage.c +++ /dev/null @@ -1,138 +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 "VoteKickReplyMessage.h" - -static asn_TYPE_member_t asn_MBR_voteKickReplyType_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct voteKickReplyType, choice.voteKickAck), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VoteKickAck, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "voteKickAck" - }, - { ATF_NOFLAGS, 0, offsetof(struct voteKickReplyType, choice.voteKickDenied), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VoteKickDenied, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "voteKickDenied" - }, -}; -static asn_TYPE_tag2member_t asn_MAP_voteKickReplyType_tag2el_4[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* voteKickAck at 643 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* voteKickDenied at 645 */ -}; -static asn_CHOICE_specifics_t asn_SPC_voteKickReplyType_specs_4 = { - sizeof(struct voteKickReplyType), - offsetof(struct voteKickReplyType, _asn_ctx), - offsetof(struct voteKickReplyType, present), - sizeof(((struct voteKickReplyType *)0)->present), - asn_MAP_voteKickReplyType_tag2el_4, - 2, /* Count of tags in the map */ - 0, - 2 /* Extensions start */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_voteKickReplyType_4 = { - "voteKickReplyType", - "voteKickReplyType", - 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_voteKickReplyType_4, - 2, /* Elements count */ - &asn_SPC_voteKickReplyType_specs_4 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_VoteKickReplyMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VoteKickReplyMessage, 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 VoteKickReplyMessage, 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 VoteKickReplyMessage, voteKickReplyType), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_voteKickReplyType_4, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "voteKickReplyType" - }, -}; -static ber_tlv_tag_t asn_DEF_VoteKickReplyMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (68 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_VoteKickReplyMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 640 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* petitionId at 641 */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* voteKickAck at 643 */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 } /* voteKickDenied at 645 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_VoteKickReplyMessage_specs_1 = { - sizeof(struct VoteKickReplyMessage), - offsetof(struct VoteKickReplyMessage, _asn_ctx), - asn_MAP_VoteKickReplyMessage_tag2el_1, - 4, /* 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_VoteKickReplyMessage = { - "VoteKickReplyMessage", - "VoteKickReplyMessage", - 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_VoteKickReplyMessage_tags_1, - sizeof(asn_DEF_VoteKickReplyMessage_tags_1) - /sizeof(asn_DEF_VoteKickReplyMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_VoteKickReplyMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_VoteKickReplyMessage_tags_1) - /sizeof(asn_DEF_VoteKickReplyMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_VoteKickReplyMessage_1, - 3, /* Elements count */ - &asn_SPC_VoteKickReplyMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/VoteKickReplyMessage.h b/src/third_party/asn1/VoteKickReplyMessage.h deleted file mode 100644 index f01c5630..00000000 --- a/src/third_party/asn1/VoteKickReplyMessage.h +++ /dev/null @@ -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` - */ - -#ifndef _VoteKickReplyMessage_H_ -#define _VoteKickReplyMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "VoteKickAck.h" -#include "VoteKickDenied.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum voteKickReplyType_PR { - voteKickReplyType_PR_NOTHING, /* No components present */ - voteKickReplyType_PR_voteKickAck, - voteKickReplyType_PR_voteKickDenied, - /* Extensions may appear below */ - - } - voteKickReplyType_PR; - - /* VoteKickReplyMessage */ - typedef struct VoteKickReplyMessage { - NonZeroId_t gameId; - NonZeroId_t petitionId; - struct voteKickReplyType { - voteKickReplyType_PR present; - union VoteKickReplyMessage__voteKickReplyType_u { - VoteKickAck_t voteKickAck; - VoteKickDenied_t voteKickDenied; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } voteKickReplyType; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } VoteKickReplyMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_VoteKickReplyMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _VoteKickReplyMessage_H_ */ -#include diff --git a/src/third_party/asn1/VoteKickRequestMessage.c b/src/third_party/asn1/VoteKickRequestMessage.c deleted file mode 100644 index 8cb8cb8d..00000000 --- a/src/third_party/asn1/VoteKickRequestMessage.c +++ /dev/null @@ -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 "VoteKickRequestMessage.h" - -static asn_TYPE_member_t asn_MBR_VoteKickRequestMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VoteKickRequestMessage, 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 VoteKickRequestMessage, 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 VoteKickRequestMessage, voteKick), - (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, - "voteKick" - }, -}; -static ber_tlv_tag_t asn_DEF_VoteKickRequestMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (67 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_VoteKickRequestMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 2, 0, 0 }, /* voteKick at 636 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 634 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* petitionId at 635 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_VoteKickRequestMessage_specs_1 = { - sizeof(struct VoteKickRequestMessage), - offsetof(struct VoteKickRequestMessage, _asn_ctx), - asn_MAP_VoteKickRequestMessage_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_VoteKickRequestMessage = { - "VoteKickRequestMessage", - "VoteKickRequestMessage", - 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_VoteKickRequestMessage_tags_1, - sizeof(asn_DEF_VoteKickRequestMessage_tags_1) - /sizeof(asn_DEF_VoteKickRequestMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_VoteKickRequestMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_VoteKickRequestMessage_tags_1) - /sizeof(asn_DEF_VoteKickRequestMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_VoteKickRequestMessage_1, - 3, /* Elements count */ - &asn_SPC_VoteKickRequestMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/VoteKickRequestMessage.h b/src/third_party/asn1/VoteKickRequestMessage.h deleted file mode 100644 index cf1f0740..00000000 --- a/src/third_party/asn1/VoteKickRequestMessage.h +++ /dev/null @@ -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 _VoteKickRequestMessage_H_ -#define _VoteKickRequestMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* VoteKickRequestMessage */ - typedef struct VoteKickRequestMessage { - NonZeroId_t gameId; - NonZeroId_t petitionId; - BOOLEAN_t voteKick; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } VoteKickRequestMessage_t; - - /* Implementation */ - extern asn_TYPE_descriptor_t asn_DEF_VoteKickRequestMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _VoteKickRequestMessage_H_ */ -#include diff --git a/src/third_party/asn1/YourActionRejectedMessage.c b/src/third_party/asn1/YourActionRejectedMessage.c deleted file mode 100644 index 3aabbb9e..00000000 --- a/src/third_party/asn1/YourActionRejectedMessage.c +++ /dev/null @@ -1,219 +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 "YourActionRejectedMessage.h" - -static int -rejectionReason_6_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 -rejectionReason_6_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 -rejectionReason_6_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - rejectionReason_6_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -static int -rejectionReason_6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - rejectionReason_6_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -static asn_dec_rval_t -rejectionReason_6_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) { - rejectionReason_6_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -static asn_enc_rval_t -rejectionReason_6_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) { - rejectionReason_6_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -static asn_dec_rval_t -rejectionReason_6_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) { - rejectionReason_6_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -static asn_enc_rval_t -rejectionReason_6_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) { - rejectionReason_6_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -static asn_INTEGER_enum_map_t asn_MAP_rejectionReason_value2enum_6[] = { - { 1, 24, "rejectedInvalidGameState" }, - { 2, 19, "rejectedNotYourTurn" }, - { 3, 24, "rejectedActionNotAllowed" } -}; -static unsigned int asn_MAP_rejectionReason_enum2value_6[] = { - 2, /* rejectedActionNotAllowed(3) */ - 0, /* rejectedInvalidGameState(1) */ - 1 /* rejectedNotYourTurn(2) */ -}; -static asn_INTEGER_specifics_t asn_SPC_rejectionReason_specs_6 = { - asn_MAP_rejectionReason_value2enum_6, /* "tag" => N; sorted by tag */ - asn_MAP_rejectionReason_enum2value_6, /* 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_rejectionReason_tags_6[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_rejectionReason_6 = { - "rejectionReason", - "rejectionReason", - rejectionReason_6_free, - rejectionReason_6_print, - rejectionReason_6_constraint, - rejectionReason_6_decode_ber, - rejectionReason_6_encode_der, - rejectionReason_6_decode_xer, - rejectionReason_6_encode_xer, - 0, 0, /* No PER support, use "-gen-PER" to enable */ - 0, /* Use generic outmost tag fetcher */ - asn_DEF_rejectionReason_tags_6, - sizeof(asn_DEF_rejectionReason_tags_6) - /sizeof(asn_DEF_rejectionReason_tags_6[0]), /* 1 */ - asn_DEF_rejectionReason_tags_6, /* Same as above */ - sizeof(asn_DEF_rejectionReason_tags_6) - /sizeof(asn_DEF_rejectionReason_tags_6[0]), /* 1 */ - 0, /* No PER visible constraints */ - 0, 0, /* Defined elsewhere */ - &asn_SPC_rejectionReason_specs_6 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_YourActionRejectedMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct YourActionRejectedMessage, 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 YourActionRejectedMessage, gameState), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetGameState, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "gameState" - }, - { ATF_NOFLAGS, 0, offsetof(struct YourActionRejectedMessage, yourAction), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_NetPlayerAction, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "yourAction" - }, - { ATF_NOFLAGS, 0, offsetof(struct YourActionRejectedMessage, yourRelativeBet), - (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, - "yourRelativeBet" - }, - { ATF_NOFLAGS, 0, offsetof(struct YourActionRejectedMessage, rejectionReason), - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), - 0, - &asn_DEF_rejectionReason_6, - 0, /* Defer constraints checking to the member type */ - 0, /* PER is not compiled, use -gen-PER */ - 0, - "rejectionReason" - }, -}; -static ber_tlv_tag_t asn_DEF_YourActionRejectedMessage_tags_1[] = { - (ASN_TAG_CLASS_APPLICATION | (26 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_TYPE_tag2member_t asn_MAP_YourActionRejectedMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 512 */ - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -1, 0 }, /* yourRelativeBet at 515 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 2 }, /* gameState at 513 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, -1, 1 }, /* yourAction at 514 */ - { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 4, -2, 0 } /* rejectionReason at 517 */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_YourActionRejectedMessage_specs_1 = { - sizeof(struct YourActionRejectedMessage), - offsetof(struct YourActionRejectedMessage, _asn_ctx), - asn_MAP_YourActionRejectedMessage_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_YourActionRejectedMessage = { - "YourActionRejectedMessage", - "YourActionRejectedMessage", - 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_YourActionRejectedMessage_tags_1, - sizeof(asn_DEF_YourActionRejectedMessage_tags_1) - /sizeof(asn_DEF_YourActionRejectedMessage_tags_1[0]) - 1, /* 1 */ - asn_DEF_YourActionRejectedMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_YourActionRejectedMessage_tags_1) - /sizeof(asn_DEF_YourActionRejectedMessage_tags_1[0]), /* 2 */ - 0, /* No PER visible constraints */ - asn_MBR_YourActionRejectedMessage_1, - 5, /* Elements count */ - &asn_SPC_YourActionRejectedMessage_specs_1 /* Additional specs */ -}; - diff --git a/src/third_party/asn1/YourActionRejectedMessage.h b/src/third_party/asn1/YourActionRejectedMessage.h deleted file mode 100644 index 2db4c271..00000000 --- a/src/third_party/asn1/YourActionRejectedMessage.h +++ /dev/null @@ -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` - */ - -#ifndef _YourActionRejectedMessage_H_ -#define _YourActionRejectedMessage_H_ - - -#include - -/* Including external dependencies */ -#include "NonZeroId.h" -#include "NetGameState.h" -#include "NetPlayerAction.h" -#include "AmountOfMoney.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - /* Dependencies */ - typedef enum rejectionReason { - rejectionReason_rejectedInvalidGameState = 1, - rejectionReason_rejectedNotYourTurn = 2, - rejectionReason_rejectedActionNotAllowed = 3 - } - e_rejectionReason; - - /* YourActionRejectedMessage */ - typedef struct YourActionRejectedMessage { - NonZeroId_t gameId; - NetGameState_t gameState; - NetPlayerAction_t yourAction; - AmountOfMoney_t yourRelativeBet; - long rejectionReason; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } YourActionRejectedMessage_t; - - /* Implementation */ - /* extern asn_TYPE_descriptor_t asn_DEF_rejectionReason_6; // (Use -fall-defs-global to expose) */ - extern asn_TYPE_descriptor_t asn_DEF_YourActionRejectedMessage; - -#ifdef __cplusplus -} -#endif - -#endif /* _YourActionRejectedMessage_H_ */ -#include