- 23 Jan, 2018 2 commits
-
-
Bi-Ruei, Chiu authored
-
Bi-Ruei, Chiu authored
With previous commit, the following data types are generated in ProtocolIE-Field.h for S1AP's ASN.1 : ``` typedef enum ProtocolIE_Field_6564P0__value_PR { ProtocolIE_Field_6564P0__value_PR_NOTHING, /* No components present */ ProtocolIE_Field_6564P0__value_PR_E_RABToBeSetupItemBearerSUReq } ProtocolIE_Field_6564P0__value_PR; typedef struct ProtocolIE_Field_6564P0 { ProtocolIE_ID_t id; Criticality_t criticality; struct ProtocolIE_Field_6564P0__value { ProtocolIE_Field_6564P0__value_PR present; union ProtocolIE_Field_6564P0__value_u { E_RABToBeSetupItemBearerSUReq_t E_RABToBeSetupItemBearerSUReq; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } ProtocolIE_Field_6564P0_t; ``` It's difficult for developer to recognize to which ASN.1 type they are linked. They all start with 'ProtocolIE_Field_'. It will be error-prone. With this commit, more human comprehensible data types are generated : ``` typedef enum E_RABToBeSetupItemBearerSUReqIEs__value_PR { E_RABToBeSetupItemBearerSUReqIEs__value_PR_NOTHING, /* No components present */ E_RABToBeSetupItemBearerSUReqIEs__value_PR_E_RABToBeSetupItemBearerSUReq } E_RABToBeSetupItemBearerSUReqIEs__value_PR; typedef struct E_RABToBeSetupItemBearerSUReqIEs { ProtocolIE_ID_t id; Criticality_t criticality; struct E_RABToBeSetupItemBearerSUReqIEs__value { E_RABToBeSetupItemBearerSUReqIEs__value_PR present; union E_RABToBeSetupItemBearerSUReqIEs__value_u { E_RABToBeSetupItemBearerSUReq_t E_RABToBeSetupItemBearerSUReq; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } E_RABToBeSetupItemBearerSUReqIEs_t; ``` Developers can understand they are generated from : ``` E-RABToBeSetupItemBearerSUReqIEs S1AP-PROTOCOL-IES ::= { { ID id-E-RABToBeSetupItemBearerSUReq CRITICALITY reject TYPE E-RABToBeSetupItemBearerSUReq PRESENCE mandatory }, ... } ```
-
- 16 Jan, 2018 7 commits
-
-
Bi-Ruei, Chiu authored
-
Bi-Ruei, Chiu authored
-
Bi-Ruei, Chiu authored
For example, E-RABToBeSetupItemCtxtSUReqIEs S1AP-PROTOCOL-IES ::= { { ID id-E-RABToBeSetupItemCtxtSUReq CRITICALITY reject TYPE E-RABToBeSetupItemCtxtSUReq PRESENCE mandatory }, ... } generate : static const asn_ioc_cell_t asn_IOS_E_RABToBeSetupItemCtxtSUReqIEs_1_rows[] = { };
-
Bi-Ruei, Chiu authored
Solve the problem that 'TYPE OCTECT STRING' fails to generate corresponding item. ClassObj S1AP-PROTOCOL-IES ::= { { ID id-eNB-UE-S1AP-ID CRITICALITY reject TYPE ENB-UE-S1AP-ID PRESENCE mandatory}| { ID id-S1-Message CRITICALITY reject TYPE OCTET STRING PRESENCE mandatory}| ... }
-
Bi-Ruei, Chiu authored
Set the key.sequence to eclass's _type_unique_index and increment it in each object parsing call, then set the result back to _type_unique_index field. It can keep a class-wise counter for eash object instantiated. This new method not only solve name duplication when union two information object sets, but also avoid name duplication within multiple instances of this class.
-
Bi-Ruei, Chiu authored
If one item's name already exists in this OPEN TYPE, simply do not add it to expression open_type_choice. It slightly modifies previous commit : dcc822a0.
-
Bi-Ruei, Chiu authored
With this modification, asn1f_parameterization_fork() will fork parameterization if rhs_pspecs and stored rhs_pspecs have different constraints, e.g. expressions parameterized by different VALUESET references. Associated information object tables will be generated accordingly.
-
- 21 Nov, 2017 6 commits
-
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
- 20 Nov, 2017 1 commit
-
-
Lev Walkin authored
-
- 18 Nov, 2017 9 commits
-
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Jon Ringle authored
-
Jon Ringle authored
This file can be included and transformed via automake
-
Jon Ringle authored
The generated Makefile.am.example is not really in the automake style. Renaming it to converter-example.mk to reflect that it is a plain makefile snippet and that it is for creating the converter-example
-
Jon Ringle authored
-
Jon Ringle authored
-
Jon Ringle authored
-
- 15 Nov, 2017 3 commits
-
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
- 14 Nov, 2017 12 commits
-
-
Lev Walkin authored
-
Lev Walkin authored
-
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Lev Walkin authored
-
Bi-Ruei, Chiu authored
-
Bi-Ruei, Chiu authored
-
Lev Walkin authored
-