From f89de401e737a3fcc8c5c41fa9d18538db54350d Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 8 Jul 2010 18:52:31 +0000 Subject: [PATCH] Adding packets to freely show cards after hand. --- .../asn1/AfterHandShowCardsMessage.c | 62 +++++++++++++++++++ .../asn1/AfterHandShowCardsMessage.h | 41 ++++++++++++ .../asn1/ShowMyCardsRequestMessage.c | 47 ++++++++++++++ .../asn1/ShowMyCardsRequestMessage.h | 39 ++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 src/third_party/asn1/AfterHandShowCardsMessage.c create mode 100644 src/third_party/asn1/AfterHandShowCardsMessage.h create mode 100644 src/third_party/asn1/ShowMyCardsRequestMessage.c create mode 100644 src/third_party/asn1/ShowMyCardsRequestMessage.h diff --git a/src/third_party/asn1/AfterHandShowCardsMessage.c b/src/third_party/asn1/AfterHandShowCardsMessage.c new file mode 100644 index 00000000..01de74b5 --- /dev/null +++ b/src/third_party/asn1/AfterHandShowCardsMessage.c @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) + * From ASN.1 module "POKERTH-PROTOCOL" + * found in "../../../docs/pokerth.asn1" + * `asn1c -fnative-types` + */ + +#include + +#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 533 */ +}; +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 new file mode 100644 index 00000000..c053a2cd --- /dev/null +++ b/src/third_party/asn1/AfterHandShowCardsMessage.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) + * From ASN.1 module "POKERTH-PROTOCOL" + * found in "../../../docs/pokerth.asn1" + * `asn1c -fnative-types` + */ + +#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_ */ diff --git a/src/third_party/asn1/ShowMyCardsRequestMessage.c b/src/third_party/asn1/ShowMyCardsRequestMessage.c new file mode 100644 index 00000000..5c1b8469 --- /dev/null +++ b/src/third_party/asn1/ShowMyCardsRequestMessage.c @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) + * From ASN.1 module "POKERTH-PROTOCOL" + * found in "../../../docs/pokerth.asn1" + * `asn1c -fnative-types` + */ + +#include + +#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 new file mode 100644 index 00000000..f5eeb757 --- /dev/null +++ b/src/third_party/asn1/ShowMyCardsRequestMessage.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) + * From ASN.1 module "POKERTH-PROTOCOL" + * found in "../../../docs/pokerth.asn1" + * `asn1c -fnative-types` + */ + +#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_ */