diff --git a/lte/rrc/asn/CMakeLists.txt b/lte/rrc/asn/CMakeLists.txt index 5b93ec7a4..4d8152362 100755 --- a/lte/rrc/asn/CMakeLists.txt +++ b/lte/rrc/asn/CMakeLists.txt @@ -23,5 +23,6 @@ FILE(GLOB RRC_ASN_SOURCES *.c) INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../include/liblte/rrc/asn/") ADD_LIBRARY(rrc_asn SHARED ${RRC_ASN_SOURCES}) +SET(CMAKE_C_FLAGS "-std=c99 -D_GNU_SOURCE -w") INSTALL(TARGETS rrc_asn DESTINATION ${LIBRARY_DIR}) LIBLTE_SET_PIC(rrc_asn) \ No newline at end of file diff --git a/lte/rrc/asn/SystemInformation-r8-IEs.h b/lte/rrc/asn/SystemInformation-r8-IEs.h index efe1e5a8d..d76f6c783 100644 --- a/lte/rrc/asn/SystemInformation-r8-IEs.h +++ b/lte/rrc/asn/SystemInformation-r8-IEs.h @@ -54,33 +54,35 @@ typedef enum SystemInformation_r8_IEs__sib_TypeAndInfo__Member_PR { /* Forward declarations */ struct SystemInformation_v8a0_IEs; +struct SystemInformation_r8_IEs__sib_TypeAndInfo__Member { + SystemInformation_r8_IEs__sib_TypeAndInfo__Member_PR present; + union SystemInformation_r8_IEs__sib_TypeAndInfo__Member_u { + SystemInformationBlockType2_t sib2; + SystemInformationBlockType3_t sib3; + SystemInformationBlockType4_t sib4; + SystemInformationBlockType5_t sib5; + SystemInformationBlockType6_t sib6; + SystemInformationBlockType7_t sib7; + SystemInformationBlockType8_t sib8; + SystemInformationBlockType9_t sib9; + SystemInformationBlockType10_t sib10; + SystemInformationBlockType11_t sib11; + /* + * This type is extensible, + * possible extensions are below. + */ + SystemInformationBlockType12_r9_t sib12_v920; + SystemInformationBlockType13_r9_t sib13_v920; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +}; + /* SystemInformation-r8-IEs */ typedef struct SystemInformation_r8_IEs { struct SystemInformation_r8_IEs__sib_TypeAndInfo { - A_SEQUENCE_OF(struct SystemInformation_r8_IEs__sib_TypeAndInfo__Member { - SystemInformation_r8_IEs__sib_TypeAndInfo__Member_PR present; - union SystemInformation_r8_IEs__sib_TypeAndInfo__Member_u { - SystemInformationBlockType2_t sib2; - SystemInformationBlockType3_t sib3; - SystemInformationBlockType4_t sib4; - SystemInformationBlockType5_t sib5; - SystemInformationBlockType6_t sib6; - SystemInformationBlockType7_t sib7; - SystemInformationBlockType8_t sib8; - SystemInformationBlockType9_t sib9; - SystemInformationBlockType10_t sib10; - SystemInformationBlockType11_t sib11; - /* - * This type is extensible, - * possible extensions are below. - */ - SystemInformationBlockType12_r9_t sib12_v920; - SystemInformationBlockType13_r9_t sib13_v920; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(struct SystemInformation_r8_IEs__sib_TypeAndInfo__Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx;