Adding packets to freely show cards after hand.
This commit is contained in:
@@ -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 <asn_internal.h>
|
||||||
|
|
||||||
|
#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 */
|
||||||
|
};
|
||||||
|
|
||||||
@@ -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 <asn_application.h>
|
||||||
|
|
||||||
|
/* Including external dependencies */
|
||||||
|
#include "PlayerResult.h"
|
||||||
|
#include <constr_SEQUENCE.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* AfterHandShowCardsMessage */
|
||||||
|
typedef struct AfterHandShowCardsMessage {
|
||||||
|
PlayerResult_t playerResult;
|
||||||
|
/*
|
||||||
|
* This type is extensible,
|
||||||
|
* possible extensions are below.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Context for parsing across buffer boundaries */
|
||||||
|
asn_struct_ctx_t _asn_ctx;
|
||||||
|
} AfterHandShowCardsMessage_t;
|
||||||
|
|
||||||
|
/* Implementation */
|
||||||
|
extern asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _AfterHandShowCardsMessage_H_ */
|
||||||
@@ -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 <asn_internal.h>
|
||||||
|
|
||||||
|
#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 */
|
||||||
|
};
|
||||||
|
|
||||||
@@ -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 <asn_application.h>
|
||||||
|
|
||||||
|
/* Including external dependencies */
|
||||||
|
#include <constr_SEQUENCE.h>
|
||||||
|
|
||||||
|
#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_ */
|
||||||
Reference in New Issue
Block a user