diff --git a/pokerth_protocol.pro b/pokerth_protocol.pro index 92f0daff..c1a36683 100644 --- a/pokerth_protocol.pro +++ b/pokerth_protocol.pro @@ -164,7 +164,8 @@ HEADERS += src/third_party/asn1/AllInShowCardsMessage.h \ src/third_party/asn1/ShowMyCardsRequestMessage.h \ src/third_party/asn1/PlainCards.h \ src/third_party/asn1/EncryptedCards.h \ - src/third_party/asn1/AfkWarningMessage.h + src/third_party/asn1/AfkWarningMessage.h \ + src/third_party/asn1/ChatRequestTypePrivate.h SOURCES += src/third_party/asn1/ChatCleanerMessage.c \ src/third_party/asn1/CleanerInitMessage.c \ src/third_party/asn1/CleanerInitAckMessage.c \ @@ -301,7 +302,8 @@ SOURCES += src/third_party/asn1/ChatCleanerMessage.c \ src/third_party/asn1/ShowMyCardsRequestMessage.c \ src/third_party/asn1/EncryptedCards.c \ src/third_party/asn1/PlainCards.c \ - src/third_party/asn1/AfkWarningMessage.c + src/third_party/asn1/AfkWarningMessage.c \ + src/third_party/asn1/ChatRequestTypePrivate.c win32 { DEFINES += CURL_STATICLIB DEFINES += _WIN32_WINNT=0x0501 diff --git a/src/third_party/asn1/ChatRequestTypePrivate.c b/src/third_party/asn1/ChatRequestTypePrivate.c new file mode 100644 index 00000000..93caf6da --- /dev/null +++ b/src/third_party/asn1/ChatRequestTypePrivate.c @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.22 (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 661 */ +}; +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 new file mode 100644 index 00000000..58526462 --- /dev/null +++ b/src/third_party/asn1/ChatRequestTypePrivate.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.22 (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