Preparing network protocol for rejoin.
This commit is contained in:
+5
-5
@@ -8,7 +8,7 @@
|
||||
#include "AfkWarningMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AfkWarningMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AfkWarningMessage, remainingTimeouts),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AfkWarningMessage, remainingTimeouts),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -16,14 +16,14 @@ static asn_TYPE_member_t asn_MBR_AfkWarningMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"remainingTimeouts"
|
||||
},
|
||||
},
|
||||
};
|
||||
static ber_tlv_tag_t asn_DEF_AfkWarningMessage_tags_1[] = {
|
||||
(ASN_TAG_CLASS_APPLICATION | (135 << 2)),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_AfkWarningMessage_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* remainingTimeouts at 719 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* remainingTimeouts at 742 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AfkWarningMessage_specs_1 = {
|
||||
sizeof(struct AfkWarningMessage),
|
||||
@@ -48,10 +48,10 @@ asn_TYPE_descriptor_t asn_DEF_AfkWarningMessage = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_AfkWarningMessage_tags_1,
|
||||
sizeof(asn_DEF_AfkWarningMessage_tags_1)
|
||||
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]) - 1, /* 1 */
|
||||
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]) - 1, /* 1 */
|
||||
asn_DEF_AfkWarningMessage_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_AfkWarningMessage_tags_1)
|
||||
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]), /* 2 */
|
||||
/sizeof(asn_DEF_AfkWarningMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AfkWarningMessage_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* AfkWarningMessage */
|
||||
typedef struct AfkWarningMessage {
|
||||
long remainingTimeouts;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AfkWarningMessage_t;
|
||||
/* AfkWarningMessage */
|
||||
typedef struct AfkWarningMessage {
|
||||
long remainingTimeouts;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AfkWarningMessage;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AfkWarningMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AfkWarningMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+5
-5
@@ -8,7 +8,7 @@
|
||||
#include "AfterHandShowCardsMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AfterHandShowCardsMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AfterHandShowCardsMessage, playerResult),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AfterHandShowCardsMessage, playerResult),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_PlayerResult,
|
||||
@@ -16,14 +16,14 @@ static asn_TYPE_member_t asn_MBR_AfterHandShowCardsMessage_1[] = {
|
||||
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 557 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* playerResult at 580 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AfterHandShowCardsMessage_specs_1 = {
|
||||
sizeof(struct AfterHandShowCardsMessage),
|
||||
@@ -48,10 +48,10 @@ asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AfterHandShowCardsMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AfterHandShowCardsMessage_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* AfterHandShowCardsMessage */
|
||||
typedef struct AfterHandShowCardsMessage {
|
||||
PlayerResult_t playerResult;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AfterHandShowCardsMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+20
-20
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_playersAllIn_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_playersAllIn_3[] = {
|
||||
{ ATF_POINTER, 0, 0,
|
||||
{ ATF_POINTER, 0, 0,
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_PlayerAllIn,
|
||||
@@ -42,7 +42,7 @@ static asn_TYPE_member_t asn_MBR_playersAllIn_3[] = {
|
||||
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))
|
||||
@@ -67,10 +67,10 @@ asn_TYPE_descriptor_t asn_DEF_playersAllIn_3 = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_playersAllIn_tags_3[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_playersAllIn_3,
|
||||
1, /* Single element */
|
||||
@@ -78,7 +78,7 @@ asn_TYPE_descriptor_t asn_DEF_playersAllIn_3 = {
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -86,8 +86,8 @@ static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, playersAllIn),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AllInShowCardsMessage, playersAllIn),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_playersAllIn_3,
|
||||
@@ -95,15 +95,15 @@ static asn_TYPE_member_t asn_MBR_AllInShowCardsMessage_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 514 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* playersAllIn at 516 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 537 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* playersAllIn at 539 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AllInShowCardsMessage_specs_1 = {
|
||||
sizeof(struct AllInShowCardsMessage),
|
||||
@@ -128,10 +128,10 @@ asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AllInShowCardsMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AllInShowCardsMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+19
-19
@@ -21,29 +21,29 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct PlayerAllIn;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* 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;
|
||||
} AllInShowCardsMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AllInShowCardsMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+45
-45
@@ -9,7 +9,7 @@
|
||||
|
||||
static int
|
||||
serverType_5_constraint(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) {
|
||||
/* Replace with underlying type checker */
|
||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||
@@ -33,99 +33,99 @@ serverType_5_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
serverType_5_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -167,17 +167,17 @@ asn_TYPE_descriptor_t asn_DEF_serverType_5 = {
|
||||
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 */
|
||||
/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 */
|
||||
/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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, protocolVersion),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_Version,
|
||||
@@ -185,8 +185,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"protocolVersion"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestGameVersion),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestGameVersion),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
||||
0,
|
||||
&asn_DEF_Version,
|
||||
@@ -194,8 +194,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"latestGameVersion"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestBetaRevision),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, latestBetaRevision),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -203,8 +203,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"latestBetaRevision"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, serverType),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, serverType),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||
0,
|
||||
&asn_DEF_serverType_5,
|
||||
@@ -212,8 +212,8 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"serverType"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, numPlayersOnServer),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AnnounceMessage, numPlayersOnServer),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -221,18 +221,18 @@ static asn_TYPE_member_t asn_MBR_AnnounceMessage_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 86 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -1, 0 }, /* numPlayersOnServer at 92 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* serverType at 88 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* protocolVersion at 84 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* latestGameVersion at 85 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 1 }, /* latestBetaRevision at 86 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -1, 0 }, /* numPlayersOnServer at 92 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* serverType at 88 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* protocolVersion at 84 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* latestGameVersion at 85 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AnnounceMessage_specs_1 = {
|
||||
sizeof(struct AnnounceMessage),
|
||||
@@ -257,10 +257,10 @@ asn_TYPE_descriptor_t asn_DEF_AnnounceMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AnnounceMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AnnounceMessage_1,
|
||||
5, /* Elements count */
|
||||
|
||||
+25
-24
@@ -21,32 +21,33 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum serverType {
|
||||
serverType_serverTypeLAN = 0,
|
||||
serverType_serverTypeInternetNoAuth = 1,
|
||||
serverType_serverTypeInternetAuth = 2
|
||||
} e_serverType;
|
||||
/* 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;
|
||||
/* AnnounceMessage */
|
||||
typedef struct AnnounceMessage {
|
||||
Version_t protocolVersion;
|
||||
Version_t latestGameVersion;
|
||||
long latestBetaRevision;
|
||||
long serverType;
|
||||
long numPlayersOnServer;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_serverType_5; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AnnounceMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+23
-23
@@ -9,7 +9,7 @@
|
||||
|
||||
static int
|
||||
kickDeniedReason_4_constraint(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) {
|
||||
/* Replace with underlying type checker */
|
||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||
@@ -33,49 +33,49 @@ kickDeniedReason_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
kickDeniedReason_4_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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);
|
||||
}
|
||||
@@ -121,17 +121,17 @@ asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4 = {
|
||||
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 */
|
||||
/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 */
|
||||
/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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -139,8 +139,8 @@ static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, playerId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -148,8 +148,8 @@ static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"playerId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, kickDeniedReason),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickDeniedMessage, kickDeniedReason),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||
0,
|
||||
&asn_DEF_kickDeniedReason_4,
|
||||
@@ -157,16 +157,16 @@ static asn_TYPE_member_t asn_MBR_AskKickDeniedMessage_1[] = {
|
||||
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 570 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 571 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* kickDeniedReason at 573 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 593 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* playerId at 594 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 } /* kickDeniedReason at 596 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AskKickDeniedMessage_specs_1 = {
|
||||
sizeof(struct AskKickDeniedMessage),
|
||||
@@ -191,10 +191,10 @@ asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AskKickDeniedMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AskKickDeniedMessage_1,
|
||||
3, /* Elements count */
|
||||
|
||||
+25
-24
@@ -20,32 +20,33 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum kickDeniedReason {
|
||||
kickDeniedReason_kickDeniedInvalidGameState = 0,
|
||||
kickDeniedReason_kickDeniedNotPossible = 1,
|
||||
kickDeniedReason_kickDeniedTryAgainLater = 2,
|
||||
kickDeniedReason_kickDeniedAlreadyInProgress = 3,
|
||||
kickDeniedReason_kickDeniedInvalidPlayerId = 4
|
||||
} e_kickDeniedReason;
|
||||
/* 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;
|
||||
/* AskKickDeniedMessage */
|
||||
typedef struct AskKickDeniedMessage {
|
||||
NonZeroId_t gameId;
|
||||
NonZeroId_t playerId;
|
||||
long kickDeniedReason;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_kickDeniedReason_4; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AskKickDeniedMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@
|
||||
#include "AskKickPlayerMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, playerId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AskKickPlayerMessage, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_AskKickPlayerMessage_1[] = {
|
||||
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 565 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 567 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 588 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 590 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AskKickPlayerMessage_specs_1 = {
|
||||
sizeof(struct AskKickPlayerMessage),
|
||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AskKickPlayerMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AskKickPlayerMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -19,21 +19,21 @@
|
||||
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;
|
||||
/* AskKickPlayerMessage */
|
||||
typedef struct AskKickPlayerMessage {
|
||||
NonZeroId_t gameId;
|
||||
NonZeroId_t playerId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AskKickPlayerMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+13
-13
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_clientResponse_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthClientResponse, clientResponse),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_OCTET_STRING,
|
||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AuthClientResponse_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 137 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* clientResponse at 138 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthClientResponse_specs_1 = {
|
||||
sizeof(struct AuthClientResponse),
|
||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthClientResponse = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AuthClientResponse_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AuthClientResponse_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* AuthClientResponse */
|
||||
typedef struct AuthClientResponse {
|
||||
OCTET_STRING_t clientResponse;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AuthClientResponse;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+11
-11
@@ -8,7 +8,7 @@
|
||||
#include "AuthMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerChallenge),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerChallenge),
|
||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_AuthServerChallenge,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"authServerChallenge"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authClientResponse),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authClientResponse),
|
||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_AuthClientResponse,
|
||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"authClientResponse"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerVerification),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerVerification),
|
||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_AuthServerVerification,
|
||||
@@ -34,15 +34,15 @@ static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
|
||||
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 127 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authClientResponse at 128 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* authServerVerification at 130 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* authServerChallenge at 128 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authClientResponse at 129 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* authServerVerification at 131 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_AuthMessage_specs_1 = {
|
||||
sizeof(struct AuthMessage),
|
||||
@@ -68,10 +68,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthMessage = {
|
||||
CHOICE_outmost_tag,
|
||||
asn_DEF_AuthMessage_tags_1,
|
||||
sizeof(asn_DEF_AuthMessage_tags_1)
|
||||
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 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 */
|
||||
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AuthMessage_1,
|
||||
3, /* Elements count */
|
||||
|
||||
Vendored
+28
-27
@@ -21,35 +21,36 @@
|
||||
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;
|
||||
/* 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 */
|
||||
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;
|
||||
}
|
||||
AuthMessage_PR;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AuthMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+13
-13
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_serverChallenge_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerChallenge, serverChallenge),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_OCTET_STRING,
|
||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AuthServerChallenge_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 133 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverChallenge at 134 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerChallenge_specs_1 = {
|
||||
sizeof(struct AuthServerChallenge),
|
||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AuthServerChallenge_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AuthServerChallenge_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* AuthServerChallenge */
|
||||
typedef struct AuthServerChallenge {
|
||||
OCTET_STRING_t serverChallenge;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AuthServerChallenge;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+13
-13
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_serverVerification_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthServerVerification, serverVerification),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_OCTET_STRING,
|
||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AuthServerVerification_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 141 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* serverVerification at 142 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthServerVerification_specs_1 = {
|
||||
sizeof(struct AuthServerVerification),
|
||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthServerVerification = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AuthServerVerification_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AuthServerVerification_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* AuthServerVerification */
|
||||
typedef struct AuthServerVerification {
|
||||
OCTET_STRING_t serverVerification;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AuthServerVerification;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+16
-16
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_clientUserData_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AuthenticatedLogin, clientUserData),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_OCTET_STRING,
|
||||
@@ -42,8 +42,8 @@ static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"clientUserData"
|
||||
},
|
||||
{ ATF_POINTER, 1, offsetof(struct AuthenticatedLogin, avatar),
|
||||
},
|
||||
{ ATF_POINTER, 1, offsetof(struct AuthenticatedLogin, avatar),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_AvatarHash,
|
||||
@@ -51,14 +51,14 @@ static asn_TYPE_member_t asn_MBR_AuthenticatedLogin_1[] = {
|
||||
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 117 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, -1, 0 } /* avatar at 118 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 1 }, /* clientUserData at 118 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, -1, 0 } /* avatar at 119 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AuthenticatedLogin_specs_1 = {
|
||||
sizeof(struct AuthenticatedLogin),
|
||||
@@ -83,10 +83,10 @@ asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AuthenticatedLogin_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AuthenticatedLogin_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -20,21 +20,21 @@
|
||||
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;
|
||||
/* AuthenticatedLogin */
|
||||
typedef struct AuthenticatedLogin {
|
||||
OCTET_STRING_t clientUserData;
|
||||
AvatarHash_t *avatar /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AuthenticatedLogin;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+13
-13
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_avatarBlock_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarData, avatarBlock),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_OCTET_STRING,
|
||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_AvatarData_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 171 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* avatarBlock at 173 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarData_specs_1 = {
|
||||
sizeof(struct AvatarData),
|
||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarData = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AvatarData_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AvatarData_1,
|
||||
1, /* Elements count */
|
||||
|
||||
Vendored
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* AvatarData */
|
||||
typedef struct AvatarData {
|
||||
OCTET_STRING_t avatarBlock;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarData;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarEnd = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AvatarEnd_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_AvatarEnd_specs_1 /* Additional specs */
|
||||
|
||||
Vendored
+12
-12
@@ -18,19 +18,19 @@
|
||||
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;
|
||||
/* AvatarEnd */
|
||||
typedef struct AvatarEnd {
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarEnd;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+18
-18
@@ -9,26 +9,26 @@
|
||||
|
||||
int
|
||||
AvatarHash_constraint(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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -56,44 +56,44 @@ AvatarHash_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
|
||||
void
|
||||
AvatarHash_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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);
|
||||
}
|
||||
@@ -115,10 +115,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarHash = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AvatarHash_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
0 /* No specifics */
|
||||
|
||||
Vendored
+11
-11
@@ -18,18 +18,18 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* AvatarHash */
|
||||
typedef OCTET_STRING_t AvatarHash_t;
|
||||
/* 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;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+16
-16
@@ -9,31 +9,31 @@
|
||||
|
||||
static int
|
||||
memb_avatarSize_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) {
|
||||
long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarType),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||
0,
|
||||
&asn_DEF_NetAvatarType,
|
||||
@@ -41,8 +41,8 @@ static asn_TYPE_member_t asn_MBR_AvatarHeader_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"avatarType"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarSize),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarHeader, avatarSize),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -50,14 +50,14 @@ static asn_TYPE_member_t asn_MBR_AvatarHeader_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 167 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* avatarType at 166 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* avatarSize at 169 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* avatarType at 168 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarHeader_specs_1 = {
|
||||
sizeof(struct AvatarHeader),
|
||||
@@ -82,10 +82,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarHeader = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AvatarHeader_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AvatarHeader_1,
|
||||
2, /* Elements count */
|
||||
|
||||
Vendored
+14
-14
@@ -20,21 +20,21 @@
|
||||
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;
|
||||
/* AvatarHeader */
|
||||
typedef struct AvatarHeader {
|
||||
NetAvatarType_t avatarType;
|
||||
long avatarSize;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarHeader;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+23
-23
@@ -8,7 +8,7 @@
|
||||
#include "AvatarReplyMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarHeader),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarHeader),
|
||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_AvatarHeader,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"avatarHeader"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarData),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarData),
|
||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_AvatarData,
|
||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"avatarData"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarEnd),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.avatarEnd),
|
||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_AvatarEnd,
|
||||
@@ -34,8 +34,8 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"avatarEnd"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.unknownAvatar),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct avatarResult, choice.unknownAvatar),
|
||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_UnknownAvatar,
|
||||
@@ -43,13 +43,13 @@ static asn_TYPE_member_t asn_MBR_avatarResult_3[] = {
|
||||
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 158 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 159 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* avatarEnd at 160 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unknownAvatar at 162 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* avatarHeader at 160 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 161 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* avatarEnd at 162 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* unknownAvatar at 164 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_avatarResult_specs_3 = {
|
||||
sizeof(struct avatarResult),
|
||||
@@ -85,7 +85,7 @@ asn_TYPE_descriptor_t asn_DEF_avatarResult_3 = {
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, requestId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, requestId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -93,8 +93,8 @@ static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"requestId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, avatarResult),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarReplyMessage, avatarResult),
|
||||
-1 /* Ambiguous tag (CHOICE?) */,
|
||||
0,
|
||||
&asn_DEF_avatarResult_3,
|
||||
@@ -102,18 +102,18 @@ static asn_TYPE_member_t asn_MBR_AvatarReplyMessage_1[] = {
|
||||
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 156 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* avatarHeader at 158 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 159 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* avatarEnd at 160 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* unknownAvatar at 162 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 158 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* avatarHeader at 160 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* avatarData at 161 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* avatarEnd at 162 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* unknownAvatar at 164 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarReplyMessage_specs_1 = {
|
||||
sizeof(struct AvatarReplyMessage),
|
||||
@@ -138,10 +138,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AvatarReplyMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AvatarReplyMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+38
-37
@@ -24,47 +24,48 @@
|
||||
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;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* 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;
|
||||
} AvatarReplyMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarReplyMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@
|
||||
#include "AvatarRequestMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, requestId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, requestId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"requestId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, avatar),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct AvatarRequestMessage, avatar),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_AvatarHash,
|
||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_AvatarRequestMessage_1[] = {
|
||||
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 151 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* avatar at 153 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestId at 153 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* avatar at 155 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_AvatarRequestMessage_specs_1 = {
|
||||
sizeof(struct AvatarRequestMessage),
|
||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_AvatarRequestMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_AvatarRequestMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -20,21 +20,21 @@
|
||||
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;
|
||||
/* AvatarRequestMessage */
|
||||
typedef struct AvatarRequestMessage {
|
||||
NonZeroId_t requestId;
|
||||
AvatarHash_t avatar;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AvatarRequestMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+12
-12
@@ -32,10 +32,10 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_BIT_STRING_tags,
|
||||
sizeof(asn_DEF_BIT_STRING_tags)
|
||||
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
||||
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
||||
asn_DEF_BIT_STRING_tags, /* Same as above */
|
||||
sizeof(asn_DEF_BIT_STRING_tags)
|
||||
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
||||
/ sizeof(asn_DEF_BIT_STRING_tags[0]),
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_DEF_BIT_STRING_specs
|
||||
@@ -46,21 +46,21 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
|
||||
*/
|
||||
int
|
||||
BIT_STRING_constraint(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) {
|
||||
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
|
||||
|
||||
if(st && st->buf) {
|
||||
if((st->size == 0 && st->bits_unused)
|
||||
|| st->bits_unused < 0 || st->bits_unused > 7) {
|
||||
|| st->bits_unused < 0 || st->bits_unused > 7) {
|
||||
_ASN_CTFAIL(app_key, td, sptr,
|
||||
"%s: invalid padding byte (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
"%s: invalid padding byte (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
_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;
|
||||
}
|
||||
|
||||
@@ -74,8 +74,8 @@ static char *_bit_pattern[16] = {
|
||||
|
||||
asn_enc_rval_t
|
||||
BIT_STRING_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
asn_enc_rval_t er;
|
||||
char scratch[128];
|
||||
char *p = scratch;
|
||||
@@ -139,7 +139,7 @@ cb_failed:
|
||||
*/
|
||||
int
|
||||
BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
static const char *h2c = "0123456789ABCDEF";
|
||||
char scratch[64];
|
||||
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
|
||||
@@ -161,7 +161,7 @@ BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
||||
*/
|
||||
for(; buf < end; buf++) {
|
||||
if((buf - st->buf) % 16 == 0 && (st->size > 16)
|
||||
&& buf != st->buf) {
|
||||
&& buf != st->buf) {
|
||||
_i_INDENT(1);
|
||||
/* Dump the string */
|
||||
if(cb(scratch, p - scratch, app_key) < 0) return -1;
|
||||
|
||||
Vendored
+10
-10
@@ -11,20 +11,20 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct BIT_STRING_s {
|
||||
uint8_t *buf; /* BIT STRING body */
|
||||
int size; /* Size of the above buffer */
|
||||
typedef struct BIT_STRING_s {
|
||||
uint8_t *buf; /* BIT STRING body */
|
||||
int size; /* Size of the above buffer */
|
||||
|
||||
int bits_unused;/* Unused trailing bits in the last octet (0..7) */
|
||||
int bits_unused;/* Unused trailing bits in the last octet (0..7) */
|
||||
|
||||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
|
||||
} BIT_STRING_t;
|
||||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
|
||||
} BIT_STRING_t;
|
||||
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
|
||||
|
||||
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
|
||||
asn_constr_check_f BIT_STRING_constraint;
|
||||
xer_type_encoder_f BIT_STRING_encode_xer;
|
||||
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
|
||||
asn_constr_check_f BIT_STRING_constraint;
|
||||
xer_type_encoder_f BIT_STRING_encode_xer;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Vendored
+30
-24
@@ -39,9 +39,9 @@ asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
|
||||
*/
|
||||
asn_dec_rval_t
|
||||
BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
||||
asn_TYPE_descriptor_t *td,
|
||||
void **bool_value, const void *buf_ptr, size_t size,
|
||||
int tag_mode) {
|
||||
asn_TYPE_descriptor_t *td,
|
||||
void **bool_value, const void *buf_ptr, size_t size,
|
||||
int tag_mode) {
|
||||
BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
|
||||
asn_dec_rval_t rval;
|
||||
ber_tlv_len_t length;
|
||||
@@ -57,13 +57,13 @@ BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
||||
}
|
||||
|
||||
ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
|
||||
td->name, tag_mode);
|
||||
td->name, tag_mode);
|
||||
|
||||
/*
|
||||
* Check tags.
|
||||
*/
|
||||
rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
|
||||
tag_mode, 0, &length, 0);
|
||||
tag_mode, 0, &length, 0);
|
||||
if(rval.code != RC_OK)
|
||||
return rval;
|
||||
|
||||
@@ -81,7 +81,7 @@ BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
||||
* Compute boolean value.
|
||||
*/
|
||||
for(*st = 0, lidx = 0;
|
||||
(lidx < length) && *st == 0; lidx++) {
|
||||
(lidx < length) && *st == 0; lidx++) {
|
||||
/*
|
||||
* Very simple approach: read bytes until the end or
|
||||
* value is already TRUE.
|
||||
@@ -94,16 +94,16 @@ BOOLEAN_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
||||
rval.consumed += length;
|
||||
|
||||
ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
|
||||
(long)rval.consumed, (long)length,
|
||||
td->name, *st);
|
||||
|
||||
(long)rval.consumed, (long)length,
|
||||
td->name, *st);
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
asn_enc_rval_t
|
||||
BOOLEAN_encode_der(asn_TYPE_descriptor_t *td, void *sptr,
|
||||
int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
asn_enc_rval_t erval;
|
||||
BOOLEAN_t *st = (BOOLEAN_t *)sptr;
|
||||
|
||||
@@ -151,7 +151,7 @@ BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
|
||||
break;
|
||||
case XCT_UNKNOWN_BO:
|
||||
if(xer_check_tag(chunk_buf, chunk_size, "true")
|
||||
!= XCT_BOTH)
|
||||
!= XCT_BOTH)
|
||||
return XPBD_BROKEN_ENCODING;
|
||||
/* "<true/>" */
|
||||
*st = 1; /* Or 0xff as in DER?.. */
|
||||
@@ -171,18 +171,18 @@ BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
|
||||
|
||||
asn_dec_rval_t
|
||||
BOOLEAN_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
|
||||
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
|
||||
const void *buf_ptr, size_t size) {
|
||||
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
|
||||
const void *buf_ptr, size_t size) {
|
||||
|
||||
return xer_decode_primitive(opt_codec_ctx, td,
|
||||
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
|
||||
BOOLEAN__xer_body_decode);
|
||||
sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
|
||||
BOOLEAN__xer_body_decode);
|
||||
}
|
||||
|
||||
asn_enc_rval_t
|
||||
BOOLEAN_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
||||
asn_enc_rval_t er;
|
||||
|
||||
@@ -206,7 +206,7 @@ cb_failed:
|
||||
|
||||
int
|
||||
BOOLEAN_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
||||
const char *buf;
|
||||
size_t buflen;
|
||||
@@ -239,7 +239,7 @@ BOOLEAN_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
|
||||
|
||||
asn_dec_rval_t
|
||||
BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
|
||||
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
|
||||
asn_dec_rval_t rv;
|
||||
BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
|
||||
|
||||
@@ -255,9 +255,15 @@ BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||
* Extract a single bit
|
||||
*/
|
||||
switch(per_get_few_bits(pd, 1)) {
|
||||
case 1: *st = 1; break;
|
||||
case 0: *st = 0; break;
|
||||
case -1: default: _ASN_DECODE_STARVED;
|
||||
case 1:
|
||||
*st = 1;
|
||||
break;
|
||||
case 0:
|
||||
*st = 0;
|
||||
break;
|
||||
case -1:
|
||||
default:
|
||||
_ASN_DECODE_STARVED;
|
||||
}
|
||||
|
||||
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
|
||||
@@ -270,7 +276,7 @@ BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
||||
|
||||
asn_enc_rval_t
|
||||
BOOLEAN_encode_uper(asn_TYPE_descriptor_t *td,
|
||||
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
|
||||
asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
|
||||
const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
|
||||
asn_enc_rval_t er;
|
||||
|
||||
|
||||
Vendored
+15
-15
@@ -11,23 +11,23 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The underlying integer may contain various values, but everything
|
||||
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
|
||||
* yield non-zero values different from 1, beware.
|
||||
*/
|
||||
typedef int BOOLEAN_t;
|
||||
/*
|
||||
* The underlying integer may contain various values, but everything
|
||||
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
|
||||
* yield non-zero values different from 1, beware.
|
||||
*/
|
||||
typedef int BOOLEAN_t;
|
||||
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
||||
|
||||
asn_struct_free_f BOOLEAN_free;
|
||||
asn_struct_print_f BOOLEAN_print;
|
||||
ber_type_decoder_f BOOLEAN_decode_ber;
|
||||
der_type_encoder_f BOOLEAN_encode_der;
|
||||
xer_type_decoder_f BOOLEAN_decode_xer;
|
||||
xer_type_encoder_f BOOLEAN_encode_xer;
|
||||
per_type_decoder_f BOOLEAN_decode_uper;
|
||||
per_type_encoder_f BOOLEAN_encode_uper;
|
||||
asn_struct_free_f BOOLEAN_free;
|
||||
asn_struct_print_f BOOLEAN_print;
|
||||
ber_type_decoder_f BOOLEAN_decode_ber;
|
||||
der_type_encoder_f BOOLEAN_encode_der;
|
||||
xer_type_decoder_f BOOLEAN_decode_xer;
|
||||
xer_type_encoder_f BOOLEAN_encode_xer;
|
||||
per_type_decoder_f BOOLEAN_decode_uper;
|
||||
per_type_encoder_f BOOLEAN_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Vendored
+18
-18
@@ -9,25 +9,25 @@
|
||||
|
||||
int
|
||||
Card_constraint(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) {
|
||||
long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -55,44 +55,44 @@ Card_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
|
||||
void
|
||||
Card_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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);
|
||||
}
|
||||
@@ -114,10 +114,10 @@ asn_TYPE_descriptor_t asn_DEF_Card = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_Card_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
0 /* No specifics */
|
||||
|
||||
Vendored
+11
-11
@@ -18,18 +18,18 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Card */
|
||||
typedef long Card_t;
|
||||
/* 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;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+12
-12
@@ -8,7 +8,7 @@
|
||||
#include "ChatCleanerMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitMessage),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitMessage),
|
||||
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
||||
0,
|
||||
&asn_DEF_CleanerInitMessage,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerInitMessage"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitAckMessage),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerInitAckMessage),
|
||||
(ASN_TAG_CLASS_APPLICATION | (1 << 2)),
|
||||
0,
|
||||
&asn_DEF_CleanerInitAckMessage,
|
||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerInitAckMessage"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatRequestMessage),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatRequestMessage),
|
||||
(ASN_TAG_CLASS_APPLICATION | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_CleanerChatRequestMessage,
|
||||
@@ -34,8 +34,8 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerChatRequestMessage"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatReplyMessage),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatCleanerMessage, choice.cleanerChatReplyMessage),
|
||||
(ASN_TAG_CLASS_APPLICATION | (3 << 2)),
|
||||
0,
|
||||
&asn_DEF_CleanerChatReplyMessage,
|
||||
@@ -43,13 +43,13 @@ static asn_TYPE_member_t asn_MBR_ChatCleanerMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerChatReplyMessage"
|
||||
},
|
||||
},
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_ChatCleanerMessage_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* cleanerInitMessage at 27 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* cleanerInitAckMessage at 28 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* cleanerChatRequestMessage at 29 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 } /* cleanerChatReplyMessage at 31 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* cleanerInitMessage at 27 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* cleanerInitAckMessage at 28 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* cleanerChatRequestMessage at 29 */
|
||||
{ (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 } /* cleanerChatReplyMessage at 31 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_ChatCleanerMessage_specs_1 = {
|
||||
sizeof(struct ChatCleanerMessage),
|
||||
|
||||
+30
-29
@@ -22,37 +22,38 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum ChatCleanerMessage_PR {
|
||||
ChatCleanerMessage_PR_NOTHING, /* No components present */
|
||||
ChatCleanerMessage_PR_cleanerInitMessage,
|
||||
ChatCleanerMessage_PR_cleanerInitAckMessage,
|
||||
ChatCleanerMessage_PR_cleanerChatRequestMessage,
|
||||
ChatCleanerMessage_PR_cleanerChatReplyMessage,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} ChatCleanerMessage_PR;
|
||||
/* Dependencies */
|
||||
typedef enum ChatCleanerMessage_PR {
|
||||
ChatCleanerMessage_PR_NOTHING, /* No components present */
|
||||
ChatCleanerMessage_PR_cleanerInitMessage,
|
||||
ChatCleanerMessage_PR_cleanerInitAckMessage,
|
||||
ChatCleanerMessage_PR_cleanerChatRequestMessage,
|
||||
ChatCleanerMessage_PR_cleanerChatReplyMessage,
|
||||
/* Extensions may appear below */
|
||||
|
||||
/* ChatCleanerMessage */
|
||||
typedef struct ChatCleanerMessage {
|
||||
ChatCleanerMessage_PR present;
|
||||
union ChatCleanerMessage_u {
|
||||
CleanerInitMessage_t cleanerInitMessage;
|
||||
CleanerInitAckMessage_t cleanerInitAckMessage;
|
||||
CleanerChatRequestMessage_t cleanerChatRequestMessage;
|
||||
CleanerChatReplyMessage_t cleanerChatReplyMessage;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} ChatCleanerMessage_t;
|
||||
}
|
||||
ChatCleanerMessage_PR;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatCleanerMessage;
|
||||
/* ChatCleanerMessage */
|
||||
typedef struct ChatCleanerMessage {
|
||||
ChatCleanerMessage_PR present;
|
||||
union ChatCleanerMessage_u {
|
||||
CleanerInitMessage_t cleanerInitMessage;
|
||||
CleanerInitAckMessage_t cleanerInitAckMessage;
|
||||
CleanerChatRequestMessage_t cleanerChatRequestMessage;
|
||||
CleanerChatReplyMessage_t cleanerChatReplyMessage;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} ChatCleanerMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatCleanerMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Vendored
+37
-37
@@ -9,38 +9,38 @@
|
||||
|
||||
static int
|
||||
memb_chatText_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeLobby),
|
||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatTypeLobby,
|
||||
@@ -48,8 +48,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatTypeLobby"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeGame),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeGame),
|
||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatTypeGame,
|
||||
@@ -57,8 +57,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatTypeGame"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBot),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBot),
|
||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatTypeBot,
|
||||
@@ -66,8 +66,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatTypeBot"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBroadcast),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypeBroadcast),
|
||||
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatTypeBroadcast,
|
||||
@@ -75,8 +75,8 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatTypeBroadcast"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypePrivate),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatType, choice.chatTypePrivate),
|
||||
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatTypePrivate,
|
||||
@@ -84,14 +84,14 @@ static asn_TYPE_member_t asn_MBR_chatType_2[] = {
|
||||
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 670 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatTypeGame at 671 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* chatTypeBot at 672 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* chatTypeBroadcast at 673 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* chatTypePrivate at 675 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 693 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatTypeGame at 694 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* chatTypeBot at 695 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* chatTypeBroadcast at 696 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* chatTypePrivate at 698 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_chatType_specs_2 = {
|
||||
sizeof(struct chatType),
|
||||
@@ -127,7 +127,7 @@ asn_TYPE_descriptor_t asn_DEF_chatType_2 = {
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatType),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatType),
|
||||
-1 /* Ambiguous tag (CHOICE?) */,
|
||||
0,
|
||||
&asn_DEF_chatType_2,
|
||||
@@ -135,8 +135,8 @@ static asn_TYPE_member_t asn_MBR_ChatMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatType"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatText),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatMessage, chatText),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -144,19 +144,19 @@ static asn_TYPE_member_t asn_MBR_ChatMessage_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 676 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 670 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatTypeGame at 671 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* chatTypeBot at 672 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 }, /* chatTypeBroadcast at 673 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 } /* chatTypePrivate at 675 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 699 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatTypeLobby at 693 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatTypeGame at 694 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* chatTypeBot at 695 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 }, /* chatTypeBroadcast at 696 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 } /* chatTypePrivate at 698 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatMessage_specs_1 = {
|
||||
sizeof(struct ChatMessage),
|
||||
@@ -181,10 +181,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
Vendored
+40
-39
@@ -25,49 +25,50 @@
|
||||
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;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* 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;
|
||||
} ChatMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatMessage;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+15
-15
@@ -9,38 +9,38 @@
|
||||
|
||||
static int
|
||||
memb_chatText_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRejectMessage, chatText),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -48,14 +48,14 @@ static asn_TYPE_member_t asn_MBR_ChatRejectMessage_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 699 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* chatText at 722 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRejectMessage_specs_1 = {
|
||||
sizeof(struct ChatRejectMessage),
|
||||
@@ -80,10 +80,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatRejectMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatRejectMessage_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* ChatRejectMessage */
|
||||
typedef struct ChatRejectMessage {
|
||||
UTF8String_t chatText;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRejectMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+29
-29
@@ -9,38 +9,38 @@
|
||||
|
||||
static int
|
||||
memb_chatText_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeLobby),
|
||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatRequestTypeLobby,
|
||||
@@ -48,8 +48,8 @@ static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatRequestTypeLobby"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeGame),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypeGame),
|
||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatRequestTypeGame,
|
||||
@@ -57,8 +57,8 @@ static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatRequestTypeGame"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypePrivate),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct chatRequestType, choice.chatRequestTypePrivate),
|
||||
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_ChatRequestTypePrivate,
|
||||
@@ -66,12 +66,12 @@ static asn_TYPE_member_t asn_MBR_chatRequestType_2[] = {
|
||||
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 650 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatRequestTypeGame at 651 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chatRequestTypePrivate at 653 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 673 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* chatRequestTypeGame at 674 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* chatRequestTypePrivate at 676 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_chatRequestType_specs_2 = {
|
||||
sizeof(struct chatRequestType),
|
||||
@@ -107,7 +107,7 @@ asn_TYPE_descriptor_t asn_DEF_chatRequestType_2 = {
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatRequestType),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatRequestType),
|
||||
-1 /* Ambiguous tag (CHOICE?) */,
|
||||
0,
|
||||
&asn_DEF_chatRequestType_2,
|
||||
@@ -115,8 +115,8 @@ static asn_TYPE_member_t asn_MBR_ChatRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatRequestType"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatText),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestMessage, chatText),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -124,17 +124,17 @@ static asn_TYPE_member_t asn_MBR_ChatRequestMessage_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 654 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 650 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatRequestTypeGame at 651 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 } /* chatRequestTypePrivate at 653 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* chatText at 677 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* chatRequestTypeLobby at 673 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* chatRequestTypeGame at 674 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 } /* chatRequestTypePrivate at 676 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestMessage_specs_1 = {
|
||||
sizeof(struct ChatRequestMessage),
|
||||
@@ -159,10 +159,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatRequestMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatRequestMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+36
-35
@@ -23,45 +23,46 @@
|
||||
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;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* 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;
|
||||
} ChatRequestMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+5
-5
@@ -8,7 +8,7 @@
|
||||
#include "ChatRequestTypeGame.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatRequestTypeGame_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypeGame, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypeGame, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatRequestTypeGame_1[] = {
|
||||
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 662 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 685 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypeGame_specs_1 = {
|
||||
sizeof(struct ChatRequestTypeGame),
|
||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatRequestTypeGame_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatRequestTypeGame_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* ChatRequestTypeGame */
|
||||
typedef struct ChatRequestTypeGame {
|
||||
NonZeroId_t gameId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeGame;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatRequestTypeLobby_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_ChatRequestTypeLobby_specs_1 /* Additional specs */
|
||||
|
||||
+12
-12
@@ -18,19 +18,19 @@
|
||||
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;
|
||||
/* ChatRequestTypeLobby */
|
||||
typedef struct ChatRequestTypeLobby {
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypeLobby;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+5
-5
@@ -8,7 +8,7 @@
|
||||
#include "ChatRequestTypePrivate.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatRequestTypePrivate_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypePrivate, targetPlayerId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatRequestTypePrivate, targetPlayerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatRequestTypePrivate_1[] = {
|
||||
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 666 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* targetPlayerId at 689 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatRequestTypePrivate_specs_1 = {
|
||||
sizeof(struct ChatRequestTypePrivate),
|
||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatRequestTypePrivate_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatRequestTypePrivate_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* ChatRequestTypePrivate */
|
||||
typedef struct ChatRequestTypePrivate {
|
||||
NonZeroId_t targetPlayerId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatRequestTypePrivate;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeBot = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatTypeBot_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_ChatTypeBot_specs_1 /* Additional specs */
|
||||
|
||||
Vendored
+12
-12
@@ -18,19 +18,19 @@
|
||||
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;
|
||||
/* ChatTypeBot */
|
||||
typedef struct ChatTypeBot {
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBot;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatTypeBroadcast_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_ChatTypeBroadcast_specs_1 /* Additional specs */
|
||||
|
||||
+12
-12
@@ -18,19 +18,19 @@
|
||||
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;
|
||||
/* ChatTypeBroadcast */
|
||||
typedef struct ChatTypeBroadcast {
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeBroadcast;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+8
-8
@@ -8,7 +8,7 @@
|
||||
#include "ChatTypeGame.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, playerId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeGame, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -25,14 +25,14 @@ static asn_TYPE_member_t asn_MBR_ChatTypeGame_1[] = {
|
||||
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 684 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 686 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 707 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* playerId at 709 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeGame_specs_1 = {
|
||||
sizeof(struct ChatTypeGame),
|
||||
@@ -57,10 +57,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeGame = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatTypeGame_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatTypeGame_1,
|
||||
2, /* Elements count */
|
||||
|
||||
Vendored
+14
-14
@@ -19,21 +19,21 @@
|
||||
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;
|
||||
/* ChatTypeGame */
|
||||
typedef struct ChatTypeGame {
|
||||
NonZeroId_t gameId;
|
||||
NonZeroId_t playerId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeGame;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+5
-5
@@ -8,7 +8,7 @@
|
||||
#include "ChatTypeLobby.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatTypeLobby_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeLobby, playerId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypeLobby, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatTypeLobby_1[] = {
|
||||
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 681 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 704 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypeLobby_specs_1 = {
|
||||
sizeof(struct ChatTypeLobby),
|
||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatTypeLobby_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatTypeLobby_1,
|
||||
1, /* Elements count */
|
||||
|
||||
Vendored
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* ChatTypeLobby */
|
||||
typedef struct ChatTypeLobby {
|
||||
NonZeroId_t playerId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypeLobby;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+5
-5
@@ -8,7 +8,7 @@
|
||||
#include "ChatTypePrivate.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_ChatTypePrivate_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypePrivate, playerId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ChatTypePrivate, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,13 +16,13 @@ static asn_TYPE_member_t asn_MBR_ChatTypePrivate_1[] = {
|
||||
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 696 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* playerId at 719 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ChatTypePrivate_specs_1 = {
|
||||
sizeof(struct ChatTypePrivate),
|
||||
@@ -47,10 +47,10 @@ asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ChatTypePrivate_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ChatTypePrivate_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* ChatTypePrivate */
|
||||
typedef struct ChatTypePrivate {
|
||||
NonZeroId_t playerId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ChatTypePrivate;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+94
-94
@@ -9,25 +9,25 @@
|
||||
|
||||
static int
|
||||
requestId_2_constraint(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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -50,74 +50,74 @@ requestId_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
requestId_2_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
void *struct_ptr, int contents_only) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
td->free_struct(td, struct_ptr, contents_only);
|
||||
}
|
||||
|
||||
static int
|
||||
requestId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
requestId_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) {
|
||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
requestId_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) {
|
||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
requestId_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) {
|
||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
requestId_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) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||
}
|
||||
|
||||
static int
|
||||
playerId_4_constraint(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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -140,56 +140,56 @@ playerId_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
playerId_4_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
void *struct_ptr, int contents_only) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
td->free_struct(td, struct_ptr, contents_only);
|
||||
}
|
||||
|
||||
static int
|
||||
playerId_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
playerId_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) {
|
||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
playerId_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) {
|
||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
playerId_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) {
|
||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
playerId_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) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||
}
|
||||
|
||||
static int
|
||||
cleanerActionType_5_constraint(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) {
|
||||
/* Replace with underlying type checker */
|
||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||
@@ -213,131 +213,131 @@ cleanerActionType_5_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
cleanerActionType_5_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
void *struct_ptr, int contents_only) {
|
||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||
td->free_struct(td, struct_ptr, contents_only);
|
||||
}
|
||||
|
||||
static int
|
||||
cleanerActionType_5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
cleanerActionType_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) {
|
||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
cleanerActionType_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) {
|
||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
cleanerActionType_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) {
|
||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
cleanerActionType_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) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
cleanerActionType_5_inherit_TYPE_descriptor(td);
|
||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||
}
|
||||
|
||||
static int
|
||||
memb_requestId_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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_playerId_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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_cleanerText_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -365,10 +365,10 @@ asn_TYPE_descriptor_t asn_DEF_requestId_2 = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_requestId_tags_2,
|
||||
sizeof(asn_DEF_requestId_tags_2)
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
asn_DEF_requestId_tags_2, /* Same as above */
|
||||
sizeof(asn_DEF_requestId_tags_2)
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_requestId_specs_2 /* Additional specs */
|
||||
@@ -397,10 +397,10 @@ asn_TYPE_descriptor_t asn_DEF_playerId_4 = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_playerId_tags_4,
|
||||
sizeof(asn_DEF_playerId_tags_4)
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
asn_DEF_playerId_tags_4, /* Same as above */
|
||||
sizeof(asn_DEF_playerId_tags_4)
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_playerId_specs_4 /* Additional specs */
|
||||
@@ -445,17 +445,17 @@ asn_TYPE_descriptor_t asn_DEF_cleanerActionType_5 = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_cleanerActionType_tags_5,
|
||||
sizeof(asn_DEF_cleanerActionType_tags_5)
|
||||
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
||||
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
||||
asn_DEF_cleanerActionType_tags_5, /* Same as above */
|
||||
sizeof(asn_DEF_cleanerActionType_tags_5)
|
||||
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
||||
/sizeof(asn_DEF_cleanerActionType_tags_5[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* Defined elsewhere */
|
||||
&asn_SPC_cleanerActionType_specs_5 /* Additional specs */
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, requestId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, requestId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_requestId_2,
|
||||
@@ -463,8 +463,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"requestId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerChatType),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerChatType),
|
||||
-1 /* Ambiguous tag (CHOICE?) */,
|
||||
0,
|
||||
&asn_DEF_CleanerChatType,
|
||||
@@ -472,8 +472,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerChatType"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, playerId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_playerId_4,
|
||||
@@ -481,8 +481,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"playerId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerActionType),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatReplyMessage, cleanerActionType),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||
0,
|
||||
&asn_DEF_cleanerActionType_5,
|
||||
@@ -490,8 +490,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerActionType"
|
||||
},
|
||||
{ ATF_POINTER, 1, offsetof(struct CleanerChatReplyMessage, cleanerText),
|
||||
},
|
||||
{ ATF_POINTER, 1, offsetof(struct CleanerChatReplyMessage, cleanerText),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -499,19 +499,19 @@ static asn_TYPE_member_t asn_MBR_CleanerChatReplyMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerText"
|
||||
},
|
||||
},
|
||||
};
|
||||
static ber_tlv_tag_t asn_DEF_CleanerChatReplyMessage_tags_1[] = {
|
||||
(ASN_TAG_CLASS_APPLICATION | (3 << 2)),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatReplyMessage_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 64 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 66 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* cleanerActionType at 68 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, 0, 0 }, /* cleanerText at 73 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 64 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 66 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* cleanerActionType at 68 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, 0, 0 }, /* cleanerText at 73 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatReplyMessage_specs_1 = {
|
||||
sizeof(struct CleanerChatReplyMessage),
|
||||
@@ -536,10 +536,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatReplyMessage = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_CleanerChatReplyMessage_tags_1,
|
||||
sizeof(asn_DEF_CleanerChatReplyMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]) - 1, /* 1 */
|
||||
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]) - 1, /* 1 */
|
||||
asn_DEF_CleanerChatReplyMessage_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_CleanerChatReplyMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]), /* 2 */
|
||||
/sizeof(asn_DEF_CleanerChatReplyMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_CleanerChatReplyMessage_1,
|
||||
5, /* Elements count */
|
||||
|
||||
+28
-27
@@ -22,35 +22,36 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum cleanerActionType {
|
||||
cleanerActionType_cleanerActionNone = 0,
|
||||
cleanerActionType_cleanerActionWarning = 1,
|
||||
cleanerActionType_cleanerActionKick = 2,
|
||||
cleanerActionType_cleanerActionBan = 3
|
||||
} e_cleanerActionType;
|
||||
/* Dependencies */
|
||||
typedef enum cleanerActionType {
|
||||
cleanerActionType_cleanerActionNone = 0,
|
||||
cleanerActionType_cleanerActionWarning = 1,
|
||||
cleanerActionType_cleanerActionKick = 2,
|
||||
cleanerActionType_cleanerActionBan = 3
|
||||
}
|
||||
e_cleanerActionType;
|
||||
|
||||
/* CleanerChatReplyMessage */
|
||||
typedef struct CleanerChatReplyMessage {
|
||||
unsigned long requestId;
|
||||
CleanerChatType_t cleanerChatType;
|
||||
unsigned long playerId;
|
||||
long cleanerActionType;
|
||||
UTF8String_t *cleanerText /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatReplyMessage_t;
|
||||
/* CleanerChatReplyMessage */
|
||||
typedef struct CleanerChatReplyMessage {
|
||||
unsigned long requestId;
|
||||
CleanerChatType_t cleanerChatType;
|
||||
unsigned long playerId;
|
||||
long cleanerActionType;
|
||||
UTF8String_t *cleanerText /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_cleanerActionType_5; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatReplyMessage;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatReplyMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_cleanerActionType_5; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatReplyMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+92
-92
@@ -9,25 +9,25 @@
|
||||
|
||||
static int
|
||||
requestId_2_constraint(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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -50,74 +50,74 @@ requestId_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
requestId_2_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
void *struct_ptr, int contents_only) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
td->free_struct(td, struct_ptr, contents_only);
|
||||
}
|
||||
|
||||
static int
|
||||
requestId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
requestId_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) {
|
||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
requestId_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) {
|
||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
requestId_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) {
|
||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
requestId_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) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
requestId_2_inherit_TYPE_descriptor(td);
|
||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||
}
|
||||
|
||||
static int
|
||||
playerId_4_constraint(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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -140,163 +140,163 @@ playerId_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
playerId_4_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
void *struct_ptr, int contents_only) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
td->free_struct(td, struct_ptr, contents_only);
|
||||
}
|
||||
|
||||
static int
|
||||
playerId_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
playerId_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) {
|
||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
playerId_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) {
|
||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
playerId_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) {
|
||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
playerId_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) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
playerId_4_inherit_TYPE_descriptor(td);
|
||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||
}
|
||||
|
||||
static int
|
||||
memb_requestId_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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_playerId_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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_playerName_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_chatMessage_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -324,10 +324,10 @@ asn_TYPE_descriptor_t asn_DEF_requestId_2 = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_requestId_tags_2,
|
||||
sizeof(asn_DEF_requestId_tags_2)
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
asn_DEF_requestId_tags_2, /* Same as above */
|
||||
sizeof(asn_DEF_requestId_tags_2)
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
/sizeof(asn_DEF_requestId_tags_2[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_requestId_specs_2 /* Additional specs */
|
||||
@@ -356,17 +356,17 @@ asn_TYPE_descriptor_t asn_DEF_playerId_4 = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_playerId_tags_4,
|
||||
sizeof(asn_DEF_playerId_tags_4)
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
asn_DEF_playerId_tags_4, /* Same as above */
|
||||
sizeof(asn_DEF_playerId_tags_4)
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
/sizeof(asn_DEF_playerId_tags_4[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_playerId_specs_4 /* Additional specs */
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, requestId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, requestId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_requestId_2,
|
||||
@@ -374,8 +374,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"requestId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, cleanerChatType),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, cleanerChatType),
|
||||
-1 /* Ambiguous tag (CHOICE?) */,
|
||||
0,
|
||||
&asn_DEF_CleanerChatType,
|
||||
@@ -383,8 +383,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerChatType"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_playerId_4,
|
||||
@@ -392,8 +392,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"playerId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerName),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, playerName),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -401,8 +401,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"playerName"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, chatMessage),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatRequestMessage, chatMessage),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -410,19 +410,19 @@ static asn_TYPE_member_t asn_MBR_CleanerChatRequestMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"chatMessage"
|
||||
},
|
||||
},
|
||||
};
|
||||
static ber_tlv_tag_t asn_DEF_CleanerChatRequestMessage_tags_1[] = {
|
||||
(ASN_TAG_CLASS_APPLICATION | (2 << 2)),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatRequestMessage_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 56 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 58 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 3, 0, 1 }, /* playerName at 59 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, -1, 0 }, /* chatMessage at 60 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* requestId at 56 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* playerId at 58 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 3, 0, 1 }, /* playerName at 59 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 4, -1, 0 }, /* chatMessage at 60 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatRequestMessage_specs_1 = {
|
||||
sizeof(struct CleanerChatRequestMessage),
|
||||
@@ -447,10 +447,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatRequestMessage = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_CleanerChatRequestMessage_tags_1,
|
||||
sizeof(asn_DEF_CleanerChatRequestMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
||||
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]) - 1, /* 1 */
|
||||
asn_DEF_CleanerChatRequestMessage_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_CleanerChatRequestMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]), /* 2 */
|
||||
/sizeof(asn_DEF_CleanerChatRequestMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_CleanerChatRequestMessage_1,
|
||||
5, /* Elements count */
|
||||
|
||||
+19
-19
@@ -21,26 +21,26 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* CleanerChatRequestMessage */
|
||||
typedef struct CleanerChatRequestMessage {
|
||||
unsigned long requestId;
|
||||
CleanerChatType_t cleanerChatType;
|
||||
unsigned long playerId;
|
||||
UTF8String_t playerName;
|
||||
UTF8String_t chatMessage;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatRequestMessage_t;
|
||||
/* CleanerChatRequestMessage */
|
||||
typedef struct CleanerChatRequestMessage {
|
||||
unsigned long requestId;
|
||||
CleanerChatType_t cleanerChatType;
|
||||
unsigned long playerId;
|
||||
UTF8String_t playerName;
|
||||
UTF8String_t chatMessage;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatRequestMessage;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatRequestMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_requestId_2; // (Use -fall-defs-global to expose) */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_playerId_4; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatRequestMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+6
-6
@@ -8,7 +8,7 @@
|
||||
#include "CleanerChatType.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeLobby),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeLobby),
|
||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_CleanerChatTypeLobby,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerChatTypeLobby"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeGame),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatType, choice.cleanerChatTypeGame),
|
||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_CleanerChatTypeGame,
|
||||
@@ -25,11 +25,11 @@ static asn_TYPE_member_t asn_MBR_CleanerChatType_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"cleanerChatTypeGame"
|
||||
},
|
||||
},
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatType_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cleanerChatTypeLobby at 44 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cleanerChatTypeGame at 46 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_CleanerChatType_specs_1 = {
|
||||
sizeof(struct CleanerChatType),
|
||||
|
||||
+26
-25
@@ -20,33 +20,34 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum CleanerChatType_PR {
|
||||
CleanerChatType_PR_NOTHING, /* No components present */
|
||||
CleanerChatType_PR_cleanerChatTypeLobby,
|
||||
CleanerChatType_PR_cleanerChatTypeGame,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} CleanerChatType_PR;
|
||||
/* Dependencies */
|
||||
typedef enum CleanerChatType_PR {
|
||||
CleanerChatType_PR_NOTHING, /* No components present */
|
||||
CleanerChatType_PR_cleanerChatTypeLobby,
|
||||
CleanerChatType_PR_cleanerChatTypeGame,
|
||||
/* Extensions may appear below */
|
||||
|
||||
/* CleanerChatType */
|
||||
typedef struct CleanerChatType {
|
||||
CleanerChatType_PR present;
|
||||
union CleanerChatType_u {
|
||||
CleanerChatTypeLobby_t cleanerChatTypeLobby;
|
||||
CleanerChatTypeGame_t cleanerChatTypeGame;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatType_t;
|
||||
}
|
||||
CleanerChatType_PR;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatType;
|
||||
/* CleanerChatType */
|
||||
typedef struct CleanerChatType {
|
||||
CleanerChatType_PR present;
|
||||
union CleanerChatType_u {
|
||||
CleanerChatTypeLobby_t cleanerChatTypeLobby;
|
||||
CleanerChatTypeGame_t cleanerChatTypeGame;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatType_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatType;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+32
-32
@@ -9,25 +9,25 @@
|
||||
|
||||
static int
|
||||
gameId_2_constraint(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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -50,74 +50,74 @@ gameId_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
gameId_2_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
void *struct_ptr, int contents_only) {
|
||||
gameId_2_inherit_TYPE_descriptor(td);
|
||||
td->free_struct(td, struct_ptr, contents_only);
|
||||
}
|
||||
|
||||
static int
|
||||
gameId_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
gameId_2_inherit_TYPE_descriptor(td);
|
||||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
gameId_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) {
|
||||
void **structure, const void *bufptr, size_t size, int tag_mode) {
|
||||
gameId_2_inherit_TYPE_descriptor(td);
|
||||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
gameId_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) {
|
||||
void *structure, int tag_mode, ber_tlv_tag_t tag,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
gameId_2_inherit_TYPE_descriptor(td);
|
||||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
|
||||
}
|
||||
|
||||
static asn_dec_rval_t
|
||||
gameId_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) {
|
||||
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
|
||||
gameId_2_inherit_TYPE_descriptor(td);
|
||||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
|
||||
}
|
||||
|
||||
static asn_enc_rval_t
|
||||
gameId_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) {
|
||||
int ilevel, enum xer_encoder_flags_e flags,
|
||||
asn_app_consume_bytes_f *cb, void *app_key) {
|
||||
gameId_2_inherit_TYPE_descriptor(td);
|
||||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
||||
}
|
||||
|
||||
static int
|
||||
memb_gameId_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) {
|
||||
unsigned long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -145,17 +145,17 @@ asn_TYPE_descriptor_t asn_DEF_gameId_2 = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_gameId_tags_2,
|
||||
sizeof(asn_DEF_gameId_tags_2)
|
||||
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
||||
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
||||
asn_DEF_gameId_tags_2, /* Same as above */
|
||||
sizeof(asn_DEF_gameId_tags_2)
|
||||
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
||||
/sizeof(asn_DEF_gameId_tags_2[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_gameId_specs_2 /* Additional specs */
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_CleanerChatTypeGame_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatTypeGame, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerChatTypeGame, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_gameId_2,
|
||||
@@ -163,13 +163,13 @@ static asn_TYPE_member_t asn_MBR_CleanerChatTypeGame_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
},
|
||||
};
|
||||
static ber_tlv_tag_t asn_DEF_CleanerChatTypeGame_tags_1[] = {
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_CleanerChatTypeGame_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 52 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* gameId at 52 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerChatTypeGame_specs_1 = {
|
||||
sizeof(struct CleanerChatTypeGame),
|
||||
@@ -194,10 +194,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeGame = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_CleanerChatTypeGame_tags_1,
|
||||
sizeof(asn_DEF_CleanerChatTypeGame_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
||||
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
||||
asn_DEF_CleanerChatTypeGame_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_CleanerChatTypeGame_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
||||
/sizeof(asn_DEF_CleanerChatTypeGame_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_CleanerChatTypeGame_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+14
-14
@@ -19,21 +19,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* CleanerChatTypeGame */
|
||||
typedef struct CleanerChatTypeGame {
|
||||
unsigned long gameId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatTypeGame_t;
|
||||
/* CleanerChatTypeGame */
|
||||
typedef struct CleanerChatTypeGame {
|
||||
unsigned long gameId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_gameId_2; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeGame;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatTypeGame_t;
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_gameId_2; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeGame;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+2
-2
@@ -33,10 +33,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeLobby = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_CleanerChatTypeLobby_tags_1,
|
||||
sizeof(asn_DEF_CleanerChatTypeLobby_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
||||
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
||||
asn_DEF_CleanerChatTypeLobby_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_CleanerChatTypeLobby_tags_1)
|
||||
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
||||
/sizeof(asn_DEF_CleanerChatTypeLobby_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
0, 0, /* No members */
|
||||
&asn_SPC_CleanerChatTypeLobby_specs_1 /* Additional specs */
|
||||
|
||||
+12
-12
@@ -18,19 +18,19 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* CleanerChatTypeLobby */
|
||||
typedef struct CleanerChatTypeLobby {
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatTypeLobby_t;
|
||||
/* CleanerChatTypeLobby */
|
||||
typedef struct CleanerChatTypeLobby {
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeLobby;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerChatTypeLobby_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerChatTypeLobby;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+26
-26
@@ -9,63 +9,63 @@
|
||||
|
||||
static int
|
||||
memb_serverVersion_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) {
|
||||
long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_serverSecret_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverVersion),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverVersion),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -73,8 +73,8 @@ static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"serverVersion"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverSecret),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitAckMessage, serverSecret),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -82,15 +82,15 @@ static asn_TYPE_member_t asn_MBR_CleanerInitAckMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"serverSecret"
|
||||
},
|
||||
},
|
||||
};
|
||||
static ber_tlv_tag_t asn_DEF_CleanerInitAckMessage_tags_1[] = {
|
||||
(ASN_TAG_CLASS_APPLICATION | (1 << 2)),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_CleanerInitAckMessage_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* serverVersion at 39 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* serverSecret at 40 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* serverVersion at 39 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* serverSecret at 40 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerInitAckMessage_specs_1 = {
|
||||
sizeof(struct CleanerInitAckMessage),
|
||||
@@ -115,10 +115,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerInitAckMessage = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_CleanerInitAckMessage_tags_1,
|
||||
sizeof(asn_DEF_CleanerInitAckMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]) - 1, /* 1 */
|
||||
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]) - 1, /* 1 */
|
||||
asn_DEF_CleanerInitAckMessage_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_CleanerInitAckMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]), /* 2 */
|
||||
/sizeof(asn_DEF_CleanerInitAckMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_CleanerInitAckMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -20,21 +20,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* CleanerInitAckMessage */
|
||||
typedef struct CleanerInitAckMessage {
|
||||
long serverVersion;
|
||||
UTF8String_t serverSecret;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerInitAckMessage_t;
|
||||
/* CleanerInitAckMessage */
|
||||
typedef struct CleanerInitAckMessage {
|
||||
long serverVersion;
|
||||
UTF8String_t serverSecret;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitAckMessage;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerInitAckMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitAckMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+26
-26
@@ -9,63 +9,63 @@
|
||||
|
||||
static int
|
||||
memb_requestedVersion_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) {
|
||||
long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_clientSecret_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, requestedVersion),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, requestedVersion),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -73,8 +73,8 @@ static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"requestedVersion"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, clientSecret),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct CleanerInitMessage, clientSecret),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -82,15 +82,15 @@ static asn_TYPE_member_t asn_MBR_CleanerInitMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"clientSecret"
|
||||
},
|
||||
},
|
||||
};
|
||||
static ber_tlv_tag_t asn_DEF_CleanerInitMessage_tags_1[] = {
|
||||
(ASN_TAG_CLASS_APPLICATION | (0 << 2)),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
||||
};
|
||||
static asn_TYPE_tag2member_t asn_MAP_CleanerInitMessage_tag2el_1[] = {
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestedVersion at 34 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* clientSecret at 35 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* requestedVersion at 34 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* clientSecret at 35 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_CleanerInitMessage_specs_1 = {
|
||||
sizeof(struct CleanerInitMessage),
|
||||
@@ -115,10 +115,10 @@ asn_TYPE_descriptor_t asn_DEF_CleanerInitMessage = {
|
||||
0, /* Use generic outmost tag fetcher */
|
||||
asn_DEF_CleanerInitMessage_tags_1,
|
||||
sizeof(asn_DEF_CleanerInitMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]) - 1, /* 1 */
|
||||
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]) - 1, /* 1 */
|
||||
asn_DEF_CleanerInitMessage_tags_1, /* Same as above */
|
||||
sizeof(asn_DEF_CleanerInitMessage_tags_1)
|
||||
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]), /* 2 */
|
||||
/sizeof(asn_DEF_CleanerInitMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_CleanerInitMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -20,21 +20,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* CleanerInitMessage */
|
||||
typedef struct CleanerInitMessage {
|
||||
long requestedVersion;
|
||||
UTF8String_t clientSecret;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerInitMessage_t;
|
||||
/* CleanerInitMessage */
|
||||
typedef struct CleanerInitMessage {
|
||||
long requestedVersion;
|
||||
UTF8String_t clientSecret;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitMessage;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CleanerInitMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CleanerInitMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+14
-14
@@ -8,7 +8,7 @@
|
||||
#include "DealFlopCardsMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard1),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard1),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_Card,
|
||||
@@ -25,8 +25,8 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"flopCard1"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard2),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard2),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_Card,
|
||||
@@ -34,8 +34,8 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"flopCard2"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard3),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealFlopCardsMessage, flopCard3),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_Card,
|
||||
@@ -43,17 +43,17 @@ static asn_TYPE_member_t asn_MBR_DealFlopCardsMessage_1[] = {
|
||||
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 497 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* flopCard1 at 498 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* flopCard2 at 499 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 } /* flopCard3 at 501 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 520 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* flopCard1 at 521 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* flopCard2 at 522 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 } /* flopCard3 at 524 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_DealFlopCardsMessage_specs_1 = {
|
||||
sizeof(struct DealFlopCardsMessage),
|
||||
@@ -78,10 +78,10 @@ asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_DealFlopCardsMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_DealFlopCardsMessage_1,
|
||||
4, /* Elements count */
|
||||
|
||||
+16
-16
@@ -20,23 +20,23 @@
|
||||
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;
|
||||
/* DealFlopCardsMessage */
|
||||
typedef struct DealFlopCardsMessage {
|
||||
NonZeroId_t gameId;
|
||||
Card_t flopCard1;
|
||||
Card_t flopCard2;
|
||||
Card_t flopCard3;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DealFlopCardsMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@
|
||||
#include "DealRiverCardMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, riverCard),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealRiverCardMessage, riverCard),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_Card,
|
||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_DealRiverCardMessage_1[] = {
|
||||
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 509 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* riverCard at 511 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 532 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* riverCard at 534 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_DealRiverCardMessage_specs_1 = {
|
||||
sizeof(struct DealRiverCardMessage),
|
||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_DealRiverCardMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_DealRiverCardMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -20,21 +20,21 @@
|
||||
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;
|
||||
/* DealRiverCardMessage */
|
||||
typedef struct DealRiverCardMessage {
|
||||
NonZeroId_t gameId;
|
||||
Card_t riverCard;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DealRiverCardMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@
|
||||
#include "DealTurnCardMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, turnCard),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DealTurnCardMessage, turnCard),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_Card,
|
||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_DealTurnCardMessage_1[] = {
|
||||
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 504 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* turnCard at 506 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 527 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* turnCard at 529 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_DealTurnCardMessage_specs_1 = {
|
||||
sizeof(struct DealTurnCardMessage),
|
||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_DealTurnCardMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_DealTurnCardMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -20,21 +20,21 @@
|
||||
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;
|
||||
/* DealTurnCardMessage */
|
||||
typedef struct DealTurnCardMessage {
|
||||
NonZeroId_t gameId;
|
||||
Card_t turnCard;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DealTurnCardMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Vendored
+15
-15
@@ -9,38 +9,38 @@
|
||||
|
||||
static int
|
||||
memb_notificationText_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct DialogMessage, notificationText),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
|
||||
0,
|
||||
&asn_DEF_UTF8String,
|
||||
@@ -48,14 +48,14 @@ static asn_TYPE_member_t asn_MBR_DialogMessage_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 703 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 } /* notificationText at 726 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_DialogMessage_specs_1 = {
|
||||
sizeof(struct DialogMessage),
|
||||
@@ -80,10 +80,10 @@ asn_TYPE_descriptor_t asn_DEF_DialogMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_DialogMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_DialogMessage_1,
|
||||
1, /* Elements count */
|
||||
|
||||
Vendored
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* DialogMessage */
|
||||
typedef struct DialogMessage {
|
||||
UTF8String_t notificationText;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DialogMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+13
-13
@@ -9,32 +9,32 @@
|
||||
|
||||
static int
|
||||
memb_cardData_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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EncryptedCards, cardData),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
|
||||
0,
|
||||
&asn_DEF_OCTET_STRING,
|
||||
@@ -42,13 +42,13 @@ static asn_TYPE_member_t asn_MBR_EncryptedCards_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 447 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* cardData at 470 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_EncryptedCards_specs_1 = {
|
||||
sizeof(struct EncryptedCards),
|
||||
@@ -73,10 +73,10 @@ asn_TYPE_descriptor_t asn_DEF_EncryptedCards = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_EncryptedCards_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_EncryptedCards_1,
|
||||
1, /* Elements count */
|
||||
|
||||
+13
-13
@@ -19,20 +19,20 @@
|
||||
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;
|
||||
/* EncryptedCards */
|
||||
typedef struct EncryptedCards {
|
||||
OCTET_STRING_t cardData;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EncryptedCards;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+48
-48
@@ -9,7 +9,7 @@
|
||||
|
||||
static int
|
||||
petitionEndReason_7_constraint(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) {
|
||||
/* Replace with underlying type checker */
|
||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||
@@ -33,99 +33,99 @@ petitionEndReason_7_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
petitionEndReason_7_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%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) {
|
||||
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__);
|
||||
"%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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -169,17 +169,17 @@ asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7 = {
|
||||
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 */
|
||||
/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 */
|
||||
/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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -187,8 +187,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -196,8 +196,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"petitionId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesAgainstKicking),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesAgainstKicking),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -205,8 +205,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"numVotesAgainstKicking"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesInFavourOfKicking),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, numVotesInFavourOfKicking),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -214,8 +214,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"numVotesInFavourOfKicking"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, resultPlayerKicked),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, resultPlayerKicked),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
|
||||
0,
|
||||
&asn_DEF_BOOLEAN,
|
||||
@@ -223,8 +223,8 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"resultPlayerKicked"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionEndReason),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndKickPetitionMessage, petitionEndReason),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||
0,
|
||||
&asn_DEF_petitionEndReason_7,
|
||||
@@ -232,19 +232,19 @@ static asn_TYPE_member_t asn_MBR_EndKickPetitionMessage_1[] = {
|
||||
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 628 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 624 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* petitionId at 625 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* numVotesAgainstKicking at 626 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 }, /* numVotesInFavourOfKicking at 627 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, 0, 0 } /* petitionEndReason at 630 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 4, 0, 0 }, /* resultPlayerKicked at 651 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 3 }, /* gameId at 647 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 2 }, /* petitionId at 648 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 1 }, /* numVotesAgainstKicking at 649 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -3, 0 }, /* numVotesInFavourOfKicking at 650 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, 0, 0 } /* petitionEndReason at 653 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_EndKickPetitionMessage_specs_1 = {
|
||||
sizeof(struct EndKickPetitionMessage),
|
||||
@@ -269,10 +269,10 @@ asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_EndKickPetitionMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_EndKickPetitionMessage_1,
|
||||
6, /* Elements count */
|
||||
|
||||
+27
-26
@@ -22,34 +22,35 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum petitionEndReason {
|
||||
petitionEndReason_petitionEndEnoughVotes = 0,
|
||||
petitionEndReason_petitionEndTooFewPlayers = 1,
|
||||
petitionEndReason_petitionEndPlayerLeft = 2,
|
||||
petitionEndReason_petitionEndTimeout = 3
|
||||
} e_petitionEndReason;
|
||||
/* 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;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_petitionEndReason_7; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndKickPetitionMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@
|
||||
#include "EndOfGameMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, winnerPlayerId),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfGameMessage, winnerPlayerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -25,15 +25,15 @@ static asn_TYPE_member_t asn_MBR_EndOfGameMessage_1[] = {
|
||||
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 560 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* winnerPlayerId at 562 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* gameId at 583 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* winnerPlayerId at 585 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfGameMessage_specs_1 = {
|
||||
sizeof(struct EndOfGameMessage),
|
||||
@@ -58,10 +58,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_EndOfGameMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_EndOfGameMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+14
-14
@@ -19,21 +19,21 @@
|
||||
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;
|
||||
/* EndOfGameMessage */
|
||||
typedef struct EndOfGameMessage {
|
||||
NonZeroId_t gameId;
|
||||
NonZeroId_t winnerPlayerId;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfGameMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+27
-27
@@ -9,56 +9,56 @@
|
||||
|
||||
static int
|
||||
memb_moneyWon_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) {
|
||||
long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
memb_playerMoney_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) {
|
||||
long value;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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__);
|
||||
"%s: constraint failed (%s:%d)",
|
||||
td->name, __FILE__, __LINE__);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -66,8 +66,8 @@ static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"playerId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, moneyWon),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, moneyWon),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -75,8 +75,8 @@ static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"moneyWon"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerMoney),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandHideCards, playerMoney),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NativeInteger,
|
||||
@@ -84,15 +84,15 @@ static asn_TYPE_member_t asn_MBR_EndOfHandHideCards_1[] = {
|
||||
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 547 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* moneyWon at 548 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* playerMoney at 549 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* playerId at 570 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* moneyWon at 571 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 } /* playerMoney at 572 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandHideCards_specs_1 = {
|
||||
sizeof(struct EndOfHandHideCards),
|
||||
@@ -117,10 +117,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_EndOfHandHideCards_tags_1[0]), /* 1 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_EndOfHandHideCards_1,
|
||||
3, /* Elements count */
|
||||
|
||||
+15
-15
@@ -20,22 +20,22 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* EndOfHandHideCards */
|
||||
typedef struct EndOfHandHideCards {
|
||||
NonZeroId_t playerId;
|
||||
long moneyWon;
|
||||
long playerMoney;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} EndOfHandHideCards_t;
|
||||
/* EndOfHandHideCards */
|
||||
typedef struct EndOfHandHideCards {
|
||||
NonZeroId_t playerId;
|
||||
long moneyWon;
|
||||
long playerMoney;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandHideCards;
|
||||
/* 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
|
||||
}
|
||||
|
||||
+15
-15
@@ -8,7 +8,7 @@
|
||||
#include "EndOfHandMessage.h"
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandShowCards),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandShowCards),
|
||||
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_EndOfHandShowCards,
|
||||
@@ -16,8 +16,8 @@ static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"endOfHandShowCards"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandHideCards),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct endOfHandType, choice.endOfHandHideCards),
|
||||
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
|
||||
-1, /* IMPLICIT tag at current level */
|
||||
&asn_DEF_EndOfHandHideCards,
|
||||
@@ -25,11 +25,11 @@ static asn_TYPE_member_t asn_MBR_endOfHandType_3[] = {
|
||||
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 527 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 529 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* endOfHandShowCards at 550 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 552 */
|
||||
};
|
||||
static asn_CHOICE_specifics_t asn_SPC_endOfHandType_specs_3 = {
|
||||
sizeof(struct endOfHandType),
|
||||
@@ -65,7 +65,7 @@ asn_TYPE_descriptor_t asn_DEF_endOfHandType_3 = {
|
||||
};
|
||||
|
||||
static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, gameId),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, gameId),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
|
||||
0,
|
||||
&asn_DEF_NonZeroId,
|
||||
@@ -73,8 +73,8 @@ static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
||||
0, /* PER is not compiled, use -gen-PER */
|
||||
0,
|
||||
"gameId"
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, endOfHandType),
|
||||
},
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct EndOfHandMessage, endOfHandType),
|
||||
-1 /* Ambiguous tag (CHOICE?) */,
|
||||
0,
|
||||
&asn_DEF_endOfHandType_3,
|
||||
@@ -82,16 +82,16 @@ static asn_TYPE_member_t asn_MBR_EndOfHandMessage_1[] = {
|
||||
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 525 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* endOfHandShowCards at 527 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 529 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* gameId at 548 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* endOfHandShowCards at 550 */
|
||||
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* endOfHandHideCards at 552 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_EndOfHandMessage_specs_1 = {
|
||||
sizeof(struct EndOfHandMessage),
|
||||
@@ -116,10 +116,10 @@ asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_EndOfHandMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_EndOfHandMessage_1,
|
||||
2, /* Elements count */
|
||||
|
||||
+34
-33
@@ -22,43 +22,44 @@
|
||||
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;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* 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;
|
||||
} EndOfHandMessage_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandMessage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+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 */
|
||||
|
||||
+18
-18
@@ -20,28 +20,28 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct PlayerResult;
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* 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;
|
||||
} EndOfHandShowCards_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandShowCards;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EndOfHandShowCards;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Vendored
+17
-17
@@ -9,7 +9,7 @@
|
||||
|
||||
static int
|
||||
errorReason_2_constraint(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) {
|
||||
/* Replace with underlying type checker */
|
||||
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints;
|
||||
return td->check_constraints(td, sptr, ctfailcb, app_key);
|
||||
@@ -33,49 +33,49 @@ errorReason_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
|
||||
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 */
|
||||
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
|
||||
}
|
||||
|
||||
static void
|
||||
errorReason_2_free(asn_TYPE_descriptor_t *td,
|
||||
void *struct_ptr, int contents_only) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
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);
|
||||
}
|
||||
@@ -141,17 +141,17 @@ asn_TYPE_descriptor_t asn_DEF_errorReason_2 = {
|
||||
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 */
|
||||
/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 */
|
||||
/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),
|
||||
{ ATF_NOFLAGS, 0, offsetof(struct ErrorMessage, errorReason),
|
||||
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
|
||||
0,
|
||||
&asn_DEF_errorReason_2,
|
||||
@@ -159,14 +159,14 @@ static asn_TYPE_member_t asn_MBR_ErrorMessage_1[] = {
|
||||
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 737 */
|
||||
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* errorReason at 760 */
|
||||
};
|
||||
static asn_SEQUENCE_specifics_t asn_SPC_ErrorMessage_specs_1 = {
|
||||
sizeof(struct ErrorMessage),
|
||||
@@ -191,10 +191,10 @@ asn_TYPE_descriptor_t asn_DEF_ErrorMessage = {
|
||||
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 */
|
||||
/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 */
|
||||
/sizeof(asn_DEF_ErrorMessage_tags_1[0]), /* 2 */
|
||||
0, /* No PER visible constraints */
|
||||
asn_MBR_ErrorMessage_1,
|
||||
1, /* Elements count */
|
||||
|
||||
Vendored
+33
-32
@@ -19,40 +19,41 @@
|
||||
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;
|
||||
/* 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;
|
||||
/* ErrorMessage */
|
||||
typedef struct ErrorMessage {
|
||||
long errorReason;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Implementation */
|
||||
/* extern asn_TYPE_descriptor_t asn_DEF_errorReason_2; // (Use -fall-defs-global to expose) */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ErrorMessage;
|
||||
/* 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
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user