Preparing network protocol for rejoin.
This commit is contained in:
1 parent
711091bcd9
commit
e109c0037d
303 files changed
+8477
-7528
No files matched your search
+17
-17
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_playerResults_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
|
||||
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_playerResults_2[] = {
|
||||
{ ATF_POINTER, 0, 0,
|
||||
{ ATF_POINTER, 0, 0,
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_PlayerResult,
|
||||
@@ -42,7 +42,7 @@ static asn_TYPE_member_t asn_MBR_playerResults_2[] = {
|
||||
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))
|
||||
@@ -67,10 +67,10 @@ asn_TYPE_descriptor_t asn_DEF_playerResults_2 = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_playerResults_tags_2[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_playerResults_2,
|
||||
1, /* Single element */
|
||||
@@ -78,7 +78,7 @@ asn_TYPE_descriptor_t asn_DEF_playerResults_2 = {
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_EndOfHandShowCards_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandShowCards, playerResults),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandShowCards, playerResults),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_playerResults_2,
|
||||
@@ -86,13 +86,13 @@ static asn_TYPE_member_t asn_MBR_EndOfHandShowCards_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 534 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerResults at 557 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandShowCards_specs_1 = {
|
||||
sizeof(struct EndOfHandShowCards),
|
||||
@@ -117,10 +117,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfHandShowCards = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_EndOfHandShowCards_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_EndOfHandShowCards_1,
|
||||
1, /* Elements count */
|
||||
|
||||
Reference in new issue
Block a user