diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 50c947792..0325d0e0a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -138,16 +138,20 @@ c++20:
- pwd
script:
- zypper -n dup
- - zypper -n install cmake git gcc-c++ gcc-fortran ninja boost-devel libboost_atomic-devel libboost_filesystem-devel libboost_system-devel libboost_date_time-devel libboost_thread-devel libboost_regex-devel libboost_serialization-devel libboost_program_options-devel libboost_math-devel libboost_numpy-devel libboost_chrono-devel libboost_python3-devel libboost_test-devel libboost_headers-devel libboost_test-devel libboost_random-devel libboost_numpy3-devel libboost_graph-devel python3-PyYAML python3 python3-qt5 python3-lxml log4cpp-devel libpcap-devel libtool automake hdf5-devel libopenssl-devel python3-Mako python3-six protobuf-devel gmp-devel python3-gmpy fftw3-devel python3-pyFFTW llvm-clang blas-devel lapack-devel
+ - zypper -n install cmake git gcc-c++ gcc-fortran ninja boost-devel libboost_atomic-devel libboost_filesystem-devel libboost_system-devel libboost_date_time-devel libboost_thread-devel libboost_regex-devel libboost_serialization-devel libboost_program_options-devel libboost_math-devel libboost_numpy-devel libboost_chrono-devel libboost_python3-devel libboost_test-devel libboost_headers-devel libboost_test-devel libboost_random-devel libboost_numpy3-devel libboost_graph-devel python3-PyYAML python3 python3-qt5 python3-lxml log4cpp-devel libpcap-devel libtool automake hdf5-devel libopenssl-devel python3-Mako python3-six protobuf-devel gmp-devel python3-gmpy fftw3-devel python3-pyFFTW llvm-clang blas-devel lapack-devel bison flex libxml2-devel
+ - mkdir libiio && cd libiio && git clone https://github.com/analogdevicesinc/libiio.git
+ - cd libiio && mkdir build && cd build && cmake .. && make && make install && ldconfig && cd ../../../
+ - mkdir ad9361 && cd ad9361 && git clone https://github.com/analogdevicesinc/libad9361-iio.git
+ - cd libad9361-iio && mkdir build&& cd build && cmake .. && make && make install && ldconfig && cd ../../../
- mkdir gnuradio && cd gnuradio
- git clone --recursive https://github.com/gnuradio/gnuradio
- - cd gnuradio && mkdir build && cd build
+ - cd gnuradio && mkdir build && cd build
- NPROC=$(grep -c ^processor /proc/cpuinfo)
- - cmake -DENABLE_DEFAULT=OFF -DENABLE_GNURADIO_RUNTIME=ON -DENABLE_VOLK=ON -DENABLE_GR_BLOCKS=ON -DENABLE_GR_ANALOG=ON -DENABLE_GR_FFT=ON -DENABLE_GR_FILTER=ON ..
+ - cmake -DENABLE_DEFAULT=OFF -DENABLE_GNURADIO_RUNTIME=ON -DENABLE_VOLK=ON -DENABLE_GR_BLOCKS=ON -DENABLE_GR_ANALOG=ON -DENABLE_GR_FFT=ON -DENABLE_GR_FILTER=ON -DENABLE_GR_IIO=ON ..
- make -j$(($NPROC+1))
- make install
- cd ../../../build
- - cmake -DENABLE_RAW_UDP=ON ..
+ - cmake -DENABLE_RAW_UDP=ON -DENABLE_AD9361=ON ..
- make -j$(($NPROC+1)) VERBOSE=1
- make check
- make install
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b06cf7141..332f34e53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -401,8 +401,8 @@ set(GNSSSDR_PROTOBUF_MIN_VERSION "3.0.0")
################################################################################
set(GNSSSDR_GFLAGS_LOCAL_VERSION "2.2.2")
set(GNSSSDR_GLOG_LOCAL_VERSION "0.4.0")
-set(GNSSSDR_ARMADILLO_LOCAL_VERSION "9.700.x")
-set(GNSSSDR_GTEST_LOCAL_VERSION "1.8.1")
+set(GNSSSDR_ARMADILLO_LOCAL_VERSION "9.800.x")
+set(GNSSSDR_GTEST_LOCAL_VERSION "1.10.0")
set(GNSSSDR_GNSS_SIM_LOCAL_VERSION "master")
set(GNSSSDR_GPSTK_LOCAL_VERSION "2.12")
set(GNSSSDR_MATIO_LOCAL_VERSION "1.5.17")
@@ -2275,11 +2275,17 @@ endif()
# IIO blocks for GNU Radio
# https://github.com/analogdevicesinc/gr-iio
##############################################
-find_package(GRIIO)
-set_package_properties(GRIIO PROPERTIES
- PURPOSE "Used for communication with PlutoSDR and FMCOMMS devices."
- TYPE OPTIONAL
-)
+if(GNURADIO_IIO_FOUND)
+ set(GRIIO_FOUND TRUE)
+ set(GR_IIO_INCLUDE_HAS_GNURADIO TRUE)
+ set(GNURADIO_API_IIO TRUE)
+else()
+ find_package(GRIIO)
+ set_package_properties(GRIIO PROPERTIES
+ PURPOSE "Used for communication with PlutoSDR and FMCOMMS devices."
+ TYPE OPTIONAL
+ )
+endif()
if(ENABLE_PLUTOSDR OR ENABLE_FMCOMMS2)
if(NOT GRIIO_FOUND)
message(STATUS "gnuradio-iio not found, its installation is required.")
diff --git a/README.md b/README.md
index 07a86d4e4..357288d1a 100644
--- a/README.md
+++ b/README.md
@@ -220,9 +220,9 @@ $ sudo apt-get install libblas-dev liblapack-dev # For Debian/Ubuntu/Linux
$ sudo yum install lapack-devel blas-devel # For Fedora/CentOS/RHEL
$ sudo zypper install lapack-devel blas-devel # For OpenSUSE
$ sudo pacman -S blas lapack # For Arch Linux
-$ wget http://sourceforge.net/projects/arma/files/armadillo-9.700.2.tar.xz
-$ tar xvfz armadillo-9.700.2.tar.xz
-$ cd armadillo-9.700.2
+$ wget https://sourceforge.net/projects/arma/files/armadillo-9.700.3.tar.xz
+$ tar xvfz armadillo-9.700.3.tar.xz
+$ cd armadillo-9.700.3
$ cmake .
$ make
$ sudo make install
@@ -261,23 +261,20 @@ $ sudo ldconfig
-#### Build the [Google C++ Testing Framework](https://github.com/google/googletest "Googletest Homepage"), also known as Google Test:
+#### Download the [Google C++ Testing Framework](https://github.com/google/googletest "Googletest Homepage"), also known as Google Test:
~~~~~~
-$ wget https://github.com/google/googletest/archive/release-1.8.1.zip
-$ unzip release-1.8.1.zip
-$ cd googletest-release-1.8.1
-$ cmake -DINSTALL_GTEST=OFF -DBUILD_GMOCK=OFF .
-$ make
+$ wget https://github.com/google/googletest/archive/v1.10.x.zip
+$ unzip v1.10.x.zip
~~~~~~
-Please **DO NOT install** Google Test (do *not* type `sudo make install`). Every user needs to compile his tests using the same compiler flags used to compile the installed Google Test libraries; otherwise he may run into undefined behaviors (i.e. the tests can behave strangely and may even crash for no obvious reasons). The reason is that C++ has this thing called the One-Definition Rule: if two C++ source files contain different definitions of the same class/function/variable, and you link them together, you violate the rule. The linker may or may not catch the error (in many cases it is not required by the C++ standard to catch the violation). If it does not, you get strange run-time behaviors that are unexpected and hard to debug. If you compile Google Test and your test code using different compiler flags, they may see different definitions of the same class/function/variable (e.g. due to the use of `#if` in Google Test). Therefore, for your sanity, we recommend to avoid installing pre-compiled Google Test libraries. Instead, each project should compile Google Test itself such that it can be sure that the same flags are used for both Google Test and the tests. The building system of GNSS-SDR does the compilation and linking of googletest to its own tests; it is only required that you tell the system where the googletest folder that you downloaded resides. Just add to your `$HOME/.bashrc` file the following line:
+Please **DO NOT build or install** Google Test. Every user needs to compile tests using the same compiler flags used to compile the Google Test libraries; otherwise he or she may run into undefined behaviors (_i.e._, the tests can behave strangely and may even crash for no obvious reasons). The explanation is that C++ has the One-Definition Rule: if two C++ source files contain different definitions of the same class/function/variable, and you link them together, you violate the rule. The linker may or may not catch the error (in many cases it is not required by the C++ standard to catch the violation). If it does not, you get strange run-time behaviors that are unexpected and hard to debug. If you compile Google Test and your test code using different compiler flags, they may see different definitions of the same class/function/variable (_e.g._, due to the use of `#if` in Google Test). Therefore, for your sanity, GNSS-SDR does not make use of pre-compiled Google Test libraries. Instead, it compiles Google Test's source code itself, such that it can be sure that the same flags are used for both Google Test and the tests. The building system of GNSS-SDR manages the compilation and linking of Google Test's source code to its own tests; it is only required that you tell the system where the Google Test folder that you downloaded resides. Just type in your terminal (or add it to your `$HOME/.bashrc` file for a permanent solution) the following line:
~~~~~~
-export GTEST_DIR=/home/username/googletest-release-1.8.1/googletest
+export GTEST_DIR=/home/username/googletest-1.10.x
~~~~~~
-changing `/home/username/googletest-release-1.8.1/googletest` by the actual directory where you built googletest.
+changing `/home/username/googletest-1.10.x` by the actual path where you unpacked Google Test. If the CMake script does not find that folder, or the environment variable is not defined, or the source code is not installed by a package, then it will download a fresh copy of the Google Test source code and will compile and link it for you.
diff --git a/cmake/Modules/FindGNURADIO.cmake b/cmake/Modules/FindGNURADIO.cmake
index 5a9ef650c..25d58b451 100644
--- a/cmake/Modules/FindGNURADIO.cmake
+++ b/cmake/Modules/FindGNURADIO.cmake
@@ -76,7 +76,6 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
PATHS /usr/include
/usr/local/include
/opt/local/include
- ${GNURADIO_INSTALL_PREFIX}/include
${GNURADIO_ROOT}/include
$ENV{GNURADIO_ROOT}/include
$ENV{GNURADIO_RUNTIME_DIR}/include
@@ -118,7 +117,6 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
/usr/local/lib
/usr/local/lib64
/opt/local/lib
- ${GNURADIO_INSTALL_PREFIX}/lib
${GNURADIO_ROOT}/lib
$ENV{GNURADIO_ROOT}/lib
${GNURADIO_ROOT}/lib64
@@ -277,6 +275,99 @@ else()
)
endif()
+
+# Search for IIO component
+if(GNURADIO_VERSION VERSION_GREATER 3.8.99)
+ pkg_check_modules(PC_GNURADIO_IIO QUIET gnuradio-iio)
+ # look for include files
+ message(STATUS "Checking for GNU Radio Module: IIO")
+ find_path(GNURADIO_IIO_INCLUDE_DIRS
+ NAMES gnuradio/iio/api.h
+ HINTS ${PC_GNURADIO_IIO_INCLUDEDIR}
+ PATHS /usr/include
+ /usr/local/include
+ /opt/local/include
+ ${GNURADIO_INSTALL_PREFIX}/include
+ ${GNURADIO_ROOT}/include
+ $ENV{GNURADIO_ROOT}/include
+ $ENV{GNURADIO_RUNTIME_DIR}/include
+ ${CMAKE_INSTALL_PREFIX}/include
+ ${GNURADIO_INSTALL_PREFIX}/include
+ )
+
+ # look for libs
+ find_library(GNURADIO_IIO_LIBRARIES
+ NAMES gnuradio-iio gnuradio-iio-${GNURADIO_VERSION}
+ HINTS ${PC_GNURADIO_IIO_LIBDIR}
+ PATHS /usr/lib
+ /usr/lib64
+ /usr/lib/x86_64-linux-gnu
+ /usr/lib/i386-linux-gnu
+ /usr/lib/arm-linux-gnueabihf
+ /usr/lib/arm-linux-gnueabi
+ /usr/lib/aarch64-linux-gnu
+ /usr/lib/mipsel-linux-gnu
+ /usr/lib/mips-linux-gnu
+ /usr/lib/mips64el-linux-gnuabi64
+ /usr/lib/powerpc-linux-gnu
+ /usr/lib/powerpc64-linux-gnu
+ /usr/lib/powerpc64le-linux-gnu
+ /usr/lib/powerpc-linux-gnuspe
+ /usr/lib/hppa-linux-gnu
+ /usr/lib/s390x-linux-gnu
+ /usr/lib/i386-gnu
+ /usr/lib/hppa-linux-gnu
+ /usr/lib/x86_64-kfreebsd-gnu
+ /usr/lib/i386-kfreebsd-gnu
+ /usr/lib/m68k-linux-gnu
+ /usr/lib/sh4-linux-gnu
+ /usr/lib/sparc64-linux-gnu
+ /usr/lib/x86_64-linux-gnux32
+ /usr/lib/alpha-linux-gnu
+ /usr/lib/riscv64-linux-gnu
+ /usr/local/lib
+ /usr/local/lib64
+ /opt/local/lib
+ ${GNURADIO_ROOT}/lib
+ $ENV{GNURADIO_ROOT}/lib
+ ${GNURADIO_ROOT}/lib64
+ $ENV{GNURADIO_ROOT}/lib64
+ $ENV{GNURADIO_RUNTIME_DIR}/lib
+ ${CMAKE_INSTALL_PREFIX}/lib
+ ${CMAKE_INSTALL_PREFIX}/lib64
+ ${GNURADIO_INSTALL_PREFIX}/lib
+ ${GNURADIO_INSTALL_PREFIX}/lib64
+ )
+
+ if(GNURADIO_IIO_LIBRARIES)
+ message(STATUS " * INCLUDES=${GNURADIO_IIO_INCLUDE_DIRS}")
+ message(STATUS " * LIBS=${GNURADIO_IIO_LIBRARIES}")
+ endif()
+ find_package_handle_standard_args(GNURADIO_IIO DEFAULT_MSG GNURADIO_IIO_LIBRARIES GNURADIO_IIO_INCLUDE_DIRS)
+
+ if(GNURADIO_IIO_FOUND)
+ message(STATUS "GNURADIO_IIO_FOUND = ${GNURADIO_IIO_FOUND}")
+ # append to all includes and libs list
+ set(GNURADIO_ALL_INCLUDE_DIRS ${GNURADIO_ALL_INCLUDE_DIRS} ${GNURADIO_IIO_INCLUDE_DIRS})
+ set(GNURADIO_ALL_LIBRARIES ${GNURADIO_ALL_LIBRARIES} ${GNURADIO_IIO_LIBRARIES})
+
+ # Create imported target
+ if(NOT TARGET Gnuradio::iio)
+ add_library(Gnuradio::iio SHARED IMPORTED)
+ set(GNURADIO_LIBRARY ${GNURADIO_IIO_LIBRARIES})
+ list(GET GNURADIO_LIBRARY 0 FIRST_DIR)
+ get_filename_component(GNURADIO_DIR ${FIRST_DIR} ABSOLUTE)
+ set_target_properties(Gnuradio::iio PROPERTIES
+ IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
+ IMPORTED_LOCATION "${GNURADIO_DIR}"
+ INTERFACE_INCLUDE_DIRECTORIES "${GNURADIO_IIO_INCLUDE_DIRS}"
+ INTERFACE_LINK_LIBRARIES "${GNURADIO_LIBRARY}"
+ )
+ endif()
+ endif()
+endif()
+
+
set_package_properties(GNURADIO PROPERTIES
URL "https://www.gnuradio.org/"
)
diff --git a/conf/gnss-sdr_GPS_L1_rtl_tcp_realtime.conf b/conf/gnss-sdr_GPS_L1_rtl_tcp_realtime.conf
index 4b91a9344..9b8270f9b 100644
--- a/conf/gnss-sdr_GPS_L1_rtl_tcp_realtime.conf
+++ b/conf/gnss-sdr_GPS_L1_rtl_tcp_realtime.conf
@@ -97,7 +97,7 @@ Channel.signal=1C
;######### ACQUISITION GLOBAL CONFIG ############
Acquisition_1C.implementation=GPS_L1_CA_PCPS_Acquisition_Fine_Doppler
Acquisition_1C.item_type=gr_complex
-Acquisition_1C.coherent_integration_time_ms =1
+Acquisition_1C.coherent_integration_time_ms=1
Acquisition_1C.threshold=0.015
;Acquisition_1C.pfa=0.0001
Acquisition_1C.doppler_max=10000
diff --git a/docs/doxygen/Doxyfile.in b/docs/doxygen/Doxyfile.in
index 28b3c9d2a..c5d094743 100644
--- a/docs/doxygen/Doxyfile.in
+++ b/docs/doxygen/Doxyfile.in
@@ -654,7 +654,7 @@ EXCLUDE = @top_srcdir@/docs/html \
@top_srcdir@/cmake \
@top_srcdir@/data \
@top_srcdir@/src/core/libs/supl \
- @top_srcdir@/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr \
+ @top_srcdir@/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr \
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
diff --git a/src/algorithms/acquisition/libs/fpga_acquisition.h b/src/algorithms/acquisition/libs/fpga_acquisition.h
index e7097b11d..248f10f88 100644
--- a/src/algorithms/acquisition/libs/fpga_acquisition.h
+++ b/src/algorithms/acquisition/libs/fpga_acquisition.h
@@ -46,8 +46,8 @@ class Fpga_Acquisition
{
public:
/*!
- * \brief Constructor
- */
+ * \brief Constructor
+ */
Fpga_Acquisition(
std::string device_name,
uint32_t nsamples,
diff --git a/src/algorithms/libs/opencl/cl.hpp b/src/algorithms/libs/opencl/cl.hpp
index c6bfebc45..72f82d094 100644
--- a/src/algorithms/libs/opencl/cl.hpp
+++ b/src/algorithms/libs/opencl/cl.hpp
@@ -40,7 +40,7 @@
*
* cl
* cl_ext_device_fission
- * #define USE_CL_DEVICE_FISSION
+ * #define USE_CL_DEVICE_FISSION
*/
/*! \mainpage
diff --git a/src/algorithms/signal_source/adapters/CMakeLists.txt b/src/algorithms/signal_source/adapters/CMakeLists.txt
index fd3240b0b..c279601dd 100644
--- a/src/algorithms/signal_source/adapters/CMakeLists.txt
+++ b/src/algorithms/signal_source/adapters/CMakeLists.txt
@@ -217,6 +217,16 @@ if(ENABLE_PLUTOSDR OR ENABLE_FMCOMMS2)
PUBLIC -DGRIIO_INCLUDE_HAS_GNURADIO=1
)
endif()
+ if(GNURADIO_API_IIO)
+ target_compile_definitions(signal_source_adapters
+ PUBLIC -DGNURADIO_API_IIO=1
+ )
+ endif()
+ target_link_libraries(signal_source_adapters
+ PUBLIC
+ Gnuradio::iio
+ Boost::chrono
+ )
endif()
if(ENABLE_CLANG_TIDY)
diff --git a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc
index 2a056d367..c2cc90137 100644
--- a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc
+++ b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc
@@ -342,6 +342,34 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(ConfigurationInterface *configura
}
if (switch_position == 2) // Real-time via AD9361
{
+ // some basic checks
+ if ((rf_port_select_ != "A_BALANCED") and (rf_port_select_ != "B_BALANCED") and (rf_port_select_ != "A_N") and (rf_port_select_ != "B_N") and (rf_port_select_ != "B_P") and (rf_port_select_ != "C_N") and (rf_port_select_ != "C_P") and (rf_port_select_ != "TX_MONITOR1") and (rf_port_select_ != "TX_MONITOR2") and (rf_port_select_ != "TX_MONITOR1_2"))
+ {
+ std::cout << "Configuration parameter rf_port_select should take one of these values:" << std::endl;
+ std::cout << " A_BALANCED, B_BALANCED, A_N, B_N, B_P, C_N, C_P, TX_MONITOR1, TX_MONITOR2, TX_MONITOR1_2" << std::endl;
+ std::cout << "Error: provided value rf_port_select=" << rf_port_select_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value rf_port_select=A_BALANCED" << std::endl;
+ rf_port_select_ = std::string("A_BALANCED");
+ }
+
+ if ((gain_mode_rx1_ != "manual") and (gain_mode_rx1_ != "slow_attack") and (gain_mode_rx1_ != "fast_attack") and (gain_mode_rx1_ != "hybrid"))
+ {
+ std::cout << "Configuration parameter gain_mode_rx1 should take one of these values:" << std::endl;
+ std::cout << " manual, slow_attack, fast_attack, hybrid" << std::endl;
+ std::cout << "Error: provided value gain_mode_rx1=" << gain_mode_rx1_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value gain_mode_rx1=manual" << std::endl;
+ gain_mode_rx1_ = std::string("manual");
+ }
+
+ if ((gain_mode_rx2_ != "manual") and (gain_mode_rx2_ != "slow_attack") and (gain_mode_rx2_ != "fast_attack") and (gain_mode_rx2_ != "hybrid"))
+ {
+ std::cout << "Configuration parameter gain_mode_rx2 should take one of these values:" << std::endl;
+ std::cout << " manual, slow_attack, fast_attack, hybrid" << std::endl;
+ std::cout << "Error: provided value gain_mode_rx2=" << gain_mode_rx2_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value gain_mode_rx2=manual" << std::endl;
+ gain_mode_rx2_ = std::string("manual");
+ }
+
std::cout << "LO frequency : " << freq_ << " Hz" << std::endl;
config_ad9361_rx_local(bandwidth_,
sample_rate_,
@@ -350,7 +378,10 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(ConfigurationInterface *configura
gain_mode_rx1_,
gain_mode_rx2_,
rf_gain_rx1_,
- rf_gain_rx2_);
+ rf_gain_rx2_,
+ quadrature_,
+ rf_dc_,
+ bb_dc_);
// LOCAL OSCILLATOR DDS GENERATOR FOR DUAL FREQUENCY OPERATION
if (enable_dds_lo_ == true)
diff --git a/src/algorithms/signal_source/adapters/fmcomms2_signal_source.cc b/src/algorithms/signal_source/adapters/fmcomms2_signal_source.cc
index 144ea022f..3a83bfe31 100644
--- a/src/algorithms/signal_source/adapters/fmcomms2_signal_source.cc
+++ b/src/algorithms/signal_source/adapters/fmcomms2_signal_source.cc
@@ -64,6 +64,10 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
rf_gain_rx2_ = configuration->property(role + ".gain_rx2", 64.0);
rf_port_select_ = configuration->property(role + ".rf_port_select", std::string("A_BALANCED"));
filter_file_ = configuration->property(role + ".filter_file", std::string(""));
+ filter_source_ = configuration->property(role + ".filter_source", std::string("Off"));
+ filter_filename_ = configuration->property(role + ".filter_filename", std::string(""));
+ Fpass_ = configuration->property(role + ".Fpass", 0.0);
+ Fstop_ = configuration->property(role + ".Fstop", 0.0);
filter_auto_ = configuration->property(role + ".filter_auto", true);
item_type_ = configuration->property(role + ".item_type", default_item_type);
samples_ = configuration->property(role + ".samples", 0);
@@ -80,6 +84,46 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
item_size_ = sizeof(gr_complex);
+ // some basic checks
+ if ((rf_port_select_ != "A_BALANCED") and (rf_port_select_ != "B_BALANCED") and (rf_port_select_ != "A_N") and (rf_port_select_ != "B_N") and (rf_port_select_ != "B_P") and (rf_port_select_ != "C_N") and (rf_port_select_ != "C_P") and (rf_port_select_ != "TX_MONITOR1") and (rf_port_select_ != "TX_MONITOR2") and (rf_port_select_ != "TX_MONITOR1_2"))
+ {
+ std::cout << "Configuration parameter rf_port_select should take one of these values:" << std::endl;
+ std::cout << " A_BALANCED, B_BALANCED, A_N, B_N, B_P, C_N, C_P, TX_MONITOR1, TX_MONITOR2, TX_MONITOR1_2" << std::endl;
+ std::cout << "Error: provided value rf_port_select=" << rf_port_select_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value rf_port_select=A_BALANCED" << std::endl;
+ rf_port_select_ = std::string("A_BALANCED");
+ }
+
+ if ((gain_mode_rx1_ != "manual") and (gain_mode_rx1_ != "slow_attack") and (gain_mode_rx1_ != "fast_attack") and (gain_mode_rx1_ != "hybrid"))
+ {
+ std::cout << "Configuration parameter gain_mode_rx1 should take one of these values:" << std::endl;
+ std::cout << " manual, slow_attack, fast_attack, hybrid" << std::endl;
+ std::cout << "Error: provided value gain_mode_rx1=" << gain_mode_rx1_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value gain_mode_rx1=manual" << std::endl;
+ gain_mode_rx1_ = std::string("manual");
+ }
+
+ if ((gain_mode_rx2_ != "manual") and (gain_mode_rx2_ != "slow_attack") and (gain_mode_rx2_ != "fast_attack") and (gain_mode_rx2_ != "hybrid"))
+ {
+ std::cout << "Configuration parameter gain_mode_rx2 should take one of these values:" << std::endl;
+ std::cout << " manual, slow_attack, fast_attack, hybrid" << std::endl;
+ std::cout << "Error: provided value gain_mode_rx2=" << gain_mode_rx2_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value gain_mode_rx2=manual" << std::endl;
+ gain_mode_rx2_ = std::string("manual");
+ }
+
+ if ((filter_source_ != "Off") and (filter_source_ != "Auto") and (filter_source_ != "File") and (filter_source_ != "Design"))
+ {
+ std::cout << "Configuration parameter filter_source should take one of these values:" << std::endl;
+ std::cout << " Off: Disable filter" << std::endl;
+ std::cout << " Auto: Use auto-generated filters" << std::endl;
+ std::cout << " File: User-provided filter in filter_filename parameter" << std::endl;
+ std::cout << " Design: Create filter from Fpass, Fstop, sampling_frequency and bandwidth parameters" << std::endl;
+ std::cout << "Error: provided value filter_source=" << filter_source_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value filter_source=Off" << std::endl;
+ filter_source_ = std::string("Off");
+ }
+
std::cout << "device address: " << uri_ << std::endl;
std::cout << "LO frequency : " << freq_ << " Hz" << std::endl;
std::cout << "sample rate: " << sample_rate_ << " Hz" << std::endl;
@@ -94,6 +138,17 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
}
else
{
+#if GNURADIO_API_IIO
+ fmcomms2_source_f32c_ = gr::iio::fmcomms2_source_f32c::make(
+ uri_.c_str(), freq_, sample_rate_,
+ bandwidth_,
+ rx1_en_, rx2_en_,
+ buffer_size_, quadrature_, rf_dc_,
+ bb_dc_, gain_mode_rx1_.c_str(), rf_gain_rx1_,
+ gain_mode_rx2_.c_str(), rf_gain_rx2_,
+ rf_port_select_.c_str(), filter_source_.c_str(),
+ filter_filename_.c_str(), Fpass_, Fstop_);
+#else
fmcomms2_source_f32c_ = gr::iio::fmcomms2_source_f32c::make(
uri_.c_str(), freq_, sample_rate_,
bandwidth_,
@@ -103,7 +158,7 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
gain_mode_rx2_.c_str(), rf_gain_rx2_,
rf_port_select_.c_str(), filter_file_.c_str(),
filter_auto_);
-
+#endif
// configure LO
if (enable_dds_lo_ == true)
{
@@ -126,6 +181,17 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
}
else
{
+#if GNURADIO_API_IIO
+ fmcomms2_source_f32c_ = gr::iio::fmcomms2_source_f32c::make(
+ uri_.c_str(), freq_, sample_rate_,
+ bandwidth_,
+ rx1_en_, rx2_en_,
+ buffer_size_, quadrature_, rf_dc_,
+ bb_dc_, gain_mode_rx1_.c_str(), rf_gain_rx1_,
+ gain_mode_rx2_.c_str(), rf_gain_rx2_,
+ rf_port_select_.c_str(), filter_source_.c_str(),
+ filter_filename_.c_str(), Fpass_, Fstop_);
+#else
fmcomms2_source_f32c_ = gr::iio::fmcomms2_source_f32c::make(
uri_.c_str(), freq_, sample_rate_,
bandwidth_,
@@ -135,6 +201,7 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
gain_mode_rx2_.c_str(), rf_gain_rx2_,
rf_port_select_.c_str(), filter_file_.c_str(),
filter_auto_);
+#endif
// configure LO
if (enable_dds_lo_ == true)
{
diff --git a/src/algorithms/signal_source/adapters/fmcomms2_signal_source.h b/src/algorithms/signal_source/adapters/fmcomms2_signal_source.h
index a2f008df0..b4d2c19f7 100644
--- a/src/algorithms/signal_source/adapters/fmcomms2_signal_source.h
+++ b/src/algorithms/signal_source/adapters/fmcomms2_signal_source.h
@@ -102,6 +102,10 @@ private:
std::string rf_port_select_;
std::string filter_file_;
bool filter_auto_;
+ std::string filter_source_;
+ std::string filter_filename_;
+ float Fpass_;
+ float Fstop_;
// DDS configuration for LO generation for external mixer
bool enable_dds_lo_;
diff --git a/src/algorithms/signal_source/adapters/plutosdr_signal_source.cc b/src/algorithms/signal_source/adapters/plutosdr_signal_source.cc
index 902d6db12..c3bcf4619 100644
--- a/src/algorithms/signal_source/adapters/plutosdr_signal_source.cc
+++ b/src/algorithms/signal_source/adapters/plutosdr_signal_source.cc
@@ -55,7 +55,10 @@ PlutosdrSignalSource::PlutosdrSignalSource(ConfigurationInterface* configuration
rf_gain_ = configuration->property(role + ".gain", 50.0);
filter_file_ = configuration->property(role + ".filter_file", std::string(""));
filter_auto_ = configuration->property(role + ".filter_auto", true);
-
+ filter_source_ = configuration->property(role + ".filter_source", std::string("Off"));
+ filter_filename_ = configuration->property(role + ".filter_filename", std::string(""));
+ Fpass_ = configuration->property(role + ".Fpass", 0.0);
+ Fstop_ = configuration->property(role + ".Fstop", 0.0);
item_type_ = configuration->property(role + ".item_type", default_item_type);
samples_ = configuration->property(role + ".samples", 0);
dump_ = configuration->property(role + ".dump", false);
@@ -67,6 +70,16 @@ PlutosdrSignalSource::PlutosdrSignalSource(ConfigurationInterface* configuration
LOG(FATAL) << "Configuration error: item_type must be gr_complex!";
}
+ // basic check
+ if ((gain_mode_ != "manual") and (gain_mode_ != "slow_attack") and (gain_mode_ != "fast_attack") and (gain_mode_ != "hybrid"))
+ {
+ std::cout << "Configuration parameter gain_mode_rx1 should take one of these values:" << std::endl;
+ std::cout << " manual, slow_attack, fast_attack, hybrid" << std::endl;
+ std::cout << "Error: provided value gain_mode=" << gain_mode_ << " is not among valid values" << std::endl;
+ std::cout << " This parameter has been set to its default value gain_mode=manual" << std::endl;
+ gain_mode_ = std::string("manual");
+ }
+
item_size_ = sizeof(gr_complex);
std::cout << "device address: " << uri_ << std::endl;
@@ -75,10 +88,16 @@ PlutosdrSignalSource::PlutosdrSignalSource(ConfigurationInterface* configuration
std::cout << "gain mode: " << gain_mode_ << std::endl;
std::cout << "item type: " << item_type_ << std::endl;
+#if GNURADIO_API_IIO
+ plutosdr_source_ = gr::iio::pluto_source::make(uri_, freq_, sample_rate_,
+ bandwidth_, buffer_size_, quadrature_, rf_dc_, bb_dc_,
+ gain_mode_.c_str(), rf_gain_, filter_source_.c_str(),
+ filter_filename_.c_str(), Fpass_, Fstop_);
+#else
plutosdr_source_ = gr::iio::pluto_source::make(uri_, freq_, sample_rate_,
bandwidth_, buffer_size_, quadrature_, rf_dc_, bb_dc_,
gain_mode_.c_str(), rf_gain_, filter_file_.c_str(), filter_auto_);
-
+#endif
if (samples_ != 0)
{
DLOG(INFO) << "Send STOP signal after " << samples_ << " samples";
diff --git a/src/algorithms/signal_source/adapters/plutosdr_signal_source.h b/src/algorithms/signal_source/adapters/plutosdr_signal_source.h
index de89a0a08..7c0f6a89d 100644
--- a/src/algorithms/signal_source/adapters/plutosdr_signal_source.h
+++ b/src/algorithms/signal_source/adapters/plutosdr_signal_source.h
@@ -97,6 +97,10 @@ private:
double rf_gain_;
std::string filter_file_;
bool filter_auto_;
+ std::string filter_source_;
+ std::string filter_filename_;
+ float Fpass_;
+ float Fstop_;
unsigned int in_stream_;
unsigned int out_stream_;
diff --git a/src/algorithms/signal_source/libs/CMakeLists.txt b/src/algorithms/signal_source/libs/CMakeLists.txt
index 75fd8eb7a..98fdbf7cd 100644
--- a/src/algorithms/signal_source/libs/CMakeLists.txt
+++ b/src/algorithms/signal_source/libs/CMakeLists.txt
@@ -63,16 +63,6 @@ target_include_directories(signal_source_libs
${CMAKE_SOURCE_DIR}/src/core/receiver
)
-if(ENABLE_PLUTOSDR OR ENABLE_FMCOMMS2)
- target_link_libraries(signal_source_libs
- PUBLIC
- Gnuradio::iio
- PRIVATE
- Gnuradio::analog
- Iio::iio
- )
-endif()
-
if(ENABLE_FMCOMMS2 OR ENABLE_AD9361)
target_link_libraries(signal_source_libs
PUBLIC
diff --git a/src/algorithms/signal_source/libs/ad9361_manager.cc b/src/algorithms/signal_source/libs/ad9361_manager.cc
index 22a1f26a3..7a81e6617 100644
--- a/src/algorithms/signal_source/libs/ad9361_manager.cc
+++ b/src/algorithms/signal_source/libs/ad9361_manager.cc
@@ -183,7 +183,10 @@ bool config_ad9361_rx_local(uint64_t bandwidth_,
const std::string &gain_mode_rx1_,
const std::string &gain_mode_rx2_,
double rf_gain_rx1_,
- double rf_gain_rx2_)
+ double rf_gain_rx2_,
+ bool quadrature_,
+ bool rfdc_,
+ bool bbdc_)
{
// RX stream config
@@ -264,6 +267,21 @@ bool config_ad9361_rx_local(uint64_t bandwidth_,
{
std::cout << "Failed to set calib_mode: " << ret << std::endl;
}
+ ret = iio_device_attr_write_bool(ad9361_phy, "in_voltage_quadrature_tracking_en", quadrature_);
+ if (ret < 0)
+ {
+ std::cout << "Failed to set in_voltage_quadrature_tracking_en: " << ret << std::endl;
+ }
+ ret = iio_device_attr_write_bool(ad9361_phy, "in_voltage_rf_dc_offset_tracking_en", rfdc_);
+ if (ret < 0)
+ {
+ std::cout << "Failed to set in_voltage_rf_dc_offset_tracking_en: " << ret << std::endl;
+ }
+ ret = iio_device_attr_write_bool(ad9361_phy, "in_voltage_bb_dc_offset_tracking_en", bbdc_);
+ if (ret < 0)
+ {
+ std::cout << "Failed to set in_voltage_bb_dc_offset_tracking_en: " << ret << std::endl;
+ }
ret = iio_device_attr_write(ad9361_phy, "in_voltage0_gain_control_mode", gain_mode_rx1_.c_str());
if (ret < 0)
{
@@ -299,7 +317,10 @@ bool config_ad9361_rx_remote(const std::string &remote_host,
const std::string &gain_mode_rx1_,
const std::string &gain_mode_rx2_,
double rf_gain_rx1_,
- double rf_gain_rx2_)
+ double rf_gain_rx2_,
+ bool quadrature_,
+ bool rfdc_,
+ bool bbdc_)
{
// RX stream config
// Stream configurations
@@ -379,6 +400,21 @@ bool config_ad9361_rx_remote(const std::string &remote_host,
{
std::cout << "Failed to set calib_mode: " << ret << std::endl;
}
+ ret = iio_device_attr_write_bool(ad9361_phy, "in_voltage_quadrature_tracking_en", quadrature_);
+ if (ret < 0)
+ {
+ std::cout << "Failed to set in_voltage_quadrature_tracking_en: " << ret << std::endl;
+ }
+ ret = iio_device_attr_write_bool(ad9361_phy, "in_voltage_rf_dc_offset_tracking_en", rfdc_);
+ if (ret < 0)
+ {
+ std::cout << "Failed to set in_voltage_rf_dc_offset_tracking_en: " << ret << std::endl;
+ }
+ ret = iio_device_attr_write_bool(ad9361_phy, "in_voltage_bb_dc_offset_tracking_en", bbdc_);
+ if (ret < 0)
+ {
+ std::cout << "Failed to set in_voltage_bb_dc_offset_tracking_en: " << ret << std::endl;
+ }
ret = iio_device_attr_write(ad9361_phy, "in_voltage0_gain_control_mode", gain_mode_rx1_.c_str());
if (ret < 0)
{
diff --git a/src/algorithms/signal_source/libs/ad9361_manager.h b/src/algorithms/signal_source/libs/ad9361_manager.h
index 629a30526..50ab56d3b 100644
--- a/src/algorithms/signal_source/libs/ad9361_manager.h
+++ b/src/algorithms/signal_source/libs/ad9361_manager.h
@@ -92,7 +92,10 @@ bool config_ad9361_rx_local(uint64_t bandwidth_,
const std::string &gain_mode_rx1_,
const std::string &gain_mode_rx2_,
double rf_gain_rx1_,
- double rf_gain_rx2_);
+ double rf_gain_rx2_,
+ bool quadrature_,
+ bool rfdc_,
+ bool bbdc_);
bool config_ad9361_rx_remote(const std::string &remote_host,
uint64_t bandwidth_,
@@ -102,7 +105,10 @@ bool config_ad9361_rx_remote(const std::string &remote_host,
const std::string &gain_mode_rx1_,
const std::string &gain_mode_rx2_,
double rf_gain_rx1_,
- double rf_gain_rx2_);
+ double rf_gain_rx2_,
+ bool quadrature_,
+ bool rfdc_,
+ bool bbdc_);
bool config_ad9361_lo_local(uint64_t bandwidth_,
uint64_t sample_rate_,
diff --git a/src/algorithms/signal_source/libs/fpga_switch.h b/src/algorithms/signal_source/libs/fpga_switch.h
index 442c97a1a..f2f9bf1b3 100644
--- a/src/algorithms/signal_source/libs/fpga_switch.h
+++ b/src/algorithms/signal_source/libs/fpga_switch.h
@@ -2,7 +2,7 @@
* \file fpga_switch.h
* \brief Switch that connects the HW accelerator queues to the analog front end or the DMA.
* \authors
- * - Marc Majoral, 2019. mmajoral(at)cttc.cat
+ *
- Marc Majoral, 2019. mmajoral(at)cttc.cat
*
- Javier Arribas, 2016. jarribas(at)cttc.es
*
*
@@ -47,8 +47,8 @@ class Fpga_Switch
{
public:
/*!
- * \brief Constructor
- */
+ * \brief Constructor
+ */
explicit Fpga_Switch(const std::string& device_name);
/*!
diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h
index ba6c887a1..1dc78d85f 100644
--- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h
+++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.h
@@ -65,13 +65,13 @@ class dll_pll_veml_tracking_fpga : public gr::block
{
public:
/*!
- * \brief Destructor
- */
+ * \brief Destructor
+ */
~dll_pll_veml_tracking_fpga();
/*!
- * \brief Set the channel number and configure some multicorrelator parameters
- */
+ * \brief Set the channel number and configure some multicorrelator parameters
+ */
void set_channel(uint32_t channel);
/*!
@@ -85,24 +85,24 @@ public:
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro);
/*!
- * \brief This function starts the tracking process
- */
+ * \brief This function starts the tracking process
+ */
void start_tracking();
/*!
- * \brief This function sets a flag that makes general_work to stop in order to finish the tracking process.
- */
+ * \brief This function sets a flag that makes general_work to stop in order to finish the tracking process.
+ */
void stop_tracking();
/*!
- * \brief General Work
- */
+ * \brief General Work
+ */
int general_work(int noutput_items, gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
/*!
- * \brief This function disables the HW multicorrelator in the FPGA in order to stop the tracking process
- */
+ * \brief This function disables the HW multicorrelator in the FPGA in order to stop the tracking process
+ */
void reset();
private:
diff --git a/src/algorithms/tracking/libs/cuda_multicorrelator.cu b/src/algorithms/tracking/libs/cuda_multicorrelator.cu
index acaad7bd4..11e341ada 100644
--- a/src/algorithms/tracking/libs/cuda_multicorrelator.cu
+++ b/src/algorithms/tracking/libs/cuda_multicorrelator.cu
@@ -140,7 +140,7 @@ bool cuda_multicorrelator::init_cuda_integrated_resampler(
int n_correlators)
{
// use command-line specified CUDA device, otherwise use device with highest Gflops/s
- // findCudaDevice(argc, (const char **)argv);
+ // findCudaDevice(argc, (const char **)argv);
cudaDeviceProp prop;
int num_devices, device;
cudaGetDeviceCount(&num_devices);
@@ -208,8 +208,8 @@ bool cuda_multicorrelator::init_cuda_integrated_resampler(
//******** CudaMalloc version ***********
// input signal GPU memory (can be mapped to CPU memory in shared memory devices!)
- // cudaMalloc((void **)&d_sig_in, size);
- // cudaMemset(d_sig_in,0,size);
+ // cudaMalloc((void **)&d_sig_in, size);
+ // cudaMemset(d_sig_in,0,size);
// Doppler-free signal (internal GPU memory)
cudaMalloc((void **)&d_sig_doppler_wiped, size);
@@ -249,20 +249,20 @@ bool cuda_multicorrelator::set_local_code_and_taps(
{
cudaSetDevice(selected_gps_device);
//********* ZERO COPY VERSION ************
- // // Get device pointer from host memory. No allocation or memcpy
- // cudaError_t code;
- // // local code CPU -> GPU copy memory
- // code=cudaHostGetDevicePointer((void **)&d_local_codes_in, (void *) local_codes_in, 0);
- // if (code!=cudaSuccess)
- // {
- // printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
- // }
- // // Correlator shifts vector CPU -> GPU copy memory (fractional chip shifts are allowed!)
- // code=cudaHostGetDevicePointer((void **)&d_shifts_chips, (void *) shifts_chips, 0);
- // if (code!=cudaSuccess)
- // {
- // printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
- // }
+ // // Get device pointer from host memory. No allocation or memcpy
+ // cudaError_t code;
+ // // local code CPU -> GPU copy memory
+ // code=cudaHostGetDevicePointer((void **)&d_local_codes_in, (void *) local_codes_in, 0);
+ // if (code!=cudaSuccess)
+ // {
+ // printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
+ // }
+ // // Correlator shifts vector CPU -> GPU copy memory (fractional chip shifts are allowed!)
+ // code=cudaHostGetDevicePointer((void **)&d_shifts_chips, (void *) shifts_chips, 0);
+ // if (code!=cudaSuccess)
+ // {
+ // printf("cuda cudaHostGetDevicePointer error in set_local_code_and_taps \r\n");
+ // }
//******** CudaMalloc version ***********
//local code CPU -> GPU copy memory
diff --git a/src/algorithms/tracking/libs/fpga_multicorrelator.h b/src/algorithms/tracking/libs/fpga_multicorrelator.h
index 476d3d922..af3f13e4e 100644
--- a/src/algorithms/tracking/libs/fpga_multicorrelator.h
+++ b/src/algorithms/tracking/libs/fpga_multicorrelator.h
@@ -2,7 +2,7 @@
* \file fpga_multicorrelator.h
* \brief FPGA vector correlator class
* \authors
- * - Marc Majoral, 2019. mmajoral(at)cttc.cat
+ *
- Marc Majoral, 2019. mmajoral(at)cttc.cat
*
- Javier Arribas, 2019. jarribas(at)cttc.es
*
*
@@ -49,8 +49,8 @@ class Fpga_Multicorrelator_8sc
{
public:
/*!
- * \brief Constructor
- */
+ * \brief Constructor
+ */
Fpga_Multicorrelator_8sc(int32_t n_correlators,
const std::string &device_name,
uint32_t dev_file_num,
diff --git a/src/core/libs/gnss_sdr_supl_client.cc b/src/core/libs/gnss_sdr_supl_client.cc
index bc02fe0d6..76a3f81b8 100644
--- a/src/core/libs/gnss_sdr_supl_client.cc
+++ b/src/core/libs/gnss_sdr_supl_client.cc
@@ -190,9 +190,9 @@ int Gnss_Sdr_Supl_Client::get_assistance(int i_mcc, int i_mns, int i_lac, int i_
else
{
/*
- * If supl_get_assist() fails, the connection remains open
- * and the memory/files are not released.
- */
+ * If supl_get_assist() fails, the connection remains open
+ * and the memory/files are not released.
+ */
supl_close(&ctx);
}
return err;
diff --git a/src/core/libs/supl/asn-rrlp/Accuracy.c b/src/core/libs/supl/asn-rrlp/Accuracy.c
index a51a2e12c..a5803c9cf 100644
--- a/src/core/libs/supl/asn-rrlp/Accuracy.c
+++ b/src/core/libs/supl/asn-rrlp/Accuracy.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Accuracy.h"
-int
-Accuracy_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int Accuracy_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-Accuracy_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void Accuracy_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-Accuracy_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void Accuracy_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-Accuracy_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int Accuracy_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-Accuracy_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) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t Accuracy_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)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-Accuracy_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) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t Accuracy_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)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-Accuracy_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) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t Accuracy_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)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-Accuracy_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) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t Accuracy_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)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-Accuracy_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t Accuracy_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-Accuracy_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- Accuracy_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t Accuracy_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ Accuracy_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ACCURACY_CONSTR_1 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_Accuracy_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_Accuracy = {
- "Accuracy",
- "Accuracy",
- Accuracy_free,
- Accuracy_print,
- Accuracy_constraint,
- Accuracy_decode_ber,
- Accuracy_encode_der,
- Accuracy_decode_xer,
- Accuracy_encode_xer,
- Accuracy_decode_uper,
- Accuracy_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Accuracy_tags_1,
- sizeof(asn_DEF_Accuracy_tags_1)
- /sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
- asn_DEF_Accuracy_tags_1, /* Same as above */
- sizeof(asn_DEF_Accuracy_tags_1)
- /sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_ACCURACY_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "Accuracy",
+ "Accuracy",
+ Accuracy_free,
+ Accuracy_print,
+ Accuracy_constraint,
+ Accuracy_decode_ber,
+ Accuracy_encode_der,
+ Accuracy_decode_xer,
+ Accuracy_encode_xer,
+ Accuracy_decode_uper,
+ Accuracy_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Accuracy_tags_1,
+ sizeof(asn_DEF_Accuracy_tags_1) /
+ sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
+ asn_DEF_Accuracy_tags_1, /* Same as above */
+ sizeof(asn_DEF_Accuracy_tags_1) /
+ sizeof(asn_DEF_Accuracy_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_ACCURACY_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Accuracy.h b/src/core/libs/supl/asn-rrlp/Accuracy.h
index 4555aee85..0b65bed6a 100644
--- a/src/core/libs/supl/asn-rrlp/Accuracy.h
+++ b/src/core/libs/supl/asn-rrlp/Accuracy.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Accuracy_H_
#define _Accuracy_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AccuracyOpt.c b/src/core/libs/supl/asn-rrlp/AccuracyOpt.c
index 5515ee62d..835ac4ee4 100644
--- a/src/core/libs/supl/asn-rrlp/AccuracyOpt.c
+++ b/src/core/libs/supl/asn-rrlp/AccuracyOpt.c
@@ -1,61 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AccuracyOpt.h"
static asn_TYPE_member_t asn_MBR_AccuracyOpt_1[] = {
- { ATF_POINTER, 1, offsetof(struct AccuracyOpt, accuracy),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Accuracy,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "accuracy"
- },
+ {ATF_POINTER, 1, offsetof(struct AccuracyOpt, accuracy),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Accuracy, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "accuracy"},
};
-static int asn_MAP_AccuracyOpt_oms_1[] = { 0 };
+static int asn_MAP_AccuracyOpt_oms_1[] = {0};
static ber_tlv_tag_t asn_DEF_AccuracyOpt_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AccuracyOpt_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* accuracy at 125 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* accuracy at 125 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AccuracyOpt_specs_1 = {
- sizeof(struct AccuracyOpt),
- offsetof(struct AccuracyOpt, _asn_ctx),
- asn_MAP_AccuracyOpt_tag2el_1,
- 1, /* Count of tags in the map */
- asn_MAP_AccuracyOpt_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AccuracyOpt),
+ offsetof(struct AccuracyOpt, _asn_ctx),
+ asn_MAP_AccuracyOpt_tag2el_1,
+ 1, /* Count of tags in the map */
+ asn_MAP_AccuracyOpt_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AccuracyOpt = {
- "AccuracyOpt",
- "AccuracyOpt",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AccuracyOpt_tags_1,
- sizeof(asn_DEF_AccuracyOpt_tags_1)
- /sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
- asn_DEF_AccuracyOpt_tags_1, /* Same as above */
- sizeof(asn_DEF_AccuracyOpt_tags_1)
- /sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AccuracyOpt_1,
- 1, /* Elements count */
- &asn_SPC_AccuracyOpt_specs_1 /* Additional specs */
+ "AccuracyOpt",
+ "AccuracyOpt",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AccuracyOpt_tags_1,
+ sizeof(asn_DEF_AccuracyOpt_tags_1) /
+ sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
+ asn_DEF_AccuracyOpt_tags_1, /* Same as above */
+ sizeof(asn_DEF_AccuracyOpt_tags_1) /
+ sizeof(asn_DEF_AccuracyOpt_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AccuracyOpt_1,
+ 1, /* Elements count */
+ &asn_SPC_AccuracyOpt_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AccuracyOpt.h b/src/core/libs/supl/asn-rrlp/AccuracyOpt.h
index 0641d6bbe..1f708eb72 100644
--- a/src/core/libs/supl/asn-rrlp/AccuracyOpt.h
+++ b/src/core/libs/supl/asn-rrlp/AccuracyOpt.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AccuracyOpt_H_
#define _AccuracyOpt_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AcquisAssist.c b/src/core/libs/supl/asn-rrlp/AcquisAssist.c
index 9dc1721e8..4a15050d4 100644
--- a/src/core/libs/supl/asn-rrlp/AcquisAssist.c
+++ b/src/core/libs/supl/asn-rrlp/AcquisAssist.c
@@ -1,69 +1,63 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AcquisAssist.h"
static asn_TYPE_member_t asn_MBR_AcquisAssist_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, timeRelation),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TimeRelation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeRelation"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, acquisList),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfAcquisElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "acquisList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, timeRelation),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TimeRelation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeRelation"},
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisAssist, acquisList),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfAcquisElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "acquisList"},
};
static ber_tlv_tag_t asn_DEF_AcquisAssist_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AcquisAssist_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* timeRelation at 817 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* acquisList at 822 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* timeRelation at 817 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* acquisList at 822 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AcquisAssist_specs_1 = {
- sizeof(struct AcquisAssist),
- offsetof(struct AcquisAssist, _asn_ctx),
- asn_MAP_AcquisAssist_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AcquisAssist),
+ offsetof(struct AcquisAssist, _asn_ctx),
+ asn_MAP_AcquisAssist_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AcquisAssist = {
- "AcquisAssist",
- "AcquisAssist",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AcquisAssist_tags_1,
- sizeof(asn_DEF_AcquisAssist_tags_1)
- /sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
- asn_DEF_AcquisAssist_tags_1, /* Same as above */
- sizeof(asn_DEF_AcquisAssist_tags_1)
- /sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AcquisAssist_1,
- 2, /* Elements count */
- &asn_SPC_AcquisAssist_specs_1 /* Additional specs */
+ "AcquisAssist",
+ "AcquisAssist",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AcquisAssist_tags_1,
+ sizeof(asn_DEF_AcquisAssist_tags_1) /
+ sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
+ asn_DEF_AcquisAssist_tags_1, /* Same as above */
+ sizeof(asn_DEF_AcquisAssist_tags_1) /
+ sizeof(asn_DEF_AcquisAssist_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AcquisAssist_1,
+ 2, /* Elements count */
+ &asn_SPC_AcquisAssist_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AcquisAssist.h b/src/core/libs/supl/asn-rrlp/AcquisAssist.h
index 158ba8a97..251311623 100644
--- a/src/core/libs/supl/asn-rrlp/AcquisAssist.h
+++ b/src/core/libs/supl/asn-rrlp/AcquisAssist.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AcquisAssist_H_
#define _AcquisAssist_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AcquisElement.c b/src/core/libs/supl/asn-rrlp/AcquisElement.c
index a3fd8b936..3182bab4f 100644
--- a/src/core/libs/supl/asn-rrlp/AcquisElement.c
+++ b/src/core/libs/supl/asn-rrlp/AcquisElement.c
@@ -1,281 +1,272 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AcquisElement.h"
-static int
-memb_doppler0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -2048 && value <= 2047)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_doppler0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -2048 && value <= 2047))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1022)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1022))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_intCodePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 19)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_intCodePhase_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 19))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_gpsBitNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_gpsBitNumber_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_codePhaseSearchWindow_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 15)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_codePhaseSearchWindow_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 15))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER0_CONSTR_3 = {
- { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, -2048, 2047} /* (-2048..2047) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_CONSTR_5 = {
- { APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1022} /* (0..1022) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6 = {
- { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 19} /* (0..19) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GPS_BIT_NUMBER_CONSTR_7 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_8 = {
- { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, 0, 15} /* (0..15) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AcquisElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AcquisElement, svid),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svid"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AcquisElement, doppler0),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_doppler0_constraint_1,
- &ASN_PER_MEMB_DOPPLER0_CONSTR_3,
- 0,
- "doppler0"
- },
- { ATF_POINTER, 1, offsetof(struct AcquisElement, addionalDoppler),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AddionalDopplerFields,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "addionalDoppler"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhase),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_codePhase_constraint_1,
- &ASN_PER_MEMB_CODE_PHASE_CONSTR_5,
- 0,
- "codePhase"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AcquisElement, intCodePhase),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_intCodePhase_constraint_1,
- &ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6,
- 0,
- "intCodePhase"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AcquisElement, gpsBitNumber),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_gpsBitNumber_constraint_1,
- &ASN_PER_MEMB_GPS_BIT_NUMBER_CONSTR_7,
- 0,
- "gpsBitNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhaseSearchWindow),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_codePhaseSearchWindow_constraint_1,
- &ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_8,
- 0,
- "codePhaseSearchWindow"
- },
- { ATF_POINTER, 1, offsetof(struct AcquisElement, addionalAngle),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AddionalAngleFields,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "addionalAngle"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisElement, svid),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svid"},
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisElement, doppler0),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_doppler0_constraint_1,
+ &ASN_PER_MEMB_DOPPLER0_CONSTR_3, 0, "doppler0"},
+ {ATF_POINTER, 1, offsetof(struct AcquisElement, addionalDoppler),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AddionalDopplerFields,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "addionalDoppler"},
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhase),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_codePhase_constraint_1,
+ &ASN_PER_MEMB_CODE_PHASE_CONSTR_5, 0, "codePhase"},
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisElement, intCodePhase),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_intCodePhase_constraint_1,
+ &ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6, 0, "intCodePhase"},
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisElement, gpsBitNumber),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_gpsBitNumber_constraint_1,
+ &ASN_PER_MEMB_GPS_BIT_NUMBER_CONSTR_7, 0, "gpsBitNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct AcquisElement, codePhaseSearchWindow),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_codePhaseSearchWindow_constraint_1,
+ &ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_8, 0,
+ "codePhaseSearchWindow"},
+ {ATF_POINTER, 1, offsetof(struct AcquisElement, addionalAngle),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AddionalAngleFields,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "addionalAngle"},
};
-static int asn_MAP_AcquisElement_oms_1[] = { 2, 7 };
+static int asn_MAP_AcquisElement_oms_1[] = {2, 7};
static ber_tlv_tag_t asn_DEF_AcquisElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AcquisElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svid at 834 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* doppler0 at 838 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* addionalDoppler at 839 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* codePhase at 840 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* intCodePhase at 841 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* gpsBitNumber at 842 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* codePhaseSearchWindow at 843 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* addionalAngle at 844 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* svid at 834 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* doppler0 at 838 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* addionalDoppler at 839 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* codePhase at 840 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* intCodePhase at 841 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* gpsBitNumber at 842 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* codePhaseSearchWindow at 843 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0} /* addionalAngle at 844 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AcquisElement_specs_1 = {
- sizeof(struct AcquisElement),
- offsetof(struct AcquisElement, _asn_ctx),
- asn_MAP_AcquisElement_tag2el_1,
- 8, /* Count of tags in the map */
- asn_MAP_AcquisElement_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AcquisElement),
+ offsetof(struct AcquisElement, _asn_ctx),
+ asn_MAP_AcquisElement_tag2el_1,
+ 8, /* Count of tags in the map */
+ asn_MAP_AcquisElement_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AcquisElement = {
- "AcquisElement",
- "AcquisElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AcquisElement_tags_1,
- sizeof(asn_DEF_AcquisElement_tags_1)
- /sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
- asn_DEF_AcquisElement_tags_1, /* Same as above */
- sizeof(asn_DEF_AcquisElement_tags_1)
- /sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AcquisElement_1,
- 8, /* Elements count */
- &asn_SPC_AcquisElement_specs_1 /* Additional specs */
+ "AcquisElement",
+ "AcquisElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AcquisElement_tags_1,
+ sizeof(asn_DEF_AcquisElement_tags_1) /
+ sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
+ asn_DEF_AcquisElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_AcquisElement_tags_1) /
+ sizeof(asn_DEF_AcquisElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AcquisElement_1,
+ 8, /* Elements count */
+ &asn_SPC_AcquisElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AcquisElement.h b/src/core/libs/supl/asn-rrlp/AcquisElement.h
index 365cfab2a..2c0802968 100644
--- a/src/core/libs/supl/asn-rrlp/AcquisElement.h
+++ b/src/core/libs/supl/asn-rrlp/AcquisElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AcquisElement_H_
#define _AcquisElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AddionalAngleFields.c b/src/core/libs/supl/asn-rrlp/AddionalAngleFields.c
index d7a16c0a0..244a67cf6 100644
--- a/src/core/libs/supl/asn-rrlp/AddionalAngleFields.c
+++ b/src/core/libs/supl/asn-rrlp/AddionalAngleFields.c
@@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AddionalAngleFields.h"
-static int
-memb_azimuth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 31)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_azimuth_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 31))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_elevation_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_elevation_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_AZIMUTH_CONSTR_2 = {
- { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 31} /* (0..31) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ELEVATION_CONSTR_3 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AddionalAngleFields_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, azimuth),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_azimuth_constraint_1,
- &ASN_PER_MEMB_AZIMUTH_CONSTR_2,
- 0,
- "azimuth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, elevation),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_elevation_constraint_1,
- &ASN_PER_MEMB_ELEVATION_CONSTR_3,
- 0,
- "elevation"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, azimuth),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_azimuth_constraint_1,
+ &ASN_PER_MEMB_AZIMUTH_CONSTR_2, 0, "azimuth"},
+ {ATF_NOFLAGS, 0, offsetof(struct AddionalAngleFields, elevation),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_elevation_constraint_1,
+ &ASN_PER_MEMB_ELEVATION_CONSTR_3, 0, "elevation"},
};
static ber_tlv_tag_t asn_DEF_AddionalAngleFields_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AddionalAngleFields_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* azimuth at 858 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* elevation at 860 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* azimuth at 858 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* elevation at 860 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AddionalAngleFields_specs_1 = {
- sizeof(struct AddionalAngleFields),
- offsetof(struct AddionalAngleFields, _asn_ctx),
- asn_MAP_AddionalAngleFields_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AddionalAngleFields),
+ offsetof(struct AddionalAngleFields, _asn_ctx),
+ asn_MAP_AddionalAngleFields_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AddionalAngleFields = {
- "AddionalAngleFields",
- "AddionalAngleFields",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AddionalAngleFields_tags_1,
- sizeof(asn_DEF_AddionalAngleFields_tags_1)
- /sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
- asn_DEF_AddionalAngleFields_tags_1, /* Same as above */
- sizeof(asn_DEF_AddionalAngleFields_tags_1)
- /sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AddionalAngleFields_1,
- 2, /* Elements count */
- &asn_SPC_AddionalAngleFields_specs_1 /* Additional specs */
+ "AddionalAngleFields",
+ "AddionalAngleFields",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AddionalAngleFields_tags_1,
+ sizeof(asn_DEF_AddionalAngleFields_tags_1) /
+ sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
+ asn_DEF_AddionalAngleFields_tags_1, /* Same as above */
+ sizeof(asn_DEF_AddionalAngleFields_tags_1) /
+ sizeof(asn_DEF_AddionalAngleFields_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AddionalAngleFields_1,
+ 2, /* Elements count */
+ &asn_SPC_AddionalAngleFields_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AddionalAngleFields.h b/src/core/libs/supl/asn-rrlp/AddionalAngleFields.h
index 27b6ee4ab..f325510b5 100644
--- a/src/core/libs/supl/asn-rrlp/AddionalAngleFields.h
+++ b/src/core/libs/supl/asn-rrlp/AddionalAngleFields.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AddionalAngleFields_H_
#define _AddionalAngleFields_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.c b/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.c
index 69f732dbb..c0963e5ec 100644
--- a/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.c
+++ b/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.c
@@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AddionalDopplerFields.h"
-static int
-memb_doppler1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_doppler1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_dopplerUncertainty_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_dopplerUncertainty_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER1_CONSTR_2 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AddionalDopplerFields_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, doppler1),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_doppler1_constraint_1,
- &ASN_PER_MEMB_DOPPLER1_CONSTR_2,
- 0,
- "doppler1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, dopplerUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_dopplerUncertainty_constraint_1,
- &ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3,
- 0,
- "dopplerUncertainty"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, doppler1),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_doppler1_constraint_1,
+ &ASN_PER_MEMB_DOPPLER1_CONSTR_2, 0, "doppler1"},
+ {ATF_NOFLAGS, 0, offsetof(struct AddionalDopplerFields, dopplerUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_dopplerUncertainty_constraint_1,
+ &ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3, 0, "dopplerUncertainty"},
};
static ber_tlv_tag_t asn_DEF_AddionalDopplerFields_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AddionalDopplerFields_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* doppler1 at 850 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dopplerUncertainty at 851 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* doppler1 at 850 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* dopplerUncertainty at 851 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AddionalDopplerFields_specs_1 = {
- sizeof(struct AddionalDopplerFields),
- offsetof(struct AddionalDopplerFields, _asn_ctx),
- asn_MAP_AddionalDopplerFields_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AddionalDopplerFields),
+ offsetof(struct AddionalDopplerFields, _asn_ctx),
+ asn_MAP_AddionalDopplerFields_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AddionalDopplerFields = {
- "AddionalDopplerFields",
- "AddionalDopplerFields",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AddionalDopplerFields_tags_1,
- sizeof(asn_DEF_AddionalDopplerFields_tags_1)
- /sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
- asn_DEF_AddionalDopplerFields_tags_1, /* Same as above */
- sizeof(asn_DEF_AddionalDopplerFields_tags_1)
- /sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AddionalDopplerFields_1,
- 2, /* Elements count */
- &asn_SPC_AddionalDopplerFields_specs_1 /* Additional specs */
+ "AddionalDopplerFields",
+ "AddionalDopplerFields",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AddionalDopplerFields_tags_1,
+ sizeof(asn_DEF_AddionalDopplerFields_tags_1) /
+ sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
+ asn_DEF_AddionalDopplerFields_tags_1, /* Same as above */
+ sizeof(asn_DEF_AddionalDopplerFields_tags_1) /
+ sizeof(asn_DEF_AddionalDopplerFields_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AddionalDopplerFields_1,
+ 2, /* Elements count */
+ &asn_SPC_AddionalDopplerFields_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.h b/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.h
index 48686e842..c0918f74c 100644
--- a/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.h
+++ b/src/core/libs/supl/asn-rrlp/AddionalDopplerFields.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AddionalDopplerFields_H_
#define _AddionalDopplerFields_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.c b/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.c
index af10b0ccc..40b13d653 100644
--- a/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.c
+++ b/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.c
@@ -1,81 +1,77 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AdditionalAssistanceData.h"
static asn_TYPE_member_t asn_MBR_AdditionalAssistanceData_1[] = {
- { ATF_POINTER, 3, offsetof(struct AdditionalAssistanceData, gpsAssistanceData),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSAssistanceData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsAssistanceData"
- },
- { ATF_POINTER, 2, offsetof(struct AdditionalAssistanceData, extensionContainer),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExtensionContainer,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extensionContainer"
- },
- { ATF_POINTER, 1, offsetof(struct AdditionalAssistanceData, ganssAssistanceData),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSAssistanceData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssAssistanceData"
- },
+ {ATF_POINTER, 3,
+ offsetof(struct AdditionalAssistanceData, gpsAssistanceData),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSAssistanceData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsAssistanceData"},
+ {ATF_POINTER, 2,
+ offsetof(struct AdditionalAssistanceData, extensionContainer),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExtensionContainer,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extensionContainer"},
+ {ATF_POINTER, 1,
+ offsetof(struct AdditionalAssistanceData, ganssAssistanceData),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSAssistanceData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssAssistanceData"},
};
-static int asn_MAP_AdditionalAssistanceData_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_AdditionalAssistanceData_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_AdditionalAssistanceData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AdditionalAssistanceData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsAssistanceData at 520 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* extensionContainer at 521 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssAssistanceData at 523 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* gpsAssistanceData at 520 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* extensionContainer at 521 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* ganssAssistanceData at 523 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AdditionalAssistanceData_specs_1 = {
- sizeof(struct AdditionalAssistanceData),
- offsetof(struct AdditionalAssistanceData, _asn_ctx),
- asn_MAP_AdditionalAssistanceData_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_AdditionalAssistanceData_oms_1, /* Optional members */
- 2, 1, /* Root/Additions */
- 1, /* Start extensions */
- 4 /* Stop extensions */
+ sizeof(struct AdditionalAssistanceData),
+ offsetof(struct AdditionalAssistanceData, _asn_ctx),
+ asn_MAP_AdditionalAssistanceData_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_AdditionalAssistanceData_oms_1, /* Optional members */
+ 2,
+ 1, /* Root/Additions */
+ 1, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AdditionalAssistanceData = {
- "AdditionalAssistanceData",
- "AdditionalAssistanceData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AdditionalAssistanceData_tags_1,
- sizeof(asn_DEF_AdditionalAssistanceData_tags_1)
- /sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
- asn_DEF_AdditionalAssistanceData_tags_1, /* Same as above */
- sizeof(asn_DEF_AdditionalAssistanceData_tags_1)
- /sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AdditionalAssistanceData_1,
- 3, /* Elements count */
- &asn_SPC_AdditionalAssistanceData_specs_1 /* Additional specs */
+ "AdditionalAssistanceData",
+ "AdditionalAssistanceData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AdditionalAssistanceData_tags_1,
+ sizeof(asn_DEF_AdditionalAssistanceData_tags_1) /
+ sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
+ asn_DEF_AdditionalAssistanceData_tags_1, /* Same as above */
+ sizeof(asn_DEF_AdditionalAssistanceData_tags_1) /
+ sizeof(asn_DEF_AdditionalAssistanceData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AdditionalAssistanceData_1,
+ 3, /* Elements count */
+ &asn_SPC_AdditionalAssistanceData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.h b/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.h
index 683693809..bd36e1715 100644
--- a/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.h
+++ b/src/core/libs/supl/asn-rrlp/AdditionalAssistanceData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AdditionalAssistanceData_H_
#define _AdditionalAssistanceData_H_
-
#include
/* Including external dependencies */
@@ -27,9 +26,9 @@ extern "C"
GPSAssistanceData_t *gpsAssistanceData /* OPTIONAL */;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
GANSSAssistanceData_t *ganssAssistanceData /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
diff --git a/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.c b/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.c
index 3dbce8753..ff66c2f3f 100644
--- a/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.c
+++ b/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.c
@@ -1,129 +1,130 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AdditionalDopplerFields.h"
-static int
-memb_doppler1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_doppler1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_dopplerUncertainty_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 4)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_dopplerUncertainty_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 4))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER1_CONSTR_2 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3 = {
- { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 4} /* (0..4) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AdditionalDopplerFields_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, doppler1),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_doppler1_constraint_1,
- &ASN_PER_MEMB_DOPPLER1_CONSTR_2,
- 0,
- "doppler1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, dopplerUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_dopplerUncertainty_constraint_1,
- &ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3,
- 0,
- "dopplerUncertainty"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AdditionalDopplerFields, doppler1),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_doppler1_constraint_1,
+ &ASN_PER_MEMB_DOPPLER1_CONSTR_2, 0, "doppler1"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct AdditionalDopplerFields, dopplerUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_dopplerUncertainty_constraint_1,
+ &ASN_PER_MEMB_DOPPLER_UNCERTAINTY_CONSTR_3, 0, "dopplerUncertainty"},
};
static ber_tlv_tag_t asn_DEF_AdditionalDopplerFields_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AdditionalDopplerFields_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* doppler1 at 1342 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* dopplerUncertainty at 1343 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* doppler1 at 1342 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* dopplerUncertainty at 1343 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AdditionalDopplerFields_specs_1 = {
- sizeof(struct AdditionalDopplerFields),
- offsetof(struct AdditionalDopplerFields, _asn_ctx),
- asn_MAP_AdditionalDopplerFields_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AdditionalDopplerFields),
+ offsetof(struct AdditionalDopplerFields, _asn_ctx),
+ asn_MAP_AdditionalDopplerFields_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AdditionalDopplerFields = {
- "AdditionalDopplerFields",
- "AdditionalDopplerFields",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AdditionalDopplerFields_tags_1,
- sizeof(asn_DEF_AdditionalDopplerFields_tags_1)
- /sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
- asn_DEF_AdditionalDopplerFields_tags_1, /* Same as above */
- sizeof(asn_DEF_AdditionalDopplerFields_tags_1)
- /sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AdditionalDopplerFields_1,
- 2, /* Elements count */
- &asn_SPC_AdditionalDopplerFields_specs_1 /* Additional specs */
+ "AdditionalDopplerFields",
+ "AdditionalDopplerFields",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AdditionalDopplerFields_tags_1,
+ sizeof(asn_DEF_AdditionalDopplerFields_tags_1) /
+ sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
+ asn_DEF_AdditionalDopplerFields_tags_1, /* Same as above */
+ sizeof(asn_DEF_AdditionalDopplerFields_tags_1) /
+ sizeof(asn_DEF_AdditionalDopplerFields_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AdditionalDopplerFields_1,
+ 2, /* Elements count */
+ &asn_SPC_AdditionalDopplerFields_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.h b/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.h
index a949c1d22..2399b8635 100644
--- a/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.h
+++ b/src/core/libs/supl/asn-rrlp/AdditionalDopplerFields.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AdditionalDopplerFields_H_
#define _AdditionalDopplerFields_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AlertFlag.c b/src/core/libs/supl/asn-rrlp/AlertFlag.c
index a7c3f41eb..23699b027 100644
--- a/src/core/libs/supl/asn-rrlp/AlertFlag.c
+++ b/src/core/libs/supl/asn-rrlp/AlertFlag.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AlertFlag.h"
-int
-AlertFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int AlertFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-AlertFlag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void AlertFlag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-AlertFlag_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void AlertFlag_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-AlertFlag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int AlertFlag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-AlertFlag_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) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t AlertFlag_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)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-AlertFlag_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) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t AlertFlag_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)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-AlertFlag_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) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t AlertFlag_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)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-AlertFlag_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) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t AlertFlag_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)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-AlertFlag_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t AlertFlag_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-AlertFlag_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- AlertFlag_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t AlertFlag_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ AlertFlag_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ALERT_FLAG_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_AlertFlag_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_AlertFlag = {
- "AlertFlag",
- "AlertFlag",
- AlertFlag_free,
- AlertFlag_print,
- AlertFlag_constraint,
- AlertFlag_decode_ber,
- AlertFlag_encode_der,
- AlertFlag_decode_xer,
- AlertFlag_encode_xer,
- AlertFlag_decode_uper,
- AlertFlag_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AlertFlag_tags_1,
- sizeof(asn_DEF_AlertFlag_tags_1)
- /sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
- asn_DEF_AlertFlag_tags_1, /* Same as above */
- sizeof(asn_DEF_AlertFlag_tags_1)
- /sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_ALERT_FLAG_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "AlertFlag",
+ "AlertFlag",
+ AlertFlag_free,
+ AlertFlag_print,
+ AlertFlag_constraint,
+ AlertFlag_decode_ber,
+ AlertFlag_encode_der,
+ AlertFlag_decode_xer,
+ AlertFlag_encode_xer,
+ AlertFlag_decode_uper,
+ AlertFlag_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AlertFlag_tags_1,
+ sizeof(asn_DEF_AlertFlag_tags_1) /
+ sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
+ asn_DEF_AlertFlag_tags_1, /* Same as above */
+ sizeof(asn_DEF_AlertFlag_tags_1) /
+ sizeof(asn_DEF_AlertFlag_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_ALERT_FLAG_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AlertFlag.h b/src/core/libs/supl/asn-rrlp/AlertFlag.h
index 1aa1e13f4..22ae1c43a 100644
--- a/src/core/libs/supl/asn-rrlp/AlertFlag.h
+++ b/src/core/libs/supl/asn-rrlp/AlertFlag.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AlertFlag_H_
#define _AlertFlag_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.c b/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.c
index 2093a44e6..1135c6ca3 100644
--- a/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.c
+++ b/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.c
@@ -1,449 +1,449 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Almanac-KeplerianSet.h"
-static int
-memb_kepAlmanacE_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 2047)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacE_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 2047))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacDeltaI_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -1024 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacDeltaI_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -1024 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacOmegaDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -1024 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacOmegaDot_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -1024 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepSVHealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 15)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepSVHealth_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 15))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacAPowerHalf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -65536 && value <= 65535)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacAPowerHalf_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -65536 && value <= 65535))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacOmega0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacOmega0_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacW_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacM0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacM0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacAF0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8192 && value <= 8191)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacAF0_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8192 && value <= 8191))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_kepAlmanacAF1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -1024 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_kepAlmanacAF1_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -1024 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_E_CONSTR_2 = {
- { APC_CONSTRAINED, 11, 11, 0, 2047 } /* (0..2047) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, 0, 2047} /* (0..2047) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_DELTA_I_CONSTR_3 = {
- { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, -1024, 1023} /* (-1024..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_OMEGA_DOT_CONSTR_4 = {
- { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, -1024, 1023} /* (-1024..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_SV_HEALTH_CONSTR_5 = {
- { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, 0, 15} /* (0..15) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_A_POWER_HALF_CONSTR_6 = {
- { APC_CONSTRAINED, 17, -1, -65536, 65535 } /* (-65536..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 17, -1, -65536, 65535} /* (-65536..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_OMEGA0_CONSTR_7 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_W_CONSTR_8 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_M0_CONSTR_9 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_A_F0_CONSTR_10 = {
- { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 14, 14, -8192, 8191} /* (-8192..8191) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEP_ALMANAC_A_F1_CONSTR_11 = {
- { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, -1024, 1023} /* (-1024..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Almanac_KeplerianSet_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacE),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacE_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_E_CONSTR_2,
- 0,
- "kepAlmanacE"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacDeltaI),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacDeltaI_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_DELTA_I_CONSTR_3,
- 0,
- "kepAlmanacDeltaI"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmegaDot),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacOmegaDot_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_OMEGA_DOT_CONSTR_4,
- 0,
- "kepAlmanacOmegaDot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepSVHealth),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepSVHealth_constraint_1,
- &ASN_PER_MEMB_KEP_SV_HEALTH_CONSTR_5,
- 0,
- "kepSVHealth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAPowerHalf),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacAPowerHalf_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_A_POWER_HALF_CONSTR_6,
- 0,
- "kepAlmanacAPowerHalf"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmega0),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacOmega0_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_OMEGA0_CONSTR_7,
- 0,
- "kepAlmanacOmega0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacW),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacW_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_W_CONSTR_8,
- 0,
- "kepAlmanacW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacM0),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacM0_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_M0_CONSTR_9,
- 0,
- "kepAlmanacM0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF0),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacAF0_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_A_F0_CONSTR_10,
- 0,
- "kepAlmanacAF0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF1),
- (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_kepAlmanacAF1_constraint_1,
- &ASN_PER_MEMB_KEP_ALMANAC_A_F1_CONSTR_11,
- 0,
- "kepAlmanacAF1"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacE),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacE_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_E_CONSTR_2, 0, "kepAlmanacE"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacDeltaI),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacDeltaI_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_DELTA_I_CONSTR_3, 0, "kepAlmanacDeltaI"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmegaDot),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacOmegaDot_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_OMEGA_DOT_CONSTR_4, 0, "kepAlmanacOmegaDot"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepSVHealth),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepSVHealth_constraint_1,
+ &ASN_PER_MEMB_KEP_SV_HEALTH_CONSTR_5, 0, "kepSVHealth"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct Almanac_KeplerianSet, kepAlmanacAPowerHalf),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacAPowerHalf_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_A_POWER_HALF_CONSTR_6, 0,
+ "kepAlmanacAPowerHalf"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacOmega0),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacOmega0_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_OMEGA0_CONSTR_7, 0, "kepAlmanacOmega0"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacW),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacW_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_W_CONSTR_8, 0, "kepAlmanacW"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacM0),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacM0_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_M0_CONSTR_9, 0, "kepAlmanacM0"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF0),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacAF0_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_A_F0_CONSTR_10, 0, "kepAlmanacAF0"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac_KeplerianSet, kepAlmanacAF1),
+ (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_kepAlmanacAF1_constraint_1,
+ &ASN_PER_MEMB_KEP_ALMANAC_A_F1_CONSTR_11, 0, "kepAlmanacAF1"},
};
static ber_tlv_tag_t asn_DEF_Almanac_KeplerianSet_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_Almanac_KeplerianSet_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* kepAlmanacE at 1368 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* kepAlmanacDeltaI at 1369 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* kepAlmanacOmegaDot at 1370 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* kepSVHealth at 1371 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* kepAlmanacAPowerHalf at 1372 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* kepAlmanacOmega0 at 1373 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* kepAlmanacW at 1374 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* kepAlmanacM0 at 1375 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* kepAlmanacAF0 at 1376 */
- { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* kepAlmanacAF1 at 1377 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* kepAlmanacE at 1368 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* kepAlmanacDeltaI at 1369 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* kepAlmanacOmegaDot at 1370 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* kepSVHealth at 1371 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0}, /* kepAlmanacAPowerHalf at 1372 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* kepAlmanacOmega0 at 1373 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* kepAlmanacW at 1374 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0}, /* kepAlmanacM0 at 1375 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0}, /* kepAlmanacAF0 at 1376 */
+ {(ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0} /* kepAlmanacAF1 at 1377 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Almanac_KeplerianSet_specs_1 = {
- sizeof(struct Almanac_KeplerianSet),
- offsetof(struct Almanac_KeplerianSet, _asn_ctx),
- asn_MAP_Almanac_KeplerianSet_tag2el_1,
- 10, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct Almanac_KeplerianSet),
+ offsetof(struct Almanac_KeplerianSet, _asn_ctx),
+ asn_MAP_Almanac_KeplerianSet_tag2el_1,
+ 10, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Almanac_KeplerianSet = {
- "Almanac-KeplerianSet",
- "Almanac-KeplerianSet",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Almanac_KeplerianSet_tags_1,
- sizeof(asn_DEF_Almanac_KeplerianSet_tags_1)
- /sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
- asn_DEF_Almanac_KeplerianSet_tags_1, /* Same as above */
- sizeof(asn_DEF_Almanac_KeplerianSet_tags_1)
- /sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Almanac_KeplerianSet_1,
- 10, /* Elements count */
- &asn_SPC_Almanac_KeplerianSet_specs_1 /* Additional specs */
+ "Almanac-KeplerianSet",
+ "Almanac-KeplerianSet",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Almanac_KeplerianSet_tags_1,
+ sizeof(asn_DEF_Almanac_KeplerianSet_tags_1) /
+ sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
+ asn_DEF_Almanac_KeplerianSet_tags_1, /* Same as above */
+ sizeof(asn_DEF_Almanac_KeplerianSet_tags_1) /
+ sizeof(asn_DEF_Almanac_KeplerianSet_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Almanac_KeplerianSet_1,
+ 10, /* Elements count */
+ &asn_SPC_Almanac_KeplerianSet_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.h b/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.h
index 8c8c0294c..1c425ef58 100644
--- a/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.h
+++ b/src/core/libs/supl/asn-rrlp/Almanac-KeplerianSet.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Almanac_KeplerianSet_H_
#define _Almanac_KeplerianSet_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/Almanac.c b/src/core/libs/supl/asn-rrlp/Almanac.c
index 7f829283d..5ae28396a 100644
--- a/src/core/libs/supl/asn-rrlp/Almanac.c
+++ b/src/core/libs/supl/asn-rrlp/Almanac.c
@@ -1,99 +1,94 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Almanac.h"
-static int
-memb_alamanacWNa_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_alamanacWNa_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_ALAMANAC_W_NA_CONSTR_2 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Almanac_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct Almanac, alamanacWNa),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_alamanacWNa_constraint_1,
- &ASN_PER_MEMB_ALAMANAC_W_NA_CONSTR_2,
- 0,
- "alamanacWNa"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Almanac, almanacList),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfAlmanacElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "almanacList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac, alamanacWNa),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_alamanacWNa_constraint_1,
+ &ASN_PER_MEMB_ALAMANAC_W_NA_CONSTR_2, 0, "alamanacWNa"},
+ {ATF_NOFLAGS, 0, offsetof(struct Almanac, almanacList),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfAlmanacElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "almanacList"},
};
static ber_tlv_tag_t asn_DEF_Almanac_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_Almanac_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alamanacWNa at 789 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* almanacList at 794 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* alamanacWNa at 789 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* almanacList at 794 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Almanac_specs_1 = {
- sizeof(struct Almanac),
- offsetof(struct Almanac, _asn_ctx),
- asn_MAP_Almanac_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct Almanac),
+ offsetof(struct Almanac, _asn_ctx),
+ asn_MAP_Almanac_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Almanac = {
- "Almanac",
- "Almanac",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Almanac_tags_1,
- sizeof(asn_DEF_Almanac_tags_1)
- /sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
- asn_DEF_Almanac_tags_1, /* Same as above */
- sizeof(asn_DEF_Almanac_tags_1)
- /sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Almanac_1,
- 2, /* Elements count */
- &asn_SPC_Almanac_specs_1 /* Additional specs */
+ "Almanac",
+ "Almanac",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Almanac_tags_1,
+ sizeof(asn_DEF_Almanac_tags_1) / sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
+ asn_DEF_Almanac_tags_1, /* Same as above */
+ sizeof(asn_DEF_Almanac_tags_1) / sizeof(asn_DEF_Almanac_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Almanac_1,
+ 2, /* Elements count */
+ &asn_SPC_Almanac_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Almanac.h b/src/core/libs/supl/asn-rrlp/Almanac.h
index 835f0c81d..44c4e7dce 100644
--- a/src/core/libs/supl/asn-rrlp/Almanac.h
+++ b/src/core/libs/supl/asn-rrlp/Almanac.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Almanac_H_
#define _Almanac_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AlmanacElement.c b/src/core/libs/supl/asn-rrlp/AlmanacElement.c
index 848ba0af8..1991b1337 100644
--- a/src/core/libs/supl/asn-rrlp/AlmanacElement.c
+++ b/src/core/libs/supl/asn-rrlp/AlmanacElement.c
@@ -1,499 +1,495 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AlmanacElement.h"
-static int
-memb_almanacE_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+static int memb_almanacE_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
-static int
-memb_alamanacToa_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_alamanacToa_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacKsii_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacKsii_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacOmegaDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacOmegaDot_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacSVhealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacSVhealth_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacAPowerHalf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 16777215)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacAPowerHalf_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 16777215))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacOmega0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacOmega0_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacW_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacM0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacM0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacAF0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -1024 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacAF0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -1024 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_almanacAF1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -1024 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_almanacAF1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -1024 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_E_CONSTR_3 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALAMANAC_TOA_CONSTR_4 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_KSII_CONSTR_5 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_OMEGA_DOT_CONSTR_6 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_S_VHEALTH_CONSTR_7 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_A_POWER_HALF_CONSTR_8 = {
- { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, 0, 16777215} /* (0..16777215) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_OMEGA0_CONSTR_9 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_W_CONSTR_10 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_M0_CONSTR_11 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_A_F0_CONSTR_12 = {
- { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, -1024, 1023} /* (-1024..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALMANAC_A_F1_CONSTR_13 = {
- { APC_CONSTRAINED, 11, 11, -1024, 1023 } /* (-1024..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, -1024, 1023} /* (-1024..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_AlmanacElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, satelliteID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satelliteID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacE),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacE_constraint_1,
- &ASN_PER_MEMB_ALMANAC_E_CONSTR_3,
- 0,
- "almanacE"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, alamanacToa),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_alamanacToa_constraint_1,
- &ASN_PER_MEMB_ALAMANAC_TOA_CONSTR_4,
- 0,
- "alamanacToa"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacKsii),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacKsii_constraint_1,
- &ASN_PER_MEMB_ALMANAC_KSII_CONSTR_5,
- 0,
- "almanacKsii"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmegaDot),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacOmegaDot_constraint_1,
- &ASN_PER_MEMB_ALMANAC_OMEGA_DOT_CONSTR_6,
- 0,
- "almanacOmegaDot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacSVhealth),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacSVhealth_constraint_1,
- &ASN_PER_MEMB_ALMANAC_S_VHEALTH_CONSTR_7,
- 0,
- "almanacSVhealth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAPowerHalf),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacAPowerHalf_constraint_1,
- &ASN_PER_MEMB_ALMANAC_A_POWER_HALF_CONSTR_8,
- 0,
- "almanacAPowerHalf"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmega0),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacOmega0_constraint_1,
- &ASN_PER_MEMB_ALMANAC_OMEGA0_CONSTR_9,
- 0,
- "almanacOmega0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacW),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacW_constraint_1,
- &ASN_PER_MEMB_ALMANAC_W_CONSTR_10,
- 0,
- "almanacW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacM0),
- (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacM0_constraint_1,
- &ASN_PER_MEMB_ALMANAC_M0_CONSTR_11,
- 0,
- "almanacM0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF0),
- (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacAF0_constraint_1,
- &ASN_PER_MEMB_ALMANAC_A_F0_CONSTR_12,
- 0,
- "almanacAF0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF1),
- (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_almanacAF1_constraint_1,
- &ASN_PER_MEMB_ALMANAC_A_F1_CONSTR_13,
- 0,
- "almanacAF1"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, satelliteID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satelliteID"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacE),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacE_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_E_CONSTR_3, 0, "almanacE"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, alamanacToa),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_alamanacToa_constraint_1,
+ &ASN_PER_MEMB_ALAMANAC_TOA_CONSTR_4, 0, "alamanacToa"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacKsii),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacKsii_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_KSII_CONSTR_5, 0, "almanacKsii"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmegaDot),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacOmegaDot_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_OMEGA_DOT_CONSTR_6, 0, "almanacOmegaDot"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacSVhealth),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacSVhealth_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_S_VHEALTH_CONSTR_7, 0, "almanacSVhealth"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAPowerHalf),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacAPowerHalf_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_A_POWER_HALF_CONSTR_8, 0, "almanacAPowerHalf"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacOmega0),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacOmega0_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_OMEGA0_CONSTR_9, 0, "almanacOmega0"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacW),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacW_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_W_CONSTR_10, 0, "almanacW"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacM0),
+ (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacM0_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_M0_CONSTR_11, 0, "almanacM0"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF0),
+ (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacAF0_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_A_F0_CONSTR_12, 0, "almanacAF0"},
+ {ATF_NOFLAGS, 0, offsetof(struct AlmanacElement, almanacAF1),
+ (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_almanacAF1_constraint_1,
+ &ASN_PER_MEMB_ALMANAC_A_F1_CONSTR_13, 0, "almanacAF1"},
};
static ber_tlv_tag_t asn_DEF_AlmanacElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AlmanacElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID at 799 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* almanacE at 800 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* alamanacToa at 801 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* almanacKsii at 802 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* almanacOmegaDot at 803 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* almanacSVhealth at 804 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* almanacAPowerHalf at 805 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* almanacOmega0 at 806 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* almanacW at 807 */
- { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* almanacM0 at 808 */
- { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* almanacAF0 at 809 */
- { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* almanacAF1 at 810 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* satelliteID at 799 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* almanacE at 800 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* alamanacToa at 801 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* almanacKsii at 802 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* almanacOmegaDot at 803 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* almanacSVhealth at 804 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* almanacAPowerHalf at 805 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0}, /* almanacOmega0 at 806 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0}, /* almanacW at 807 */
+ {(ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0}, /* almanacM0 at 808 */
+ {(ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0}, /* almanacAF0 at 809 */
+ {(ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0} /* almanacAF1 at 810 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AlmanacElement_specs_1 = {
- sizeof(struct AlmanacElement),
- offsetof(struct AlmanacElement, _asn_ctx),
- asn_MAP_AlmanacElement_tag2el_1,
- 12, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AlmanacElement),
+ offsetof(struct AlmanacElement, _asn_ctx),
+ asn_MAP_AlmanacElement_tag2el_1,
+ 12, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AlmanacElement = {
- "AlmanacElement",
- "AlmanacElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AlmanacElement_tags_1,
- sizeof(asn_DEF_AlmanacElement_tags_1)
- /sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
- asn_DEF_AlmanacElement_tags_1, /* Same as above */
- sizeof(asn_DEF_AlmanacElement_tags_1)
- /sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AlmanacElement_1,
- 12, /* Elements count */
- &asn_SPC_AlmanacElement_specs_1 /* Additional specs */
+ "AlmanacElement",
+ "AlmanacElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AlmanacElement_tags_1,
+ sizeof(asn_DEF_AlmanacElement_tags_1) /
+ sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
+ asn_DEF_AlmanacElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_AlmanacElement_tags_1) /
+ sizeof(asn_DEF_AlmanacElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AlmanacElement_1,
+ 12, /* Elements count */
+ &asn_SPC_AlmanacElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AlmanacElement.h b/src/core/libs/supl/asn-rrlp/AlmanacElement.h
index aebbe0587..596e68a1d 100644
--- a/src/core/libs/supl/asn-rrlp/AlmanacElement.h
+++ b/src/core/libs/supl/asn-rrlp/AlmanacElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AlmanacElement_H_
#define _AlmanacElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.c b/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.c
index 353a6d2c9..84628ced9 100644
--- a/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.c
+++ b/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.c
@@ -1,145 +1,163 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AntiSpoofFlag.h"
-int
-AntiSpoofFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int AntiSpoofFlag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-AntiSpoofFlag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void AntiSpoofFlag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-AntiSpoofFlag_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void AntiSpoofFlag_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-AntiSpoofFlag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int AntiSpoofFlag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-AntiSpoofFlag_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) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t AntiSpoofFlag_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)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-AntiSpoofFlag_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) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t AntiSpoofFlag_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)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-AntiSpoofFlag_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) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t AntiSpoofFlag_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)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-AntiSpoofFlag_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) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t AntiSpoofFlag_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)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-AntiSpoofFlag_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t AntiSpoofFlag_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-AntiSpoofFlag_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t AntiSpoofFlag_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ AntiSpoofFlag_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ANTI_SPOOF_FLAG_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_AntiSpoofFlag_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_AntiSpoofFlag = {
- "AntiSpoofFlag",
- "AntiSpoofFlag",
- AntiSpoofFlag_free,
- AntiSpoofFlag_print,
- AntiSpoofFlag_constraint,
- AntiSpoofFlag_decode_ber,
- AntiSpoofFlag_encode_der,
- AntiSpoofFlag_decode_xer,
- AntiSpoofFlag_encode_xer,
- AntiSpoofFlag_decode_uper,
- AntiSpoofFlag_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AntiSpoofFlag_tags_1,
- sizeof(asn_DEF_AntiSpoofFlag_tags_1)
- /sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
- asn_DEF_AntiSpoofFlag_tags_1, /* Same as above */
- sizeof(asn_DEF_AntiSpoofFlag_tags_1)
- /sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_ANTI_SPOOF_FLAG_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "AntiSpoofFlag",
+ "AntiSpoofFlag",
+ AntiSpoofFlag_free,
+ AntiSpoofFlag_print,
+ AntiSpoofFlag_constraint,
+ AntiSpoofFlag_decode_ber,
+ AntiSpoofFlag_encode_der,
+ AntiSpoofFlag_decode_xer,
+ AntiSpoofFlag_encode_xer,
+ AntiSpoofFlag_decode_uper,
+ AntiSpoofFlag_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AntiSpoofFlag_tags_1,
+ sizeof(asn_DEF_AntiSpoofFlag_tags_1) /
+ sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
+ asn_DEF_AntiSpoofFlag_tags_1, /* Same as above */
+ sizeof(asn_DEF_AntiSpoofFlag_tags_1) /
+ sizeof(asn_DEF_AntiSpoofFlag_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_ANTI_SPOOF_FLAG_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.h b/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.h
index 6c1b9588a..d17475e4c 100644
--- a/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.h
+++ b/src/core/libs/supl/asn-rrlp/AntiSpoofFlag.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AntiSpoofFlag_H_
#define _AntiSpoofFlag_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.c
index 72cf031c8..496935420 100644
--- a/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.c
@@ -1,69 +1,64 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AssistBTSData-R98-ExpOTD.h"
static asn_TYPE_member_t asn_MBR_AssistBTSData_R98_ExpOTD_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expectedOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExpectedOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "expectedOTD"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expOTDuncertainty),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExpOTDUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "expOTDuncertainty"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AssistBTSData_R98_ExpOTD, expectedOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExpectedOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "expectedOTD"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct AssistBTSData_R98_ExpOTD, expOTDuncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExpOTDUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "expOTDuncertainty"},
};
static ber_tlv_tag_t asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AssistBTSData_R98_ExpOTD_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* expectedOTD at 933 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* expOTDuncertainty at 935 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* expectedOTD at 933 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* expOTDuncertainty at 935 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AssistBTSData_R98_ExpOTD_specs_1 = {
- sizeof(struct AssistBTSData_R98_ExpOTD),
- offsetof(struct AssistBTSData_R98_ExpOTD, _asn_ctx),
- asn_MAP_AssistBTSData_R98_ExpOTD_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AssistBTSData_R98_ExpOTD),
+ offsetof(struct AssistBTSData_R98_ExpOTD, _asn_ctx),
+ asn_MAP_AssistBTSData_R98_ExpOTD_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AssistBTSData_R98_ExpOTD = {
- "AssistBTSData-R98-ExpOTD",
- "AssistBTSData-R98-ExpOTD",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AssistBTSData_R98_ExpOTD_tags_1,
- sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_AssistBTSData_R98_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AssistBTSData_R98_ExpOTD_1,
- 2, /* Elements count */
- &asn_SPC_AssistBTSData_R98_ExpOTD_specs_1 /* Additional specs */
+ "AssistBTSData-R98-ExpOTD",
+ "AssistBTSData-R98-ExpOTD",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AssistBTSData_R98_ExpOTD_tags_1,
+ sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_AssistBTSData_R98_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_AssistBTSData_R98_ExpOTD_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AssistBTSData_R98_ExpOTD_1,
+ 2, /* Elements count */
+ &asn_SPC_AssistBTSData_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.h
index 72f328826..f661bf8c9 100644
--- a/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/AssistBTSData-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AssistBTSData_R98_ExpOTD_H_
#define _AssistBTSData_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AssistBTSData.c b/src/core/libs/supl/asn-rrlp/AssistBTSData.c
index 9091fb0ca..d95713fc5 100644
--- a/src/core/libs/supl/asn-rrlp/AssistBTSData.c
+++ b/src/core/libs/supl/asn-rrlp/AssistBTSData.c
@@ -1,101 +1,83 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AssistBTSData.h"
static asn_TYPE_member_t asn_MBR_AssistBTSData_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, bsic),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSIC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, multiFrameOffset),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MultiFrameOffset,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "multiFrameOffset"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, timeSlotScheme),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TimeSlotScheme,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeSlotScheme"
- },
- { ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, roughRTD),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RoughRTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "roughRTD"
- },
- { ATF_POINTER, 1, offsetof(struct AssistBTSData, calcAssistanceBTS),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CalcAssistanceBTS,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "calcAssistanceBTS"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, bsic),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSIC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsic"},
+ {ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, multiFrameOffset),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MultiFrameOffset,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "multiFrameOffset"},
+ {ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, timeSlotScheme),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TimeSlotScheme,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeSlotScheme"},
+ {ATF_NOFLAGS, 0, offsetof(struct AssistBTSData, roughRTD),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RoughRTD, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "roughRTD"},
+ {ATF_POINTER, 1, offsetof(struct AssistBTSData, calcAssistanceBTS),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CalcAssistanceBTS,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "calcAssistanceBTS"},
};
-static int asn_MAP_AssistBTSData_oms_1[] = { 4 };
+static int asn_MAP_AssistBTSData_oms_1[] = {4};
static ber_tlv_tag_t asn_DEF_AssistBTSData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AssistBTSData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsic at 229 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* multiFrameOffset at 230 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeSlotScheme at 231 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roughRTD at 232 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* calcAssistanceBTS at 235 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bsic at 229 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* multiFrameOffset at 230 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* timeSlotScheme at 231 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* roughRTD at 232 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* calcAssistanceBTS at 235 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AssistBTSData_specs_1 = {
- sizeof(struct AssistBTSData),
- offsetof(struct AssistBTSData, _asn_ctx),
- asn_MAP_AssistBTSData_tag2el_1,
- 5, /* Count of tags in the map */
- asn_MAP_AssistBTSData_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct AssistBTSData),
+ offsetof(struct AssistBTSData, _asn_ctx),
+ asn_MAP_AssistBTSData_tag2el_1,
+ 5, /* Count of tags in the map */
+ asn_MAP_AssistBTSData_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AssistBTSData = {
- "AssistBTSData",
- "AssistBTSData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AssistBTSData_tags_1,
- sizeof(asn_DEF_AssistBTSData_tags_1)
- /sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
- asn_DEF_AssistBTSData_tags_1, /* Same as above */
- sizeof(asn_DEF_AssistBTSData_tags_1)
- /sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AssistBTSData_1,
- 5, /* Elements count */
- &asn_SPC_AssistBTSData_specs_1 /* Additional specs */
+ "AssistBTSData",
+ "AssistBTSData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AssistBTSData_tags_1,
+ sizeof(asn_DEF_AssistBTSData_tags_1) /
+ sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
+ asn_DEF_AssistBTSData_tags_1, /* Same as above */
+ sizeof(asn_DEF_AssistBTSData_tags_1) /
+ sizeof(asn_DEF_AssistBTSData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AssistBTSData_1,
+ 5, /* Elements count */
+ &asn_SPC_AssistBTSData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AssistBTSData.h b/src/core/libs/supl/asn-rrlp/AssistBTSData.h
index 61d38bc20..31ca04098 100644
--- a/src/core/libs/supl/asn-rrlp/AssistBTSData.h
+++ b/src/core/libs/supl/asn-rrlp/AssistBTSData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AssistBTSData_H_
#define _AssistBTSData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/AssistanceData.c b/src/core/libs/supl/asn-rrlp/AssistanceData.c
index 3c2f29c5a..d07a671c6 100644
--- a/src/core/libs/supl/asn-rrlp/AssistanceData.c
+++ b/src/core/libs/supl/asn-rrlp/AssistanceData.c
@@ -1,131 +1,114 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "AssistanceData.h"
static asn_TYPE_member_t asn_MBR_AssistanceData_1[] = {
- { ATF_POINTER, 8, offsetof(struct AssistanceData, referenceAssistData),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceAssistData"
- },
- { ATF_POINTER, 7, offsetof(struct AssistanceData, msrAssistData),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MsrAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrAssistData"
- },
- { ATF_POINTER, 6, offsetof(struct AssistanceData, systemInfoAssistData),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SystemInfoAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoAssistData"
- },
- { ATF_POINTER, 5, offsetof(struct AssistanceData, gps_AssistData),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPS_AssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gps-AssistData"
- },
- { ATF_POINTER, 4, offsetof(struct AssistanceData, moreAssDataToBeSent),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MoreAssDataToBeSent,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "moreAssDataToBeSent"
- },
- { ATF_POINTER, 3, offsetof(struct AssistanceData, extensionContainer),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExtensionContainer,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extensionContainer"
- },
- { ATF_POINTER, 2, offsetof(struct AssistanceData, rel98_AssistanceData_Extension),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel98_AssistanceData_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel98-AssistanceData-Extension"
- },
- { ATF_POINTER, 1, offsetof(struct AssistanceData, rel5_AssistanceData_Extension),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel5_AssistanceData_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel5-AssistanceData-Extension"
- },
+ {ATF_POINTER, 8, offsetof(struct AssistanceData, referenceAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceAssistData"},
+ {ATF_POINTER, 7, offsetof(struct AssistanceData, msrAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MsrAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrAssistData"},
+ {ATF_POINTER, 6, offsetof(struct AssistanceData, systemInfoAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SystemInfoAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoAssistData"},
+ {ATF_POINTER, 5, offsetof(struct AssistanceData, gps_AssistData),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPS_AssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gps-AssistData"},
+ {ATF_POINTER, 4, offsetof(struct AssistanceData, moreAssDataToBeSent),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MoreAssDataToBeSent,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "moreAssDataToBeSent"},
+ {ATF_POINTER, 3, offsetof(struct AssistanceData, extensionContainer),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExtensionContainer,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extensionContainer"},
+ {ATF_POINTER, 2,
+ offsetof(struct AssistanceData, rel98_AssistanceData_Extension),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel98_AssistanceData_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel98-AssistanceData-Extension"},
+ {ATF_POINTER, 1,
+ offsetof(struct AssistanceData, rel5_AssistanceData_Extension),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel5_AssistanceData_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel5-AssistanceData-Extension"},
};
-static int asn_MAP_AssistanceData_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
+static int asn_MAP_AssistanceData_oms_1[] = {0, 1, 2, 3, 4, 5, 6, 7};
static ber_tlv_tag_t asn_DEF_AssistanceData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_AssistanceData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceAssistData at 75 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* msrAssistData at 76 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* systemInfoAssistData at 77 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* gps-AssistData at 78 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* moreAssDataToBeSent at 79 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensionContainer at 83 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* rel98-AssistanceData-Extension at 86 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* rel5-AssistanceData-Extension at 87 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* referenceAssistData at 75 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* msrAssistData at 76 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* systemInfoAssistData at 77 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* gps-AssistData at 78 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0}, /* moreAssDataToBeSent at 79 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* extensionContainer at 83 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* rel98-AssistanceData-Extension at 86 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0} /* rel5-AssistanceData-Extension at 87 */
};
static asn_SEQUENCE_specifics_t asn_SPC_AssistanceData_specs_1 = {
- sizeof(struct AssistanceData),
- offsetof(struct AssistanceData, _asn_ctx),
- asn_MAP_AssistanceData_tag2el_1,
- 8, /* Count of tags in the map */
- asn_MAP_AssistanceData_oms_1, /* Optional members */
- 6, 2, /* Root/Additions */
- 5, /* Start extensions */
- 9 /* Stop extensions */
+ sizeof(struct AssistanceData),
+ offsetof(struct AssistanceData, _asn_ctx),
+ asn_MAP_AssistanceData_tag2el_1,
+ 8, /* Count of tags in the map */
+ asn_MAP_AssistanceData_oms_1, /* Optional members */
+ 6,
+ 2, /* Root/Additions */
+ 5, /* Start extensions */
+ 9 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_AssistanceData = {
- "AssistanceData",
- "AssistanceData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_AssistanceData_tags_1,
- sizeof(asn_DEF_AssistanceData_tags_1)
- /sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
- asn_DEF_AssistanceData_tags_1, /* Same as above */
- sizeof(asn_DEF_AssistanceData_tags_1)
- /sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_AssistanceData_1,
- 8, /* Elements count */
- &asn_SPC_AssistanceData_specs_1 /* Additional specs */
+ "AssistanceData",
+ "AssistanceData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_AssistanceData_tags_1,
+ sizeof(asn_DEF_AssistanceData_tags_1) /
+ sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
+ asn_DEF_AssistanceData_tags_1, /* Same as above */
+ sizeof(asn_DEF_AssistanceData_tags_1) /
+ sizeof(asn_DEF_AssistanceData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_AssistanceData_1,
+ 8, /* Elements count */
+ &asn_SPC_AssistanceData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/AssistanceData.h b/src/core/libs/supl/asn-rrlp/AssistanceData.h
index e0dcab542..25b9da129 100644
--- a/src/core/libs/supl/asn-rrlp/AssistanceData.h
+++ b/src/core/libs/supl/asn-rrlp/AssistanceData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _AssistanceData_H_
#define _AssistanceData_H_
-
#include
/* Including external dependencies */
@@ -38,11 +37,13 @@ extern "C"
MoreAssDataToBeSent_t *moreAssDataToBeSent /* OPTIONAL */;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
- struct Rel98_AssistanceData_Extension *rel98_AssistanceData_Extension /* OPTIONAL */;
- struct Rel5_AssistanceData_Extension *rel5_AssistanceData_Extension /* OPTIONAL */;
+ * This type is extensible,
+ * possible extensions are below.
+ */
+ struct Rel98_AssistanceData_Extension
+ *rel98_AssistanceData_Extension /* OPTIONAL */;
+ struct Rel5_AssistanceData_Extension
+ *rel5_AssistanceData_Extension /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/BCCHCarrier.c b/src/core/libs/supl/asn-rrlp/BCCHCarrier.c
index b6e340cfb..861086e4e 100644
--- a/src/core/libs/supl/asn-rrlp/BCCHCarrier.c
+++ b/src/core/libs/supl/asn-rrlp/BCCHCarrier.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "BCCHCarrier.h"
-int
-BCCHCarrier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int BCCHCarrier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-BCCHCarrier_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void BCCHCarrier_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-BCCHCarrier_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void BCCHCarrier_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-BCCHCarrier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int BCCHCarrier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-BCCHCarrier_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) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t BCCHCarrier_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)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-BCCHCarrier_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) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t BCCHCarrier_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)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-BCCHCarrier_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) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t BCCHCarrier_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)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-BCCHCarrier_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) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t BCCHCarrier_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)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-BCCHCarrier_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t BCCHCarrier_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-BCCHCarrier_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- BCCHCarrier_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t BCCHCarrier_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ BCCHCarrier_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_BCCH_CARRIER_CONSTR_1 = {
- { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1023} /* (0..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_BCCHCarrier_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_BCCHCarrier = {
- "BCCHCarrier",
- "BCCHCarrier",
- BCCHCarrier_free,
- BCCHCarrier_print,
- BCCHCarrier_constraint,
- BCCHCarrier_decode_ber,
- BCCHCarrier_encode_der,
- BCCHCarrier_decode_xer,
- BCCHCarrier_encode_xer,
- BCCHCarrier_decode_uper,
- BCCHCarrier_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BCCHCarrier_tags_1,
- sizeof(asn_DEF_BCCHCarrier_tags_1)
- /sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
- asn_DEF_BCCHCarrier_tags_1, /* Same as above */
- sizeof(asn_DEF_BCCHCarrier_tags_1)
- /sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_BCCH_CARRIER_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "BCCHCarrier",
+ "BCCHCarrier",
+ BCCHCarrier_free,
+ BCCHCarrier_print,
+ BCCHCarrier_constraint,
+ BCCHCarrier_decode_ber,
+ BCCHCarrier_encode_der,
+ BCCHCarrier_decode_xer,
+ BCCHCarrier_encode_xer,
+ BCCHCarrier_decode_uper,
+ BCCHCarrier_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BCCHCarrier_tags_1,
+ sizeof(asn_DEF_BCCHCarrier_tags_1) /
+ sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
+ asn_DEF_BCCHCarrier_tags_1, /* Same as above */
+ sizeof(asn_DEF_BCCHCarrier_tags_1) /
+ sizeof(asn_DEF_BCCHCarrier_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_BCCH_CARRIER_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/BCCHCarrier.h b/src/core/libs/supl/asn-rrlp/BCCHCarrier.h
index cbee290a1..b9deac158 100644
--- a/src/core/libs/supl/asn-rrlp/BCCHCarrier.h
+++ b/src/core/libs/supl/asn-rrlp/BCCHCarrier.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _BCCHCarrier_H_
#define _BCCHCarrier_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/BIT_STRING.c b/src/core/libs/supl/asn-rrlp/BIT_STRING.c
index 9b9827127..8439afc33 100644
--- a/src/core/libs/supl/asn-rrlp/BIT_STRING.c
+++ b/src/core/libs/supl/asn-rrlp/BIT_STRING.c
@@ -10,180 +10,175 @@
* BIT STRING basic type description.
*/
static ber_tlv_tag_t asn_DEF_BIT_STRING_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))};
static asn_OCTET_STRING_specifics_t asn_DEF_BIT_STRING_specs = {
- sizeof(BIT_STRING_t),
- offsetof(BIT_STRING_t, _asn_ctx),
- ASN_OSUBV_BIT
-};
+ sizeof(BIT_STRING_t), offsetof(BIT_STRING_t, _asn_ctx), ASN_OSUBV_BIT};
asn_TYPE_descriptor_t asn_DEF_BIT_STRING = {
- "BIT STRING",
- "BIT_STRING",
- OCTET_STRING_free, /* Implemented in terms of OCTET STRING */
- BIT_STRING_print,
- BIT_STRING_constraint,
- OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
- OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */
- OCTET_STRING_decode_xer_binary,
- BIT_STRING_encode_xer,
- OCTET_STRING_decode_uper, /* Unaligned PER decoder */
- OCTET_STRING_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BIT_STRING_tags,
- sizeof(asn_DEF_BIT_STRING_tags)
- / 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]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- &asn_DEF_BIT_STRING_specs
-};
+ "BIT STRING",
+ "BIT_STRING",
+ OCTET_STRING_free, /* Implemented in terms of OCTET STRING */
+ BIT_STRING_print,
+ BIT_STRING_constraint,
+ OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
+ OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */
+ OCTET_STRING_decode_xer_binary,
+ BIT_STRING_encode_xer,
+ OCTET_STRING_decode_uper, /* Unaligned PER decoder */
+ OCTET_STRING_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BIT_STRING_tags,
+ sizeof(asn_DEF_BIT_STRING_tags) / 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]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ &asn_DEF_BIT_STRING_specs};
/*
* BIT STRING generic constraint.
*/
-int
-BIT_STRING_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
+int BIT_STRING_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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) {
- _ASN_CTFAIL(app_key, td, sptr,
- "%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__);
- return -1;
- }
+ if (st && st->buf)
+ {
+ if ((st->size == 0 && st->bits_unused) || st->bits_unused < 0 ||
+ st->bits_unused > 7)
+ {
+ _ASN_CTFAIL(app_key, td, sptr,
+ "%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__);
+ return -1;
+ }
- return 0;
+ return 0;
}
-static char *_bit_pattern[16] = {
- "0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111",
- "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"
-};
+static char *_bit_pattern[16] = {"0000", "0001", "0010", "0011", "0100", "0101",
+ "0110", "0111", "1000", "1001", "1010", "1011",
+ "1100", "1101", "1110", "1111"};
-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) {
- asn_enc_rval_t er;
- char scratch[128];
- char *p = scratch;
- char *scend = scratch + (sizeof(scratch) - 10);
- const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
- int xcan = (flags & XER_F_CANONICAL);
- uint8_t *buf;
- uint8_t *end;
+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)
+{
+ asn_enc_rval_t er;
+ char scratch[128];
+ char *p = scratch;
+ char *scend = scratch + (sizeof(scratch) - 10);
+ const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
+ int xcan = (flags & XER_F_CANONICAL);
+ uint8_t *buf;
+ uint8_t *end;
- if(!st || !st->buf)
- _ASN_ENCODE_FAILED;
+ if (!st || !st->buf) _ASN_ENCODE_FAILED;
- er.encoded = 0;
+ er.encoded = 0;
- buf = st->buf;
- end = buf + st->size - 1; /* Last byte is special */
+ buf = st->buf;
+ end = buf + st->size - 1; /* Last byte is special */
- /*
- * Binary dump
- */
- for(; buf < end; buf++) {
- int v = *buf;
- int nline = xcan?0:(((buf - st->buf) % 8) == 0);
- if(p >= scend || nline) {
- er.encoded += p - scratch;
- _ASN_CALLBACK(scratch, p - scratch);
- p = scratch;
- if(nline) _i_ASN_TEXT_INDENT(1, ilevel);
- }
- memcpy(p + 0, _bit_pattern[v >> 4], 4);
- memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
- p += 8;
- }
+ /*
+ * Binary dump
+ */
+ for (; buf < end; buf++)
+ {
+ int v = *buf;
+ int nline = xcan ? 0 : (((buf - st->buf) % 8) == 0);
+ if (p >= scend || nline)
+ {
+ er.encoded += p - scratch;
+ _ASN_CALLBACK(scratch, p - scratch);
+ p = scratch;
+ if (nline) _i_ASN_TEXT_INDENT(1, ilevel);
+ }
+ memcpy(p + 0, _bit_pattern[v >> 4], 4);
+ memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
+ p += 8;
+ }
- if(!xcan && ((buf - st->buf) % 8) == 0)
- _i_ASN_TEXT_INDENT(1, ilevel);
- er.encoded += p - scratch;
- _ASN_CALLBACK(scratch, p - scratch);
- p = scratch;
+ if (!xcan && ((buf - st->buf) % 8) == 0) _i_ASN_TEXT_INDENT(1, ilevel);
+ er.encoded += p - scratch;
+ _ASN_CALLBACK(scratch, p - scratch);
+ p = scratch;
- if(buf == end) {
- int v = *buf;
- int ubits = st->bits_unused;
- int i;
- for(i = 7; i >= ubits; i--)
- *p++ = (v & (1 << i)) ? 0x31 : 0x30;
- er.encoded += p - scratch;
- _ASN_CALLBACK(scratch, p - scratch);
- }
+ if (buf == end)
+ {
+ int v = *buf;
+ int ubits = st->bits_unused;
+ int i;
+ for (i = 7; i >= ubits; i--) *p++ = (v & (1 << i)) ? 0x31 : 0x30;
+ er.encoded += p - scratch;
+ _ASN_CALLBACK(scratch, p - scratch);
+ }
- if(!xcan) _i_ASN_TEXT_INDENT(1, ilevel - 1);
+ if (!xcan) _i_ASN_TEXT_INDENT(1, ilevel - 1);
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
cb_failed:
- _ASN_ENCODE_FAILED;
+ _ASN_ENCODE_FAILED;
}
-
/*
* BIT STRING specific contents printer.
*/
-int
-BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- 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;
- uint8_t *buf;
- uint8_t *end;
- char *p = scratch;
+int BIT_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
+ 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;
+ uint8_t *buf;
+ uint8_t *end;
+ char *p = scratch;
- (void)td; /* Unused argument */
+ (void)td; /* Unused argument */
- if(!st || !st->buf)
- return (cb("", 8, app_key) < 0) ? -1 : 0;
+ if (!st || !st->buf) return (cb("", 8, app_key) < 0) ? -1 : 0;
- ilevel++;
- buf = st->buf;
- end = buf + st->size;
+ ilevel++;
+ buf = st->buf;
+ end = buf + st->size;
- /*
- * Hexadecimal dump.
- */
- for(; buf < end; buf++) {
- if((buf - st->buf) % 16 == 0 && (st->size > 16)
- && buf != st->buf) {
- _i_INDENT(1);
- /* Dump the string */
- if(cb(scratch, p - scratch, app_key) < 0) return -1;
- p = scratch;
- }
- *p++ = h2c[*buf >> 4];
- *p++ = h2c[*buf & 0x0F];
- *p++ = 0x20;
- }
+ /*
+ * Hexadecimal dump.
+ */
+ for (; buf < end; buf++)
+ {
+ if ((buf - st->buf) % 16 == 0 && (st->size > 16) && buf != st->buf)
+ {
+ _i_INDENT(1);
+ /* Dump the string */
+ if (cb(scratch, p - scratch, app_key) < 0) return -1;
+ p = scratch;
+ }
+ *p++ = h2c[*buf >> 4];
+ *p++ = h2c[*buf & 0x0F];
+ *p++ = 0x20;
+ }
- if(p > scratch) {
- p--; /* Eat the tailing space */
+ if (p > scratch)
+ {
+ p--; /* Eat the tailing space */
- if((st->size > 16)) {
- _i_INDENT(1);
- }
+ if ((st->size > 16))
+ {
+ _i_INDENT(1);
+ }
- /* Dump the incomplete 16-bytes row */
- if(cb(scratch, p - scratch, app_key) < 0)
- return -1;
- }
+ /* Dump the incomplete 16-bytes row */
+ if (cb(scratch, p - scratch, app_key) < 0) return -1;
+ }
- return 0;
+ return 0;
}
-
diff --git a/src/core/libs/supl/asn-rrlp/BOOLEAN.c b/src/core/libs/supl/asn-rrlp/BOOLEAN.c
index 2c2bbcf2f..985f2638e 100644
--- a/src/core/libs/supl/asn-rrlp/BOOLEAN.c
+++ b/src/core/libs/supl/asn-rrlp/BOOLEAN.c
@@ -10,275 +10,303 @@
* BOOLEAN basic type description.
*/
static ber_tlv_tag_t asn_DEF_BOOLEAN_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (1 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2))};
asn_TYPE_descriptor_t asn_DEF_BOOLEAN = {
- "BOOLEAN",
- "BOOLEAN",
- BOOLEAN_free,
- BOOLEAN_print,
- asn_generic_no_constraint,
- BOOLEAN_decode_ber,
- BOOLEAN_encode_der,
- BOOLEAN_decode_xer,
- BOOLEAN_encode_xer,
- BOOLEAN_decode_uper, /* Unaligned PER decoder */
- BOOLEAN_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BOOLEAN_tags,
- sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
- asn_DEF_BOOLEAN_tags, /* Same as above */
- sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "BOOLEAN",
+ "BOOLEAN",
+ BOOLEAN_free,
+ BOOLEAN_print,
+ asn_generic_no_constraint,
+ BOOLEAN_decode_ber,
+ BOOLEAN_encode_der,
+ BOOLEAN_decode_xer,
+ BOOLEAN_encode_xer,
+ BOOLEAN_decode_uper, /* Unaligned PER decoder */
+ BOOLEAN_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BOOLEAN_tags,
+ sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
+ asn_DEF_BOOLEAN_tags, /* Same as above */
+ sizeof(asn_DEF_BOOLEAN_tags) / sizeof(asn_DEF_BOOLEAN_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
/*
* Decode BOOLEAN type.
*/
-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) {
- BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
- asn_dec_rval_t rval;
- ber_tlv_len_t length;
- ber_tlv_len_t lidx;
+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)
+{
+ BOOLEAN_t *st = (BOOLEAN_t *)*bool_value;
+ asn_dec_rval_t rval;
+ ber_tlv_len_t length;
+ ber_tlv_len_t lidx;
- if(st == NULL) {
- st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st)));
- if(st == NULL) {
- rval.code = RC_FAIL;
- rval.consumed = 0;
- return rval;
- }
- }
+ if (st == NULL)
+ {
+ st = (BOOLEAN_t *)(*bool_value = CALLOC(1, sizeof(*st)));
+ if (st == NULL)
+ {
+ rval.code = RC_FAIL;
+ rval.consumed = 0;
+ return rval;
+ }
+ }
- ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)",
- td->name, tag_mode);
+ ASN_DEBUG("Decoding %s as BOOLEAN (tm=%d)", td->name, tag_mode);
- /*
- * Check tags.
- */
- rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
- tag_mode, 0, &length, 0);
- if(rval.code != RC_OK)
- return rval;
+ /*
+ * Check tags.
+ */
+ rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, tag_mode, 0,
+ &length, 0);
+ if (rval.code != RC_OK) return rval;
- ASN_DEBUG("Boolean length is %d bytes", (int)length);
+ ASN_DEBUG("Boolean length is %d bytes", (int)length);
- buf_ptr = ((const char *)buf_ptr) + rval.consumed;
- size -= rval.consumed;
- if(length > (ber_tlv_len_t)size) {
- rval.code = RC_WMORE;
- rval.consumed = 0;
- return rval;
- }
+ buf_ptr = ((const char *)buf_ptr) + rval.consumed;
+ size -= rval.consumed;
+ if (length > (ber_tlv_len_t)size)
+ {
+ rval.code = RC_WMORE;
+ rval.consumed = 0;
+ return rval;
+ }
- /*
- * Compute boolean value.
- */
- for(*st = 0, lidx = 0;
- (lidx < length) && *st == 0; lidx++) {
- /*
- * Very simple approach: read bytes until the end or
- * value is already TRUE.
- * BOOLEAN is not supposed to contain meaningful data anyway.
- */
- *st |= ((const uint8_t *)buf_ptr)[lidx];
- }
+ /*
+ * Compute boolean value.
+ */
+ for (*st = 0, lidx = 0; (lidx < length) && *st == 0; lidx++)
+ {
+ /*
+ * Very simple approach: read bytes until the end or
+ * value is already TRUE.
+ * BOOLEAN is not supposed to contain meaningful data anyway.
+ */
+ *st |= ((const uint8_t *)buf_ptr)[lidx];
+ }
- rval.code = RC_OK;
- rval.consumed += length;
+ rval.code = RC_OK;
+ rval.consumed += length;
- ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d",
- (long)rval.consumed, (long)length,
- td->name, *st);
-
- return rval;
+ ASN_DEBUG("Took %ld/%ld bytes to encode %s, value=%d", (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) {
- asn_enc_rval_t erval;
- BOOLEAN_t *st = (BOOLEAN_t *)sptr;
+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)
+{
+ asn_enc_rval_t erval;
+ BOOLEAN_t *st = (BOOLEAN_t *)sptr;
- erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key);
- if(erval.encoded == -1) {
- erval.failed_type = td;
- erval.structure_ptr = sptr;
- return erval;
- }
+ erval.encoded = der_write_tags(td, 1, tag_mode, 0, tag, cb, app_key);
+ if (erval.encoded == -1)
+ {
+ erval.failed_type = td;
+ erval.structure_ptr = sptr;
+ return erval;
+ }
- if(cb) {
- uint8_t bool_value;
+ if (cb)
+ {
+ uint8_t bool_value;
- bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */
+ bool_value = *st ? 0xff : 0; /* 0xff mandated by DER */
- if(cb(&bool_value, 1, app_key) < 0) {
- erval.encoded = -1;
- erval.failed_type = td;
- erval.structure_ptr = sptr;
- return erval;
- }
- }
+ if (cb(&bool_value, 1, app_key) < 0)
+ {
+ erval.encoded = -1;
+ erval.failed_type = td;
+ erval.structure_ptr = sptr;
+ return erval;
+ }
+ }
- erval.encoded += 1;
+ erval.encoded += 1;
- _ASN_ENCODED_OK(erval);
+ _ASN_ENCODED_OK(erval);
}
-
/*
* Decode the chunk of XML text encoding INTEGER.
*/
-static enum xer_pbd_rval
-BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) {
- BOOLEAN_t *st = (BOOLEAN_t *)sptr;
- const char *p = (const char *)chunk_buf;
+static enum xer_pbd_rval BOOLEAN__xer_body_decode(asn_TYPE_descriptor_t *td,
+ void *sptr,
+ const void *chunk_buf,
+ size_t chunk_size)
+{
+ BOOLEAN_t *st = (BOOLEAN_t *)sptr;
+ const char *p = (const char *)chunk_buf;
- (void)td;
+ (void)td;
- if(chunk_size && p[0] == 0x3c /* '<' */) {
- switch(xer_check_tag(chunk_buf, chunk_size, "false")) {
- case XCT_BOTH:
- /* "" */
- *st = 0;
- break;
- case XCT_UNKNOWN_BO:
- if(xer_check_tag(chunk_buf, chunk_size, "true")
- != XCT_BOTH)
- return XPBD_BROKEN_ENCODING;
- /* "" */
- *st = 1; /* Or 0xff as in DER?.. */
- break;
- default:
- return XPBD_BROKEN_ENCODING;
- }
- return XPBD_BODY_CONSUMED;
- } else {
- if(xer_is_whitespace(chunk_buf, chunk_size))
- return XPBD_NOT_BODY_IGNORE;
- else
- return XPBD_BROKEN_ENCODING;
- }
+ if (chunk_size && p[0] == 0x3c /* '<' */)
+ {
+ switch (xer_check_tag(chunk_buf, chunk_size, "false"))
+ {
+ case XCT_BOTH:
+ /* "" */
+ *st = 0;
+ break;
+ case XCT_UNKNOWN_BO:
+ if (xer_check_tag(chunk_buf, chunk_size, "true") !=
+ XCT_BOTH)
+ return XPBD_BROKEN_ENCODING;
+ /* "" */
+ *st = 1; /* Or 0xff as in DER?.. */
+ break;
+ default:
+ return XPBD_BROKEN_ENCODING;
+ }
+ return XPBD_BODY_CONSUMED;
+ }
+ else
+ {
+ if (xer_is_whitespace(chunk_buf, chunk_size))
+ return XPBD_NOT_BODY_IGNORE;
+ else
+ return XPBD_BROKEN_ENCODING;
+ }
}
-
-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) {
-
- return xer_decode_primitive(opt_codec_ctx, td,
- sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size,
- BOOLEAN__xer_body_decode);
+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)
+{
+ return xer_decode_primitive(opt_codec_ctx, td, 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) {
- const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
- asn_enc_rval_t er;
+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)
+{
+ const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
+ asn_enc_rval_t er;
- (void)ilevel;
- (void)flags;
+ (void)ilevel;
+ (void)flags;
- if(!st) _ASN_ENCODE_FAILED;
+ if (!st) _ASN_ENCODE_FAILED;
- if(*st) {
- _ASN_CALLBACK("", 7);
- er.encoded = 7;
- } else {
- _ASN_CALLBACK("", 8);
- er.encoded = 8;
- }
+ if (*st)
+ {
+ _ASN_CALLBACK("", 7);
+ er.encoded = 7;
+ }
+ else
+ {
+ _ASN_CALLBACK("", 8);
+ er.encoded = 8;
+ }
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
cb_failed:
- _ASN_ENCODE_FAILED;
+ _ASN_ENCODE_FAILED;
}
-int
-BOOLEAN_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
- const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
- const char *buf;
- size_t buflen;
+int BOOLEAN_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
+ const char *buf;
+ size_t buflen;
- (void)td; /* Unused argument */
- (void)ilevel; /* Unused argument */
+ (void)td; /* Unused argument */
+ (void)ilevel; /* Unused argument */
- if(st) {
- if(*st) {
- buf = "TRUE";
- buflen = 4;
- } else {
- buf = "FALSE";
- buflen = 5;
- }
- } else {
- buf = "";
- buflen = 8;
- }
+ if (st)
+ {
+ if (*st)
+ {
+ buf = "TRUE";
+ buflen = 4;
+ }
+ else
+ {
+ buf = "FALSE";
+ buflen = 5;
+ }
+ }
+ else
+ {
+ buf = "";
+ buflen = 8;
+ }
- return (cb(buf, buflen, app_key) < 0) ? -1 : 0;
+ return (cb(buf, buflen, app_key) < 0) ? -1 : 0;
}
-void
-BOOLEAN_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
- if(td && ptr && !contents_only) {
- FREEMEM(ptr);
- }
+void BOOLEAN_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only)
+{
+ if (td && ptr && !contents_only)
+ {
+ FREEMEM(ptr);
+ }
}
-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_dec_rval_t rv;
- BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
+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_dec_rval_t rv;
+ BOOLEAN_t *st = (BOOLEAN_t *)*sptr;
- (void)opt_codec_ctx;
- (void)constraints;
+ (void)opt_codec_ctx;
+ (void)constraints;
- if(!st) {
- st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st)));
- if(!st) _ASN_DECODE_FAILED;
- }
+ if (!st)
+ {
+ st = (BOOLEAN_t *)(*sptr = MALLOC(sizeof(*st)));
+ if (!st) _ASN_DECODE_FAILED;
+ }
- /*
- * 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;
- }
+ /*
+ * 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;
+ }
- ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
+ ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
- rv.code = RC_OK;
- rv.consumed = 1;
- return rv;
+ rv.code = RC_OK;
+ rv.consumed = 1;
+ return rv;
}
+asn_enc_rval_t BOOLEAN_encode_uper(asn_TYPE_descriptor_t *td,
+ 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;
-asn_enc_rval_t
-BOOLEAN_encode_uper(asn_TYPE_descriptor_t *td,
- 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;
+ (void)constraints;
- (void)constraints;
+ if (!st) _ASN_ENCODE_FAILED;
- if(!st) _ASN_ENCODE_FAILED;
+ per_put_few_bits(po, *st ? 1 : 0, 1);
- per_put_few_bits(po, *st ? 1 : 0, 1);
-
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
}
diff --git a/src/core/libs/supl/asn-rrlp/BOOLEAN.h b/src/core/libs/supl/asn-rrlp/BOOLEAN.h
index b74f2b430..b99faaa4a 100644
--- a/src/core/libs/supl/asn-rrlp/BOOLEAN.h
+++ b/src/core/libs/supl/asn-rrlp/BOOLEAN.h
@@ -13,10 +13,10 @@ 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.
- */
+ * 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;
diff --git a/src/core/libs/supl/asn-rrlp/BSIC.c b/src/core/libs/supl/asn-rrlp/BSIC.c
index de1ed2b8f..ce7b30ad0 100644
--- a/src/core/libs/supl/asn-rrlp/BSIC.c
+++ b/src/core/libs/supl/asn-rrlp/BSIC.c
@@ -1,145 +1,152 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "BSIC.h"
-int
-BSIC_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int BSIC_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-BSIC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void BSIC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-BSIC_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- BSIC_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void BSIC_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-BSIC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int BSIC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-BSIC_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) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t BSIC_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)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-BSIC_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) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t BSIC_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)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-BSIC_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) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t BSIC_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)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-BSIC_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) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t BSIC_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)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-BSIC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t BSIC_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-BSIC_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- BSIC_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t BSIC_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ BSIC_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_BSIC_CONSTR_1 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_BSIC_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_BSIC = {
- "BSIC",
- "BSIC",
- BSIC_free,
- BSIC_print,
- BSIC_constraint,
- BSIC_decode_ber,
- BSIC_encode_der,
- BSIC_decode_xer,
- BSIC_encode_xer,
- BSIC_decode_uper,
- BSIC_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BSIC_tags_1,
- sizeof(asn_DEF_BSIC_tags_1)
- /sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
- asn_DEF_BSIC_tags_1, /* Same as above */
- sizeof(asn_DEF_BSIC_tags_1)
- /sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_BSIC_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "BSIC",
+ "BSIC",
+ BSIC_free,
+ BSIC_print,
+ BSIC_constraint,
+ BSIC_decode_ber,
+ BSIC_encode_der,
+ BSIC_decode_xer,
+ BSIC_encode_xer,
+ BSIC_decode_uper,
+ BSIC_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BSIC_tags_1,
+ sizeof(asn_DEF_BSIC_tags_1) / sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
+ asn_DEF_BSIC_tags_1, /* Same as above */
+ sizeof(asn_DEF_BSIC_tags_1) / sizeof(asn_DEF_BSIC_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_BSIC_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/BSIC.h b/src/core/libs/supl/asn-rrlp/BSIC.h
index d98c3a243..6f93b1918 100644
--- a/src/core/libs/supl/asn-rrlp/BSIC.h
+++ b/src/core/libs/supl/asn-rrlp/BSIC.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _BSIC_H_
#define _BSIC_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/BSICAndCarrier.c b/src/core/libs/supl/asn-rrlp/BSICAndCarrier.c
index ebd1888fe..7ec6c745f 100644
--- a/src/core/libs/supl/asn-rrlp/BSICAndCarrier.c
+++ b/src/core/libs/supl/asn-rrlp/BSICAndCarrier.c
@@ -1,69 +1,62 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "BSICAndCarrier.h"
static asn_TYPE_member_t asn_MBR_BSICAndCarrier_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, carrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BCCHCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "carrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, bsic),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSIC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsic"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, carrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BCCHCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "carrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct BSICAndCarrier, bsic),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSIC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsic"},
};
static ber_tlv_tag_t asn_DEF_BSICAndCarrier_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_BSICAndCarrier_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* carrier at 304 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bsic at 306 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* carrier at 304 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* bsic at 306 */
};
static asn_SEQUENCE_specifics_t asn_SPC_BSICAndCarrier_specs_1 = {
- sizeof(struct BSICAndCarrier),
- offsetof(struct BSICAndCarrier, _asn_ctx),
- asn_MAP_BSICAndCarrier_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct BSICAndCarrier),
+ offsetof(struct BSICAndCarrier, _asn_ctx),
+ asn_MAP_BSICAndCarrier_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_BSICAndCarrier = {
- "BSICAndCarrier",
- "BSICAndCarrier",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BSICAndCarrier_tags_1,
- sizeof(asn_DEF_BSICAndCarrier_tags_1)
- /sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
- asn_DEF_BSICAndCarrier_tags_1, /* Same as above */
- sizeof(asn_DEF_BSICAndCarrier_tags_1)
- /sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_BSICAndCarrier_1,
- 2, /* Elements count */
- &asn_SPC_BSICAndCarrier_specs_1 /* Additional specs */
+ "BSICAndCarrier",
+ "BSICAndCarrier",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BSICAndCarrier_tags_1,
+ sizeof(asn_DEF_BSICAndCarrier_tags_1) /
+ sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
+ asn_DEF_BSICAndCarrier_tags_1, /* Same as above */
+ sizeof(asn_DEF_BSICAndCarrier_tags_1) /
+ sizeof(asn_DEF_BSICAndCarrier_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_BSICAndCarrier_1,
+ 2, /* Elements count */
+ &asn_SPC_BSICAndCarrier_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/BSICAndCarrier.h b/src/core/libs/supl/asn-rrlp/BSICAndCarrier.h
index 2af53b890..1c54aa6a2 100644
--- a/src/core/libs/supl/asn-rrlp/BSICAndCarrier.h
+++ b/src/core/libs/supl/asn-rrlp/BSICAndCarrier.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _BSICAndCarrier_H_
#define _BSICAndCarrier_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/BTSPosition.c b/src/core/libs/supl/asn-rrlp/BTSPosition.c
index 12d5b95b4..a66dee5ba 100644
--- a/src/core/libs/supl/asn-rrlp/BTSPosition.c
+++ b/src/core/libs/supl/asn-rrlp/BTSPosition.c
@@ -1,141 +1,158 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "BTSPosition.h"
-int
-BTSPosition_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- const Ext_GeographicalInformation_t *st = (const Ext_GeographicalInformation_t *)sptr;
- size_t size;
-
- if(!sptr) {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: value not given (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
-
- size = st->size;
-
- if((size >= 1 && size <= 20)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int BTSPosition_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key)
+{
+ const Ext_GeographicalInformation_t *st =
+ (const Ext_GeographicalInformation_t *)sptr;
+ size_t size;
+
+ if (!sptr)
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
+
+ size = st->size;
+
+ if ((size >= 1 && size <= 20))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using Ext_GeographicalInformation,
* so here we adjust the DEF accordingly.
*/
-static void
-BTSPosition_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_Ext_GeographicalInformation.free_struct;
- td->print_struct = asn_DEF_Ext_GeographicalInformation.print_struct;
- td->ber_decoder = asn_DEF_Ext_GeographicalInformation.ber_decoder;
- td->der_encoder = asn_DEF_Ext_GeographicalInformation.der_encoder;
- td->xer_decoder = asn_DEF_Ext_GeographicalInformation.xer_decoder;
- td->xer_encoder = asn_DEF_Ext_GeographicalInformation.xer_encoder;
- td->uper_decoder = asn_DEF_Ext_GeographicalInformation.uper_decoder;
- td->uper_encoder = asn_DEF_Ext_GeographicalInformation.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_Ext_GeographicalInformation.per_constraints;
- td->elements = asn_DEF_Ext_GeographicalInformation.elements;
- td->elements_count = asn_DEF_Ext_GeographicalInformation.elements_count;
- td->specifics = asn_DEF_Ext_GeographicalInformation.specifics;
+static void BTSPosition_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_Ext_GeographicalInformation.free_struct;
+ td->print_struct = asn_DEF_Ext_GeographicalInformation.print_struct;
+ td->ber_decoder = asn_DEF_Ext_GeographicalInformation.ber_decoder;
+ td->der_encoder = asn_DEF_Ext_GeographicalInformation.der_encoder;
+ td->xer_decoder = asn_DEF_Ext_GeographicalInformation.xer_decoder;
+ td->xer_encoder = asn_DEF_Ext_GeographicalInformation.xer_encoder;
+ td->uper_decoder = asn_DEF_Ext_GeographicalInformation.uper_decoder;
+ td->uper_encoder = asn_DEF_Ext_GeographicalInformation.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints =
+ asn_DEF_Ext_GeographicalInformation.per_constraints;
+ td->elements = asn_DEF_Ext_GeographicalInformation.elements;
+ td->elements_count = asn_DEF_Ext_GeographicalInformation.elements_count;
+ td->specifics = asn_DEF_Ext_GeographicalInformation.specifics;
}
-void
-BTSPosition_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void BTSPosition_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-BTSPosition_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int BTSPosition_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-BTSPosition_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) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t BTSPosition_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)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-BTSPosition_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) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t BTSPosition_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)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-BTSPosition_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) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t BTSPosition_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)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-BTSPosition_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) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t BTSPosition_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)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-BTSPosition_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t BTSPosition_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-BTSPosition_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- BTSPosition_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t BTSPosition_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ BTSPosition_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static ber_tlv_tag_t asn_DEF_BTSPosition_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))};
asn_TYPE_descriptor_t asn_DEF_BTSPosition = {
- "BTSPosition",
- "BTSPosition",
- BTSPosition_free,
- BTSPosition_print,
- BTSPosition_constraint,
- BTSPosition_decode_ber,
- BTSPosition_encode_der,
- BTSPosition_decode_xer,
- BTSPosition_encode_xer,
- BTSPosition_decode_uper,
- BTSPosition_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BTSPosition_tags_1,
- sizeof(asn_DEF_BTSPosition_tags_1)
- /sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
- asn_DEF_BTSPosition_tags_1, /* Same as above */
- sizeof(asn_DEF_BTSPosition_tags_1)
- /sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "BTSPosition",
+ "BTSPosition",
+ BTSPosition_free,
+ BTSPosition_print,
+ BTSPosition_constraint,
+ BTSPosition_decode_ber,
+ BTSPosition_encode_der,
+ BTSPosition_decode_xer,
+ BTSPosition_encode_xer,
+ BTSPosition_decode_uper,
+ BTSPosition_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BTSPosition_tags_1,
+ sizeof(asn_DEF_BTSPosition_tags_1) /
+ sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
+ asn_DEF_BTSPosition_tags_1, /* Same as above */
+ sizeof(asn_DEF_BTSPosition_tags_1) /
+ sizeof(asn_DEF_BTSPosition_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/BTSPosition.h b/src/core/libs/supl/asn-rrlp/BTSPosition.h
index 70fde1aad..12acab66d 100644
--- a/src/core/libs/supl/asn-rrlp/BTSPosition.h
+++ b/src/core/libs/supl/asn-rrlp/BTSPosition.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _BTSPosition_H_
#define _BTSPosition_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/BadSignalElement.c b/src/core/libs/supl/asn-rrlp/BadSignalElement.c
index e162e0b3d..9069be966 100644
--- a/src/core/libs/supl/asn-rrlp/BadSignalElement.c
+++ b/src/core/libs/supl/asn-rrlp/BadSignalElement.c
@@ -1,101 +1,96 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "BadSignalElement.h"
-static int
-memb_badSignalID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_badSignalID_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_BAD_SIGNAL_ID_CONSTR_3 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_BadSignalElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct BadSignalElement, badSVID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "badSVID"
- },
- { ATF_POINTER, 1, offsetof(struct BadSignalElement, badSignalID),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_badSignalID_constraint_1,
- &ASN_PER_MEMB_BAD_SIGNAL_ID_CONSTR_3,
- 0,
- "badSignalID"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct BadSignalElement, badSVID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "badSVID"},
+ {ATF_POINTER, 1, offsetof(struct BadSignalElement, badSignalID),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_badSignalID_constraint_1,
+ &ASN_PER_MEMB_BAD_SIGNAL_ID_CONSTR_3, 0, "badSignalID"},
};
-static int asn_MAP_BadSignalElement_oms_1[] = { 1 };
+static int asn_MAP_BadSignalElement_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_BadSignalElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_BadSignalElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* badSVID at 1300 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* badSignalID at 1301 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* badSVID at 1300 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* badSignalID at 1301 */
};
static asn_SEQUENCE_specifics_t asn_SPC_BadSignalElement_specs_1 = {
- sizeof(struct BadSignalElement),
- offsetof(struct BadSignalElement, _asn_ctx),
- asn_MAP_BadSignalElement_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_BadSignalElement_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct BadSignalElement),
+ offsetof(struct BadSignalElement, _asn_ctx),
+ asn_MAP_BadSignalElement_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_BadSignalElement_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_BadSignalElement = {
- "BadSignalElement",
- "BadSignalElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BadSignalElement_tags_1,
- sizeof(asn_DEF_BadSignalElement_tags_1)
- /sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
- asn_DEF_BadSignalElement_tags_1, /* Same as above */
- sizeof(asn_DEF_BadSignalElement_tags_1)
- /sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_BadSignalElement_1,
- 2, /* Elements count */
- &asn_SPC_BadSignalElement_specs_1 /* Additional specs */
+ "BadSignalElement",
+ "BadSignalElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BadSignalElement_tags_1,
+ sizeof(asn_DEF_BadSignalElement_tags_1) /
+ sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
+ asn_DEF_BadSignalElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_BadSignalElement_tags_1) /
+ sizeof(asn_DEF_BadSignalElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_BadSignalElement_1,
+ 2, /* Elements count */
+ &asn_SPC_BadSignalElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/BadSignalElement.h b/src/core/libs/supl/asn-rrlp/BadSignalElement.h
index e13f5fc73..935301877 100644
--- a/src/core/libs/supl/asn-rrlp/BadSignalElement.h
+++ b/src/core/libs/supl/asn-rrlp/BadSignalElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _BadSignalElement_H_
#define _BadSignalElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/BitNumber.c b/src/core/libs/supl/asn-rrlp/BitNumber.c
index 0a430f9fa..6cd0d5ff8 100644
--- a/src/core/libs/supl/asn-rrlp/BitNumber.c
+++ b/src/core/libs/supl/asn-rrlp/BitNumber.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "BitNumber.h"
-int
-BitNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 156)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int BitNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 156))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-BitNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void BitNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-BitNumber_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void BitNumber_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-BitNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int BitNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-BitNumber_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) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t BitNumber_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)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-BitNumber_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) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t BitNumber_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)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-BitNumber_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) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t BitNumber_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)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-BitNumber_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) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t BitNumber_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)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-BitNumber_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t BitNumber_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-BitNumber_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- BitNumber_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t BitNumber_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ BitNumber_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_BIT_NUMBER_CONSTR_1 = {
- { APC_CONSTRAINED, 8, 8, 0, 156 } /* (0..156) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 156} /* (0..156) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_BitNumber_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_BitNumber = {
- "BitNumber",
- "BitNumber",
- BitNumber_free,
- BitNumber_print,
- BitNumber_constraint,
- BitNumber_decode_ber,
- BitNumber_encode_der,
- BitNumber_decode_xer,
- BitNumber_encode_xer,
- BitNumber_decode_uper,
- BitNumber_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_BitNumber_tags_1,
- sizeof(asn_DEF_BitNumber_tags_1)
- /sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
- asn_DEF_BitNumber_tags_1, /* Same as above */
- sizeof(asn_DEF_BitNumber_tags_1)
- /sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_BIT_NUMBER_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "BitNumber",
+ "BitNumber",
+ BitNumber_free,
+ BitNumber_print,
+ BitNumber_constraint,
+ BitNumber_decode_ber,
+ BitNumber_encode_der,
+ BitNumber_decode_xer,
+ BitNumber_encode_xer,
+ BitNumber_decode_uper,
+ BitNumber_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_BitNumber_tags_1,
+ sizeof(asn_DEF_BitNumber_tags_1) /
+ sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
+ asn_DEF_BitNumber_tags_1, /* Same as above */
+ sizeof(asn_DEF_BitNumber_tags_1) /
+ sizeof(asn_DEF_BitNumber_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_BIT_NUMBER_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/BitNumber.h b/src/core/libs/supl/asn-rrlp/BitNumber.h
index 7cad41929..522da533b 100644
--- a/src/core/libs/supl/asn-rrlp/BitNumber.h
+++ b/src/core/libs/supl/asn-rrlp/BitNumber.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _BitNumber_H_
#define _BitNumber_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.c b/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.c
index aa6150457..00640c2ce 100644
--- a/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.c
+++ b/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.c
@@ -1,69 +1,62 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "CalcAssistanceBTS.h"
static asn_TYPE_member_t asn_MBR_CalcAssistanceBTS_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, fineRTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_FineRTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "fineRTD"
- },
- { ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, referenceWGS84),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceWGS84,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceWGS84"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, fineRTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_FineRTD, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "fineRTD"},
+ {ATF_NOFLAGS, 0, offsetof(struct CalcAssistanceBTS, referenceWGS84),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceWGS84,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceWGS84"},
};
static ber_tlv_tag_t asn_DEF_CalcAssistanceBTS_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_CalcAssistanceBTS_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fineRTD at 241 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceWGS84 at 243 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* fineRTD at 241 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* referenceWGS84 at 243 */
};
static asn_SEQUENCE_specifics_t asn_SPC_CalcAssistanceBTS_specs_1 = {
- sizeof(struct CalcAssistanceBTS),
- offsetof(struct CalcAssistanceBTS, _asn_ctx),
- asn_MAP_CalcAssistanceBTS_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct CalcAssistanceBTS),
+ offsetof(struct CalcAssistanceBTS, _asn_ctx),
+ asn_MAP_CalcAssistanceBTS_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_CalcAssistanceBTS = {
- "CalcAssistanceBTS",
- "CalcAssistanceBTS",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_CalcAssistanceBTS_tags_1,
- sizeof(asn_DEF_CalcAssistanceBTS_tags_1)
- /sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
- asn_DEF_CalcAssistanceBTS_tags_1, /* Same as above */
- sizeof(asn_DEF_CalcAssistanceBTS_tags_1)
- /sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_CalcAssistanceBTS_1,
- 2, /* Elements count */
- &asn_SPC_CalcAssistanceBTS_specs_1 /* Additional specs */
+ "CalcAssistanceBTS",
+ "CalcAssistanceBTS",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_CalcAssistanceBTS_tags_1,
+ sizeof(asn_DEF_CalcAssistanceBTS_tags_1) /
+ sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
+ asn_DEF_CalcAssistanceBTS_tags_1, /* Same as above */
+ sizeof(asn_DEF_CalcAssistanceBTS_tags_1) /
+ sizeof(asn_DEF_CalcAssistanceBTS_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_CalcAssistanceBTS_1,
+ 2, /* Elements count */
+ &asn_SPC_CalcAssistanceBTS_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.h b/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.h
index 912b6c2c5..90a2c4bba 100644
--- a/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.h
+++ b/src/core/libs/supl/asn-rrlp/CalcAssistanceBTS.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _CalcAssistanceBTS_H_
#define _CalcAssistanceBTS_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/CellID.c b/src/core/libs/supl/asn-rrlp/CellID.c
index e412b5ff6..a2303c901 100644
--- a/src/core/libs/supl/asn-rrlp/CellID.c
+++ b/src/core/libs/supl/asn-rrlp/CellID.c
@@ -1,145 +1,152 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "CellID.h"
-int
-CellID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+int CellID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-CellID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void CellID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-CellID_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- CellID_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void CellID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-CellID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int CellID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-CellID_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) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t CellID_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)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-CellID_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) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t CellID_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)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-CellID_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) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t CellID_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)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-CellID_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) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t CellID_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)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-CellID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t CellID_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-CellID_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- CellID_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t CellID_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ CellID_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_CELL_ID_CONSTR_1 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_CellID_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_CellID = {
- "CellID",
- "CellID",
- CellID_free,
- CellID_print,
- CellID_constraint,
- CellID_decode_ber,
- CellID_encode_der,
- CellID_decode_xer,
- CellID_encode_xer,
- CellID_decode_uper,
- CellID_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_CellID_tags_1,
- sizeof(asn_DEF_CellID_tags_1)
- /sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
- asn_DEF_CellID_tags_1, /* Same as above */
- sizeof(asn_DEF_CellID_tags_1)
- /sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_CELL_ID_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "CellID",
+ "CellID",
+ CellID_free,
+ CellID_print,
+ CellID_constraint,
+ CellID_decode_ber,
+ CellID_encode_der,
+ CellID_decode_xer,
+ CellID_encode_xer,
+ CellID_decode_uper,
+ CellID_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_CellID_tags_1,
+ sizeof(asn_DEF_CellID_tags_1) / sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
+ asn_DEF_CellID_tags_1, /* Same as above */
+ sizeof(asn_DEF_CellID_tags_1) / sizeof(asn_DEF_CellID_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_CELL_ID_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/CellID.h b/src/core/libs/supl/asn-rrlp/CellID.h
index 0e83f9b49..ecda1a3c1 100644
--- a/src/core/libs/supl/asn-rrlp/CellID.h
+++ b/src/core/libs/supl/asn-rrlp/CellID.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _CellID_H_
#define _CellID_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/CellIDAndLAC.c b/src/core/libs/supl/asn-rrlp/CellIDAndLAC.c
index 2325ee78e..a68d71bbd 100644
--- a/src/core/libs/supl/asn-rrlp/CellIDAndLAC.c
+++ b/src/core/libs/supl/asn-rrlp/CellIDAndLAC.c
@@ -1,69 +1,61 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "CellIDAndLAC.h"
static asn_TYPE_member_t asn_MBR_CellIDAndLAC_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceLAC),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_LAC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceLAC"
- },
- { ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceCI),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CellID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceCI"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceLAC),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_LAC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceLAC"},
+ {ATF_NOFLAGS, 0, offsetof(struct CellIDAndLAC, referenceCI),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CellID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceCI"},
};
static ber_tlv_tag_t asn_DEF_CellIDAndLAC_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_CellIDAndLAC_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceLAC at 313 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceCI at 315 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* referenceLAC at 313 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* referenceCI at 315 */
};
static asn_SEQUENCE_specifics_t asn_SPC_CellIDAndLAC_specs_1 = {
- sizeof(struct CellIDAndLAC),
- offsetof(struct CellIDAndLAC, _asn_ctx),
- asn_MAP_CellIDAndLAC_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct CellIDAndLAC),
+ offsetof(struct CellIDAndLAC, _asn_ctx),
+ asn_MAP_CellIDAndLAC_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_CellIDAndLAC = {
- "CellIDAndLAC",
- "CellIDAndLAC",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_CellIDAndLAC_tags_1,
- sizeof(asn_DEF_CellIDAndLAC_tags_1)
- /sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
- asn_DEF_CellIDAndLAC_tags_1, /* Same as above */
- sizeof(asn_DEF_CellIDAndLAC_tags_1)
- /sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_CellIDAndLAC_1,
- 2, /* Elements count */
- &asn_SPC_CellIDAndLAC_specs_1 /* Additional specs */
+ "CellIDAndLAC",
+ "CellIDAndLAC",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_CellIDAndLAC_tags_1,
+ sizeof(asn_DEF_CellIDAndLAC_tags_1) /
+ sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
+ asn_DEF_CellIDAndLAC_tags_1, /* Same as above */
+ sizeof(asn_DEF_CellIDAndLAC_tags_1) /
+ sizeof(asn_DEF_CellIDAndLAC_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_CellIDAndLAC_1,
+ 2, /* Elements count */
+ &asn_SPC_CellIDAndLAC_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/CellIDAndLAC.h b/src/core/libs/supl/asn-rrlp/CellIDAndLAC.h
index 6b74bb15a..4086737dc 100644
--- a/src/core/libs/supl/asn-rrlp/CellIDAndLAC.h
+++ b/src/core/libs/supl/asn-rrlp/CellIDAndLAC.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _CellIDAndLAC_H_
#define _CellIDAndLAC_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ControlHeader.c b/src/core/libs/supl/asn-rrlp/ControlHeader.c
index 6d64accb4..88acf8d33 100644
--- a/src/core/libs/supl/asn-rrlp/ControlHeader.c
+++ b/src/core/libs/supl/asn-rrlp/ControlHeader.c
@@ -1,141 +1,111 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ControlHeader.h"
static asn_TYPE_member_t asn_MBR_ControlHeader_1[] = {
- { ATF_POINTER, 9, offsetof(struct ControlHeader, referenceTime),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceTime"
- },
- { ATF_POINTER, 8, offsetof(struct ControlHeader, refLocation),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RefLocation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "refLocation"
- },
- { ATF_POINTER, 7, offsetof(struct ControlHeader, dgpsCorrections),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_DGPSCorrections,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "dgpsCorrections"
- },
- { ATF_POINTER, 6, offsetof(struct ControlHeader, navigationModel),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NavigationModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "navigationModel"
- },
- { ATF_POINTER, 5, offsetof(struct ControlHeader, ionosphericModel),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_IonosphericModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ionosphericModel"
- },
- { ATF_POINTER, 4, offsetof(struct ControlHeader, utcModel),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_UTCModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "utcModel"
- },
- { ATF_POINTER, 3, offsetof(struct ControlHeader, almanac),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Almanac,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "almanac"
- },
- { ATF_POINTER, 2, offsetof(struct ControlHeader, acquisAssist),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AcquisAssist,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "acquisAssist"
- },
- { ATF_POINTER, 1, offsetof(struct ControlHeader, realTimeIntegrity),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOf_BadSatelliteSet,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "realTimeIntegrity"
- },
+ {ATF_POINTER, 9, offsetof(struct ControlHeader, referenceTime),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceTime,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceTime"},
+ {ATF_POINTER, 8, offsetof(struct ControlHeader, refLocation),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RefLocation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "refLocation"},
+ {ATF_POINTER, 7, offsetof(struct ControlHeader, dgpsCorrections),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_DGPSCorrections,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "dgpsCorrections"},
+ {ATF_POINTER, 6, offsetof(struct ControlHeader, navigationModel),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NavigationModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "navigationModel"},
+ {ATF_POINTER, 5, offsetof(struct ControlHeader, ionosphericModel),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_IonosphericModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ionosphericModel"},
+ {ATF_POINTER, 4, offsetof(struct ControlHeader, utcModel),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_UTCModel, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "utcModel"},
+ {ATF_POINTER, 3, offsetof(struct ControlHeader, almanac),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Almanac, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "almanac"},
+ {ATF_POINTER, 2, offsetof(struct ControlHeader, acquisAssist),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AcquisAssist,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "acquisAssist"},
+ {ATF_POINTER, 1, offsetof(struct ControlHeader, realTimeIntegrity),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOf_BadSatelliteSet,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "realTimeIntegrity"},
};
-static int asn_MAP_ControlHeader_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
+static int asn_MAP_ControlHeader_oms_1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8};
static ber_tlv_tag_t asn_DEF_ControlHeader_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ControlHeader_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceTime at 574 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* refLocation at 575 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dgpsCorrections at 576 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* navigationModel at 577 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ionosphericModel at 578 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* utcModel at 579 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* almanac at 580 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* acquisAssist at 581 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* realTimeIntegrity at 582 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* referenceTime at 574 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* refLocation at 575 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* dgpsCorrections at 576 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* navigationModel at 577 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* ionosphericModel at 578 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* utcModel at 579 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* almanac at 580 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0}, /* acquisAssist at 581 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0} /* realTimeIntegrity at 582 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ControlHeader_specs_1 = {
- sizeof(struct ControlHeader),
- offsetof(struct ControlHeader, _asn_ctx),
- asn_MAP_ControlHeader_tag2el_1,
- 9, /* Count of tags in the map */
- asn_MAP_ControlHeader_oms_1, /* Optional members */
- 9, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct ControlHeader),
+ offsetof(struct ControlHeader, _asn_ctx),
+ asn_MAP_ControlHeader_tag2el_1,
+ 9, /* Count of tags in the map */
+ asn_MAP_ControlHeader_oms_1, /* Optional members */
+ 9,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ControlHeader = {
- "ControlHeader",
- "ControlHeader",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ControlHeader_tags_1,
- sizeof(asn_DEF_ControlHeader_tags_1)
- /sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
- asn_DEF_ControlHeader_tags_1, /* Same as above */
- sizeof(asn_DEF_ControlHeader_tags_1)
- /sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ControlHeader_1,
- 9, /* Elements count */
- &asn_SPC_ControlHeader_specs_1 /* Additional specs */
+ "ControlHeader",
+ "ControlHeader",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ControlHeader_tags_1,
+ sizeof(asn_DEF_ControlHeader_tags_1) /
+ sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
+ asn_DEF_ControlHeader_tags_1, /* Same as above */
+ sizeof(asn_DEF_ControlHeader_tags_1) /
+ sizeof(asn_DEF_ControlHeader_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ControlHeader_1,
+ 9, /* Elements count */
+ &asn_SPC_ControlHeader_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ControlHeader.h b/src/core/libs/supl/asn-rrlp/ControlHeader.h
index c2be329ca..208936b03 100644
--- a/src/core/libs/supl/asn-rrlp/ControlHeader.h
+++ b/src/core/libs/supl/asn-rrlp/ControlHeader.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ControlHeader_H_
#define _ControlHeader_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.c b/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.c
index 8da024839..dfb1c5d23 100644
--- a/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.c
+++ b/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.c
@@ -1,219 +1,212 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "DGANSSSgnElement.h"
-static int
-memb_iod_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_iod_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_udre_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_udre_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_pseudoRangeCor_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -2047 && value <= 2047)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_pseudoRangeCor_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -2047 && value <= 2047))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_rangeRateCor_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -127 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_rangeRateCor_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -127 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_IOD_CONSTR_3 = {
- { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1023} /* (0..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UDRE_CONSTR_4 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5 = {
- { APC_CONSTRAINED, 12, 12, -2047, 2047 } /* (-2047..2047) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, -2047, 2047} /* (-2047..2047) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6 = {
- { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -127, 127} /* (-127..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_DGANSSSgnElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, svID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, iod),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_iod_constraint_1,
- &ASN_PER_MEMB_IOD_CONSTR_3,
- 0,
- "iod"
- },
- { ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, udre),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_udre_constraint_1,
- &ASN_PER_MEMB_UDRE_CONSTR_4,
- 0,
- "udre"
- },
- { ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, pseudoRangeCor),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_pseudoRangeCor_constraint_1,
- &ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5,
- 0,
- "pseudoRangeCor"
- },
- { ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, rangeRateCor),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_rangeRateCor_constraint_1,
- &ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6,
- 0,
- "rangeRateCor"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, svID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svID"},
+ {ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, iod),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_iod_constraint_1, &ASN_PER_MEMB_IOD_CONSTR_3,
+ 0, "iod"},
+ {ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, udre),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_udre_constraint_1,
+ &ASN_PER_MEMB_UDRE_CONSTR_4, 0, "udre"},
+ {ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, pseudoRangeCor),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_pseudoRangeCor_constraint_1,
+ &ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5, 0, "pseudoRangeCor"},
+ {ATF_NOFLAGS, 0, offsetof(struct DGANSSSgnElement, rangeRateCor),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_rangeRateCor_constraint_1,
+ &ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6, 0, "rangeRateCor"},
};
static ber_tlv_tag_t asn_DEF_DGANSSSgnElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_DGANSSSgnElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID at 1207 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iod at 1210 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* udre at 1213 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pseudoRangeCor at 1217 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* rangeRateCor at 1221 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* svID at 1207 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* iod at 1210 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* udre at 1213 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* pseudoRangeCor at 1217 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* rangeRateCor at 1221 */
};
static asn_SEQUENCE_specifics_t asn_SPC_DGANSSSgnElement_specs_1 = {
- sizeof(struct DGANSSSgnElement),
- offsetof(struct DGANSSSgnElement, _asn_ctx),
- asn_MAP_DGANSSSgnElement_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct DGANSSSgnElement),
+ offsetof(struct DGANSSSgnElement, _asn_ctx),
+ asn_MAP_DGANSSSgnElement_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_DGANSSSgnElement = {
- "DGANSSSgnElement",
- "DGANSSSgnElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_DGANSSSgnElement_tags_1,
- sizeof(asn_DEF_DGANSSSgnElement_tags_1)
- /sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
- asn_DEF_DGANSSSgnElement_tags_1, /* Same as above */
- sizeof(asn_DEF_DGANSSSgnElement_tags_1)
- /sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_DGANSSSgnElement_1,
- 5, /* Elements count */
- &asn_SPC_DGANSSSgnElement_specs_1 /* Additional specs */
+ "DGANSSSgnElement",
+ "DGANSSSgnElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_DGANSSSgnElement_tags_1,
+ sizeof(asn_DEF_DGANSSSgnElement_tags_1) /
+ sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
+ asn_DEF_DGANSSSgnElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_DGANSSSgnElement_tags_1) /
+ sizeof(asn_DEF_DGANSSSgnElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_DGANSSSgnElement_1,
+ 5, /* Elements count */
+ &asn_SPC_DGANSSSgnElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.h b/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.h
index 6cb7be67c..c1320cdef 100644
--- a/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.h
+++ b/src/core/libs/supl/asn-rrlp/DGANSSSgnElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _DGANSSSgnElement_H_
#define _DGANSSSgnElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/DGPSCorrections.c b/src/core/libs/supl/asn-rrlp/DGPSCorrections.c
index 7fa907db6..e1fa3d555 100644
--- a/src/core/libs/supl/asn-rrlp/DGPSCorrections.c
+++ b/src/core/libs/supl/asn-rrlp/DGPSCorrections.c
@@ -1,139 +1,134 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "DGPSCorrections.h"
-static int
-memb_gpsTOW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 604799)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_gpsTOW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 604799))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_status_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_status_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GPS_TOW_CONSTR_2 = {
- { APC_CONSTRAINED, 20, -1, 0, 604799 } /* (0..604799) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 20, -1, 0, 604799} /* (0..604799) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STATUS_CONSTR_3 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_DGPSCorrections_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, gpsTOW),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_gpsTOW_constraint_1,
- &ASN_PER_MEMB_GPS_TOW_CONSTR_2,
- 0,
- "gpsTOW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, status),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_status_constraint_1,
- &ASN_PER_MEMB_STATUS_CONSTR_3,
- 0,
- "status"
- },
- { ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, satList),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfSatElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, gpsTOW),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_gpsTOW_constraint_1,
+ &ASN_PER_MEMB_GPS_TOW_CONSTR_2, 0, "gpsTOW"},
+ {ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, status),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_status_constraint_1,
+ &ASN_PER_MEMB_STATUS_CONSTR_3, 0, "status"},
+ {ATF_NOFLAGS, 0, offsetof(struct DGPSCorrections, satList),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfSatElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satList"},
};
static ber_tlv_tag_t asn_DEF_DGPSCorrections_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_DGPSCorrections_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsTOW at 655 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* status at 656 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* satList at 659 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* gpsTOW at 655 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* status at 656 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* satList at 659 */
};
static asn_SEQUENCE_specifics_t asn_SPC_DGPSCorrections_specs_1 = {
- sizeof(struct DGPSCorrections),
- offsetof(struct DGPSCorrections, _asn_ctx),
- asn_MAP_DGPSCorrections_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct DGPSCorrections),
+ offsetof(struct DGPSCorrections, _asn_ctx),
+ asn_MAP_DGPSCorrections_tag2el_1,
+ 3, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_DGPSCorrections = {
- "DGPSCorrections",
- "DGPSCorrections",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_DGPSCorrections_tags_1,
- sizeof(asn_DEF_DGPSCorrections_tags_1)
- /sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
- asn_DEF_DGPSCorrections_tags_1, /* Same as above */
- sizeof(asn_DEF_DGPSCorrections_tags_1)
- /sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_DGPSCorrections_1,
- 3, /* Elements count */
- &asn_SPC_DGPSCorrections_specs_1 /* Additional specs */
+ "DGPSCorrections",
+ "DGPSCorrections",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_DGPSCorrections_tags_1,
+ sizeof(asn_DEF_DGPSCorrections_tags_1) /
+ sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
+ asn_DEF_DGPSCorrections_tags_1, /* Same as above */
+ sizeof(asn_DEF_DGPSCorrections_tags_1) /
+ sizeof(asn_DEF_DGPSCorrections_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_DGPSCorrections_1,
+ 3, /* Elements count */
+ &asn_SPC_DGPSCorrections_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/DGPSCorrections.h b/src/core/libs/supl/asn-rrlp/DGPSCorrections.h
index 52913f488..7f4e69151 100644
--- a/src/core/libs/supl/asn-rrlp/DGPSCorrections.h
+++ b/src/core/libs/supl/asn-rrlp/DGPSCorrections.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _DGPSCorrections_H_
#define _DGPSCorrections_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ENUMERATED.c b/src/core/libs/supl/asn-rrlp/ENUMERATED.c
index eb0d727a2..b41f70a42 100644
--- a/src/core/libs/supl/asn-rrlp/ENUMERATED.c
+++ b/src/core/libs/supl/asn-rrlp/ENUMERATED.c
@@ -6,66 +6,67 @@
#include
#include
#include
-#include /* Encoder and decoder of a primitive type */
+#include /* Encoder and decoder of a primitive type */
/*
* ENUMERATED basic type description.
*/
static ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_ENUMERATED = {
- "ENUMERATED",
- "ENUMERATED",
- ASN__PRIMITIVE_TYPE_free,
- INTEGER_print, /* Implemented in terms of INTEGER */
- asn_generic_no_constraint,
- ber_decode_primitive,
- INTEGER_encode_der, /* Implemented in terms of INTEGER */
- INTEGER_decode_xer, /* This is temporary! */
- INTEGER_encode_xer,
- ENUMERATED_decode_uper, /* Unaligned PER decoder */
- ENUMERATED_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ENUMERATED_tags,
- sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
- asn_DEF_ENUMERATED_tags, /* Same as above */
- sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "ENUMERATED",
+ "ENUMERATED",
+ ASN__PRIMITIVE_TYPE_free,
+ INTEGER_print, /* Implemented in terms of INTEGER */
+ asn_generic_no_constraint,
+ ber_decode_primitive,
+ INTEGER_encode_der, /* Implemented in terms of INTEGER */
+ INTEGER_decode_xer, /* This is temporary! */
+ INTEGER_encode_xer,
+ ENUMERATED_decode_uper, /* Unaligned PER decoder */
+ ENUMERATED_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ENUMERATED_tags,
+ sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
+ asn_DEF_ENUMERATED_tags, /* Same as above */
+ sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-asn_dec_rval_t
-ENUMERATED_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_dec_rval_t rval;
- ENUMERATED_t *st = (ENUMERATED_t *)*sptr;
- long value;
- void *vptr = &value;
+asn_dec_rval_t ENUMERATED_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_dec_rval_t rval;
+ ENUMERATED_t *st = (ENUMERATED_t *)*sptr;
+ long value;
+ void *vptr = &value;
- if(!st) {
- st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st)));
- if(!st) _ASN_DECODE_FAILED;
- }
+ if (!st)
+ {
+ st = (ENUMERATED_t *)(*sptr = CALLOC(1, sizeof(*st)));
+ if (!st) _ASN_DECODE_FAILED;
+ }
- rval = NativeEnumerated_decode_uper(opt_codec_ctx, td, constraints,
- (void **)&vptr, pd);
- if(rval.code == RC_OK)
- if(asn_long2INTEGER(st, value))
- rval.code = RC_FAIL;
- return rval;
+ rval =
+ NativeEnumerated_decode_uper(opt_codec_ctx, td, constraints, &vptr, pd);
+ if (rval.code == RC_OK)
+ if (asn_long2INTEGER(st, value)) rval.code = RC_FAIL;
+ return rval;
}
-asn_enc_rval_t
-ENUMERATED_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
- ENUMERATED_t *st = (ENUMERATED_t *)sptr;
- int64_t value;
+asn_enc_rval_t ENUMERATED_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *sptr, asn_per_outp_t *po)
+{
+ ENUMERATED_t *st = (ENUMERATED_t *)sptr;
+ int64_t value;
- if(asn_INTEGER2long(st, &value))
- _ASN_ENCODE_FAILED;
+ if (asn_INTEGER2long(st, &value)) _ASN_ENCODE_FAILED;
- return NativeEnumerated_encode_uper(td, constraints, &value, po);
+ return NativeEnumerated_encode_uper(td, constraints, &value, po);
}
-
diff --git a/src/core/libs/supl/asn-rrlp/EOTDQuality.c b/src/core/libs/supl/asn-rrlp/EOTDQuality.c
index 8e4454834..7fe565c54 100644
--- a/src/core/libs/supl/asn-rrlp/EOTDQuality.c
+++ b/src/core/libs/supl/asn-rrlp/EOTDQuality.c
@@ -1,129 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "EOTDQuality.h"
-static int
-memb_nbrOfMeasurements_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_nbrOfMeasurements_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stdOfEOTD_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 31)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stdOfEOTD_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 31))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_NBR_OF_MEASUREMENTS_CONSTR_2 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STD_OF_EOTD_CONSTR_3 = {
- { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 31} /* (0..31) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_EOTDQuality_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, nbrOfMeasurements),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_nbrOfMeasurements_constraint_1,
- &ASN_PER_MEMB_NBR_OF_MEASUREMENTS_CONSTR_2,
- 0,
- "nbrOfMeasurements"
- },
- { ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, stdOfEOTD),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stdOfEOTD_constraint_1,
- &ASN_PER_MEMB_STD_OF_EOTD_CONSTR_3,
- 0,
- "stdOfEOTD"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, nbrOfMeasurements),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_nbrOfMeasurements_constraint_1,
+ &ASN_PER_MEMB_NBR_OF_MEASUREMENTS_CONSTR_2, 0, "nbrOfMeasurements"},
+ {ATF_NOFLAGS, 0, offsetof(struct EOTDQuality, stdOfEOTD),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stdOfEOTD_constraint_1,
+ &ASN_PER_MEMB_STD_OF_EOTD_CONSTR_3, 0, "stdOfEOTD"},
};
static ber_tlv_tag_t asn_DEF_EOTDQuality_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_EOTDQuality_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbrOfMeasurements at 393 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* stdOfEOTD at 394 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* nbrOfMeasurements at 393 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* stdOfEOTD at 394 */
};
static asn_SEQUENCE_specifics_t asn_SPC_EOTDQuality_specs_1 = {
- sizeof(struct EOTDQuality),
- offsetof(struct EOTDQuality, _asn_ctx),
- asn_MAP_EOTDQuality_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct EOTDQuality),
+ offsetof(struct EOTDQuality, _asn_ctx),
+ asn_MAP_EOTDQuality_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_EOTDQuality = {
- "EOTDQuality",
- "EOTDQuality",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_EOTDQuality_tags_1,
- sizeof(asn_DEF_EOTDQuality_tags_1)
- /sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
- asn_DEF_EOTDQuality_tags_1, /* Same as above */
- sizeof(asn_DEF_EOTDQuality_tags_1)
- /sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_EOTDQuality_1,
- 2, /* Elements count */
- &asn_SPC_EOTDQuality_specs_1 /* Additional specs */
+ "EOTDQuality",
+ "EOTDQuality",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_EOTDQuality_tags_1,
+ sizeof(asn_DEF_EOTDQuality_tags_1) /
+ sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
+ asn_DEF_EOTDQuality_tags_1, /* Same as above */
+ sizeof(asn_DEF_EOTDQuality_tags_1) /
+ sizeof(asn_DEF_EOTDQuality_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_EOTDQuality_1,
+ 2, /* Elements count */
+ &asn_SPC_EOTDQuality_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/EOTDQuality.h b/src/core/libs/supl/asn-rrlp/EOTDQuality.h
index 522cf0a6e..069d82fe0 100644
--- a/src/core/libs/supl/asn-rrlp/EOTDQuality.h
+++ b/src/core/libs/supl/asn-rrlp/EOTDQuality.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _EOTDQuality_H_
#define _EOTDQuality_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.c b/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.c
index 18e996518..d5012ab1b 100644
--- a/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.c
+++ b/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.c
@@ -1,149 +1,166 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "EnvironmentCharacter.h"
-int
-EnvironmentCharacter_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int EnvironmentCharacter_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-EnvironmentCharacter_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void EnvironmentCharacter_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-EnvironmentCharacter_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void EnvironmentCharacter_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-EnvironmentCharacter_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int EnvironmentCharacter_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-EnvironmentCharacter_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) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t EnvironmentCharacter_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)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-EnvironmentCharacter_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) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t EnvironmentCharacter_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)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-EnvironmentCharacter_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) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t EnvironmentCharacter_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)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-EnvironmentCharacter_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) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t EnvironmentCharacter_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)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-EnvironmentCharacter_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t EnvironmentCharacter_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-EnvironmentCharacter_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t EnvironmentCharacter_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ EnvironmentCharacter_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ENVIRONMENT_CHARACTER_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2} /* (0..2,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_EnvironmentCharacter_value2enum_1[] = {
- { 0, 7, "badArea" },
- { 1, 10, "notBadArea" },
- { 2, 9, "mixedArea" }
- /* This list is extensible */
+ {0, 7, "badArea"}, {1, 10, "notBadArea"}, {2, 9, "mixedArea"}
+ /* This list is extensible */
};
static unsigned int asn_MAP_EnvironmentCharacter_enum2value_1[] = {
- 0, /* badArea(0) */
- 2, /* mixedArea(2) */
- 1 /* notBadArea(1) */
- /* This list is extensible */
+ 0, /* badArea(0) */
+ 2, /* mixedArea(2) */
+ 1 /* notBadArea(1) */
+ /* This list is extensible */
};
static asn_INTEGER_specifics_t asn_SPC_EnvironmentCharacter_specs_1 = {
- asn_MAP_EnvironmentCharacter_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_EnvironmentCharacter_enum2value_1, /* N => "tag"; sorted by N */
- 3, /* Number of elements in the maps */
- 4, /* Extensions before this member */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_EnvironmentCharacter_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_EnvironmentCharacter_enum2value_1, /* N => "tag"; sorted by N */
+ 3, /* Number of elements in the maps */
+ 4, /* Extensions before this member */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_EnvironmentCharacter_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_EnvironmentCharacter = {
- "EnvironmentCharacter",
- "EnvironmentCharacter",
- EnvironmentCharacter_free,
- EnvironmentCharacter_print,
- EnvironmentCharacter_constraint,
- EnvironmentCharacter_decode_ber,
- EnvironmentCharacter_encode_der,
- EnvironmentCharacter_decode_xer,
- EnvironmentCharacter_encode_xer,
- EnvironmentCharacter_decode_uper,
- EnvironmentCharacter_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_EnvironmentCharacter_tags_1,
- sizeof(asn_DEF_EnvironmentCharacter_tags_1)
- /sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
- asn_DEF_EnvironmentCharacter_tags_1, /* Same as above */
- sizeof(asn_DEF_EnvironmentCharacter_tags_1)
- /sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_ENVIRONMENT_CHARACTER_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_EnvironmentCharacter_specs_1 /* Additional specs */
+ "EnvironmentCharacter",
+ "EnvironmentCharacter",
+ EnvironmentCharacter_free,
+ EnvironmentCharacter_print,
+ EnvironmentCharacter_constraint,
+ EnvironmentCharacter_decode_ber,
+ EnvironmentCharacter_encode_der,
+ EnvironmentCharacter_decode_xer,
+ EnvironmentCharacter_encode_xer,
+ EnvironmentCharacter_decode_uper,
+ EnvironmentCharacter_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_EnvironmentCharacter_tags_1,
+ sizeof(asn_DEF_EnvironmentCharacter_tags_1) /
+ sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
+ asn_DEF_EnvironmentCharacter_tags_1, /* Same as above */
+ sizeof(asn_DEF_EnvironmentCharacter_tags_1) /
+ sizeof(asn_DEF_EnvironmentCharacter_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_ENVIRONMENT_CHARACTER_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_EnvironmentCharacter_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.h b/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.h
index 12a7c0ccd..ac2df22dc 100644
--- a/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.h
+++ b/src/core/libs/supl/asn-rrlp/EnvironmentCharacter.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _EnvironmentCharacter_H_
#define _EnvironmentCharacter_H_
-
#include
/* Including external dependencies */
@@ -25,8 +24,8 @@ extern "C"
EnvironmentCharacter_notBadArea = 1,
EnvironmentCharacter_mixedArea = 2
/*
- * Enumeration is extensible
- */
+ * Enumeration is extensible
+ */
} e_EnvironmentCharacter;
/* EnvironmentCharacter */
diff --git a/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.c b/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.c
index 00025f2af..d73e4bb51 100644
--- a/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.c
+++ b/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.c
@@ -1,209 +1,209 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "EphemerisSubframe1Reserved.h"
-static int
-memb_reserved1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_reserved1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_reserved2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 16777215)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_reserved2_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 16777215))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_reserved3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 16777215)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_reserved3_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 16777215))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_reserved4_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+static int memb_reserved4_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_RESERVED1_CONSTR_2 = {
- { APC_CONSTRAINED, 23, -1, 0, 8388607 } /* (0..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 23, -1, 0, 8388607} /* (0..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RESERVED2_CONSTR_3 = {
- { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, 0, 16777215} /* (0..16777215) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RESERVED3_CONSTR_4 = {
- { APC_CONSTRAINED, 24, -1, 0, 16777215 } /* (0..16777215) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, 0, 16777215} /* (0..16777215) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RESERVED4_CONSTR_5 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_EphemerisSubframe1Reserved_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved1),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_reserved1_constraint_1,
- &ASN_PER_MEMB_RESERVED1_CONSTR_2,
- 0,
- "reserved1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved2),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_reserved2_constraint_1,
- &ASN_PER_MEMB_RESERVED2_CONSTR_3,
- 0,
- "reserved2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved3),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_reserved3_constraint_1,
- &ASN_PER_MEMB_RESERVED3_CONSTR_4,
- 0,
- "reserved3"
- },
- { ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved4),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_reserved4_constraint_1,
- &ASN_PER_MEMB_RESERVED4_CONSTR_5,
- 0,
- "reserved4"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved1),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_reserved1_constraint_1,
+ &ASN_PER_MEMB_RESERVED1_CONSTR_2, 0, "reserved1"},
+ {ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved2),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_reserved2_constraint_1,
+ &ASN_PER_MEMB_RESERVED2_CONSTR_3, 0, "reserved2"},
+ {ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved3),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_reserved3_constraint_1,
+ &ASN_PER_MEMB_RESERVED3_CONSTR_4, 0, "reserved3"},
+ {ATF_NOFLAGS, 0, offsetof(struct EphemerisSubframe1Reserved, reserved4),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_reserved4_constraint_1,
+ &ASN_PER_MEMB_RESERVED4_CONSTR_5, 0, "reserved4"},
};
static ber_tlv_tag_t asn_DEF_EphemerisSubframe1Reserved_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_EphemerisSubframe1Reserved_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reserved1 at 755 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* reserved2 at 756 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reserved3 at 757 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* reserved4 at 758 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* reserved1 at 755 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* reserved2 at 756 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* reserved3 at 757 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* reserved4 at 758 */
};
static asn_SEQUENCE_specifics_t asn_SPC_EphemerisSubframe1Reserved_specs_1 = {
- sizeof(struct EphemerisSubframe1Reserved),
- offsetof(struct EphemerisSubframe1Reserved, _asn_ctx),
- asn_MAP_EphemerisSubframe1Reserved_tag2el_1,
- 4, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct EphemerisSubframe1Reserved),
+ offsetof(struct EphemerisSubframe1Reserved, _asn_ctx),
+ asn_MAP_EphemerisSubframe1Reserved_tag2el_1,
+ 4, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_EphemerisSubframe1Reserved = {
- "EphemerisSubframe1Reserved",
- "EphemerisSubframe1Reserved",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_EphemerisSubframe1Reserved_tags_1,
- sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1)
- /sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
- asn_DEF_EphemerisSubframe1Reserved_tags_1, /* Same as above */
- sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1)
- /sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_EphemerisSubframe1Reserved_1,
- 4, /* Elements count */
- &asn_SPC_EphemerisSubframe1Reserved_specs_1 /* Additional specs */
+ "EphemerisSubframe1Reserved",
+ "EphemerisSubframe1Reserved",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_EphemerisSubframe1Reserved_tags_1,
+ sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1) /
+ sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
+ asn_DEF_EphemerisSubframe1Reserved_tags_1, /* Same as above */
+ sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1) /
+ sizeof(asn_DEF_EphemerisSubframe1Reserved_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_EphemerisSubframe1Reserved_1,
+ 4, /* Elements count */
+ &asn_SPC_EphemerisSubframe1Reserved_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.h b/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.h
index f62b57afa..e77e10ca1 100644
--- a/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.h
+++ b/src/core/libs/supl/asn-rrlp/EphemerisSubframe1Reserved.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _EphemerisSubframe1Reserved_H_
#define _EphemerisSubframe1Reserved_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ErrorCodes.c b/src/core/libs/supl/asn-rrlp/ErrorCodes.c
index f8def1e38..37819dadf 100644
--- a/src/core/libs/supl/asn-rrlp/ErrorCodes.c
+++ b/src/core/libs/supl/asn-rrlp/ErrorCodes.c
@@ -1,155 +1,166 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ErrorCodes.h"
-int
-ErrorCodes_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int ErrorCodes_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-ErrorCodes_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void ErrorCodes_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-ErrorCodes_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void ErrorCodes_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-ErrorCodes_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int ErrorCodes_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-ErrorCodes_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) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t ErrorCodes_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)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-ErrorCodes_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) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t ErrorCodes_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)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-ErrorCodes_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) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t ErrorCodes_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)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-ErrorCodes_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) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t ErrorCodes_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)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-ErrorCodes_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t ErrorCodes_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-ErrorCodes_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ErrorCodes_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t ErrorCodes_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ ErrorCodes_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ERROR_CODES_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5 } /* (0..5,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 5} /* (0..5,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_ErrorCodes_value2enum_1[] = {
- { 0, 9, "unDefined" },
- { 1, 15, "missingComponet" },
- { 2, 13, "incorrectData" },
- { 3, 27, "missingIEorComponentElement" },
- { 4, 15, "messageTooShort" },
- { 5, 21, "unknowReferenceNumber" }
- /* This list is extensible */
+ {0, 9, "unDefined"},
+ {1, 15, "missingComponet"},
+ {2, 13, "incorrectData"},
+ {3, 27, "missingIEorComponentElement"},
+ {4, 15, "messageTooShort"},
+ {5, 21, "unknowReferenceNumber"}
+ /* This list is extensible */
};
static unsigned int asn_MAP_ErrorCodes_enum2value_1[] = {
- 2, /* incorrectData(2) */
- 4, /* messageTooShort(4) */
- 1, /* missingComponet(1) */
- 3, /* missingIEorComponentElement(3) */
- 0, /* unDefined(0) */
- 5 /* unknowReferenceNumber(5) */
- /* This list is extensible */
+ 2, /* incorrectData(2) */
+ 4, /* messageTooShort(4) */
+ 1, /* missingComponet(1) */
+ 3, /* missingIEorComponentElement(3) */
+ 0, /* unDefined(0) */
+ 5 /* unknowReferenceNumber(5) */
+ /* This list is extensible */
};
static asn_INTEGER_specifics_t asn_SPC_ErrorCodes_specs_1 = {
- asn_MAP_ErrorCodes_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_ErrorCodes_enum2value_1, /* N => "tag"; sorted by N */
- 6, /* Number of elements in the maps */
- 7, /* Extensions before this member */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_ErrorCodes_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_ErrorCodes_enum2value_1, /* N => "tag"; sorted by N */
+ 6, /* Number of elements in the maps */
+ 7, /* Extensions before this member */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_ErrorCodes_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_ErrorCodes = {
- "ErrorCodes",
- "ErrorCodes",
- ErrorCodes_free,
- ErrorCodes_print,
- ErrorCodes_constraint,
- ErrorCodes_decode_ber,
- ErrorCodes_encode_der,
- ErrorCodes_decode_xer,
- ErrorCodes_encode_xer,
- ErrorCodes_decode_uper,
- ErrorCodes_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ErrorCodes_tags_1,
- sizeof(asn_DEF_ErrorCodes_tags_1)
- /sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
- asn_DEF_ErrorCodes_tags_1, /* Same as above */
- sizeof(asn_DEF_ErrorCodes_tags_1)
- /sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_ERROR_CODES_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_ErrorCodes_specs_1 /* Additional specs */
+ "ErrorCodes",
+ "ErrorCodes",
+ ErrorCodes_free,
+ ErrorCodes_print,
+ ErrorCodes_constraint,
+ ErrorCodes_decode_ber,
+ ErrorCodes_encode_der,
+ ErrorCodes_decode_xer,
+ ErrorCodes_encode_xer,
+ ErrorCodes_decode_uper,
+ ErrorCodes_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ErrorCodes_tags_1,
+ sizeof(asn_DEF_ErrorCodes_tags_1) /
+ sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
+ asn_DEF_ErrorCodes_tags_1, /* Same as above */
+ sizeof(asn_DEF_ErrorCodes_tags_1) /
+ sizeof(asn_DEF_ErrorCodes_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_ERROR_CODES_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_ErrorCodes_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ErrorCodes.h b/src/core/libs/supl/asn-rrlp/ErrorCodes.h
index c87de55d5..c7c7bf36f 100644
--- a/src/core/libs/supl/asn-rrlp/ErrorCodes.h
+++ b/src/core/libs/supl/asn-rrlp/ErrorCodes.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ErrorCodes_H_
#define _ErrorCodes_H_
-
#include
/* Including external dependencies */
@@ -28,8 +27,8 @@ extern "C"
ErrorCodes_messageTooShort = 4,
ErrorCodes_unknowReferenceNumber = 5
/*
- * Enumeration is extensible
- */
+ * Enumeration is extensible
+ */
} e_ErrorCodes;
/* ErrorCodes */
diff --git a/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.c b/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.c
index 3f35cbf60..e37e3df44 100644
--- a/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.c
+++ b/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.c
@@ -1,145 +1,167 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ExpOTDUncertainty.h"
-int
-ExpOTDUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int ExpOTDUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-ExpOTDUncertainty_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void ExpOTDUncertainty_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-ExpOTDUncertainty_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void ExpOTDUncertainty_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-ExpOTDUncertainty_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int ExpOTDUncertainty_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-ExpOTDUncertainty_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) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t ExpOTDUncertainty_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)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-ExpOTDUncertainty_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) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t ExpOTDUncertainty_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)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-ExpOTDUncertainty_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) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t ExpOTDUncertainty_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)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-ExpOTDUncertainty_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) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t ExpOTDUncertainty_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)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-ExpOTDUncertainty_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t ExpOTDUncertainty_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-ExpOTDUncertainty_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t ExpOTDUncertainty_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ ExpOTDUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_EXP_OTD_UNCERTAINTY_CONSTR_1 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_ExpOTDUncertainty_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_ExpOTDUncertainty = {
- "ExpOTDUncertainty",
- "ExpOTDUncertainty",
- ExpOTDUncertainty_free,
- ExpOTDUncertainty_print,
- ExpOTDUncertainty_constraint,
- ExpOTDUncertainty_decode_ber,
- ExpOTDUncertainty_encode_der,
- ExpOTDUncertainty_decode_xer,
- ExpOTDUncertainty_encode_xer,
- ExpOTDUncertainty_decode_uper,
- ExpOTDUncertainty_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ExpOTDUncertainty_tags_1,
- sizeof(asn_DEF_ExpOTDUncertainty_tags_1)
- /sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
- asn_DEF_ExpOTDUncertainty_tags_1, /* Same as above */
- sizeof(asn_DEF_ExpOTDUncertainty_tags_1)
- /sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_EXP_OTD_UNCERTAINTY_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "ExpOTDUncertainty",
+ "ExpOTDUncertainty",
+ ExpOTDUncertainty_free,
+ ExpOTDUncertainty_print,
+ ExpOTDUncertainty_constraint,
+ ExpOTDUncertainty_decode_ber,
+ ExpOTDUncertainty_encode_der,
+ ExpOTDUncertainty_decode_xer,
+ ExpOTDUncertainty_encode_xer,
+ ExpOTDUncertainty_decode_uper,
+ ExpOTDUncertainty_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ExpOTDUncertainty_tags_1,
+ sizeof(asn_DEF_ExpOTDUncertainty_tags_1) /
+ sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
+ asn_DEF_ExpOTDUncertainty_tags_1, /* Same as above */
+ sizeof(asn_DEF_ExpOTDUncertainty_tags_1) /
+ sizeof(asn_DEF_ExpOTDUncertainty_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_EXP_OTD_UNCERTAINTY_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.h b/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.h
index 44ea118db..549dc1b69 100644
--- a/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.h
+++ b/src/core/libs/supl/asn-rrlp/ExpOTDUncertainty.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ExpOTDUncertainty_H_
#define _ExpOTDUncertainty_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ExpectedOTD.c b/src/core/libs/supl/asn-rrlp/ExpectedOTD.c
index 7b14272b0..9f18a2fe4 100644
--- a/src/core/libs/supl/asn-rrlp/ExpectedOTD.c
+++ b/src/core/libs/supl/asn-rrlp/ExpectedOTD.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ExpectedOTD.h"
-int
-ExpectedOTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1250)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int ExpectedOTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1250))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-ExpectedOTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void ExpectedOTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-ExpectedOTD_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void ExpectedOTD_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-ExpectedOTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int ExpectedOTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-ExpectedOTD_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) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t ExpectedOTD_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)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-ExpectedOTD_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) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t ExpectedOTD_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)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-ExpectedOTD_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) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t ExpectedOTD_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)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-ExpectedOTD_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) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t ExpectedOTD_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)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-ExpectedOTD_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t ExpectedOTD_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-ExpectedOTD_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ExpectedOTD_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t ExpectedOTD_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ ExpectedOTD_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_EXPECTED_OTD_CONSTR_1 = {
- { APC_CONSTRAINED, 11, 11, 0, 1250 } /* (0..1250) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, 0, 1250} /* (0..1250) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_ExpectedOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_ExpectedOTD = {
- "ExpectedOTD",
- "ExpectedOTD",
- ExpectedOTD_free,
- ExpectedOTD_print,
- ExpectedOTD_constraint,
- ExpectedOTD_decode_ber,
- ExpectedOTD_encode_der,
- ExpectedOTD_decode_xer,
- ExpectedOTD_encode_xer,
- ExpectedOTD_decode_uper,
- ExpectedOTD_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ExpectedOTD_tags_1,
- sizeof(asn_DEF_ExpectedOTD_tags_1)
- /sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
- asn_DEF_ExpectedOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_ExpectedOTD_tags_1)
- /sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_EXPECTED_OTD_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "ExpectedOTD",
+ "ExpectedOTD",
+ ExpectedOTD_free,
+ ExpectedOTD_print,
+ ExpectedOTD_constraint,
+ ExpectedOTD_decode_ber,
+ ExpectedOTD_encode_der,
+ ExpectedOTD_decode_xer,
+ ExpectedOTD_encode_xer,
+ ExpectedOTD_decode_uper,
+ ExpectedOTD_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ExpectedOTD_tags_1,
+ sizeof(asn_DEF_ExpectedOTD_tags_1) /
+ sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
+ asn_DEF_ExpectedOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_ExpectedOTD_tags_1) /
+ sizeof(asn_DEF_ExpectedOTD_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_EXPECTED_OTD_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ExpectedOTD.h b/src/core/libs/supl/asn-rrlp/ExpectedOTD.h
index bb25b6eac..963f10917 100644
--- a/src/core/libs/supl/asn-rrlp/ExpectedOTD.h
+++ b/src/core/libs/supl/asn-rrlp/ExpectedOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ExpectedOTD_H_
#define _ExpectedOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.c b/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.c
index 4007fc852..0db12f144 100644
--- a/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.c
+++ b/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.c
@@ -1,146 +1,160 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Ext-GeographicalInformation.h"
-int
-Ext_GeographicalInformation_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- size = st->size;
-
- if((size >= 1 && size <= 20)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int Ext_GeographicalInformation_constraint(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ size = st->size;
+
+ if ((size >= 1 && size <= 20))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using OCTET_STRING,
* so here we adjust the DEF accordingly.
*/
-static void
-Ext_GeographicalInformation_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_OCTET_STRING.free_struct;
- td->print_struct = asn_DEF_OCTET_STRING.print_struct;
- td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
- td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
- td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
- td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
- td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
- td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
- td->elements = asn_DEF_OCTET_STRING.elements;
- td->elements_count = asn_DEF_OCTET_STRING.elements_count;
- td->specifics = asn_DEF_OCTET_STRING.specifics;
+static void Ext_GeographicalInformation_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_OCTET_STRING.free_struct;
+ td->print_struct = asn_DEF_OCTET_STRING.print_struct;
+ td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
+ td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
+ td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
+ td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
+ td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
+ td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
+ td->elements = asn_DEF_OCTET_STRING.elements;
+ td->elements_count = asn_DEF_OCTET_STRING.elements_count;
+ td->specifics = asn_DEF_OCTET_STRING.specifics;
}
-void
-Ext_GeographicalInformation_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void Ext_GeographicalInformation_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-Ext_GeographicalInformation_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int Ext_GeographicalInformation_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-Ext_GeographicalInformation_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) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t Ext_GeographicalInformation_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)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-Ext_GeographicalInformation_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) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t Ext_GeographicalInformation_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)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-Ext_GeographicalInformation_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) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t Ext_GeographicalInformation_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)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-Ext_GeographicalInformation_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) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t Ext_GeographicalInformation_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)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-Ext_GeographicalInformation_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t Ext_GeographicalInformation_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-Ext_GeographicalInformation_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t Ext_GeographicalInformation_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ Ext_GeographicalInformation_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
-static asn_per_constraints_t ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 5, 5, 1, 20 } /* (SIZE(1..20)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 5, 5, 1, 20} /* (SIZE(1..20)) */,
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_Ext_GeographicalInformation_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))};
asn_TYPE_descriptor_t asn_DEF_Ext_GeographicalInformation = {
- "Ext-GeographicalInformation",
- "Ext-GeographicalInformation",
- Ext_GeographicalInformation_free,
- Ext_GeographicalInformation_print,
- Ext_GeographicalInformation_constraint,
- Ext_GeographicalInformation_decode_ber,
- Ext_GeographicalInformation_encode_der,
- Ext_GeographicalInformation_decode_xer,
- Ext_GeographicalInformation_encode_xer,
- Ext_GeographicalInformation_decode_uper,
- Ext_GeographicalInformation_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Ext_GeographicalInformation_tags_1,
- sizeof(asn_DEF_Ext_GeographicalInformation_tags_1)
- /sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
- asn_DEF_Ext_GeographicalInformation_tags_1, /* Same as above */
- sizeof(asn_DEF_Ext_GeographicalInformation_tags_1)
- /sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "Ext-GeographicalInformation",
+ "Ext-GeographicalInformation",
+ Ext_GeographicalInformation_free,
+ Ext_GeographicalInformation_print,
+ Ext_GeographicalInformation_constraint,
+ Ext_GeographicalInformation_decode_ber,
+ Ext_GeographicalInformation_encode_der,
+ Ext_GeographicalInformation_decode_xer,
+ Ext_GeographicalInformation_encode_xer,
+ Ext_GeographicalInformation_decode_uper,
+ Ext_GeographicalInformation_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Ext_GeographicalInformation_tags_1,
+ sizeof(asn_DEF_Ext_GeographicalInformation_tags_1) /
+ sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
+ asn_DEF_Ext_GeographicalInformation_tags_1, /* Same as above */
+ sizeof(asn_DEF_Ext_GeographicalInformation_tags_1) /
+ sizeof(asn_DEF_Ext_GeographicalInformation_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_EXT_GEOGRAPHICAL_INFORMATION_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.h b/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.h
index cc9330d3a..268f354b6 100644
--- a/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.h
+++ b/src/core/libs/supl/asn-rrlp/Ext-GeographicalInformation.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Ext_GeographicalInformation_H_
#define _Ext_GeographicalInformation_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/Extended-reference.c b/src/core/libs/supl/asn-rrlp/Extended-reference.c
index 198fbffe3..71ec54c0d 100644
--- a/src/core/libs/supl/asn-rrlp/Extended-reference.c
+++ b/src/core/libs/supl/asn-rrlp/Extended-reference.c
@@ -1,129 +1,128 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Extended-reference.h"
-static int
-memb_smlc_code_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_smlc_code_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_transaction_ID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 262143)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_transaction_ID_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 262143))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_SMLC_CODE_CONSTR_2 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_TRANSACTION_ID_CONSTR_3 = {
- { APC_CONSTRAINED, 18, -1, 0, 262143 } /* (0..262143) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 18, -1, 0, 262143} /* (0..262143) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_Extended_reference_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct Extended_reference, smlc_code),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_smlc_code_constraint_1,
- &ASN_PER_MEMB_SMLC_CODE_CONSTR_2,
- 0,
- "smlc-code"
- },
- { ATF_NOFLAGS, 0, offsetof(struct Extended_reference, transaction_ID),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_transaction_ID_constraint_1,
- &ASN_PER_MEMB_TRANSACTION_ID_CONSTR_3,
- 0,
- "transaction-ID"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct Extended_reference, smlc_code),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_smlc_code_constraint_1,
+ &ASN_PER_MEMB_SMLC_CODE_CONSTR_2, 0, "smlc-code"},
+ {ATF_NOFLAGS, 0, offsetof(struct Extended_reference, transaction_ID),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_transaction_ID_constraint_1,
+ &ASN_PER_MEMB_TRANSACTION_ID_CONSTR_3, 0, "transaction-ID"},
};
static ber_tlv_tag_t asn_DEF_Extended_reference_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_Extended_reference_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* smlc-code at 999 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* transaction-ID at 1000 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* smlc-code at 999 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* transaction-ID at 1000 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Extended_reference_specs_1 = {
- sizeof(struct Extended_reference),
- offsetof(struct Extended_reference, _asn_ctx),
- asn_MAP_Extended_reference_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct Extended_reference),
+ offsetof(struct Extended_reference, _asn_ctx),
+ asn_MAP_Extended_reference_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Extended_reference = {
- "Extended-reference",
- "Extended-reference",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Extended_reference_tags_1,
- sizeof(asn_DEF_Extended_reference_tags_1)
- /sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
- asn_DEF_Extended_reference_tags_1, /* Same as above */
- sizeof(asn_DEF_Extended_reference_tags_1)
- /sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Extended_reference_1,
- 2, /* Elements count */
- &asn_SPC_Extended_reference_specs_1 /* Additional specs */
+ "Extended-reference",
+ "Extended-reference",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Extended_reference_tags_1,
+ sizeof(asn_DEF_Extended_reference_tags_1) /
+ sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
+ asn_DEF_Extended_reference_tags_1, /* Same as above */
+ sizeof(asn_DEF_Extended_reference_tags_1) /
+ sizeof(asn_DEF_Extended_reference_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Extended_reference_1,
+ 2, /* Elements count */
+ &asn_SPC_Extended_reference_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Extended-reference.h b/src/core/libs/supl/asn-rrlp/Extended-reference.h
index c21d79d93..05cd1d4ac 100644
--- a/src/core/libs/supl/asn-rrlp/Extended-reference.h
+++ b/src/core/libs/supl/asn-rrlp/Extended-reference.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Extended_reference_H_
#define _Extended_reference_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ExtensionContainer.c b/src/core/libs/supl/asn-rrlp/ExtensionContainer.c
index 43295c47b..d24b49255 100644
--- a/src/core/libs/supl/asn-rrlp/ExtensionContainer.c
+++ b/src/core/libs/supl/asn-rrlp/ExtensionContainer.c
@@ -1,123 +1,140 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ExtensionContainer.h"
-int
-ExtensionContainer_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_INTEGER.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int ExtensionContainer_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_INTEGER.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using INTEGER,
* so here we adjust the DEF accordingly.
*/
-static void
-ExtensionContainer_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_INTEGER.free_struct;
- td->print_struct = asn_DEF_INTEGER.print_struct;
- td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
- td->der_encoder = asn_DEF_INTEGER.der_encoder;
- td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
- td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
- td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
- td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_INTEGER.per_constraints;
- td->elements = asn_DEF_INTEGER.elements;
- td->elements_count = asn_DEF_INTEGER.elements_count;
- td->specifics = asn_DEF_INTEGER.specifics;
+static void ExtensionContainer_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_INTEGER.free_struct;
+ td->print_struct = asn_DEF_INTEGER.print_struct;
+ td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
+ td->der_encoder = asn_DEF_INTEGER.der_encoder;
+ td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
+ td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
+ td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
+ td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_INTEGER.per_constraints;
+ td->elements = asn_DEF_INTEGER.elements;
+ td->elements_count = asn_DEF_INTEGER.elements_count;
+ td->specifics = asn_DEF_INTEGER.specifics;
}
-void
-ExtensionContainer_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void ExtensionContainer_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-ExtensionContainer_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int ExtensionContainer_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-ExtensionContainer_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) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t ExtensionContainer_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)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-ExtensionContainer_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) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t ExtensionContainer_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)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-ExtensionContainer_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) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t ExtensionContainer_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)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-ExtensionContainer_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) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t ExtensionContainer_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)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-ExtensionContainer_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t ExtensionContainer_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-ExtensionContainer_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ExtensionContainer_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t ExtensionContainer_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ ExtensionContainer_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static ber_tlv_tag_t asn_DEF_ExtensionContainer_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_ExtensionContainer = {
- "ExtensionContainer",
- "ExtensionContainer",
- ExtensionContainer_free,
- ExtensionContainer_print,
- ExtensionContainer_constraint,
- ExtensionContainer_decode_ber,
- ExtensionContainer_encode_der,
- ExtensionContainer_decode_xer,
- ExtensionContainer_encode_xer,
- ExtensionContainer_decode_uper,
- ExtensionContainer_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ExtensionContainer_tags_1,
- sizeof(asn_DEF_ExtensionContainer_tags_1)
- /sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
- asn_DEF_ExtensionContainer_tags_1, /* Same as above */
- sizeof(asn_DEF_ExtensionContainer_tags_1)
- /sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "ExtensionContainer",
+ "ExtensionContainer",
+ ExtensionContainer_free,
+ ExtensionContainer_print,
+ ExtensionContainer_constraint,
+ ExtensionContainer_decode_ber,
+ ExtensionContainer_encode_der,
+ ExtensionContainer_decode_xer,
+ ExtensionContainer_encode_xer,
+ ExtensionContainer_decode_uper,
+ ExtensionContainer_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ExtensionContainer_tags_1,
+ sizeof(asn_DEF_ExtensionContainer_tags_1) /
+ sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
+ asn_DEF_ExtensionContainer_tags_1, /* Same as above */
+ sizeof(asn_DEF_ExtensionContainer_tags_1) /
+ sizeof(asn_DEF_ExtensionContainer_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ExtensionContainer.h b/src/core/libs/supl/asn-rrlp/ExtensionContainer.h
index f464ba754..d59d4f9ca 100644
--- a/src/core/libs/supl/asn-rrlp/ExtensionContainer.h
+++ b/src/core/libs/supl/asn-rrlp/ExtensionContainer.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ExtensionContainer_H_
#define _ExtensionContainer_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/FineRTD.c b/src/core/libs/supl/asn-rrlp/FineRTD.c
index a692cc908..6beb1abdb 100644
--- a/src/core/libs/supl/asn-rrlp/FineRTD.c
+++ b/src/core/libs/supl/asn-rrlp/FineRTD.c
@@ -1,145 +1,153 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "FineRTD.h"
-int
-FineRTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int FineRTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-FineRTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void FineRTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-FineRTD_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void FineRTD_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-FineRTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int FineRTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-FineRTD_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) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t FineRTD_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)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-FineRTD_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) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t FineRTD_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)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-FineRTD_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) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t FineRTD_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)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-FineRTD_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) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t FineRTD_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)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-FineRTD_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t FineRTD_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-FineRTD_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- FineRTD_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t FineRTD_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ FineRTD_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FINE_RTD_CONSTR_1 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FineRTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_FineRTD = {
- "FineRTD",
- "FineRTD",
- FineRTD_free,
- FineRTD_print,
- FineRTD_constraint,
- FineRTD_decode_ber,
- FineRTD_encode_der,
- FineRTD_decode_xer,
- FineRTD_encode_xer,
- FineRTD_decode_uper,
- FineRTD_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_FineRTD_tags_1,
- sizeof(asn_DEF_FineRTD_tags_1)
- /sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
- asn_DEF_FineRTD_tags_1, /* Same as above */
- sizeof(asn_DEF_FineRTD_tags_1)
- /sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_FINE_RTD_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "FineRTD",
+ "FineRTD",
+ FineRTD_free,
+ FineRTD_print,
+ FineRTD_constraint,
+ FineRTD_decode_ber,
+ FineRTD_encode_der,
+ FineRTD_decode_xer,
+ FineRTD_encode_xer,
+ FineRTD_decode_uper,
+ FineRTD_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_FineRTD_tags_1,
+ sizeof(asn_DEF_FineRTD_tags_1) / sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
+ asn_DEF_FineRTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_FineRTD_tags_1) / sizeof(asn_DEF_FineRTD_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_FINE_RTD_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/FineRTD.h b/src/core/libs/supl/asn-rrlp/FineRTD.h
index 6e0ea3f0f..268a10025 100644
--- a/src/core/libs/supl/asn-rrlp/FineRTD.h
+++ b/src/core/libs/supl/asn-rrlp/FineRTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _FineRTD_H_
#define _FineRTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/FixType.c b/src/core/libs/supl/asn-rrlp/FixType.c
index 17c34842b..cd73f76d7 100644
--- a/src/core/libs/supl/asn-rrlp/FixType.c
+++ b/src/core/libs/supl/asn-rrlp/FixType.c
@@ -1,145 +1,153 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "FixType.h"
-int
-FixType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int FixType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-FixType_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void FixType_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-FixType_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- FixType_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void FixType_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-FixType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int FixType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-FixType_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) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t FixType_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)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-FixType_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) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t FixType_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)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-FixType_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) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t FixType_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)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-FixType_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) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t FixType_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)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-FixType_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t FixType_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-FixType_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- FixType_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t FixType_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ FixType_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FIX_TYPE_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FixType_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_FixType = {
- "FixType",
- "FixType",
- FixType_free,
- FixType_print,
- FixType_constraint,
- FixType_decode_ber,
- FixType_encode_der,
- FixType_decode_xer,
- FixType_encode_xer,
- FixType_decode_uper,
- FixType_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_FixType_tags_1,
- sizeof(asn_DEF_FixType_tags_1)
- /sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
- asn_DEF_FixType_tags_1, /* Same as above */
- sizeof(asn_DEF_FixType_tags_1)
- /sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_FIX_TYPE_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
+ "FixType",
+ "FixType",
+ FixType_free,
+ FixType_print,
+ FixType_constraint,
+ FixType_decode_ber,
+ FixType_encode_der,
+ FixType_decode_xer,
+ FixType_encode_xer,
+ FixType_decode_uper,
+ FixType_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_FixType_tags_1,
+ sizeof(asn_DEF_FixType_tags_1) / sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
+ asn_DEF_FixType_tags_1, /* Same as above */
+ sizeof(asn_DEF_FixType_tags_1) / sizeof(asn_DEF_FixType_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_FIX_TYPE_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/FixType.h b/src/core/libs/supl/asn-rrlp/FixType.h
index 37773ea9d..154d3cd33 100644
--- a/src/core/libs/supl/asn-rrlp/FixType.h
+++ b/src/core/libs/supl/asn-rrlp/FixType.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _FixType_H_
#define _FixType_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/FrameDrift.c b/src/core/libs/supl/asn-rrlp/FrameDrift.c
index ae533e585..d5f72e0ab 100644
--- a/src/core/libs/supl/asn-rrlp/FrameDrift.c
+++ b/src/core/libs/supl/asn-rrlp/FrameDrift.c
@@ -1,145 +1,157 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "FrameDrift.h"
-int
-FrameDrift_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -64 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int FrameDrift_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -64 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-FrameDrift_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void FrameDrift_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-FrameDrift_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void FrameDrift_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-FrameDrift_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int FrameDrift_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-FrameDrift_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) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t FrameDrift_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)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-FrameDrift_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) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t FrameDrift_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)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-FrameDrift_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) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t FrameDrift_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)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-FrameDrift_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) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t FrameDrift_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)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-FrameDrift_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t FrameDrift_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-FrameDrift_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- FrameDrift_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t FrameDrift_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ FrameDrift_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FRAME_DRIFT_CONSTR_1 = {
- { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, -64, 63} /* (-64..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FrameDrift_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_FrameDrift = {
- "FrameDrift",
- "FrameDrift",
- FrameDrift_free,
- FrameDrift_print,
- FrameDrift_constraint,
- FrameDrift_decode_ber,
- FrameDrift_encode_der,
- FrameDrift_decode_xer,
- FrameDrift_encode_xer,
- FrameDrift_decode_uper,
- FrameDrift_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_FrameDrift_tags_1,
- sizeof(asn_DEF_FrameDrift_tags_1)
- /sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
- asn_DEF_FrameDrift_tags_1, /* Same as above */
- sizeof(asn_DEF_FrameDrift_tags_1)
- /sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_FRAME_DRIFT_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "FrameDrift",
+ "FrameDrift",
+ FrameDrift_free,
+ FrameDrift_print,
+ FrameDrift_constraint,
+ FrameDrift_decode_ber,
+ FrameDrift_encode_der,
+ FrameDrift_decode_xer,
+ FrameDrift_encode_xer,
+ FrameDrift_decode_uper,
+ FrameDrift_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_FrameDrift_tags_1,
+ sizeof(asn_DEF_FrameDrift_tags_1) /
+ sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
+ asn_DEF_FrameDrift_tags_1, /* Same as above */
+ sizeof(asn_DEF_FrameDrift_tags_1) /
+ sizeof(asn_DEF_FrameDrift_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_FRAME_DRIFT_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/FrameDrift.h b/src/core/libs/supl/asn-rrlp/FrameDrift.h
index 7769e4369..70df2eaba 100644
--- a/src/core/libs/supl/asn-rrlp/FrameDrift.h
+++ b/src/core/libs/supl/asn-rrlp/FrameDrift.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _FrameDrift_H_
#define _FrameDrift_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/FrameNumber.c b/src/core/libs/supl/asn-rrlp/FrameNumber.c
index b028e5903..5381f28c6 100644
--- a/src/core/libs/supl/asn-rrlp/FrameNumber.c
+++ b/src/core/libs/supl/asn-rrlp/FrameNumber.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "FrameNumber.h"
-int
-FrameNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 2097151)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int FrameNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 2097151))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-FrameNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void FrameNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-FrameNumber_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void FrameNumber_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-FrameNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int FrameNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-FrameNumber_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) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t FrameNumber_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)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-FrameNumber_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) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t FrameNumber_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)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-FrameNumber_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) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t FrameNumber_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)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-FrameNumber_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) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t FrameNumber_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)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-FrameNumber_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t FrameNumber_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-FrameNumber_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- FrameNumber_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t FrameNumber_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ FrameNumber_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_FRAME_NUMBER_CONSTR_1 = {
- { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 21, -1, 0, 2097151} /* (0..2097151) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_FrameNumber_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_FrameNumber = {
- "FrameNumber",
- "FrameNumber",
- FrameNumber_free,
- FrameNumber_print,
- FrameNumber_constraint,
- FrameNumber_decode_ber,
- FrameNumber_encode_der,
- FrameNumber_decode_xer,
- FrameNumber_encode_xer,
- FrameNumber_decode_uper,
- FrameNumber_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_FrameNumber_tags_1,
- sizeof(asn_DEF_FrameNumber_tags_1)
- /sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
- asn_DEF_FrameNumber_tags_1, /* Same as above */
- sizeof(asn_DEF_FrameNumber_tags_1)
- /sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_FRAME_NUMBER_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "FrameNumber",
+ "FrameNumber",
+ FrameNumber_free,
+ FrameNumber_print,
+ FrameNumber_constraint,
+ FrameNumber_decode_ber,
+ FrameNumber_encode_der,
+ FrameNumber_decode_xer,
+ FrameNumber_encode_xer,
+ FrameNumber_decode_uper,
+ FrameNumber_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_FrameNumber_tags_1,
+ sizeof(asn_DEF_FrameNumber_tags_1) /
+ sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
+ asn_DEF_FrameNumber_tags_1, /* Same as above */
+ sizeof(asn_DEF_FrameNumber_tags_1) /
+ sizeof(asn_DEF_FrameNumber_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_FRAME_NUMBER_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/FrameNumber.h b/src/core/libs/supl/asn-rrlp/FrameNumber.h
index 2cea180ba..254394f0f 100644
--- a/src/core/libs/supl/asn-rrlp/FrameNumber.h
+++ b/src/core/libs/supl/asn-rrlp/FrameNumber.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _FrameNumber_H_
#define _FrameNumber_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-AssistData.c b/src/core/libs/supl/asn-rrlp/GANSS-AssistData.c
index 9c63d2874..35c7f983b 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-AssistData.c
+++ b/src/core/libs/supl/asn-rrlp/GANSS-AssistData.c
@@ -1,59 +1,57 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSS-AssistData.h"
static asn_TYPE_member_t asn_MBR_GANSS_AssistData_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_AssistData, ganss_controlHeader),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSS_ControlHeader,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganss-controlHeader"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_AssistData, ganss_controlHeader),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSS_ControlHeader,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganss-controlHeader"},
};
static ber_tlv_tag_t asn_DEF_GANSS_AssistData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSS_AssistData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ganss-controlHeader at 1062 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* ganss-controlHeader at 1062 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_AssistData_specs_1 = {
- sizeof(struct GANSS_AssistData),
- offsetof(struct GANSS_AssistData, _asn_ctx),
- asn_MAP_GANSS_AssistData_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSS_AssistData),
+ offsetof(struct GANSS_AssistData, _asn_ctx),
+ asn_MAP_GANSS_AssistData_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_AssistData = {
- "GANSS-AssistData",
- "GANSS-AssistData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSS_AssistData_tags_1,
- sizeof(asn_DEF_GANSS_AssistData_tags_1)
- /sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
- asn_DEF_GANSS_AssistData_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSS_AssistData_tags_1)
- /sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSS_AssistData_1,
- 1, /* Elements count */
- &asn_SPC_GANSS_AssistData_specs_1 /* Additional specs */
+ "GANSS-AssistData",
+ "GANSS-AssistData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSS_AssistData_tags_1,
+ sizeof(asn_DEF_GANSS_AssistData_tags_1) /
+ sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
+ asn_DEF_GANSS_AssistData_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSS_AssistData_tags_1) /
+ sizeof(asn_DEF_GANSS_AssistData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSS_AssistData_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSS_AssistData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-AssistData.h b/src/core/libs/supl/asn-rrlp/GANSS-AssistData.h
index b5f0b285e..6e2c48431 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-AssistData.h
+++ b/src/core/libs/supl/asn-rrlp/GANSS-AssistData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSS_AssistData_H_
#define _GANSS_AssistData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.c b/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.c
index 5fbe0f0ba..a7f2d2fe6 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.c
+++ b/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.c
@@ -1,71 +1,68 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSS-ControlHeader.h"
static asn_TYPE_member_t asn_MBR_GANSS_ControlHeader_1[] = {
- { ATF_POINTER, 2, offsetof(struct GANSS_ControlHeader, ganssCommonAssistData),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSCommonAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssCommonAssistData"
- },
- { ATF_POINTER, 1, offsetof(struct GANSS_ControlHeader, ganssGenericAssistDataList),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSSGenericAssistDataElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssGenericAssistDataList"
- },
+ {ATF_POINTER, 2,
+ offsetof(struct GANSS_ControlHeader, ganssCommonAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSCommonAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssCommonAssistData"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSS_ControlHeader, ganssGenericAssistDataList),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSSGenericAssistDataElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssGenericAssistDataList"},
};
-static int asn_MAP_GANSS_ControlHeader_oms_1[] = { 0, 1 };
+static int asn_MAP_GANSS_ControlHeader_oms_1[] = {0, 1};
static ber_tlv_tag_t asn_DEF_GANSS_ControlHeader_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSS_ControlHeader_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssCommonAssistData at 1065 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ganssGenericAssistDataList at 1066 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* ganssCommonAssistData at 1065 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* ganssGenericAssistDataList at 1066 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_ControlHeader_specs_1 = {
- sizeof(struct GANSS_ControlHeader),
- offsetof(struct GANSS_ControlHeader, _asn_ctx),
- asn_MAP_GANSS_ControlHeader_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_GANSS_ControlHeader_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSS_ControlHeader),
+ offsetof(struct GANSS_ControlHeader, _asn_ctx),
+ asn_MAP_GANSS_ControlHeader_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_GANSS_ControlHeader_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_ControlHeader = {
- "GANSS-ControlHeader",
- "GANSS-ControlHeader",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSS_ControlHeader_tags_1,
- sizeof(asn_DEF_GANSS_ControlHeader_tags_1)
- /sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
- asn_DEF_GANSS_ControlHeader_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSS_ControlHeader_tags_1)
- /sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSS_ControlHeader_1,
- 2, /* Elements count */
- &asn_SPC_GANSS_ControlHeader_specs_1 /* Additional specs */
+ "GANSS-ControlHeader",
+ "GANSS-ControlHeader",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSS_ControlHeader_tags_1,
+ sizeof(asn_DEF_GANSS_ControlHeader_tags_1) /
+ sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
+ asn_DEF_GANSS_ControlHeader_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSS_ControlHeader_tags_1) /
+ sizeof(asn_DEF_GANSS_ControlHeader_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSS_ControlHeader_1,
+ 2, /* Elements count */
+ &asn_SPC_GANSS_ControlHeader_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.h b/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.h
index 36edc96f2..bef8e238c 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.h
+++ b/src/core/libs/supl/asn-rrlp/GANSS-ControlHeader.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSS_ControlHeader_H_
#define _GANSS_ControlHeader_H_
-
#include
/* Including external dependencies */
@@ -26,7 +25,8 @@ extern "C"
typedef struct GANSS_ControlHeader
{
struct GANSSCommonAssistData *ganssCommonAssistData /* OPTIONAL */;
- struct SeqOfGANSSGenericAssistDataElement *ganssGenericAssistDataList /* OPTIONAL */;
+ struct SeqOfGANSSGenericAssistDataElement
+ *ganssGenericAssistDataList /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.c b/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.c
index f6cf5ba0f..770d5a5fe 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.c
@@ -1,131 +1,118 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSS-MsrSetElement.h"
-static int
-memb_deltaGNASSTOD_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_deltaGNASSTOD_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_DELTA_GNASSTOD_CONSTR_4 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSS_MsrSetElement_1[] = {
- { ATF_POINTER, 4, offsetof(struct GANSS_MsrSetElement, referenceFrame),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceFrame,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceFrame"
- },
- { ATF_POINTER, 3, offsetof(struct GANSS_MsrSetElement, ganssTODm),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTODm,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODm"
- },
- { ATF_POINTER, 2, offsetof(struct GANSS_MsrSetElement, deltaGNASSTOD),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_deltaGNASSTOD_constraint_1,
- &ASN_PER_MEMB_DELTA_GNASSTOD_CONSTR_4,
- 0,
- "deltaGNASSTOD"
- },
- { ATF_POINTER, 1, offsetof(struct GANSS_MsrSetElement, ganssTODUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTODUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODUncertainty"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_MsrSetElement, ganss_SgnTypeList),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSS_SgnTypeElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganss-SgnTypeList"
- },
+ {ATF_POINTER, 4, offsetof(struct GANSS_MsrSetElement, referenceFrame),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceFrame,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceFrame"},
+ {ATF_POINTER, 3, offsetof(struct GANSS_MsrSetElement, ganssTODm),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTODm, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODm"},
+ {ATF_POINTER, 2, offsetof(struct GANSS_MsrSetElement, deltaGNASSTOD),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_deltaGNASSTOD_constraint_1,
+ &ASN_PER_MEMB_DELTA_GNASSTOD_CONSTR_4, 0, "deltaGNASSTOD"},
+ {ATF_POINTER, 1, offsetof(struct GANSS_MsrSetElement, ganssTODUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTODUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODUncertainty"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_MsrSetElement, ganss_SgnTypeList),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSS_SgnTypeElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganss-SgnTypeList"},
};
-static int asn_MAP_GANSS_MsrSetElement_oms_1[] = { 0, 1, 2, 3 };
+static int asn_MAP_GANSS_MsrSetElement_oms_1[] = {0, 1, 2, 3};
static ber_tlv_tag_t asn_DEF_GANSS_MsrSetElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSS_MsrSetElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFrame at 1456 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTODm at 1457 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* deltaGNASSTOD at 1458 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssTODUncertainty at 1459 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganss-SgnTypeList at 1463 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* referenceFrame at 1456 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ganssTODm at 1457 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* deltaGNASSTOD at 1458 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0}, /* ganssTODUncertainty at 1459 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0} /* ganss-SgnTypeList at 1463 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_MsrSetElement_specs_1 = {
- sizeof(struct GANSS_MsrSetElement),
- offsetof(struct GANSS_MsrSetElement, _asn_ctx),
- asn_MAP_GANSS_MsrSetElement_tag2el_1,
- 5, /* Count of tags in the map */
- asn_MAP_GANSS_MsrSetElement_oms_1, /* Optional members */
- 4, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSS_MsrSetElement),
+ offsetof(struct GANSS_MsrSetElement, _asn_ctx),
+ asn_MAP_GANSS_MsrSetElement_tag2el_1,
+ 5, /* Count of tags in the map */
+ asn_MAP_GANSS_MsrSetElement_oms_1, /* Optional members */
+ 4,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_MsrSetElement = {
- "GANSS-MsrSetElement",
- "GANSS-MsrSetElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSS_MsrSetElement_tags_1,
- sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
- asn_DEF_GANSS_MsrSetElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSS_MsrSetElement_1,
- 5, /* Elements count */
- &asn_SPC_GANSS_MsrSetElement_specs_1 /* Additional specs */
+ "GANSS-MsrSetElement",
+ "GANSS-MsrSetElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSS_MsrSetElement_tags_1,
+ sizeof(asn_DEF_GANSS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSS_MsrSetElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_GANSS_MsrSetElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSS_MsrSetElement_1,
+ 5, /* Elements count */
+ &asn_SPC_GANSS_MsrSetElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.h b/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.h
index 4786b7e07..2b746f809 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSS-MsrSetElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSS_MsrSetElement_H_
#define _GANSS_MsrSetElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.c b/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.c
index 302a2fc62..f83bc6b87 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.c
@@ -1,351 +1,340 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSS-SgnElement.h"
-static int
-memb_cNo_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_cNo_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_carrierQualityInd_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_carrierQualityInd_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 2097151)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 2097151))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_integerCodePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_integerCodePhase_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_codePhaseRMSError_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_codePhaseRMSError_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_doppler_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_doppler_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_adr_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 33554431)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_adr_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 33554431))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_C_NO_CONSTR_3 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CARRIER_QUALITY_IND_CONSTR_5 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_CONSTR_6 = {
- { APC_CONSTRAINED, 21, -1, 0, 2097151 } /* (0..2097151) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 21, -1, 0, 2097151} /* (0..2097151) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_INTEGER_CODE_PHASE_CONSTR_7 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_RMS_ERROR_CONSTR_8 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER_CONSTR_9 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ADR_CONSTR_10 = {
- { APC_CONSTRAINED, 25, -1, 0, 33554431 } /* (0..33554431) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 25, -1, 0, 33554431} /* (0..33554431) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSS_SgnElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, svID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, cNo),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_cNo_constraint_1,
- &ASN_PER_MEMB_C_NO_CONSTR_3,
- 0,
- "cNo"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, mpathDet),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MpathIndic,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "mpathDet"
- },
- { ATF_POINTER, 1, offsetof(struct GANSS_SgnElement, carrierQualityInd),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_carrierQualityInd_constraint_1,
- &ASN_PER_MEMB_CARRIER_QUALITY_IND_CONSTR_5,
- 0,
- "carrierQualityInd"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, codePhase),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_codePhase_constraint_1,
- &ASN_PER_MEMB_CODE_PHASE_CONSTR_6,
- 0,
- "codePhase"
- },
- { ATF_POINTER, 1, offsetof(struct GANSS_SgnElement, integerCodePhase),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_integerCodePhase_constraint_1,
- &ASN_PER_MEMB_INTEGER_CODE_PHASE_CONSTR_7,
- 0,
- "integerCodePhase"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, codePhaseRMSError),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_codePhaseRMSError_constraint_1,
- &ASN_PER_MEMB_CODE_PHASE_RMS_ERROR_CONSTR_8,
- 0,
- "codePhaseRMSError"
- },
- { ATF_POINTER, 2, offsetof(struct GANSS_SgnElement, doppler),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_doppler_constraint_1,
- &ASN_PER_MEMB_DOPPLER_CONSTR_9,
- 0,
- "doppler"
- },
- { ATF_POINTER, 1, offsetof(struct GANSS_SgnElement, adr),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_adr_constraint_1,
- &ASN_PER_MEMB_ADR_CONSTR_10,
- 0,
- "adr"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, svID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, cNo),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_cNo_constraint_1, &ASN_PER_MEMB_C_NO_CONSTR_3,
+ 0, "cNo"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, mpathDet),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MpathIndic, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "mpathDet"},
+ {ATF_POINTER, 1, offsetof(struct GANSS_SgnElement, carrierQualityInd),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_carrierQualityInd_constraint_1,
+ &ASN_PER_MEMB_CARRIER_QUALITY_IND_CONSTR_5, 0, "carrierQualityInd"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, codePhase),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_codePhase_constraint_1,
+ &ASN_PER_MEMB_CODE_PHASE_CONSTR_6, 0, "codePhase"},
+ {ATF_POINTER, 1, offsetof(struct GANSS_SgnElement, integerCodePhase),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_integerCodePhase_constraint_1,
+ &ASN_PER_MEMB_INTEGER_CODE_PHASE_CONSTR_7, 0, "integerCodePhase"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnElement, codePhaseRMSError),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_codePhaseRMSError_constraint_1,
+ &ASN_PER_MEMB_CODE_PHASE_RMS_ERROR_CONSTR_8, 0, "codePhaseRMSError"},
+ {ATF_POINTER, 2, offsetof(struct GANSS_SgnElement, doppler),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_doppler_constraint_1,
+ &ASN_PER_MEMB_DOPPLER_CONSTR_9, 0, "doppler"},
+ {ATF_POINTER, 1, offsetof(struct GANSS_SgnElement, adr),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_adr_constraint_1, &ASN_PER_MEMB_ADR_CONSTR_10,
+ 0, "adr"},
};
-static int asn_MAP_GANSS_SgnElement_oms_1[] = { 3, 5, 7, 8 };
+static int asn_MAP_GANSS_SgnElement_oms_1[] = {3, 5, 7, 8};
static ber_tlv_tag_t asn_DEF_GANSS_SgnElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSS_SgnElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID at 1479 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cNo at 1480 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mpathDet at 1481 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* carrierQualityInd at 1482 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* codePhase at 1483 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* integerCodePhase at 1484 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* codePhaseRMSError at 1485 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* doppler at 1486 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* adr at 1487 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* svID at 1479 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* cNo at 1480 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* mpathDet at 1481 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0}, /* carrierQualityInd at 1482 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* codePhase at 1483 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* integerCodePhase at 1484 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* codePhaseRMSError at 1485 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0}, /* doppler at 1486 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0} /* adr at 1487 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_SgnElement_specs_1 = {
- sizeof(struct GANSS_SgnElement),
- offsetof(struct GANSS_SgnElement, _asn_ctx),
- asn_MAP_GANSS_SgnElement_tag2el_1,
- 9, /* Count of tags in the map */
- asn_MAP_GANSS_SgnElement_oms_1, /* Optional members */
- 4, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSS_SgnElement),
+ offsetof(struct GANSS_SgnElement, _asn_ctx),
+ asn_MAP_GANSS_SgnElement_tag2el_1,
+ 9, /* Count of tags in the map */
+ asn_MAP_GANSS_SgnElement_oms_1, /* Optional members */
+ 4,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_SgnElement = {
- "GANSS-SgnElement",
- "GANSS-SgnElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSS_SgnElement_tags_1,
- sizeof(asn_DEF_GANSS_SgnElement_tags_1)
- /sizeof(asn_DEF_GANSS_SgnElement_tags_1[0]), /* 1 */
- asn_DEF_GANSS_SgnElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSS_SgnElement_tags_1)
- /sizeof(asn_DEF_GANSS_SgnElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSS_SgnElement_1,
- 9, /* Elements count */
- &asn_SPC_GANSS_SgnElement_specs_1 /* Additional specs */
+ "GANSS-SgnElement",
+ "GANSS-SgnElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSS_SgnElement_tags_1,
+ sizeof(asn_DEF_GANSS_SgnElement_tags_1) /
+ sizeof(asn_DEF_GANSS_SgnElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSS_SgnElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSS_SgnElement_tags_1) /
+ sizeof(asn_DEF_GANSS_SgnElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSS_SgnElement_1,
+ 9, /* Elements count */
+ &asn_SPC_GANSS_SgnElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.h b/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.h
index 2e7a15c4a..401ab2b99 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSS-SgnElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSS_SgnElement_H_
#define _GANSS_SgnElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.c b/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.c
index fce8af4e8..fac6a087f 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.c
@@ -1,99 +1,95 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSS-SgnTypeElement.h"
-static int
-memb_ganssSignalID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 15)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssSignalID_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 15))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_SIGNAL_ID_CONSTR_2 = {
- { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, 0, 15} /* (0..15) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSS_SgnTypeElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnTypeElement, ganssSignalID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssSignalID_constraint_1,
- &ASN_PER_MEMB_GANSS_SIGNAL_ID_CONSTR_2,
- 0,
- "ganssSignalID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnTypeElement, ganss_SgnList),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSS_SgnElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganss-SgnList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnTypeElement, ganssSignalID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssSignalID_constraint_1,
+ &ASN_PER_MEMB_GANSS_SIGNAL_ID_CONSTR_2, 0, "ganssSignalID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSS_SgnTypeElement, ganss_SgnList),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSS_SgnElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganss-SgnList"},
};
static ber_tlv_tag_t asn_DEF_GANSS_SgnTypeElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSS_SgnTypeElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssSignalID at 1469 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ganss-SgnList at 1472 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssSignalID at 1469 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* ganss-SgnList at 1472 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSS_SgnTypeElement_specs_1 = {
- sizeof(struct GANSS_SgnTypeElement),
- offsetof(struct GANSS_SgnTypeElement, _asn_ctx),
- asn_MAP_GANSS_SgnTypeElement_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSS_SgnTypeElement),
+ offsetof(struct GANSS_SgnTypeElement, _asn_ctx),
+ asn_MAP_GANSS_SgnTypeElement_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSS_SgnTypeElement = {
- "GANSS-SgnTypeElement",
- "GANSS-SgnTypeElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSS_SgnTypeElement_tags_1,
- sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1)
- /sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1[0]), /* 1 */
- asn_DEF_GANSS_SgnTypeElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1)
- /sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSS_SgnTypeElement_1,
- 2, /* Elements count */
- &asn_SPC_GANSS_SgnTypeElement_specs_1 /* Additional specs */
+ "GANSS-SgnTypeElement",
+ "GANSS-SgnTypeElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSS_SgnTypeElement_tags_1,
+ sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1) /
+ sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSS_SgnTypeElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1) /
+ sizeof(asn_DEF_GANSS_SgnTypeElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSS_SgnTypeElement_1,
+ 2, /* Elements count */
+ &asn_SPC_GANSS_SgnTypeElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.h b/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.h
index f591c0e86..2f74a5c22 100644
--- a/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSS-SgnTypeElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSS_SgnTypeElement_H_
#define _GANSS_SgnTypeElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.c b/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.c
index 906260ab4..65e7a38d8 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.c
@@ -1,60 +1,59 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSAlmanacElement.h"
static asn_per_constraints_t ASN_PER_TYPE_GANSS_ALMANAC_ELEMENT_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0} /* (0..0,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSAlmanacElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacElement, choice.keplerianAlmanacSet),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Almanac_KeplerianSet,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "keplerianAlmanacSet"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GANSSAlmanacElement, choice.keplerianAlmanacSet),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Almanac_KeplerianSet,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "keplerianAlmanacSet"},
};
static asn_TYPE_tag2member_t asn_MAP_GANSSAlmanacElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* keplerianAlmanacSet at 1362 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* keplerianAlmanacSet at 1362 */
};
static asn_CHOICE_specifics_t asn_SPC_GANSSAlmanacElement_specs_1 = {
- sizeof(struct GANSSAlmanacElement),
- offsetof(struct GANSSAlmanacElement, _asn_ctx),
- offsetof(struct GANSSAlmanacElement, present),
- sizeof(((struct GANSSAlmanacElement *)0)->present),
- asn_MAP_GANSSAlmanacElement_tag2el_1,
- 1, /* Count of tags in the map */
- 0,
- 1 /* Extensions start */
+ sizeof(struct GANSSAlmanacElement),
+ offsetof(struct GANSSAlmanacElement, _asn_ctx),
+ offsetof(struct GANSSAlmanacElement, present),
+ sizeof(((struct GANSSAlmanacElement *)0)->present),
+ asn_MAP_GANSSAlmanacElement_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_GANSSAlmanacElement = {
- "GANSSAlmanacElement",
- "GANSSAlmanacElement",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_GANSS_ALMANAC_ELEMENT_CONSTR_1,
- asn_MBR_GANSSAlmanacElement_1,
- 1, /* Elements count */
- &asn_SPC_GANSSAlmanacElement_specs_1 /* Additional specs */
+ "GANSSAlmanacElement",
+ "GANSSAlmanacElement",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_GANSS_ALMANAC_ELEMENT_CONSTR_1,
+ asn_MBR_GANSSAlmanacElement_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSSAlmanacElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.h b/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.h
index f1ba08493..0b7980fdd 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSAlmanacElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSAlmanacElement_H_
#define _GANSSAlmanacElement_H_
-
#include
/* Including external dependencies */
@@ -35,9 +34,9 @@ extern "C"
{
Almanac_KeplerianSet_t keplerianAlmanacSet;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
} choice;
/* Context for parsing across buffer boundaries */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.c b/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.c
index 77630b337..857969d08 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.c
@@ -1,191 +1,181 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSAlmanacModel.h"
-static int
-memb_weekNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_weekNumber_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_toa_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_toa_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ioda_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ioda_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_WEEK_NUMBER_CONSTR_2 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_TOA_CONSTR_4 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_IODA_CONSTR_5 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSAlmanacModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacModel, weekNumber),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_weekNumber_constraint_1,
- &ASN_PER_MEMB_WEEK_NUMBER_CONSTR_2,
- 0,
- "weekNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacModel, svIDMask),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVIDMASK,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svIDMask"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSAlmanacModel, toa),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_toa_constraint_1,
- &ASN_PER_MEMB_TOA_CONSTR_4,
- 0,
- "toa"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSAlmanacModel, ioda),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ioda_constraint_1,
- &ASN_PER_MEMB_IODA_CONSTR_5,
- 0,
- "ioda"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacModel, ganssAlmanacList),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSSAlmanacElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssAlmanacList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacModel, weekNumber),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_weekNumber_constraint_1,
+ &ASN_PER_MEMB_WEEK_NUMBER_CONSTR_2, 0, "weekNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacModel, svIDMask),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVIDMASK, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svIDMask"},
+ {ATF_POINTER, 2, offsetof(struct GANSSAlmanacModel, toa),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_toa_constraint_1, &ASN_PER_MEMB_TOA_CONSTR_4,
+ 0, "toa"},
+ {ATF_POINTER, 1, offsetof(struct GANSSAlmanacModel, ioda),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ioda_constraint_1,
+ &ASN_PER_MEMB_IODA_CONSTR_5, 0, "ioda"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSAlmanacModel, ganssAlmanacList),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSSAlmanacElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssAlmanacList"},
};
-static int asn_MAP_GANSSAlmanacModel_oms_1[] = { 2, 3 };
+static int asn_MAP_GANSSAlmanacModel_oms_1[] = {2, 3};
static ber_tlv_tag_t asn_DEF_GANSSAlmanacModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSAlmanacModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* weekNumber at 1348 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svIDMask at 1349 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* toa at 1350 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ioda at 1351 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganssAlmanacList at 1353 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* weekNumber at 1348 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* svIDMask at 1349 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* toa at 1350 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* ioda at 1351 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* ganssAlmanacList at 1353 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSAlmanacModel_specs_1 = {
- sizeof(struct GANSSAlmanacModel),
- offsetof(struct GANSSAlmanacModel, _asn_ctx),
- asn_MAP_GANSSAlmanacModel_tag2el_1,
- 5, /* Count of tags in the map */
- asn_MAP_GANSSAlmanacModel_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSAlmanacModel),
+ offsetof(struct GANSSAlmanacModel, _asn_ctx),
+ asn_MAP_GANSSAlmanacModel_tag2el_1,
+ 5, /* Count of tags in the map */
+ asn_MAP_GANSSAlmanacModel_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSAlmanacModel = {
- "GANSSAlmanacModel",
- "GANSSAlmanacModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSAlmanacModel_tags_1,
- sizeof(asn_DEF_GANSSAlmanacModel_tags_1)
- /sizeof(asn_DEF_GANSSAlmanacModel_tags_1[0]), /* 1 */
- asn_DEF_GANSSAlmanacModel_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSAlmanacModel_tags_1)
- /sizeof(asn_DEF_GANSSAlmanacModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSAlmanacModel_1,
- 5, /* Elements count */
- &asn_SPC_GANSSAlmanacModel_specs_1 /* Additional specs */
+ "GANSSAlmanacModel",
+ "GANSSAlmanacModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSAlmanacModel_tags_1,
+ sizeof(asn_DEF_GANSSAlmanacModel_tags_1) /
+ sizeof(asn_DEF_GANSSAlmanacModel_tags_1[0]), /* 1 */
+ asn_DEF_GANSSAlmanacModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSAlmanacModel_tags_1) /
+ sizeof(asn_DEF_GANSSAlmanacModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSAlmanacModel_1,
+ 5, /* Elements count */
+ &asn_SPC_GANSSAlmanacModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.h b/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.h
index 06253e12f..a07f94bb3 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSAlmanacModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSAlmanacModel_H_
#define _GANSSAlmanacModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.c b/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.c
index 8d6fda870..76cf1fd99 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.c
@@ -1,146 +1,166 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSAssistanceData.h"
-int
-GANSSAssistanceData_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- size = st->size;
-
- if((size >= 1 && size <= 40)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSAssistanceData_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ size = st->size;
+
+ if ((size >= 1 && size <= 40))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using OCTET_STRING,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSAssistanceData_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_OCTET_STRING.free_struct;
- td->print_struct = asn_DEF_OCTET_STRING.print_struct;
- td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
- td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
- td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
- td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
- td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
- td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
- td->elements = asn_DEF_OCTET_STRING.elements;
- td->elements_count = asn_DEF_OCTET_STRING.elements_count;
- td->specifics = asn_DEF_OCTET_STRING.specifics;
+static void GANSSAssistanceData_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_OCTET_STRING.free_struct;
+ td->print_struct = asn_DEF_OCTET_STRING.print_struct;
+ td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
+ td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
+ td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
+ td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
+ td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
+ td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
+ td->elements = asn_DEF_OCTET_STRING.elements;
+ td->elements_count = asn_DEF_OCTET_STRING.elements_count;
+ td->specifics = asn_DEF_OCTET_STRING.specifics;
}
-void
-GANSSAssistanceData_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSAssistanceData_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSAssistanceData_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSAssistanceData_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSAssistanceData_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) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSAssistanceData_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)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSAssistanceData_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) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSAssistanceData_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)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSAssistanceData_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) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSAssistanceData_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)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSAssistanceData_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) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSAssistanceData_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)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSAssistanceData_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSAssistanceData_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSAssistanceData_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSAssistanceData_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GANSSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSS_ASSISTANCE_DATA_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 6, 6, 1, 40 } /* (SIZE(1..40)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 6, 6, 1, 40} /* (SIZE(1..40)) */,
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSAssistanceData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSAssistanceData = {
- "GANSSAssistanceData",
- "GANSSAssistanceData",
- GANSSAssistanceData_free,
- GANSSAssistanceData_print,
- GANSSAssistanceData_constraint,
- GANSSAssistanceData_decode_ber,
- GANSSAssistanceData_encode_der,
- GANSSAssistanceData_decode_xer,
- GANSSAssistanceData_encode_xer,
- GANSSAssistanceData_decode_uper,
- GANSSAssistanceData_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSAssistanceData_tags_1,
- sizeof(asn_DEF_GANSSAssistanceData_tags_1)
- /sizeof(asn_DEF_GANSSAssistanceData_tags_1[0]), /* 1 */
- asn_DEF_GANSSAssistanceData_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSAssistanceData_tags_1)
- /sizeof(asn_DEF_GANSSAssistanceData_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSS_ASSISTANCE_DATA_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GANSSAssistanceData",
+ "GANSSAssistanceData",
+ GANSSAssistanceData_free,
+ GANSSAssistanceData_print,
+ GANSSAssistanceData_constraint,
+ GANSSAssistanceData_decode_ber,
+ GANSSAssistanceData_encode_der,
+ GANSSAssistanceData_decode_xer,
+ GANSSAssistanceData_encode_xer,
+ GANSSAssistanceData_decode_uper,
+ GANSSAssistanceData_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSAssistanceData_tags_1,
+ sizeof(asn_DEF_GANSSAssistanceData_tags_1) /
+ sizeof(asn_DEF_GANSSAssistanceData_tags_1[0]), /* 1 */
+ asn_DEF_GANSSAssistanceData_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSAssistanceData_tags_1) /
+ sizeof(asn_DEF_GANSSAssistanceData_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSS_ASSISTANCE_DATA_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.h b/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.h
index 751d01df2..fb8833b59 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSAssistanceData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSAssistanceData_H_
#define _GANSSAssistanceData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSClockModel.c b/src/core/libs/supl/asn-rrlp/GANSSClockModel.c
index bfe58654d..f87425813 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSClockModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSClockModel.c
@@ -1,60 +1,59 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSClockModel.h"
static asn_per_constraints_t ASN_PER_TYPE_GANSS_CLOCK_MODEL_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0} /* (0..0,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSClockModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSClockModel, choice.standardClockModelList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfStandardClockModelElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "standardClockModelList"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GANSSClockModel, choice.standardClockModelList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfStandardClockModelElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "standardClockModelList"},
};
static asn_TYPE_tag2member_t asn_MAP_GANSSClockModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* standardClockModelList at 1274 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* standardClockModelList at 1274 */
};
static asn_CHOICE_specifics_t asn_SPC_GANSSClockModel_specs_1 = {
- sizeof(struct GANSSClockModel),
- offsetof(struct GANSSClockModel, _asn_ctx),
- offsetof(struct GANSSClockModel, present),
- sizeof(((struct GANSSClockModel *)0)->present),
- asn_MAP_GANSSClockModel_tag2el_1,
- 1, /* Count of tags in the map */
- 0,
- 1 /* Extensions start */
+ sizeof(struct GANSSClockModel),
+ offsetof(struct GANSSClockModel, _asn_ctx),
+ offsetof(struct GANSSClockModel, present),
+ sizeof(((struct GANSSClockModel *)0)->present),
+ asn_MAP_GANSSClockModel_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_GANSSClockModel = {
- "GANSSClockModel",
- "GANSSClockModel",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_GANSS_CLOCK_MODEL_CONSTR_1,
- asn_MBR_GANSSClockModel_1,
- 1, /* Elements count */
- &asn_SPC_GANSSClockModel_specs_1 /* Additional specs */
+ "GANSSClockModel",
+ "GANSSClockModel",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_GANSS_CLOCK_MODEL_CONSTR_1,
+ asn_MBR_GANSSClockModel_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSSClockModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSClockModel.h b/src/core/libs/supl/asn-rrlp/GANSSClockModel.h
index 63f8dafe8..77f5d0d19 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSClockModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSClockModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSClockModel_H_
#define _GANSSClockModel_H_
-
#include
/* Including external dependencies */
@@ -35,9 +34,9 @@ extern "C"
{
SeqOfStandardClockModelElement_t standardClockModelList;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
} choice;
/* Context for parsing across buffer boundaries */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.c b/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.c
index b819eb959..ff6e0a2d2 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.c
@@ -1,81 +1,75 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSCommonAssistData.h"
static asn_TYPE_member_t asn_MBR_GANSSCommonAssistData_1[] = {
- { ATF_POINTER, 3, offsetof(struct GANSSCommonAssistData, ganssReferenceTime),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSReferenceTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssReferenceTime"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSCommonAssistData, ganssRefLocation),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSRefLocation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssRefLocation"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSCommonAssistData, ganssIonosphericModel),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSIonosphericModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssIonosphericModel"
- },
+ {ATF_POINTER, 3, offsetof(struct GANSSCommonAssistData, ganssReferenceTime),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSReferenceTime,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssReferenceTime"},
+ {ATF_POINTER, 2, offsetof(struct GANSSCommonAssistData, ganssRefLocation),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSRefLocation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssRefLocation"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSSCommonAssistData, ganssIonosphericModel),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSIonosphericModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssIonosphericModel"},
};
-static int asn_MAP_GANSSCommonAssistData_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_GANSSCommonAssistData_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_GANSSCommonAssistData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSCommonAssistData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssReferenceTime at 1071 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssRefLocation at 1072 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssIonosphericModel at 1073 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* ganssReferenceTime at 1071 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* ganssRefLocation at 1072 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* ganssIonosphericModel at 1073 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSCommonAssistData_specs_1 = {
- sizeof(struct GANSSCommonAssistData),
- offsetof(struct GANSSCommonAssistData, _asn_ctx),
- asn_MAP_GANSSCommonAssistData_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_GANSSCommonAssistData_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- 2, /* Start extensions */
- 4 /* Stop extensions */
+ sizeof(struct GANSSCommonAssistData),
+ offsetof(struct GANSSCommonAssistData, _asn_ctx),
+ asn_MAP_GANSSCommonAssistData_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_GANSSCommonAssistData_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ 2, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSCommonAssistData = {
- "GANSSCommonAssistData",
- "GANSSCommonAssistData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSCommonAssistData_tags_1,
- sizeof(asn_DEF_GANSSCommonAssistData_tags_1)
- /sizeof(asn_DEF_GANSSCommonAssistData_tags_1[0]), /* 1 */
- asn_DEF_GANSSCommonAssistData_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSCommonAssistData_tags_1)
- /sizeof(asn_DEF_GANSSCommonAssistData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSCommonAssistData_1,
- 3, /* Elements count */
- &asn_SPC_GANSSCommonAssistData_specs_1 /* Additional specs */
+ "GANSSCommonAssistData",
+ "GANSSCommonAssistData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSCommonAssistData_tags_1,
+ sizeof(asn_DEF_GANSSCommonAssistData_tags_1) /
+ sizeof(asn_DEF_GANSSCommonAssistData_tags_1[0]), /* 1 */
+ asn_DEF_GANSSCommonAssistData_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSCommonAssistData_tags_1) /
+ sizeof(asn_DEF_GANSSCommonAssistData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSCommonAssistData_1,
+ 3, /* Elements count */
+ &asn_SPC_GANSSCommonAssistData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.h b/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.h
index 4173cfac4..0ea6e438c 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSCommonAssistData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSCommonAssistData_H_
#define _GANSSCommonAssistData_H_
-
#include
/* Including external dependencies */
@@ -30,9 +29,9 @@ extern "C"
struct GANSSRefLocation *ganssRefLocation /* OPTIONAL */;
struct GANSSIonosphericModel *ganssIonosphericModel /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSDataBit.c b/src/core/libs/supl/asn-rrlp/GANSSDataBit.c
index 5f1ab2f6a..c074d685e 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSDataBit.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSDataBit.c
@@ -1,145 +1,163 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSDataBit.h"
-int
-GANSSDataBit_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSDataBit_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSDataBit_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GANSSDataBit_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GANSSDataBit_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSDataBit_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSDataBit_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSDataBit_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSDataBit_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) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSDataBit_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)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSDataBit_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) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSDataBit_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)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSDataBit_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) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSDataBit_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)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSDataBit_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) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSDataBit_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)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSDataBit_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSDataBit_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSDataBit_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSDataBit_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSDataBit_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ GANSSDataBit_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSS_DATA_BIT_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSDataBit_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSDataBit = {
- "GANSSDataBit",
- "GANSSDataBit",
- GANSSDataBit_free,
- GANSSDataBit_print,
- GANSSDataBit_constraint,
- GANSSDataBit_decode_ber,
- GANSSDataBit_encode_der,
- GANSSDataBit_decode_xer,
- GANSSDataBit_encode_xer,
- GANSSDataBit_decode_uper,
- GANSSDataBit_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSDataBit_tags_1,
- sizeof(asn_DEF_GANSSDataBit_tags_1)
- /sizeof(asn_DEF_GANSSDataBit_tags_1[0]), /* 1 */
- asn_DEF_GANSSDataBit_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSDataBit_tags_1)
- /sizeof(asn_DEF_GANSSDataBit_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSS_DATA_BIT_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GANSSDataBit",
+ "GANSSDataBit",
+ GANSSDataBit_free,
+ GANSSDataBit_print,
+ GANSSDataBit_constraint,
+ GANSSDataBit_decode_ber,
+ GANSSDataBit_encode_der,
+ GANSSDataBit_decode_xer,
+ GANSSDataBit_encode_xer,
+ GANSSDataBit_decode_uper,
+ GANSSDataBit_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSDataBit_tags_1,
+ sizeof(asn_DEF_GANSSDataBit_tags_1) /
+ sizeof(asn_DEF_GANSSDataBit_tags_1[0]), /* 1 */
+ asn_DEF_GANSSDataBit_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSDataBit_tags_1) /
+ sizeof(asn_DEF_GANSSDataBit_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSS_DATA_BIT_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSDataBit.h b/src/core/libs/supl/asn-rrlp/GANSSDataBit.h
index 9ac0b3dfe..1e896732f 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSDataBit.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSDataBit.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSDataBit_H_
#define _GANSSDataBit_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.c b/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.c
index 29945a448..d09a05716 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.c
@@ -1,149 +1,141 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSDataBitAssist.h"
-static int
-memb_ganssTOD_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 59)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssTOD_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 59))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssDataTypeID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 2)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssDataTypeID_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 2))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_TOD_CONSTR_2 = {
- { APC_CONSTRAINED, 6, 6, 0, 59 } /* (0..59) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 59} /* (0..59) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_DATA_TYPE_ID_CONSTR_4 = {
- { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 2} /* (0..2) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSDataBitAssist_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, ganssTOD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssTOD_constraint_1,
- &ASN_PER_MEMB_GANSS_TOD_CONSTR_2,
- 0,
- "ganssTOD"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, svID),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, ganssDataTypeID),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssDataTypeID_constraint_1,
- &ASN_PER_MEMB_GANSS_DATA_TYPE_ID_CONSTR_4,
- 0,
- "ganssDataTypeID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, ganssDataBits),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOf_GANSSDataBits,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssDataBits"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, ganssTOD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssTOD_constraint_1,
+ &ASN_PER_MEMB_GANSS_TOD_CONSTR_2, 0, "ganssTOD"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, svID),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, ganssDataTypeID),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssDataTypeID_constraint_1,
+ &ASN_PER_MEMB_GANSS_DATA_TYPE_ID_CONSTR_4, 0, "ganssDataTypeID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSDataBitAssist, ganssDataBits),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOf_GANSSDataBits,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssDataBits"},
};
static ber_tlv_tag_t asn_DEF_GANSSDataBitAssist_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSDataBitAssist_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTOD at 1307 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svID at 1308 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssDataTypeID at 1309 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ganssDataBits at 1313 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssTOD at 1307 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* svID at 1308 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* ganssDataTypeID at 1309 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* ganssDataBits at 1313 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSDataBitAssist_specs_1 = {
- sizeof(struct GANSSDataBitAssist),
- offsetof(struct GANSSDataBitAssist, _asn_ctx),
- asn_MAP_GANSSDataBitAssist_tag2el_1,
- 4, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSDataBitAssist),
+ offsetof(struct GANSSDataBitAssist, _asn_ctx),
+ asn_MAP_GANSSDataBitAssist_tag2el_1,
+ 4, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSDataBitAssist = {
- "GANSSDataBitAssist",
- "GANSSDataBitAssist",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSDataBitAssist_tags_1,
- sizeof(asn_DEF_GANSSDataBitAssist_tags_1)
- /sizeof(asn_DEF_GANSSDataBitAssist_tags_1[0]), /* 1 */
- asn_DEF_GANSSDataBitAssist_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSDataBitAssist_tags_1)
- /sizeof(asn_DEF_GANSSDataBitAssist_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSDataBitAssist_1,
- 4, /* Elements count */
- &asn_SPC_GANSSDataBitAssist_specs_1 /* Additional specs */
+ "GANSSDataBitAssist",
+ "GANSSDataBitAssist",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSDataBitAssist_tags_1,
+ sizeof(asn_DEF_GANSSDataBitAssist_tags_1) /
+ sizeof(asn_DEF_GANSSDataBitAssist_tags_1[0]), /* 1 */
+ asn_DEF_GANSSDataBitAssist_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSDataBitAssist_tags_1) /
+ sizeof(asn_DEF_GANSSDataBitAssist_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSDataBitAssist_1,
+ 4, /* Elements count */
+ &asn_SPC_GANSSDataBitAssist_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.h b/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.h
index defe153bd..a3a8b9ff4 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSDataBitAssist.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSDataBitAssist_H_
#define _GANSSDataBitAssist_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.c b/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.c
index ded9c4b2f..ee79f0470 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.c
@@ -1,99 +1,95 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSDiffCorrections.h"
-static int
-memb_dganssRefTime_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 119)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_dganssRefTime_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 119))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_DGANSS_REF_TIME_CONSTR_2 = {
- { APC_CONSTRAINED, 7, 7, 0, 119 } /* (0..119) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 119} /* (0..119) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSDiffCorrections_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSDiffCorrections, dganssRefTime),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_dganssRefTime_constraint_1,
- &ASN_PER_MEMB_DGANSS_REF_TIME_CONSTR_2,
- 0,
- "dganssRefTime"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSDiffCorrections, sgnTypeList),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfSgnTypeElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "sgnTypeList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSDiffCorrections, dganssRefTime),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_dganssRefTime_constraint_1,
+ &ASN_PER_MEMB_DGANSS_REF_TIME_CONSTR_2, 0, "dganssRefTime"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSDiffCorrections, sgnTypeList),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfSgnTypeElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "sgnTypeList"},
};
static ber_tlv_tag_t asn_DEF_GANSSDiffCorrections_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSDiffCorrections_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dganssRefTime at 1186 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sgnTypeList at 1190 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* dganssRefTime at 1186 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* sgnTypeList at 1190 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSDiffCorrections_specs_1 = {
- sizeof(struct GANSSDiffCorrections),
- offsetof(struct GANSSDiffCorrections, _asn_ctx),
- asn_MAP_GANSSDiffCorrections_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSDiffCorrections),
+ offsetof(struct GANSSDiffCorrections, _asn_ctx),
+ asn_MAP_GANSSDiffCorrections_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSDiffCorrections = {
- "GANSSDiffCorrections",
- "GANSSDiffCorrections",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSDiffCorrections_tags_1,
- sizeof(asn_DEF_GANSSDiffCorrections_tags_1)
- /sizeof(asn_DEF_GANSSDiffCorrections_tags_1[0]), /* 1 */
- asn_DEF_GANSSDiffCorrections_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSDiffCorrections_tags_1)
- /sizeof(asn_DEF_GANSSDiffCorrections_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSDiffCorrections_1,
- 2, /* Elements count */
- &asn_SPC_GANSSDiffCorrections_specs_1 /* Additional specs */
+ "GANSSDiffCorrections",
+ "GANSSDiffCorrections",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSDiffCorrections_tags_1,
+ sizeof(asn_DEF_GANSSDiffCorrections_tags_1) /
+ sizeof(asn_DEF_GANSSDiffCorrections_tags_1[0]), /* 1 */
+ asn_DEF_GANSSDiffCorrections_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSDiffCorrections_tags_1) /
+ sizeof(asn_DEF_GANSSDiffCorrections_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSDiffCorrections_1,
+ 2, /* Elements count */
+ &asn_SPC_GANSSDiffCorrections_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.h b/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.h
index 5289c74a8..a50a1d558 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSDiffCorrections.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSDiffCorrections_H_
#define _GANSSDiffCorrections_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.c b/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.c
index abc4c3225..6c6fa96e9 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.c
@@ -1,171 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSGenericAssistDataElement.h"
-static int
-memb_ganssID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssID_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_ID_CONSTR_2 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSGenericAssistDataElement_1[] = {
- { ATF_POINTER, 9, offsetof(struct GANSSGenericAssistDataElement, ganssID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssID_constraint_1,
- &ASN_PER_MEMB_GANSS_ID_CONSTR_2,
- 0,
- "ganssID"
- },
- { ATF_POINTER, 8, offsetof(struct GANSSGenericAssistDataElement, ganssTimeModel),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSSTimeModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTimeModel"
- },
- { ATF_POINTER, 7, offsetof(struct GANSSGenericAssistDataElement, ganssDiffCorrections),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSDiffCorrections,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssDiffCorrections"
- },
- { ATF_POINTER, 6, offsetof(struct GANSSGenericAssistDataElement, ganssNavigationModel),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSNavModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssNavigationModel"
- },
- { ATF_POINTER, 5, offsetof(struct GANSSGenericAssistDataElement, ganssRealTimeIntegrity),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSRealTimeIntegrity,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssRealTimeIntegrity"
- },
- { ATF_POINTER, 4, offsetof(struct GANSSGenericAssistDataElement, ganssDataBitAssist),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSDataBitAssist,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssDataBitAssist"
- },
- { ATF_POINTER, 3, offsetof(struct GANSSGenericAssistDataElement, ganssRefMeasurementAssist),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSRefMeasurementAssist,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssRefMeasurementAssist"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSGenericAssistDataElement, ganssAlmanacModel),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSAlmanacModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssAlmanacModel"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSGenericAssistDataElement, ganssUTCModel),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSUTCModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssUTCModel"
- },
+ {ATF_POINTER, 9, offsetof(struct GANSSGenericAssistDataElement, ganssID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssID_constraint_1,
+ &ASN_PER_MEMB_GANSS_ID_CONSTR_2, 0, "ganssID"},
+ {ATF_POINTER, 8,
+ offsetof(struct GANSSGenericAssistDataElement, ganssTimeModel),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSSTimeModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTimeModel"},
+ {ATF_POINTER, 7,
+ offsetof(struct GANSSGenericAssistDataElement, ganssDiffCorrections),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSDiffCorrections,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssDiffCorrections"},
+ {ATF_POINTER, 6,
+ offsetof(struct GANSSGenericAssistDataElement, ganssNavigationModel),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSNavModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssNavigationModel"},
+ {ATF_POINTER, 5,
+ offsetof(struct GANSSGenericAssistDataElement, ganssRealTimeIntegrity),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSRealTimeIntegrity,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssRealTimeIntegrity"},
+ {ATF_POINTER, 4,
+ offsetof(struct GANSSGenericAssistDataElement, ganssDataBitAssist),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSDataBitAssist,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssDataBitAssist"},
+ {ATF_POINTER, 3,
+ offsetof(struct GANSSGenericAssistDataElement, ganssRefMeasurementAssist),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSRefMeasurementAssist,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssRefMeasurementAssist"},
+ {ATF_POINTER, 2,
+ offsetof(struct GANSSGenericAssistDataElement, ganssAlmanacModel),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSAlmanacModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssAlmanacModel"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSSGenericAssistDataElement, ganssUTCModel),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSUTCModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssUTCModel"},
};
-static int asn_MAP_GANSSGenericAssistDataElement_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
+static int asn_MAP_GANSSGenericAssistDataElement_oms_1[] = {0, 1, 2, 3, 4,
+ 5, 6, 7, 8};
static ber_tlv_tag_t asn_DEF_GANSSGenericAssistDataElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_GANSSGenericAssistDataElement_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssID at 1082 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* ganssTimeModel at 1083 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* ganssDiffCorrections at 1084 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0}, /* ganssNavigationModel at 1085 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0}, /* ganssRealTimeIntegrity at 1086 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* ganssDataBitAssist at 1087 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* ganssRefMeasurementAssist at 1088 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0}, /* ganssAlmanacModel at 1089 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0,
+ 0} /* ganssUTCModel at 1090 */
};
-static asn_TYPE_tag2member_t asn_MAP_GANSSGenericAssistDataElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssID at 1082 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTimeModel at 1083 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssDiffCorrections at 1084 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssNavigationModel at 1085 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ganssRealTimeIntegrity at 1086 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ganssDataBitAssist at 1087 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ganssRefMeasurementAssist at 1088 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ganssAlmanacModel at 1089 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* ganssUTCModel at 1090 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_GANSSGenericAssistDataElement_specs_1 = {
- sizeof(struct GANSSGenericAssistDataElement),
- offsetof(struct GANSSGenericAssistDataElement, _asn_ctx),
- asn_MAP_GANSSGenericAssistDataElement_tag2el_1,
- 9, /* Count of tags in the map */
- asn_MAP_GANSSGenericAssistDataElement_oms_1, /* Optional members */
- 9, 0, /* Root/Additions */
- 8, /* Start extensions */
- 10 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_GANSSGenericAssistDataElement_specs_1 =
+ {
+ sizeof(struct GANSSGenericAssistDataElement),
+ offsetof(struct GANSSGenericAssistDataElement, _asn_ctx),
+ asn_MAP_GANSSGenericAssistDataElement_tag2el_1,
+ 9, /* Count of tags in the map */
+ asn_MAP_GANSSGenericAssistDataElement_oms_1, /* Optional members */
+ 9,
+ 0, /* Root/Additions */
+ 8, /* Start extensions */
+ 10 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSGenericAssistDataElement = {
- "GANSSGenericAssistDataElement",
- "GANSSGenericAssistDataElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSGenericAssistDataElement_tags_1,
- sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1)
- /sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1[0]), /* 1 */
- asn_DEF_GANSSGenericAssistDataElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1)
- /sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSGenericAssistDataElement_1,
- 9, /* Elements count */
- &asn_SPC_GANSSGenericAssistDataElement_specs_1 /* Additional specs */
+ "GANSSGenericAssistDataElement",
+ "GANSSGenericAssistDataElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSGenericAssistDataElement_tags_1,
+ sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1) /
+ sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSSGenericAssistDataElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1) /
+ sizeof(asn_DEF_GANSSGenericAssistDataElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSGenericAssistDataElement_1,
+ 9, /* Elements count */
+ &asn_SPC_GANSSGenericAssistDataElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.h b/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.h
index 84573317f..ef9310716 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSGenericAssistDataElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSGenericAssistDataElement_H_
#define _GANSSGenericAssistDataElement_H_
-
#include
/* Including external dependencies */
@@ -38,13 +37,14 @@ extern "C"
struct GANSSNavModel *ganssNavigationModel /* OPTIONAL */;
struct GANSSRealTimeIntegrity *ganssRealTimeIntegrity /* OPTIONAL */;
struct GANSSDataBitAssist *ganssDataBitAssist /* OPTIONAL */;
- struct GANSSRefMeasurementAssist *ganssRefMeasurementAssist /* OPTIONAL */;
+ struct GANSSRefMeasurementAssist
+ *ganssRefMeasurementAssist /* OPTIONAL */;
struct GANSSAlmanacModel *ganssAlmanacModel /* OPTIONAL */;
struct GANSSUTCModel *ganssUTCModel /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.c b/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.c
index 0ca6bbf45..5fc30c9e4 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.c
@@ -1,249 +1,244 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSIonoStormFlags.h"
-static int
-memb_ionoStormFlag1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ionoStormFlag1_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ionoStormFlag2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ionoStormFlag2_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ionoStormFlag3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ionoStormFlag3_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ionoStormFlag4_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ionoStormFlag4_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ionoStormFlag5_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ionoStormFlag5_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_IONO_STORM_FLAG1_CONSTR_2 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_IONO_STORM_FLAG2_CONSTR_3 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_IONO_STORM_FLAG3_CONSTR_4 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_IONO_STORM_FLAG4_CONSTR_5 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_IONO_STORM_FLAG5_CONSTR_6 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSIonoStormFlags_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag1),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ionoStormFlag1_constraint_1,
- &ASN_PER_MEMB_IONO_STORM_FLAG1_CONSTR_2,
- 0,
- "ionoStormFlag1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag2),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ionoStormFlag2_constraint_1,
- &ASN_PER_MEMB_IONO_STORM_FLAG2_CONSTR_3,
- 0,
- "ionoStormFlag2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag3),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ionoStormFlag3_constraint_1,
- &ASN_PER_MEMB_IONO_STORM_FLAG3_CONSTR_4,
- 0,
- "ionoStormFlag3"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag4),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ionoStormFlag4_constraint_1,
- &ASN_PER_MEMB_IONO_STORM_FLAG4_CONSTR_5,
- 0,
- "ionoStormFlag4"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag5),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ionoStormFlag5_constraint_1,
- &ASN_PER_MEMB_IONO_STORM_FLAG5_CONSTR_6,
- 0,
- "ionoStormFlag5"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag1),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ionoStormFlag1_constraint_1,
+ &ASN_PER_MEMB_IONO_STORM_FLAG1_CONSTR_2, 0, "ionoStormFlag1"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag2),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ionoStormFlag2_constraint_1,
+ &ASN_PER_MEMB_IONO_STORM_FLAG2_CONSTR_3, 0, "ionoStormFlag2"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag3),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ionoStormFlag3_constraint_1,
+ &ASN_PER_MEMB_IONO_STORM_FLAG3_CONSTR_4, 0, "ionoStormFlag3"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag4),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ionoStormFlag4_constraint_1,
+ &ASN_PER_MEMB_IONO_STORM_FLAG4_CONSTR_5, 0, "ionoStormFlag4"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonoStormFlags, ionoStormFlag5),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ionoStormFlag5_constraint_1,
+ &ASN_PER_MEMB_IONO_STORM_FLAG5_CONSTR_6, 0, "ionoStormFlag5"},
};
static ber_tlv_tag_t asn_DEF_GANSSIonoStormFlags_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSIonoStormFlags_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ionoStormFlag1 at 1152 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ionoStormFlag2 at 1153 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ionoStormFlag3 at 1154 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ionoStormFlag4 at 1155 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ionoStormFlag5 at 1156 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ionoStormFlag1 at 1152 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ionoStormFlag2 at 1153 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* ionoStormFlag3 at 1154 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* ionoStormFlag4 at 1155 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* ionoStormFlag5 at 1156 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSIonoStormFlags_specs_1 = {
- sizeof(struct GANSSIonoStormFlags),
- offsetof(struct GANSSIonoStormFlags, _asn_ctx),
- asn_MAP_GANSSIonoStormFlags_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSIonoStormFlags),
+ offsetof(struct GANSSIonoStormFlags, _asn_ctx),
+ asn_MAP_GANSSIonoStormFlags_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSIonoStormFlags = {
- "GANSSIonoStormFlags",
- "GANSSIonoStormFlags",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSIonoStormFlags_tags_1,
- sizeof(asn_DEF_GANSSIonoStormFlags_tags_1)
- /sizeof(asn_DEF_GANSSIonoStormFlags_tags_1[0]), /* 1 */
- asn_DEF_GANSSIonoStormFlags_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSIonoStormFlags_tags_1)
- /sizeof(asn_DEF_GANSSIonoStormFlags_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSIonoStormFlags_1,
- 5, /* Elements count */
- &asn_SPC_GANSSIonoStormFlags_specs_1 /* Additional specs */
+ "GANSSIonoStormFlags",
+ "GANSSIonoStormFlags",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSIonoStormFlags_tags_1,
+ sizeof(asn_DEF_GANSSIonoStormFlags_tags_1) /
+ sizeof(asn_DEF_GANSSIonoStormFlags_tags_1[0]), /* 1 */
+ asn_DEF_GANSSIonoStormFlags_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSIonoStormFlags_tags_1) /
+ sizeof(asn_DEF_GANSSIonoStormFlags_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSIonoStormFlags_1,
+ 5, /* Elements count */
+ &asn_SPC_GANSSIonoStormFlags_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.h b/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.h
index c99ab79c6..6457c4f27 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSIonoStormFlags.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSIonoStormFlags_H_
#define _GANSSIonoStormFlags_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.c b/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.c
index 5390b0def..5b0e9d6a9 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.c
@@ -1,169 +1,166 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSIonosphereModel.h"
-static int
-memb_ai0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 4095)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ai0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 4095))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ai1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 4095)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ai1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 4095))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ai2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 4095)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ai2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 4095))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_AI0_CONSTR_2 = {
- { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, 0, 4095} /* (0..4095) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_AI1_CONSTR_3 = {
- { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, 0, 4095} /* (0..4095) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_AI2_CONSTR_4 = {
- { APC_CONSTRAINED, 12, 12, 0, 4095 } /* (0..4095) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, 0, 4095} /* (0..4095) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSIonosphereModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphereModel, ai0),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ai0_constraint_1,
- &ASN_PER_MEMB_AI0_CONSTR_2,
- 0,
- "ai0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphereModel, ai1),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ai1_constraint_1,
- &ASN_PER_MEMB_AI1_CONSTR_3,
- 0,
- "ai1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphereModel, ai2),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ai2_constraint_1,
- &ASN_PER_MEMB_AI2_CONSTR_4,
- 0,
- "ai2"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphereModel, ai0),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ai0_constraint_1, &ASN_PER_MEMB_AI0_CONSTR_2,
+ 0, "ai0"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphereModel, ai1),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ai1_constraint_1, &ASN_PER_MEMB_AI1_CONSTR_3,
+ 0, "ai1"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphereModel, ai2),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ai2_constraint_1, &ASN_PER_MEMB_AI2_CONSTR_4,
+ 0, "ai2"},
};
static ber_tlv_tag_t asn_DEF_GANSSIonosphereModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSIonosphereModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ai0 at 1145 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ai1 at 1146 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ai2 at 1147 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ai0 at 1145 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ai1 at 1146 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* ai2 at 1147 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSIonosphereModel_specs_1 = {
- sizeof(struct GANSSIonosphereModel),
- offsetof(struct GANSSIonosphereModel, _asn_ctx),
- asn_MAP_GANSSIonosphereModel_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSIonosphereModel),
+ offsetof(struct GANSSIonosphereModel, _asn_ctx),
+ asn_MAP_GANSSIonosphereModel_tag2el_1,
+ 3, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSIonosphereModel = {
- "GANSSIonosphereModel",
- "GANSSIonosphereModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSIonosphereModel_tags_1,
- sizeof(asn_DEF_GANSSIonosphereModel_tags_1)
- /sizeof(asn_DEF_GANSSIonosphereModel_tags_1[0]), /* 1 */
- asn_DEF_GANSSIonosphereModel_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSIonosphereModel_tags_1)
- /sizeof(asn_DEF_GANSSIonosphereModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSIonosphereModel_1,
- 3, /* Elements count */
- &asn_SPC_GANSSIonosphereModel_specs_1 /* Additional specs */
+ "GANSSIonosphereModel",
+ "GANSSIonosphereModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSIonosphereModel_tags_1,
+ sizeof(asn_DEF_GANSSIonosphereModel_tags_1) /
+ sizeof(asn_DEF_GANSSIonosphereModel_tags_1[0]), /* 1 */
+ asn_DEF_GANSSIonosphereModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSIonosphereModel_tags_1) /
+ sizeof(asn_DEF_GANSSIonosphereModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSIonosphereModel_1,
+ 3, /* Elements count */
+ &asn_SPC_GANSSIonosphereModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.h b/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.h
index 969fd8da0..5f98a4ef9 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSIonosphereModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSIonosphereModel_H_
#define _GANSSIonosphereModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.c b/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.c
index 41ac3a7cc..7700242c7 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.c
@@ -1,71 +1,66 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSIonosphericModel.h"
static asn_TYPE_member_t asn_MBR_GANSSIonosphericModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphericModel, ganssIonoModel),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSIonosphereModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssIonoModel"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSIonosphericModel, ganssIonoStormFlags),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSIonoStormFlags,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssIonoStormFlags"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSIonosphericModel, ganssIonoModel),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSIonosphereModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssIonoModel"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSSIonosphericModel, ganssIonoStormFlags),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSIonoStormFlags,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssIonoStormFlags"},
};
-static int asn_MAP_GANSSIonosphericModel_oms_1[] = { 1 };
+static int asn_MAP_GANSSIonosphericModel_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_GANSSIonosphericModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSIonosphericModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssIonoModel at 1138 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ganssIonoStormFlags at 1139 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssIonoModel at 1138 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* ganssIonoStormFlags at 1139 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSIonosphericModel_specs_1 = {
- sizeof(struct GANSSIonosphericModel),
- offsetof(struct GANSSIonosphericModel, _asn_ctx),
- asn_MAP_GANSSIonosphericModel_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_GANSSIonosphericModel_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- 1, /* Start extensions */
- 3 /* Stop extensions */
+ sizeof(struct GANSSIonosphericModel),
+ offsetof(struct GANSSIonosphericModel, _asn_ctx),
+ asn_MAP_GANSSIonosphericModel_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_GANSSIonosphericModel_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ 1, /* Start extensions */
+ 3 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSIonosphericModel = {
- "GANSSIonosphericModel",
- "GANSSIonosphericModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSIonosphericModel_tags_1,
- sizeof(asn_DEF_GANSSIonosphericModel_tags_1)
- /sizeof(asn_DEF_GANSSIonosphericModel_tags_1[0]), /* 1 */
- asn_DEF_GANSSIonosphericModel_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSIonosphericModel_tags_1)
- /sizeof(asn_DEF_GANSSIonosphericModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSIonosphericModel_1,
- 2, /* Elements count */
- &asn_SPC_GANSSIonosphericModel_specs_1 /* Additional specs */
+ "GANSSIonosphericModel",
+ "GANSSIonosphericModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSIonosphericModel_tags_1,
+ sizeof(asn_DEF_GANSSIonosphericModel_tags_1) /
+ sizeof(asn_DEF_GANSSIonosphericModel_tags_1[0]), /* 1 */
+ asn_DEF_GANSSIonosphericModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSIonosphericModel_tags_1) /
+ sizeof(asn_DEF_GANSSIonosphericModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSIonosphericModel_1,
+ 2, /* Elements count */
+ &asn_SPC_GANSSIonosphericModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.h b/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.h
index 30a219e0d..7071afeed 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSIonosphericModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSIonosphericModel_H_
#define _GANSSIonosphericModel_H_
-
#include
/* Including external dependencies */
@@ -28,9 +27,9 @@ extern "C"
GANSSIonosphereModel_t ganssIonoModel;
struct GANSSIonoStormFlags *ganssIonoStormFlags /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.c b/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.c
index 3dbae18cf..240bd3cdd 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.c
@@ -1,231 +1,211 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSLocationInfo.h"
-static int
-memb_ganssTODFrac_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 16384)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssTODFrac_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 16384))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssTimeID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssTimeID_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stationaryIndication_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stationaryIndication_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_TOD_FRAC_CONSTR_4 = {
- { APC_CONSTRAINED, 15, 15, 0, 16384 } /* (0..16384) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 15, 15, 0, 16384} /* (0..16384) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_TIME_ID_CONSTR_6 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STATIONARY_INDICATION_CONSTR_9 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSLocationInfo_1[] = {
- { ATF_POINTER, 5, offsetof(struct GANSSLocationInfo, referenceFrame),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceFrame,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceFrame"
- },
- { ATF_POINTER, 4, offsetof(struct GANSSLocationInfo, ganssTODm),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTODm,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODm"
- },
- { ATF_POINTER, 3, offsetof(struct GANSSLocationInfo, ganssTODFrac),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssTODFrac_constraint_1,
- &ASN_PER_MEMB_GANSS_TOD_FRAC_CONSTR_4,
- 0,
- "ganssTODFrac"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSLocationInfo, ganssTODUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTODUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODUncertainty"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSLocationInfo, ganssTimeID),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssTimeID_constraint_1,
- &ASN_PER_MEMB_GANSS_TIME_ID_CONSTR_6,
- 0,
- "ganssTimeID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSLocationInfo, fixType),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_FixType,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "fixType"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSLocationInfo, posData),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_PositionData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "posData"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSLocationInfo, stationaryIndication),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stationaryIndication_constraint_1,
- &ASN_PER_MEMB_STATIONARY_INDICATION_CONSTR_9,
- 0,
- "stationaryIndication"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSLocationInfo, posEstimate),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Ext_GeographicalInformation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "posEstimate"
- },
+ {ATF_POINTER, 5, offsetof(struct GANSSLocationInfo, referenceFrame),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceFrame,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceFrame"},
+ {ATF_POINTER, 4, offsetof(struct GANSSLocationInfo, ganssTODm),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTODm, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODm"},
+ {ATF_POINTER, 3, offsetof(struct GANSSLocationInfo, ganssTODFrac),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssTODFrac_constraint_1,
+ &ASN_PER_MEMB_GANSS_TOD_FRAC_CONSTR_4, 0, "ganssTODFrac"},
+ {ATF_POINTER, 2, offsetof(struct GANSSLocationInfo, ganssTODUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTODUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODUncertainty"},
+ {ATF_POINTER, 1, offsetof(struct GANSSLocationInfo, ganssTimeID),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssTimeID_constraint_1,
+ &ASN_PER_MEMB_GANSS_TIME_ID_CONSTR_6, 0, "ganssTimeID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSLocationInfo, fixType),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_FixType, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "fixType"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSLocationInfo, posData),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_PositionData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "posData"},
+ {ATF_POINTER, 1, offsetof(struct GANSSLocationInfo, stationaryIndication),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stationaryIndication_constraint_1,
+ &ASN_PER_MEMB_STATIONARY_INDICATION_CONSTR_9, 0, "stationaryIndication"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSLocationInfo, posEstimate),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Ext_GeographicalInformation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "posEstimate"},
};
-static int asn_MAP_GANSSLocationInfo_oms_1[] = { 0, 1, 2, 3, 4, 7 };
+static int asn_MAP_GANSSLocationInfo_oms_1[] = {0, 1, 2, 3, 4, 7};
static ber_tlv_tag_t asn_DEF_GANSSLocationInfo_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSLocationInfo_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFrame at 1411 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTODm at 1412 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssTODFrac at 1413 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssTODUncertainty at 1414 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ganssTimeID at 1415 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* fixType at 1416 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* posData at 1417 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* stationaryIndication at 1418 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* posEstimate at 1424 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* referenceFrame at 1411 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ganssTODm at 1412 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* ganssTODFrac at 1413 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0}, /* ganssTODUncertainty at 1414 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* ganssTimeID at 1415 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* fixType at 1416 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* posData at 1417 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0}, /* stationaryIndication at 1418 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0} /* posEstimate at 1424 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSLocationInfo_specs_1 = {
- sizeof(struct GANSSLocationInfo),
- offsetof(struct GANSSLocationInfo, _asn_ctx),
- asn_MAP_GANSSLocationInfo_tag2el_1,
- 9, /* Count of tags in the map */
- asn_MAP_GANSSLocationInfo_oms_1, /* Optional members */
- 6, 0, /* Root/Additions */
- 8, /* Start extensions */
- 10 /* Stop extensions */
+ sizeof(struct GANSSLocationInfo),
+ offsetof(struct GANSSLocationInfo, _asn_ctx),
+ asn_MAP_GANSSLocationInfo_tag2el_1,
+ 9, /* Count of tags in the map */
+ asn_MAP_GANSSLocationInfo_oms_1, /* Optional members */
+ 6,
+ 0, /* Root/Additions */
+ 8, /* Start extensions */
+ 10 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSLocationInfo = {
- "GANSSLocationInfo",
- "GANSSLocationInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSLocationInfo_tags_1,
- sizeof(asn_DEF_GANSSLocationInfo_tags_1)
- /sizeof(asn_DEF_GANSSLocationInfo_tags_1[0]), /* 1 */
- asn_DEF_GANSSLocationInfo_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSLocationInfo_tags_1)
- /sizeof(asn_DEF_GANSSLocationInfo_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSLocationInfo_1,
- 9, /* Elements count */
- &asn_SPC_GANSSLocationInfo_specs_1 /* Additional specs */
+ "GANSSLocationInfo",
+ "GANSSLocationInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSLocationInfo_tags_1,
+ sizeof(asn_DEF_GANSSLocationInfo_tags_1) /
+ sizeof(asn_DEF_GANSSLocationInfo_tags_1[0]), /* 1 */
+ asn_DEF_GANSSLocationInfo_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSLocationInfo_tags_1) /
+ sizeof(asn_DEF_GANSSLocationInfo_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSLocationInfo_1,
+ 9, /* Elements count */
+ &asn_SPC_GANSSLocationInfo_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.h b/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.h
index ab7b0dcea..4c9c2eb32 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSLocationInfo.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSLocationInfo_H_
#define _GANSSLocationInfo_H_
-
#include
/* Including external dependencies */
@@ -40,9 +39,9 @@ extern "C"
long *stationaryIndication /* OPTIONAL */;
Ext_GeographicalInformation_t posEstimate;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.c b/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.c
index bbd5b5eaa..9f4f2871b 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSMeasureInfo.h"
static asn_TYPE_member_t asn_MBR_GANSSMeasureInfo_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSMeasureInfo, ganssMsrSetList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSS_MsrSetElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssMsrSetList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSMeasureInfo, ganssMsrSetList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSS_MsrSetElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssMsrSetList"},
};
static ber_tlv_tag_t asn_DEF_GANSSMeasureInfo_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSMeasureInfo_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ganssMsrSetList at 1451 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* ganssMsrSetList at 1451 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSMeasureInfo_specs_1 = {
- sizeof(struct GANSSMeasureInfo),
- offsetof(struct GANSSMeasureInfo, _asn_ctx),
- asn_MAP_GANSSMeasureInfo_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSMeasureInfo),
+ offsetof(struct GANSSMeasureInfo, _asn_ctx),
+ asn_MAP_GANSSMeasureInfo_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSMeasureInfo = {
- "GANSSMeasureInfo",
- "GANSSMeasureInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSMeasureInfo_tags_1,
- sizeof(asn_DEF_GANSSMeasureInfo_tags_1)
- /sizeof(asn_DEF_GANSSMeasureInfo_tags_1[0]), /* 1 */
- asn_DEF_GANSSMeasureInfo_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSMeasureInfo_tags_1)
- /sizeof(asn_DEF_GANSSMeasureInfo_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSMeasureInfo_1,
- 1, /* Elements count */
- &asn_SPC_GANSSMeasureInfo_specs_1 /* Additional specs */
+ "GANSSMeasureInfo",
+ "GANSSMeasureInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSMeasureInfo_tags_1,
+ sizeof(asn_DEF_GANSSMeasureInfo_tags_1) /
+ sizeof(asn_DEF_GANSSMeasureInfo_tags_1[0]), /* 1 */
+ asn_DEF_GANSSMeasureInfo_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSMeasureInfo_tags_1) /
+ sizeof(asn_DEF_GANSSMeasureInfo_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSMeasureInfo_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSSMeasureInfo_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.h b/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.h
index e5e87bd86..dc9de9f1d 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSMeasureInfo.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSMeasureInfo_H_
#define _GANSSMeasureInfo_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSNavModel.c b/src/core/libs/supl/asn-rrlp/GANSSNavModel.c
index 1d9b2cb66..6aee05e96 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSNavModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSNavModel.c
@@ -1,221 +1,216 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSNavModel.h"
-static int
-memb_nonBroadcastIndFlag_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_nonBroadcastIndFlag_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_toeMSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 31)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_toeMSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 31))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_eMSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_eMSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_sqrtAMBS_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_sqrtAMBS_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_NON_BROADCAST_IND_FLAG_CONSTR_2 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_TOE_MSB_CONSTR_3 = {
- { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 31} /* (0..31) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_E_MSB_CONSTR_4 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_SQRT_AMBS_CONSTR_5 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSNavModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSNavModel, nonBroadcastIndFlag),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_nonBroadcastIndFlag_constraint_1,
- &ASN_PER_MEMB_NON_BROADCAST_IND_FLAG_CONSTR_2,
- 0,
- "nonBroadcastIndFlag"
- },
- { ATF_POINTER, 3, offsetof(struct GANSSNavModel, toeMSB),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_toeMSB_constraint_1,
- &ASN_PER_MEMB_TOE_MSB_CONSTR_3,
- 0,
- "toeMSB"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSNavModel, eMSB),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_eMSB_constraint_1,
- &ASN_PER_MEMB_E_MSB_CONSTR_4,
- 0,
- "eMSB"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSNavModel, sqrtAMBS),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_sqrtAMBS_constraint_1,
- &ASN_PER_MEMB_SQRT_AMBS_CONSTR_5,
- 0,
- "sqrtAMBS"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSNavModel, ganssSatelliteList),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSSSatelliteElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssSatelliteList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSNavModel, nonBroadcastIndFlag),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_nonBroadcastIndFlag_constraint_1,
+ &ASN_PER_MEMB_NON_BROADCAST_IND_FLAG_CONSTR_2, 0, "nonBroadcastIndFlag"},
+ {ATF_POINTER, 3, offsetof(struct GANSSNavModel, toeMSB),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_toeMSB_constraint_1,
+ &ASN_PER_MEMB_TOE_MSB_CONSTR_3, 0, "toeMSB"},
+ {ATF_POINTER, 2, offsetof(struct GANSSNavModel, eMSB),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_eMSB_constraint_1,
+ &ASN_PER_MEMB_E_MSB_CONSTR_4, 0, "eMSB"},
+ {ATF_POINTER, 1, offsetof(struct GANSSNavModel, sqrtAMBS),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_sqrtAMBS_constraint_1,
+ &ASN_PER_MEMB_SQRT_AMBS_CONSTR_5, 0, "sqrtAMBS"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSNavModel, ganssSatelliteList),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSSSatelliteElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssSatelliteList"},
};
-static int asn_MAP_GANSSNavModel_oms_1[] = { 1, 2, 3 };
+static int asn_MAP_GANSSNavModel_oms_1[] = {1, 2, 3};
static ber_tlv_tag_t asn_DEF_GANSSNavModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSNavModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nonBroadcastIndFlag at 1228 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* toeMSB at 1229 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* eMSB at 1230 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sqrtAMBS at 1231 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganssSatelliteList at 1233 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* nonBroadcastIndFlag at 1228 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* toeMSB at 1229 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* eMSB at 1230 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* sqrtAMBS at 1231 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0} /* ganssSatelliteList at 1233 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSNavModel_specs_1 = {
- sizeof(struct GANSSNavModel),
- offsetof(struct GANSSNavModel, _asn_ctx),
- asn_MAP_GANSSNavModel_tag2el_1,
- 5, /* Count of tags in the map */
- asn_MAP_GANSSNavModel_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSNavModel),
+ offsetof(struct GANSSNavModel, _asn_ctx),
+ asn_MAP_GANSSNavModel_tag2el_1,
+ 5, /* Count of tags in the map */
+ asn_MAP_GANSSNavModel_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSNavModel = {
- "GANSSNavModel",
- "GANSSNavModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSNavModel_tags_1,
- sizeof(asn_DEF_GANSSNavModel_tags_1)
- /sizeof(asn_DEF_GANSSNavModel_tags_1[0]), /* 1 */
- asn_DEF_GANSSNavModel_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSNavModel_tags_1)
- /sizeof(asn_DEF_GANSSNavModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSNavModel_1,
- 5, /* Elements count */
- &asn_SPC_GANSSNavModel_specs_1 /* Additional specs */
+ "GANSSNavModel",
+ "GANSSNavModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSNavModel_tags_1,
+ sizeof(asn_DEF_GANSSNavModel_tags_1) /
+ sizeof(asn_DEF_GANSSNavModel_tags_1[0]), /* 1 */
+ asn_DEF_GANSSNavModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSNavModel_tags_1) /
+ sizeof(asn_DEF_GANSSNavModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSNavModel_1,
+ 5, /* Elements count */
+ &asn_SPC_GANSSNavModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSNavModel.h b/src/core/libs/supl/asn-rrlp/GANSSNavModel.h
index 3891a44d7..d9ac45bb4 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSNavModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSNavModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSNavModel_H_
#define _GANSSNavModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.c b/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.c
index ff3bba79c..47b8e034e 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.c
@@ -1,60 +1,57 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSOrbitModel.h"
static asn_per_constraints_t ASN_PER_TYPE_GANSS_ORBIT_MODEL_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0} /* (0..0,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSOrbitModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSOrbitModel, choice.keplerianSet),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NavModel_KeplerianSet,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "keplerianSet"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSOrbitModel, choice.keplerianSet),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NavModel_KeplerianSet,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "keplerianSet"},
};
static asn_TYPE_tag2member_t asn_MAP_GANSSOrbitModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* keplerianSet at 1248 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* keplerianSet at 1248 */
};
static asn_CHOICE_specifics_t asn_SPC_GANSSOrbitModel_specs_1 = {
- sizeof(struct GANSSOrbitModel),
- offsetof(struct GANSSOrbitModel, _asn_ctx),
- offsetof(struct GANSSOrbitModel, present),
- sizeof(((struct GANSSOrbitModel *)0)->present),
- asn_MAP_GANSSOrbitModel_tag2el_1,
- 1, /* Count of tags in the map */
- 0,
- 1 /* Extensions start */
+ sizeof(struct GANSSOrbitModel),
+ offsetof(struct GANSSOrbitModel, _asn_ctx),
+ offsetof(struct GANSSOrbitModel, present),
+ sizeof(((struct GANSSOrbitModel *)0)->present),
+ asn_MAP_GANSSOrbitModel_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_GANSSOrbitModel = {
- "GANSSOrbitModel",
- "GANSSOrbitModel",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_GANSS_ORBIT_MODEL_CONSTR_1,
- asn_MBR_GANSSOrbitModel_1,
- 1, /* Elements count */
- &asn_SPC_GANSSOrbitModel_specs_1 /* Additional specs */
+ "GANSSOrbitModel",
+ "GANSSOrbitModel",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_GANSS_ORBIT_MODEL_CONSTR_1,
+ asn_MBR_GANSSOrbitModel_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSSOrbitModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.h b/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.h
index 01ce5dea5..2deaa1db5 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSOrbitModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSOrbitModel_H_
#define _GANSSOrbitModel_H_
-
#include
/* Including external dependencies */
@@ -35,9 +34,9 @@ extern "C"
{
NavModel_KeplerianSet_t keplerianSet;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
} choice;
/* Context for parsing across buffer boundaries */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.c b/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.c
index 77f16b6d7..026dff1a8 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.c
@@ -1,151 +1,173 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSPositioningMethod.h"
-int
-GANSSPositioningMethod_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
- size_t size;
-
- if(!sptr) {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: value not given (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
-
- if(st->size > 0) {
- /* Size in bits */
- size = 8 * st->size - (st->bits_unused & 0x07);
- } else {
- size = 0;
- }
-
- if((size >= 2 && size <= 16)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSPositioningMethod_constraint(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
+ size_t size;
+
+ if (!sptr)
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
+
+ if (st->size > 0)
+ {
+ /* Size in bits */
+ size = 8 * st->size - (st->bits_unused & 0x07);
+ }
+ else
+ {
+ size = 0;
+ }
+
+ if ((size >= 2 && size <= 16))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using BIT_STRING,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSPositioningMethod_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_BIT_STRING.free_struct;
- td->print_struct = asn_DEF_BIT_STRING.print_struct;
- td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder;
- td->der_encoder = asn_DEF_BIT_STRING.der_encoder;
- td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder;
- td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder;
- td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder;
- td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_BIT_STRING.per_constraints;
- td->elements = asn_DEF_BIT_STRING.elements;
- td->elements_count = asn_DEF_BIT_STRING.elements_count;
- td->specifics = asn_DEF_BIT_STRING.specifics;
+static void GANSSPositioningMethod_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_BIT_STRING.free_struct;
+ td->print_struct = asn_DEF_BIT_STRING.print_struct;
+ td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder;
+ td->der_encoder = asn_DEF_BIT_STRING.der_encoder;
+ td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder;
+ td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder;
+ td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder;
+ td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_BIT_STRING.per_constraints;
+ td->elements = asn_DEF_BIT_STRING.elements;
+ td->elements_count = asn_DEF_BIT_STRING.elements_count;
+ td->specifics = asn_DEF_BIT_STRING.specifics;
}
-void
-GANSSPositioningMethod_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSPositioningMethod_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSPositioningMethod_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSPositioningMethod_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSPositioningMethod_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) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSPositioningMethod_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)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSPositioningMethod_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) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSPositioningMethod_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)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSPositioningMethod_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) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSPositioningMethod_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)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSPositioningMethod_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) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSPositioningMethod_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)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSPositioningMethod_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSPositioningMethod_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSPositioningMethod_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSPositioningMethod_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GANSSPositioningMethod_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSS_POSITIONING_METHOD_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 2, 16 } /* (SIZE(2..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 2, 16} /* (SIZE(2..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSPositioningMethod_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSPositioningMethod = {
- "GANSSPositioningMethod",
- "GANSSPositioningMethod",
- GANSSPositioningMethod_free,
- GANSSPositioningMethod_print,
- GANSSPositioningMethod_constraint,
- GANSSPositioningMethod_decode_ber,
- GANSSPositioningMethod_encode_der,
- GANSSPositioningMethod_decode_xer,
- GANSSPositioningMethod_encode_xer,
- GANSSPositioningMethod_decode_uper,
- GANSSPositioningMethod_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSPositioningMethod_tags_1,
- sizeof(asn_DEF_GANSSPositioningMethod_tags_1)
- /sizeof(asn_DEF_GANSSPositioningMethod_tags_1[0]), /* 1 */
- asn_DEF_GANSSPositioningMethod_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSPositioningMethod_tags_1)
- /sizeof(asn_DEF_GANSSPositioningMethod_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSS_POSITIONING_METHOD_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
+ "GANSSPositioningMethod",
+ "GANSSPositioningMethod",
+ GANSSPositioningMethod_free,
+ GANSSPositioningMethod_print,
+ GANSSPositioningMethod_constraint,
+ GANSSPositioningMethod_decode_ber,
+ GANSSPositioningMethod_encode_der,
+ GANSSPositioningMethod_decode_xer,
+ GANSSPositioningMethod_encode_xer,
+ GANSSPositioningMethod_decode_uper,
+ GANSSPositioningMethod_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSPositioningMethod_tags_1,
+ sizeof(asn_DEF_GANSSPositioningMethod_tags_1) /
+ sizeof(asn_DEF_GANSSPositioningMethod_tags_1[0]), /* 1 */
+ asn_DEF_GANSSPositioningMethod_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSPositioningMethod_tags_1) /
+ sizeof(asn_DEF_GANSSPositioningMethod_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSS_POSITIONING_METHOD_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.h b/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.h
index 2719933a3..7f0cbbde3 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSPositioningMethod.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSPositioningMethod_H_
#define _GANSSPositioningMethod_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.c b/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.c
index 03b725abc..c94d255cf 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.c
@@ -1,59 +1,58 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSRealTimeIntegrity.h"
static asn_TYPE_member_t asn_MBR_GANSSRealTimeIntegrity_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRealTimeIntegrity, ganssBadSignalList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfBadSignalElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssBadSignalList"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GANSSRealTimeIntegrity, ganssBadSignalList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfBadSignalElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssBadSignalList"},
};
static ber_tlv_tag_t asn_DEF_GANSSRealTimeIntegrity_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSRealTimeIntegrity_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ganssBadSignalList at 1295 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* ganssBadSignalList at 1295 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSRealTimeIntegrity_specs_1 = {
- sizeof(struct GANSSRealTimeIntegrity),
- offsetof(struct GANSSRealTimeIntegrity, _asn_ctx),
- asn_MAP_GANSSRealTimeIntegrity_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSRealTimeIntegrity),
+ offsetof(struct GANSSRealTimeIntegrity, _asn_ctx),
+ asn_MAP_GANSSRealTimeIntegrity_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSRealTimeIntegrity = {
- "GANSSRealTimeIntegrity",
- "GANSSRealTimeIntegrity",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSRealTimeIntegrity_tags_1,
- sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1)
- /sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1[0]), /* 1 */
- asn_DEF_GANSSRealTimeIntegrity_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1)
- /sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSRealTimeIntegrity_1,
- 1, /* Elements count */
- &asn_SPC_GANSSRealTimeIntegrity_specs_1 /* Additional specs */
+ "GANSSRealTimeIntegrity",
+ "GANSSRealTimeIntegrity",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSRealTimeIntegrity_tags_1,
+ sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1) /
+ sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1[0]), /* 1 */
+ asn_DEF_GANSSRealTimeIntegrity_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1) /
+ sizeof(asn_DEF_GANSSRealTimeIntegrity_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSRealTimeIntegrity_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSSRealTimeIntegrity_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.h b/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.h
index 389994464..a6c2703b7 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSRealTimeIntegrity.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSRealTimeIntegrity_H_
#define _GANSSRealTimeIntegrity_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefLocation.c b/src/core/libs/supl/asn-rrlp/GANSSRefLocation.c
index 54e59f04f..8dc1c8674 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefLocation.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefLocation.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSRefLocation.h"
static asn_TYPE_member_t asn_MBR_GANSSRefLocation_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefLocation, threeDLocation),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Ext_GeographicalInformation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "threeDLocation"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSRefLocation, threeDLocation),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Ext_GeographicalInformation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "threeDLocation"},
};
static ber_tlv_tag_t asn_DEF_GANSSRefLocation_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSRefLocation_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* threeDLocation at 1132 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* threeDLocation at 1132 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSRefLocation_specs_1 = {
- sizeof(struct GANSSRefLocation),
- offsetof(struct GANSSRefLocation, _asn_ctx),
- asn_MAP_GANSSRefLocation_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSRefLocation),
+ offsetof(struct GANSSRefLocation, _asn_ctx),
+ asn_MAP_GANSSRefLocation_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSRefLocation = {
- "GANSSRefLocation",
- "GANSSRefLocation",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSRefLocation_tags_1,
- sizeof(asn_DEF_GANSSRefLocation_tags_1)
- /sizeof(asn_DEF_GANSSRefLocation_tags_1[0]), /* 1 */
- asn_DEF_GANSSRefLocation_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSRefLocation_tags_1)
- /sizeof(asn_DEF_GANSSRefLocation_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSRefLocation_1,
- 1, /* Elements count */
- &asn_SPC_GANSSRefLocation_specs_1 /* Additional specs */
+ "GANSSRefLocation",
+ "GANSSRefLocation",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSRefLocation_tags_1,
+ sizeof(asn_DEF_GANSSRefLocation_tags_1) /
+ sizeof(asn_DEF_GANSSRefLocation_tags_1[0]), /* 1 */
+ asn_DEF_GANSSRefLocation_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSRefLocation_tags_1) /
+ sizeof(asn_DEF_GANSSRefLocation_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSRefLocation_1,
+ 1, /* Elements count */
+ &asn_SPC_GANSSRefLocation_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefLocation.h b/src/core/libs/supl/asn-rrlp/GANSSRefLocation.h
index 70b9d79fe..58547b264 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefLocation.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefLocation.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSRefLocation_H_
#define _GANSSRefLocation_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.c b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.c
index 28f7fb4ed..198517df0 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.c
@@ -1,101 +1,98 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSRefMeasurementAssist.h"
-static int
-memb_ganssSignalID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssSignalID_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_SIGNAL_ID_CONSTR_2 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSRefMeasurementAssist_1[] = {
- { ATF_POINTER, 1, offsetof(struct GANSSRefMeasurementAssist, ganssSignalID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssSignalID_constraint_1,
- &ASN_PER_MEMB_GANSS_SIGNAL_ID_CONSTR_2,
- 0,
- "ganssSignalID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementAssist, ganssRefMeasAssitList),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGANSSRefMeasurementElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssRefMeasAssitList"
- },
+ {ATF_POINTER, 1, offsetof(struct GANSSRefMeasurementAssist, ganssSignalID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssSignalID_constraint_1,
+ &ASN_PER_MEMB_GANSS_SIGNAL_ID_CONSTR_2, 0, "ganssSignalID"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GANSSRefMeasurementAssist, ganssRefMeasAssitList),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGANSSRefMeasurementElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssRefMeasAssitList"},
};
-static int asn_MAP_GANSSRefMeasurementAssist_oms_1[] = { 0 };
+static int asn_MAP_GANSSRefMeasurementAssist_oms_1[] = {0};
static ber_tlv_tag_t asn_DEF_GANSSRefMeasurementAssist_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSRefMeasurementAssist_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssSignalID at 1321 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ganssRefMeasAssitList at 1323 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssSignalID at 1321 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* ganssRefMeasAssitList at 1323 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSRefMeasurementAssist_specs_1 = {
- sizeof(struct GANSSRefMeasurementAssist),
- offsetof(struct GANSSRefMeasurementAssist, _asn_ctx),
- asn_MAP_GANSSRefMeasurementAssist_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_GANSSRefMeasurementAssist_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSRefMeasurementAssist),
+ offsetof(struct GANSSRefMeasurementAssist, _asn_ctx),
+ asn_MAP_GANSSRefMeasurementAssist_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_GANSSRefMeasurementAssist_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSRefMeasurementAssist = {
- "GANSSRefMeasurementAssist",
- "GANSSRefMeasurementAssist",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSRefMeasurementAssist_tags_1,
- sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1)
- /sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1[0]), /* 1 */
- asn_DEF_GANSSRefMeasurementAssist_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1)
- /sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSRefMeasurementAssist_1,
- 2, /* Elements count */
- &asn_SPC_GANSSRefMeasurementAssist_specs_1 /* Additional specs */
+ "GANSSRefMeasurementAssist",
+ "GANSSRefMeasurementAssist",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSRefMeasurementAssist_tags_1,
+ sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1) /
+ sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1[0]), /* 1 */
+ asn_DEF_GANSSRefMeasurementAssist_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1) /
+ sizeof(asn_DEF_GANSSRefMeasurementAssist_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSRefMeasurementAssist_1,
+ 2, /* Elements count */
+ &asn_SPC_GANSSRefMeasurementAssist_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.h b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.h
index e6af89db3..25b79d343 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementAssist.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSRefMeasurementAssist_H_
#define _GANSSRefMeasurementAssist_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.c b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.c
index c527baf5a..de84afcb0 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.c
@@ -1,241 +1,235 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSRefMeasurementElement.h"
-static int
-memb_doppler0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -2048 && value <= 2047)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_doppler0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -2048 && value <= 2047))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1022)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_codePhase_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1022))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_intCodePhase_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_intCodePhase_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_codePhaseSearchWindow_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 31)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_codePhaseSearchWindow_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 31))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER0_CONSTR_3 = {
- { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, -2048, 2047} /* (-2048..2047) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_CONSTR_5 = {
- { APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1022} /* (0..1022) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_7 = {
- { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 31} /* (0..31) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSRefMeasurementElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, svID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, doppler0),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_doppler0_constraint_1,
- &ASN_PER_MEMB_DOPPLER0_CONSTR_3,
- 0,
- "doppler0"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSRefMeasurementElement, additionalDoppler),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AdditionalDopplerFields,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "additionalDoppler"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, codePhase),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_codePhase_constraint_1,
- &ASN_PER_MEMB_CODE_PHASE_CONSTR_5,
- 0,
- "codePhase"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, intCodePhase),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_intCodePhase_constraint_1,
- &ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6,
- 0,
- "intCodePhase"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, codePhaseSearchWindow),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_codePhaseSearchWindow_constraint_1,
- &ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_7,
- 0,
- "codePhaseSearchWindow"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSRefMeasurementElement, additionalAngle),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AddionalAngleFields,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "additionalAngle"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, svID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, doppler0),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_doppler0_constraint_1,
+ &ASN_PER_MEMB_DOPPLER0_CONSTR_3, 0, "doppler0"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSSRefMeasurementElement, additionalDoppler),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AdditionalDopplerFields,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "additionalDoppler"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, codePhase),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_codePhase_constraint_1,
+ &ASN_PER_MEMB_CODE_PHASE_CONSTR_5, 0, "codePhase"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSRefMeasurementElement, intCodePhase),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_intCodePhase_constraint_1,
+ &ASN_PER_MEMB_INT_CODE_PHASE_CONSTR_6, 0, "intCodePhase"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GANSSRefMeasurementElement, codePhaseSearchWindow),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_codePhaseSearchWindow_constraint_1,
+ &ASN_PER_MEMB_CODE_PHASE_SEARCH_WINDOW_CONSTR_7, 0,
+ "codePhaseSearchWindow"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSSRefMeasurementElement, additionalAngle),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AddionalAngleFields,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "additionalAngle"},
};
-static int asn_MAP_GANSSRefMeasurementElement_oms_1[] = { 2, 6 };
+static int asn_MAP_GANSSRefMeasurementElement_oms_1[] = {2, 6};
static ber_tlv_tag_t asn_DEF_GANSSRefMeasurementElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSRefMeasurementElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID at 1328 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* doppler0 at 1331 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* additionalDoppler at 1332 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* codePhase at 1333 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* intCodePhase at 1334 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* codePhaseSearchWindow at 1335 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* additionalAngle at 1336 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* svID at 1328 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* doppler0 at 1331 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* additionalDoppler at 1332 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* codePhase at 1333 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* intCodePhase at 1334 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* codePhaseSearchWindow at 1335 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0} /* additionalAngle at 1336 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSRefMeasurementElement_specs_1 = {
- sizeof(struct GANSSRefMeasurementElement),
- offsetof(struct GANSSRefMeasurementElement, _asn_ctx),
- asn_MAP_GANSSRefMeasurementElement_tag2el_1,
- 7, /* Count of tags in the map */
- asn_MAP_GANSSRefMeasurementElement_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- 6, /* Start extensions */
- 8 /* Stop extensions */
+ sizeof(struct GANSSRefMeasurementElement),
+ offsetof(struct GANSSRefMeasurementElement, _asn_ctx),
+ asn_MAP_GANSSRefMeasurementElement_tag2el_1,
+ 7, /* Count of tags in the map */
+ asn_MAP_GANSSRefMeasurementElement_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ 6, /* Start extensions */
+ 8 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSRefMeasurementElement = {
- "GANSSRefMeasurementElement",
- "GANSSRefMeasurementElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSRefMeasurementElement_tags_1,
- sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1)
- /sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1[0]), /* 1 */
- asn_DEF_GANSSRefMeasurementElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1)
- /sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSRefMeasurementElement_1,
- 7, /* Elements count */
- &asn_SPC_GANSSRefMeasurementElement_specs_1 /* Additional specs */
+ "GANSSRefMeasurementElement",
+ "GANSSRefMeasurementElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSRefMeasurementElement_tags_1,
+ sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1) /
+ sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSSRefMeasurementElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1) /
+ sizeof(asn_DEF_GANSSRefMeasurementElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSRefMeasurementElement_1,
+ 7, /* Elements count */
+ &asn_SPC_GANSSRefMeasurementElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.h b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.h
index 42869c0dd..a19446648 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefMeasurementElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSRefMeasurementElement_H_
#define _GANSSRefMeasurementElement_H_
-
#include
/* Including external dependencies */
@@ -35,9 +34,9 @@ extern "C"
long codePhaseSearchWindow;
struct AddionalAngleFields *additionalAngle /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.c b/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.c
index c1bd034fe..6bfa91d9f 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.c
@@ -1,151 +1,144 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSRefTimeInfo.h"
-static int
-memb_ganssDay_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 8191)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssDay_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 8191))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssTimeID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssTimeID_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_DAY_CONSTR_2 = {
- { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 13, 13, 0, 8191} /* (0..8191) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_TIME_ID_CONSTR_5 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSRefTimeInfo_1[] = {
- { ATF_POINTER, 1, offsetof(struct GANSSRefTimeInfo, ganssDay),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssDay_constraint_1,
- &ASN_PER_MEMB_GANSS_DAY_CONSTR_2,
- 0,
- "ganssDay"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSRefTimeInfo, ganssTOD),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTOD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTOD"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSRefTimeInfo, ganssTODUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTODUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODUncertainty"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSRefTimeInfo, ganssTimeID),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssTimeID_constraint_1,
- &ASN_PER_MEMB_GANSS_TIME_ID_CONSTR_5,
- 0,
- "ganssTimeID"
- },
+ {ATF_POINTER, 1, offsetof(struct GANSSRefTimeInfo, ganssDay),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssDay_constraint_1,
+ &ASN_PER_MEMB_GANSS_DAY_CONSTR_2, 0, "ganssDay"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSRefTimeInfo, ganssTOD),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTOD, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTOD"},
+ {ATF_POINTER, 2, offsetof(struct GANSSRefTimeInfo, ganssTODUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTODUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODUncertainty"},
+ {ATF_POINTER, 1, offsetof(struct GANSSRefTimeInfo, ganssTimeID),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssTimeID_constraint_1,
+ &ASN_PER_MEMB_GANSS_TIME_ID_CONSTR_5, 0, "ganssTimeID"},
};
-static int asn_MAP_GANSSRefTimeInfo_oms_1[] = { 0, 2, 3 };
+static int asn_MAP_GANSSRefTimeInfo_oms_1[] = {0, 2, 3};
static ber_tlv_tag_t asn_DEF_GANSSRefTimeInfo_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSRefTimeInfo_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssDay at 1104 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssTOD at 1105 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssTODUncertainty at 1106 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ganssTimeID at 1107 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssDay at 1104 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ganssTOD at 1105 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* ganssTODUncertainty at 1106 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* ganssTimeID at 1107 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSRefTimeInfo_specs_1 = {
- sizeof(struct GANSSRefTimeInfo),
- offsetof(struct GANSSRefTimeInfo, _asn_ctx),
- asn_MAP_GANSSRefTimeInfo_tag2el_1,
- 4, /* Count of tags in the map */
- asn_MAP_GANSSRefTimeInfo_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSRefTimeInfo),
+ offsetof(struct GANSSRefTimeInfo, _asn_ctx),
+ asn_MAP_GANSSRefTimeInfo_tag2el_1,
+ 4, /* Count of tags in the map */
+ asn_MAP_GANSSRefTimeInfo_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSRefTimeInfo = {
- "GANSSRefTimeInfo",
- "GANSSRefTimeInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSRefTimeInfo_tags_1,
- sizeof(asn_DEF_GANSSRefTimeInfo_tags_1)
- /sizeof(asn_DEF_GANSSRefTimeInfo_tags_1[0]), /* 1 */
- asn_DEF_GANSSRefTimeInfo_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSRefTimeInfo_tags_1)
- /sizeof(asn_DEF_GANSSRefTimeInfo_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSRefTimeInfo_1,
- 4, /* Elements count */
- &asn_SPC_GANSSRefTimeInfo_specs_1 /* Additional specs */
+ "GANSSRefTimeInfo",
+ "GANSSRefTimeInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSRefTimeInfo_tags_1,
+ sizeof(asn_DEF_GANSSRefTimeInfo_tags_1) /
+ sizeof(asn_DEF_GANSSRefTimeInfo_tags_1[0]), /* 1 */
+ asn_DEF_GANSSRefTimeInfo_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSRefTimeInfo_tags_1) /
+ sizeof(asn_DEF_GANSSRefTimeInfo_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSRefTimeInfo_1,
+ 4, /* Elements count */
+ &asn_SPC_GANSSRefTimeInfo_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.h b/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.h
index 508883f89..cd3af9d62 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSRefTimeInfo.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSRefTimeInfo_H_
#define _GANSSRefTimeInfo_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.c b/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.c
index bb6148046..c00226e0a 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.c
@@ -1,71 +1,67 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSReferenceTime.h"
static asn_TYPE_member_t asn_MBR_GANSSReferenceTime_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSReferenceTime, ganssRefTimeInfo),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSRefTimeInfo,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssRefTimeInfo"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSReferenceTime, ganssTOD_GSMTimeAssociation),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSTOD_GSMTimeAssociation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTOD-GSMTimeAssociation"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSReferenceTime, ganssRefTimeInfo),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSRefTimeInfo,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssRefTimeInfo"},
+ {ATF_POINTER, 1,
+ offsetof(struct GANSSReferenceTime, ganssTOD_GSMTimeAssociation),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSTOD_GSMTimeAssociation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTOD-GSMTimeAssociation"},
};
-static int asn_MAP_GANSSReferenceTime_oms_1[] = { 1 };
+static int asn_MAP_GANSSReferenceTime_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_GANSSReferenceTime_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSReferenceTime_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssRefTimeInfo at 1098 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ganssTOD-GSMTimeAssociation at 1099 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* ganssRefTimeInfo at 1098 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* ganssTOD-GSMTimeAssociation at 1099 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSReferenceTime_specs_1 = {
- sizeof(struct GANSSReferenceTime),
- offsetof(struct GANSSReferenceTime, _asn_ctx),
- asn_MAP_GANSSReferenceTime_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_GANSSReferenceTime_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSReferenceTime),
+ offsetof(struct GANSSReferenceTime, _asn_ctx),
+ asn_MAP_GANSSReferenceTime_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_GANSSReferenceTime_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSReferenceTime = {
- "GANSSReferenceTime",
- "GANSSReferenceTime",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSReferenceTime_tags_1,
- sizeof(asn_DEF_GANSSReferenceTime_tags_1)
- /sizeof(asn_DEF_GANSSReferenceTime_tags_1[0]), /* 1 */
- asn_DEF_GANSSReferenceTime_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSReferenceTime_tags_1)
- /sizeof(asn_DEF_GANSSReferenceTime_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSReferenceTime_1,
- 2, /* Elements count */
- &asn_SPC_GANSSReferenceTime_specs_1 /* Additional specs */
+ "GANSSReferenceTime",
+ "GANSSReferenceTime",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSReferenceTime_tags_1,
+ sizeof(asn_DEF_GANSSReferenceTime_tags_1) /
+ sizeof(asn_DEF_GANSSReferenceTime_tags_1[0]), /* 1 */
+ asn_DEF_GANSSReferenceTime_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSReferenceTime_tags_1) /
+ sizeof(asn_DEF_GANSSReferenceTime_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSReferenceTime_1,
+ 2, /* Elements count */
+ &asn_SPC_GANSSReferenceTime_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.h b/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.h
index adf0a749e..245f8cf62 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSReferenceTime.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSReferenceTime_H_
#define _GANSSReferenceTime_H_
-
#include
/* Including external dependencies */
@@ -26,7 +25,8 @@ extern "C"
typedef struct GANSSReferenceTime
{
GANSSRefTimeInfo_t ganssRefTimeInfo;
- struct GANSSTOD_GSMTimeAssociation *ganssTOD_GSMTimeAssociation /* OPTIONAL */;
+ struct GANSSTOD_GSMTimeAssociation
+ *ganssTOD_GSMTimeAssociation /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.c b/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.c
index 67367ff6f..f362c4df7 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.c
@@ -1,159 +1,148 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSSatelliteElement.h"
-static int
-memb_svHealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -7 && value <= 13)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_svHealth_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -7 && value <= 13))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_iod_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_iod_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_SV_HEALTH_CONSTR_3 = {
- { APC_CONSTRAINED, 5, 5, -7, 13 } /* (-7..13) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, -7, 13} /* (-7..13) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_IOD_CONSTR_4 = {
- { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1023} /* (0..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSSatelliteElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, svID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SVID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "svID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, svHealth),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_svHealth_constraint_1,
- &ASN_PER_MEMB_SV_HEALTH_CONSTR_3,
- 0,
- "svHealth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, iod),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_iod_constraint_1,
- &ASN_PER_MEMB_IOD_CONSTR_4,
- 0,
- "iod"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, ganssClockModel),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_GANSSClockModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssClockModel"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, ganssOrbitModel),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_GANSSOrbitModel,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssOrbitModel"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, svID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SVID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "svID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, svHealth),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_svHealth_constraint_1,
+ &ASN_PER_MEMB_SV_HEALTH_CONSTR_3, 0, "svHealth"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, iod),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_iod_constraint_1, &ASN_PER_MEMB_IOD_CONSTR_4,
+ 0, "iod"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, ganssClockModel),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), +1, /* EXPLICIT tag at current level */
+ &asn_DEF_GANSSClockModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssClockModel"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSSatelliteElement, ganssOrbitModel),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), +1, /* EXPLICIT tag at current level */
+ &asn_DEF_GANSSOrbitModel,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssOrbitModel"},
};
static ber_tlv_tag_t asn_DEF_GANSSSatelliteElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSSatelliteElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* svID at 1238 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* svHealth at 1239 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* iod at 1240 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssClockModel at 1241 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ganssOrbitModel at 1242 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* svID at 1238 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* svHealth at 1239 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* iod at 1240 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* ganssClockModel at 1241 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* ganssOrbitModel at 1242 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSSatelliteElement_specs_1 = {
- sizeof(struct GANSSSatelliteElement),
- offsetof(struct GANSSSatelliteElement, _asn_ctx),
- asn_MAP_GANSSSatelliteElement_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- 4, /* Start extensions */
- 6 /* Stop extensions */
+ sizeof(struct GANSSSatelliteElement),
+ offsetof(struct GANSSSatelliteElement, _asn_ctx),
+ asn_MAP_GANSSSatelliteElement_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ 4, /* Start extensions */
+ 6 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSSatelliteElement = {
- "GANSSSatelliteElement",
- "GANSSSatelliteElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSSatelliteElement_tags_1,
- sizeof(asn_DEF_GANSSSatelliteElement_tags_1)
- /sizeof(asn_DEF_GANSSSatelliteElement_tags_1[0]), /* 1 */
- asn_DEF_GANSSSatelliteElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSSatelliteElement_tags_1)
- /sizeof(asn_DEF_GANSSSatelliteElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSSatelliteElement_1,
- 5, /* Elements count */
- &asn_SPC_GANSSSatelliteElement_specs_1 /* Additional specs */
+ "GANSSSatelliteElement",
+ "GANSSSatelliteElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSSatelliteElement_tags_1,
+ sizeof(asn_DEF_GANSSSatelliteElement_tags_1) /
+ sizeof(asn_DEF_GANSSSatelliteElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSSSatelliteElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSSatelliteElement_tags_1) /
+ sizeof(asn_DEF_GANSSSatelliteElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSSatelliteElement_1,
+ 5, /* Elements count */
+ &asn_SPC_GANSSSatelliteElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.h b/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.h
index 5af0f54de..92f8ec837 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSSatelliteElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSSatelliteElement_H_
#define _GANSSSatelliteElement_H_
-
#include
/* Including external dependencies */
@@ -31,9 +30,9 @@ extern "C"
GANSSClockModel_t ganssClockModel;
GANSSOrbitModel_t ganssOrbitModel;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GANSSSignalID.c b/src/core/libs/supl/asn-rrlp/GANSSSignalID.c
index 05ddb3db6..2f299b49c 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSSignalID.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSSignalID.c
@@ -1,145 +1,163 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSSignalID.h"
-int
-GANSSSignalID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSSignalID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSSignalID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GANSSSignalID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GANSSSignalID_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSSignalID_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSSignalID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSSignalID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSSignalID_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) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSSignalID_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)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSSignalID_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) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSSignalID_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)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSSignalID_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) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSSignalID_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)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSSignalID_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) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSSignalID_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)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSSignalID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSSignalID_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSSignalID_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSSignalID_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSSignalID_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ GANSSSignalID_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSS_SIGNAL_ID_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSSignalID_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSSignalID = {
- "GANSSSignalID",
- "GANSSSignalID",
- GANSSSignalID_free,
- GANSSSignalID_print,
- GANSSSignalID_constraint,
- GANSSSignalID_decode_ber,
- GANSSSignalID_encode_der,
- GANSSSignalID_decode_xer,
- GANSSSignalID_encode_xer,
- GANSSSignalID_decode_uper,
- GANSSSignalID_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSSignalID_tags_1,
- sizeof(asn_DEF_GANSSSignalID_tags_1)
- /sizeof(asn_DEF_GANSSSignalID_tags_1[0]), /* 1 */
- asn_DEF_GANSSSignalID_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSSignalID_tags_1)
- /sizeof(asn_DEF_GANSSSignalID_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSS_SIGNAL_ID_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GANSSSignalID",
+ "GANSSSignalID",
+ GANSSSignalID_free,
+ GANSSSignalID_print,
+ GANSSSignalID_constraint,
+ GANSSSignalID_decode_ber,
+ GANSSSignalID_encode_der,
+ GANSSSignalID_decode_xer,
+ GANSSSignalID_encode_xer,
+ GANSSSignalID_decode_uper,
+ GANSSSignalID_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSSignalID_tags_1,
+ sizeof(asn_DEF_GANSSSignalID_tags_1) /
+ sizeof(asn_DEF_GANSSSignalID_tags_1[0]), /* 1 */
+ asn_DEF_GANSSSignalID_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSSignalID_tags_1) /
+ sizeof(asn_DEF_GANSSSignalID_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSS_SIGNAL_ID_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSSignalID.h b/src/core/libs/supl/asn-rrlp/GANSSSignalID.h
index e89105ba3..af6fed29e 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSSignalID.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSSignalID.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSSignalID_H_
#define _GANSSSignalID_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.c b/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.c
index 16d88a8b0..446ec823b 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.c
@@ -1,111 +1,88 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSTOD-GSMTimeAssociation.h"
static asn_TYPE_member_t asn_MBR_GANSSTOD_GSMTimeAssociation_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, bcchCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BCCHCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bcchCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, bsic),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSIC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, frameNumber),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_FrameNumber,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "frameNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, timeSlot),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TimeSlot,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeSlot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, bitNumber),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BitNumber,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bitNumber"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSTOD_GSMTimeAssociation, frameDrift),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_FrameDrift,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "frameDrift"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, bcchCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BCCHCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bcchCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, bsic),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSIC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsic"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, frameNumber),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_FrameNumber,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "frameNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, timeSlot),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TimeSlot, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeSlot"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTOD_GSMTimeAssociation, bitNumber),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BitNumber, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bitNumber"},
+ {ATF_POINTER, 1, offsetof(struct GANSSTOD_GSMTimeAssociation, frameDrift),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_FrameDrift, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "frameDrift"},
};
-static int asn_MAP_GANSSTOD_GSMTimeAssociation_oms_1[] = { 5 };
+static int asn_MAP_GANSSTOD_GSMTimeAssociation_oms_1[] = {5};
static ber_tlv_tag_t asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSTOD_GSMTimeAssociation_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier at 1118 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic at 1119 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frameNumber at 1120 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* timeSlot at 1121 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* bitNumber at 1122 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* frameDrift at 1123 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bcchCarrier at 1118 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* bsic at 1119 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* frameNumber at 1120 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* timeSlot at 1121 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* bitNumber at 1122 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0} /* frameDrift at 1123 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSTOD_GSMTimeAssociation_specs_1 = {
- sizeof(struct GANSSTOD_GSMTimeAssociation),
- offsetof(struct GANSSTOD_GSMTimeAssociation, _asn_ctx),
- asn_MAP_GANSSTOD_GSMTimeAssociation_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_GANSSTOD_GSMTimeAssociation_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSTOD_GSMTimeAssociation),
+ offsetof(struct GANSSTOD_GSMTimeAssociation, _asn_ctx),
+ asn_MAP_GANSSTOD_GSMTimeAssociation_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_GANSSTOD_GSMTimeAssociation_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSTOD_GSMTimeAssociation = {
- "GANSSTOD-GSMTimeAssociation",
- "GANSSTOD-GSMTimeAssociation",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1,
- sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1)
- /sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1[0]), /* 1 */
- asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1)
- /sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSTOD_GSMTimeAssociation_1,
- 6, /* Elements count */
- &asn_SPC_GANSSTOD_GSMTimeAssociation_specs_1 /* Additional specs */
+ "GANSSTOD-GSMTimeAssociation",
+ "GANSSTOD-GSMTimeAssociation",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1,
+ sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1) /
+ sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1[0]), /* 1 */
+ asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1) /
+ sizeof(asn_DEF_GANSSTOD_GSMTimeAssociation_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSTOD_GSMTimeAssociation_1,
+ 6, /* Elements count */
+ &asn_SPC_GANSSTOD_GSMTimeAssociation_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.h b/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.h
index b6016268f..001741c41 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSTOD-GSMTimeAssociation.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSTOD_GSMTimeAssociation_H_
#define _GANSSTOD_GSMTimeAssociation_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTOD.c b/src/core/libs/supl/asn-rrlp/GANSSTOD.c
index 5022d5bd3..350b46d82 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTOD.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSTOD.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSTOD.h"
-int
-GANSSTOD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 86399)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSTOD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 86399))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSTOD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GANSSTOD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GANSSTOD_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSTOD_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSTOD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSTOD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSTOD_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) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSTOD_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)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSTOD_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) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSTOD_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)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSTOD_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) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSTOD_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)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSTOD_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) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSTOD_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)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSTOD_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSTOD_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSTOD_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSTOD_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSTOD_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GANSSTOD_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSSTOD_CONSTR_1 = {
- { APC_CONSTRAINED, 17, -1, 0, 86399 } /* (0..86399) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 17, -1, 0, 86399} /* (0..86399) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSTOD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSTOD = {
- "GANSSTOD",
- "GANSSTOD",
- GANSSTOD_free,
- GANSSTOD_print,
- GANSSTOD_constraint,
- GANSSTOD_decode_ber,
- GANSSTOD_encode_der,
- GANSSTOD_decode_xer,
- GANSSTOD_encode_xer,
- GANSSTOD_decode_uper,
- GANSSTOD_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSTOD_tags_1,
- sizeof(asn_DEF_GANSSTOD_tags_1)
- /sizeof(asn_DEF_GANSSTOD_tags_1[0]), /* 1 */
- asn_DEF_GANSSTOD_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSTOD_tags_1)
- /sizeof(asn_DEF_GANSSTOD_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSSTOD_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GANSSTOD",
+ "GANSSTOD",
+ GANSSTOD_free,
+ GANSSTOD_print,
+ GANSSTOD_constraint,
+ GANSSTOD_decode_ber,
+ GANSSTOD_encode_der,
+ GANSSTOD_decode_xer,
+ GANSSTOD_encode_xer,
+ GANSSTOD_decode_uper,
+ GANSSTOD_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSTOD_tags_1,
+ sizeof(asn_DEF_GANSSTOD_tags_1) /
+ sizeof(asn_DEF_GANSSTOD_tags_1[0]), /* 1 */
+ asn_DEF_GANSSTOD_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSTOD_tags_1) /
+ sizeof(asn_DEF_GANSSTOD_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSSTOD_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTOD.h b/src/core/libs/supl/asn-rrlp/GANSSTOD.h
index e8b62ef2c..0373885ba 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTOD.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSTOD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSTOD_H_
#define _GANSSTOD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.c b/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.c
index 72519d28c..0d5f36b88 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.c
@@ -1,145 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSTODUncertainty.h"
-int
-GANSSTODUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSTODUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSTODUncertainty_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GANSSTODUncertainty_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GANSSTODUncertainty_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSTODUncertainty_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSTODUncertainty_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSTODUncertainty_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSTODUncertainty_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) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSTODUncertainty_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)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSTODUncertainty_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) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSTODUncertainty_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)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSTODUncertainty_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) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSTODUncertainty_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)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSTODUncertainty_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) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSTODUncertainty_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)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSTODUncertainty_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSTODUncertainty_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSTODUncertainty_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSTODUncertainty_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GANSSTODUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSSTOD_UNCERTAINTY_CONSTR_1 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSTODUncertainty_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSTODUncertainty = {
- "GANSSTODUncertainty",
- "GANSSTODUncertainty",
- GANSSTODUncertainty_free,
- GANSSTODUncertainty_print,
- GANSSTODUncertainty_constraint,
- GANSSTODUncertainty_decode_ber,
- GANSSTODUncertainty_encode_der,
- GANSSTODUncertainty_decode_xer,
- GANSSTODUncertainty_encode_xer,
- GANSSTODUncertainty_decode_uper,
- GANSSTODUncertainty_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSTODUncertainty_tags_1,
- sizeof(asn_DEF_GANSSTODUncertainty_tags_1)
- /sizeof(asn_DEF_GANSSTODUncertainty_tags_1[0]), /* 1 */
- asn_DEF_GANSSTODUncertainty_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSTODUncertainty_tags_1)
- /sizeof(asn_DEF_GANSSTODUncertainty_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSSTOD_UNCERTAINTY_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GANSSTODUncertainty",
+ "GANSSTODUncertainty",
+ GANSSTODUncertainty_free,
+ GANSSTODUncertainty_print,
+ GANSSTODUncertainty_constraint,
+ GANSSTODUncertainty_decode_ber,
+ GANSSTODUncertainty_encode_der,
+ GANSSTODUncertainty_decode_xer,
+ GANSSTODUncertainty_encode_xer,
+ GANSSTODUncertainty_decode_uper,
+ GANSSTODUncertainty_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSTODUncertainty_tags_1,
+ sizeof(asn_DEF_GANSSTODUncertainty_tags_1) /
+ sizeof(asn_DEF_GANSSTODUncertainty_tags_1[0]), /* 1 */
+ asn_DEF_GANSSTODUncertainty_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSTODUncertainty_tags_1) /
+ sizeof(asn_DEF_GANSSTODUncertainty_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSSTOD_UNCERTAINTY_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.h b/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.h
index 8997e77e4..250317452 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSTODUncertainty.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSTODUncertainty_H_
#define _GANSSTODUncertainty_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTODm.c b/src/core/libs/supl/asn-rrlp/GANSSTODm.c
index 2bc765980..b4c51052d 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTODm.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSTODm.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSTODm.h"
-int
-GANSSTODm_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3599999)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GANSSTODm_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3599999))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GANSSTODm_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GANSSTODm_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GANSSTODm_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GANSSTODm_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GANSSTODm_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GANSSTODm_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GANSSTODm_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) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GANSSTODm_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)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GANSSTODm_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) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GANSSTODm_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)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GANSSTODm_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) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GANSSTODm_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)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GANSSTODm_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) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GANSSTODm_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)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GANSSTODm_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GANSSTODm_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GANSSTODm_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GANSSTODm_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GANSSTODm_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GANSSTODm_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GANSSTO_DM_CONSTR_1 = {
- { APC_CONSTRAINED, 22, -1, 0, 3599999 } /* (0..3599999) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 22, -1, 0, 3599999} /* (0..3599999) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GANSSTODm_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GANSSTODm = {
- "GANSSTODm",
- "GANSSTODm",
- GANSSTODm_free,
- GANSSTODm_print,
- GANSSTODm_constraint,
- GANSSTODm_decode_ber,
- GANSSTODm_encode_der,
- GANSSTODm_decode_xer,
- GANSSTODm_encode_xer,
- GANSSTODm_decode_uper,
- GANSSTODm_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSTODm_tags_1,
- sizeof(asn_DEF_GANSSTODm_tags_1)
- /sizeof(asn_DEF_GANSSTODm_tags_1[0]), /* 1 */
- asn_DEF_GANSSTODm_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSTODm_tags_1)
- /sizeof(asn_DEF_GANSSTODm_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GANSSTO_DM_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GANSSTODm",
+ "GANSSTODm",
+ GANSSTODm_free,
+ GANSSTODm_print,
+ GANSSTODm_constraint,
+ GANSSTODm_decode_ber,
+ GANSSTODm_encode_der,
+ GANSSTODm_decode_xer,
+ GANSSTODm_encode_xer,
+ GANSSTODm_decode_uper,
+ GANSSTODm_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSTODm_tags_1,
+ sizeof(asn_DEF_GANSSTODm_tags_1) /
+ sizeof(asn_DEF_GANSSTODm_tags_1[0]), /* 1 */
+ asn_DEF_GANSSTODm_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSTODm_tags_1) /
+ sizeof(asn_DEF_GANSSTODm_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GANSSTO_DM_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTODm.h b/src/core/libs/supl/asn-rrlp/GANSSTODm.h
index 008482f2c..ba468f020 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTODm.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSTODm.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSTODm_H_
#define _GANSSTODm_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.c b/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.c
index cd993b5e5..78c662bab 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.c
@@ -1,201 +1,190 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSTimeModelElement.h"
-static int
-memb_ganssTimeModelRefTime_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+static int memb_ganssTimeModelRefTime_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
-static int
-memb_gnssTOID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_gnssTOID_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_weekNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 8191)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_weekNumber_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 8191))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_TIME_MODEL_REF_TIME_CONSTR_2 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GNSS_TOID_CONSTR_6 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_WEEK_NUMBER_CONSTR_7 = {
- { APC_CONSTRAINED, 13, 13, 0, 8191 } /* (0..8191) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 13, 13, 0, 8191} /* (0..8191) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSTimeModelElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTimeModelElement, ganssTimeModelRefTime),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssTimeModelRefTime_constraint_1,
- &ASN_PER_MEMB_GANSS_TIME_MODEL_REF_TIME_CONSTR_2,
- 0,
- "ganssTimeModelRefTime"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTimeModelElement, tA0),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TA0,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "tA0"
- },
- { ATF_POINTER, 2, offsetof(struct GANSSTimeModelElement, tA1),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TA1,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "tA1"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSTimeModelElement, tA2),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TA2,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "tA2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSTimeModelElement, gnssTOID),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_gnssTOID_constraint_1,
- &ASN_PER_MEMB_GNSS_TOID_CONSTR_6,
- 0,
- "gnssTOID"
- },
- { ATF_POINTER, 1, offsetof(struct GANSSTimeModelElement, weekNumber),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_weekNumber_constraint_1,
- &ASN_PER_MEMB_WEEK_NUMBER_CONSTR_7,
- 0,
- "weekNumber"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GANSSTimeModelElement, ganssTimeModelRefTime),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssTimeModelRefTime_constraint_1,
+ &ASN_PER_MEMB_GANSS_TIME_MODEL_REF_TIME_CONSTR_2, 0,
+ "ganssTimeModelRefTime"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTimeModelElement, tA0),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TA0, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "tA0"},
+ {ATF_POINTER, 2, offsetof(struct GANSSTimeModelElement, tA1),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TA1, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "tA1"},
+ {ATF_POINTER, 1, offsetof(struct GANSSTimeModelElement, tA2),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TA2, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "tA2"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSTimeModelElement, gnssTOID),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_gnssTOID_constraint_1,
+ &ASN_PER_MEMB_GNSS_TOID_CONSTR_6, 0, "gnssTOID"},
+ {ATF_POINTER, 1, offsetof(struct GANSSTimeModelElement, weekNumber),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_weekNumber_constraint_1,
+ &ASN_PER_MEMB_WEEK_NUMBER_CONSTR_7, 0, "weekNumber"},
};
-static int asn_MAP_GANSSTimeModelElement_oms_1[] = { 2, 3, 5 };
+static int asn_MAP_GANSSTimeModelElement_oms_1[] = {2, 3, 5};
static ber_tlv_tag_t asn_DEF_GANSSTimeModelElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSTimeModelElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssTimeModelRefTime at 1167 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tA0 at 1168 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* tA1 at 1169 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tA2 at 1170 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gnssTOID at 1171 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* weekNumber at 1172 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* ganssTimeModelRefTime at 1167 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* tA0 at 1168 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* tA1 at 1169 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* tA2 at 1170 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* gnssTOID at 1171 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0} /* weekNumber at 1172 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSTimeModelElement_specs_1 = {
- sizeof(struct GANSSTimeModelElement),
- offsetof(struct GANSSTimeModelElement, _asn_ctx),
- asn_MAP_GANSSTimeModelElement_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_GANSSTimeModelElement_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSTimeModelElement),
+ offsetof(struct GANSSTimeModelElement, _asn_ctx),
+ asn_MAP_GANSSTimeModelElement_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_GANSSTimeModelElement_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSTimeModelElement = {
- "GANSSTimeModelElement",
- "GANSSTimeModelElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSTimeModelElement_tags_1,
- sizeof(asn_DEF_GANSSTimeModelElement_tags_1)
- /sizeof(asn_DEF_GANSSTimeModelElement_tags_1[0]), /* 1 */
- asn_DEF_GANSSTimeModelElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSTimeModelElement_tags_1)
- /sizeof(asn_DEF_GANSSTimeModelElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSTimeModelElement_1,
- 6, /* Elements count */
- &asn_SPC_GANSSTimeModelElement_specs_1 /* Additional specs */
+ "GANSSTimeModelElement",
+ "GANSSTimeModelElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSTimeModelElement_tags_1,
+ sizeof(asn_DEF_GANSSTimeModelElement_tags_1) /
+ sizeof(asn_DEF_GANSSTimeModelElement_tags_1[0]), /* 1 */
+ asn_DEF_GANSSTimeModelElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSTimeModelElement_tags_1) /
+ sizeof(asn_DEF_GANSSTimeModelElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSTimeModelElement_1,
+ 6, /* Elements count */
+ &asn_SPC_GANSSTimeModelElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.h b/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.h
index 2ffc74388..fd67d57c9 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSTimeModelElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSTimeModelElement_H_
#define _GANSSTimeModelElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GANSSUTCModel.c b/src/core/libs/supl/asn-rrlp/GANSSUTCModel.c
index 8d37ddc7a..e943a5b26 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSUTCModel.c
+++ b/src/core/libs/supl/asn-rrlp/GANSSUTCModel.c
@@ -1,369 +1,369 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GANSSUTCModel.h"
-static int
-memb_ganssUtcA1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcA1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcA0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcA0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcTot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcTot_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcWNt_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcWNt_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcDeltaTls_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcDeltaTls_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcWNlsf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcWNlsf_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcDN_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcDN_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ganssUtcDeltaTlsf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssUtcDeltaTlsf_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_A1_CONSTR_2 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_A0_CONSTR_3 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_TOT_CONSTR_4 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_W_NT_CONSTR_5 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_DELTA_TLS_CONSTR_6 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_W_NLSF_CONSTR_7 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_DN_CONSTR_8 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GANSS_UTC_DELTA_TLSF_CONSTR_9 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GANSSUTCModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcA1),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcA1_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_A1_CONSTR_2,
- 0,
- "ganssUtcA1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcA0),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcA0_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_A0_CONSTR_3,
- 0,
- "ganssUtcA0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcTot),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcTot_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_TOT_CONSTR_4,
- 0,
- "ganssUtcTot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcWNt),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcWNt_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_W_NT_CONSTR_5,
- 0,
- "ganssUtcWNt"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcDeltaTls),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcDeltaTls_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_DELTA_TLS_CONSTR_6,
- 0,
- "ganssUtcDeltaTls"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcWNlsf),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcWNlsf_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_W_NLSF_CONSTR_7,
- 0,
- "ganssUtcWNlsf"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcDN),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcDN_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_DN_CONSTR_8,
- 0,
- "ganssUtcDN"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcDeltaTlsf),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssUtcDeltaTlsf_constraint_1,
- &ASN_PER_MEMB_GANSS_UTC_DELTA_TLSF_CONSTR_9,
- 0,
- "ganssUtcDeltaTlsf"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcA1),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcA1_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_A1_CONSTR_2, 0, "ganssUtcA1"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcA0),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcA0_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_A0_CONSTR_3, 0, "ganssUtcA0"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcTot),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcTot_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_TOT_CONSTR_4, 0, "ganssUtcTot"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcWNt),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcWNt_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_W_NT_CONSTR_5, 0, "ganssUtcWNt"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcDeltaTls),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcDeltaTls_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_DELTA_TLS_CONSTR_6, 0, "ganssUtcDeltaTls"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcWNlsf),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcWNlsf_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_W_NLSF_CONSTR_7, 0, "ganssUtcWNlsf"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcDN),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcDN_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_DN_CONSTR_8, 0, "ganssUtcDN"},
+ {ATF_NOFLAGS, 0, offsetof(struct GANSSUTCModel, ganssUtcDeltaTlsf),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssUtcDeltaTlsf_constraint_1,
+ &ASN_PER_MEMB_GANSS_UTC_DELTA_TLSF_CONSTR_9, 0, "ganssUtcDeltaTlsf"},
};
static ber_tlv_tag_t asn_DEF_GANSSUTCModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GANSSUTCModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssUtcA1 at 1382 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssUtcA0 at 1383 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganssUtcTot at 1384 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssUtcWNt at 1385 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ganssUtcDeltaTls at 1386 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ganssUtcWNlsf at 1387 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ganssUtcDN at 1388 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ganssUtcDeltaTlsf at 1389 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssUtcA1 at 1382 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ganssUtcA0 at 1383 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* ganssUtcTot at 1384 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* ganssUtcWNt at 1385 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0}, /* ganssUtcDeltaTls at 1386 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* ganssUtcWNlsf at 1387 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* ganssUtcDN at 1388 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0} /* ganssUtcDeltaTlsf at 1389 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GANSSUTCModel_specs_1 = {
- sizeof(struct GANSSUTCModel),
- offsetof(struct GANSSUTCModel, _asn_ctx),
- asn_MAP_GANSSUTCModel_tag2el_1,
- 8, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GANSSUTCModel),
+ offsetof(struct GANSSUTCModel, _asn_ctx),
+ asn_MAP_GANSSUTCModel_tag2el_1,
+ 8, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GANSSUTCModel = {
- "GANSSUTCModel",
- "GANSSUTCModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GANSSUTCModel_tags_1,
- sizeof(asn_DEF_GANSSUTCModel_tags_1)
- /sizeof(asn_DEF_GANSSUTCModel_tags_1[0]), /* 1 */
- asn_DEF_GANSSUTCModel_tags_1, /* Same as above */
- sizeof(asn_DEF_GANSSUTCModel_tags_1)
- /sizeof(asn_DEF_GANSSUTCModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GANSSUTCModel_1,
- 8, /* Elements count */
- &asn_SPC_GANSSUTCModel_specs_1 /* Additional specs */
+ "GANSSUTCModel",
+ "GANSSUTCModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GANSSUTCModel_tags_1,
+ sizeof(asn_DEF_GANSSUTCModel_tags_1) /
+ sizeof(asn_DEF_GANSSUTCModel_tags_1[0]), /* 1 */
+ asn_DEF_GANSSUTCModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_GANSSUTCModel_tags_1) /
+ sizeof(asn_DEF_GANSSUTCModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GANSSUTCModel_1,
+ 8, /* Elements count */
+ &asn_SPC_GANSSUTCModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GANSSUTCModel.h b/src/core/libs/supl/asn-rrlp/GANSSUTCModel.h
index 4f0c74735..9dae48604 100644
--- a/src/core/libs/supl/asn-rrlp/GANSSUTCModel.h
+++ b/src/core/libs/supl/asn-rrlp/GANSSUTCModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GANSSUTCModel_H_
#define _GANSSUTCModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPS-AssistData.c b/src/core/libs/supl/asn-rrlp/GPS-AssistData.c
index 2e42f0c12..e9421d0d8 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-AssistData.c
+++ b/src/core/libs/supl/asn-rrlp/GPS-AssistData.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPS-AssistData.h"
static asn_TYPE_member_t asn_MBR_GPS_AssistData_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GPS_AssistData, controlHeader),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ControlHeader,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "controlHeader"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_AssistData, controlHeader),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ControlHeader,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "controlHeader"},
};
static ber_tlv_tag_t asn_DEF_GPS_AssistData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPS_AssistData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* controlHeader at 556 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* controlHeader at 556 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPS_AssistData_specs_1 = {
- sizeof(struct GPS_AssistData),
- offsetof(struct GPS_AssistData, _asn_ctx),
- asn_MAP_GPS_AssistData_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GPS_AssistData),
+ offsetof(struct GPS_AssistData, _asn_ctx),
+ asn_MAP_GPS_AssistData_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPS_AssistData = {
- "GPS-AssistData",
- "GPS-AssistData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPS_AssistData_tags_1,
- sizeof(asn_DEF_GPS_AssistData_tags_1)
- /sizeof(asn_DEF_GPS_AssistData_tags_1[0]), /* 1 */
- asn_DEF_GPS_AssistData_tags_1, /* Same as above */
- sizeof(asn_DEF_GPS_AssistData_tags_1)
- /sizeof(asn_DEF_GPS_AssistData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPS_AssistData_1,
- 1, /* Elements count */
- &asn_SPC_GPS_AssistData_specs_1 /* Additional specs */
+ "GPS-AssistData",
+ "GPS-AssistData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPS_AssistData_tags_1,
+ sizeof(asn_DEF_GPS_AssistData_tags_1) /
+ sizeof(asn_DEF_GPS_AssistData_tags_1[0]), /* 1 */
+ asn_DEF_GPS_AssistData_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPS_AssistData_tags_1) /
+ sizeof(asn_DEF_GPS_AssistData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPS_AssistData_1,
+ 1, /* Elements count */
+ &asn_SPC_GPS_AssistData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPS-AssistData.h b/src/core/libs/supl/asn-rrlp/GPS-AssistData.h
index 0eb180068..af8054543 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-AssistData.h
+++ b/src/core/libs/supl/asn-rrlp/GPS-AssistData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPS_AssistData_H_
#define _GPS_AssistData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.c b/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.c
index 74038fe9f..30bb4b60b 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.c
+++ b/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPS-MeasureInfo.h"
static asn_TYPE_member_t asn_MBR_GPS_MeasureInfo_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MeasureInfo, gpsMsrSetList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGPS_MsrSetElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsMsrSetList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MeasureInfo, gpsMsrSetList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGPS_MsrSetElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsMsrSetList"},
};
static ber_tlv_tag_t asn_DEF_GPS_MeasureInfo_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPS_MeasureInfo_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gpsMsrSetList at 445 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* gpsMsrSetList at 445 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPS_MeasureInfo_specs_1 = {
- sizeof(struct GPS_MeasureInfo),
- offsetof(struct GPS_MeasureInfo, _asn_ctx),
- asn_MAP_GPS_MeasureInfo_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GPS_MeasureInfo),
+ offsetof(struct GPS_MeasureInfo, _asn_ctx),
+ asn_MAP_GPS_MeasureInfo_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPS_MeasureInfo = {
- "GPS-MeasureInfo",
- "GPS-MeasureInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPS_MeasureInfo_tags_1,
- sizeof(asn_DEF_GPS_MeasureInfo_tags_1)
- /sizeof(asn_DEF_GPS_MeasureInfo_tags_1[0]), /* 1 */
- asn_DEF_GPS_MeasureInfo_tags_1, /* Same as above */
- sizeof(asn_DEF_GPS_MeasureInfo_tags_1)
- /sizeof(asn_DEF_GPS_MeasureInfo_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPS_MeasureInfo_1,
- 1, /* Elements count */
- &asn_SPC_GPS_MeasureInfo_specs_1 /* Additional specs */
+ "GPS-MeasureInfo",
+ "GPS-MeasureInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPS_MeasureInfo_tags_1,
+ sizeof(asn_DEF_GPS_MeasureInfo_tags_1) /
+ sizeof(asn_DEF_GPS_MeasureInfo_tags_1[0]), /* 1 */
+ asn_DEF_GPS_MeasureInfo_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPS_MeasureInfo_tags_1) /
+ sizeof(asn_DEF_GPS_MeasureInfo_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPS_MeasureInfo_1,
+ 1, /* Elements count */
+ &asn_SPC_GPS_MeasureInfo_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.h b/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.h
index 94049297c..2196b04c3 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.h
+++ b/src/core/libs/supl/asn-rrlp/GPS-MeasureInfo.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPS_MeasureInfo_H_
#define _GPS_MeasureInfo_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPS-MsrElement.c b/src/core/libs/supl/asn-rrlp/GPS-MsrElement.c
index 756a7f54e..7ff02fdc1 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-MsrElement.c
+++ b/src/core/libs/supl/asn-rrlp/GPS-MsrElement.c
@@ -1,269 +1,260 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPS-MsrElement.h"
-static int
-memb_cNo_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_cNo_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_doppler_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_doppler_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_wholeChips_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1022)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_wholeChips_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1022))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_fracChips_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1024)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_fracChips_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1024))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_pseuRangeRMSErr_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_pseuRangeRMSErr_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_C_NO_CONSTR_3 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DOPPLER_CONSTR_4 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_WHOLE_CHIPS_CONSTR_5 = {
- { APC_CONSTRAINED, 10, 10, 0, 1022 } /* (0..1022) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1022} /* (0..1022) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_FRAC_CHIPS_CONSTR_6 = {
- { APC_CONSTRAINED, 11, 11, 0, 1024 } /* (0..1024) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, 0, 1024} /* (0..1024) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_PSEU_RANGE_RMS_ERR_CONSTR_8 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GPS_MsrElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, satelliteID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satelliteID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, cNo),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_cNo_constraint_1,
- &ASN_PER_MEMB_C_NO_CONSTR_3,
- 0,
- "cNo"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, doppler),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_doppler_constraint_1,
- &ASN_PER_MEMB_DOPPLER_CONSTR_4,
- 0,
- "doppler"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, wholeChips),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_wholeChips_constraint_1,
- &ASN_PER_MEMB_WHOLE_CHIPS_CONSTR_5,
- 0,
- "wholeChips"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, fracChips),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_fracChips_constraint_1,
- &ASN_PER_MEMB_FRAC_CHIPS_CONSTR_6,
- 0,
- "fracChips"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, mpathIndic),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MpathIndic,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "mpathIndic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, pseuRangeRMSErr),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_pseuRangeRMSErr_constraint_1,
- &ASN_PER_MEMB_PSEU_RANGE_RMS_ERR_CONSTR_8,
- 0,
- "pseuRangeRMSErr"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, satelliteID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satelliteID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, cNo),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_cNo_constraint_1, &ASN_PER_MEMB_C_NO_CONSTR_3,
+ 0, "cNo"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, doppler),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_doppler_constraint_1,
+ &ASN_PER_MEMB_DOPPLER_CONSTR_4, 0, "doppler"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, wholeChips),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_wholeChips_constraint_1,
+ &ASN_PER_MEMB_WHOLE_CHIPS_CONSTR_5, 0, "wholeChips"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, fracChips),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_fracChips_constraint_1,
+ &ASN_PER_MEMB_FRAC_CHIPS_CONSTR_6, 0, "fracChips"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, mpathIndic),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MpathIndic, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "mpathIndic"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrElement, pseuRangeRMSErr),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_pseuRangeRMSErr_constraint_1,
+ &ASN_PER_MEMB_PSEU_RANGE_RMS_ERR_CONSTR_8, 0, "pseuRangeRMSErr"},
};
static ber_tlv_tag_t asn_DEF_GPS_MsrElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPS_MsrElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID at 466 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cNo at 467 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* doppler at 468 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* wholeChips at 469 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* fracChips at 470 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* mpathIndic at 474 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* pseuRangeRMSErr at 475 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* satelliteID at 466 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* cNo at 467 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* doppler at 468 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* wholeChips at 469 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* fracChips at 470 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* mpathIndic at 474 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0} /* pseuRangeRMSErr at 475 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPS_MsrElement_specs_1 = {
- sizeof(struct GPS_MsrElement),
- offsetof(struct GPS_MsrElement, _asn_ctx),
- asn_MAP_GPS_MsrElement_tag2el_1,
- 7, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GPS_MsrElement),
+ offsetof(struct GPS_MsrElement, _asn_ctx),
+ asn_MAP_GPS_MsrElement_tag2el_1,
+ 7, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPS_MsrElement = {
- "GPS-MsrElement",
- "GPS-MsrElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPS_MsrElement_tags_1,
- sizeof(asn_DEF_GPS_MsrElement_tags_1)
- /sizeof(asn_DEF_GPS_MsrElement_tags_1[0]), /* 1 */
- asn_DEF_GPS_MsrElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GPS_MsrElement_tags_1)
- /sizeof(asn_DEF_GPS_MsrElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPS_MsrElement_1,
- 7, /* Elements count */
- &asn_SPC_GPS_MsrElement_specs_1 /* Additional specs */
+ "GPS-MsrElement",
+ "GPS-MsrElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPS_MsrElement_tags_1,
+ sizeof(asn_DEF_GPS_MsrElement_tags_1) /
+ sizeof(asn_DEF_GPS_MsrElement_tags_1[0]), /* 1 */
+ asn_DEF_GPS_MsrElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPS_MsrElement_tags_1) /
+ sizeof(asn_DEF_GPS_MsrElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPS_MsrElement_1,
+ 7, /* Elements count */
+ &asn_SPC_GPS_MsrElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPS-MsrElement.h b/src/core/libs/supl/asn-rrlp/GPS-MsrElement.h
index 20fc55f7b..1df83c8f9 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-MsrElement.h
+++ b/src/core/libs/supl/asn-rrlp/GPS-MsrElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPS_MsrElement_H_
#define _GPS_MsrElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.c b/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.c
index c1aec7065..d0b1fea43 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.c
+++ b/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.c
@@ -1,111 +1,103 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPS-MsrSetElement.h"
-static int
-memb_refFrame_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+static int memb_refFrame_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REF_FRAME_CONSTR_2 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GPS_MsrSetElement_1[] = {
- { ATF_POINTER, 1, offsetof(struct GPS_MsrSetElement, refFrame),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_refFrame_constraint_1,
- &ASN_PER_MEMB_REF_FRAME_CONSTR_2,
- 0,
- "refFrame"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrSetElement, gpsTOW),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSTOW24b,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTOW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPS_MsrSetElement, gps_msrList),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfGPS_MsrElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gps-msrList"
- },
+ {ATF_POINTER, 1, offsetof(struct GPS_MsrSetElement, refFrame),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_refFrame_constraint_1,
+ &ASN_PER_MEMB_REF_FRAME_CONSTR_2, 0, "refFrame"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrSetElement, gpsTOW),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSTOW24b, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTOW"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPS_MsrSetElement, gps_msrList),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfGPS_MsrElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gps-msrList"},
};
-static int asn_MAP_GPS_MsrSetElement_oms_1[] = { 0 };
+static int asn_MAP_GPS_MsrSetElement_oms_1[] = {0};
static ber_tlv_tag_t asn_DEF_GPS_MsrSetElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPS_MsrSetElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refFrame at 450 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsTOW at 451 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gps-msrList at 457 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* refFrame at 450 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* gpsTOW at 451 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* gps-msrList at 457 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPS_MsrSetElement_specs_1 = {
- sizeof(struct GPS_MsrSetElement),
- offsetof(struct GPS_MsrSetElement, _asn_ctx),
- asn_MAP_GPS_MsrSetElement_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_GPS_MsrSetElement_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GPS_MsrSetElement),
+ offsetof(struct GPS_MsrSetElement, _asn_ctx),
+ asn_MAP_GPS_MsrSetElement_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_GPS_MsrSetElement_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPS_MsrSetElement = {
- "GPS-MsrSetElement",
- "GPS-MsrSetElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPS_MsrSetElement_tags_1,
- sizeof(asn_DEF_GPS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_GPS_MsrSetElement_tags_1[0]), /* 1 */
- asn_DEF_GPS_MsrSetElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GPS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_GPS_MsrSetElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPS_MsrSetElement_1,
- 3, /* Elements count */
- &asn_SPC_GPS_MsrSetElement_specs_1 /* Additional specs */
+ "GPS-MsrSetElement",
+ "GPS-MsrSetElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPS_MsrSetElement_tags_1,
+ sizeof(asn_DEF_GPS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_GPS_MsrSetElement_tags_1[0]), /* 1 */
+ asn_DEF_GPS_MsrSetElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_GPS_MsrSetElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPS_MsrSetElement_1,
+ 3, /* Elements count */
+ &asn_SPC_GPS_MsrSetElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.h b/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.h
index 9f73ac026..b9ba63dad 100644
--- a/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.h
+++ b/src/core/libs/supl/asn-rrlp/GPS-MsrSetElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPS_MsrSetElement_H_
#define _GPS_MsrSetElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSAssistanceData.c b/src/core/libs/supl/asn-rrlp/GPSAssistanceData.c
index 6f93d65f3..55e7d7e1f 100644
--- a/src/core/libs/supl/asn-rrlp/GPSAssistanceData.c
+++ b/src/core/libs/supl/asn-rrlp/GPSAssistanceData.c
@@ -1,146 +1,168 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSAssistanceData.h"
-int
-GPSAssistanceData_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- size = st->size;
-
- if((size >= 1 && size <= 40)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GPSAssistanceData_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ size = st->size;
+
+ if ((size >= 1 && size <= 40))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using OCTET_STRING,
* so here we adjust the DEF accordingly.
*/
-static void
-GPSAssistanceData_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_OCTET_STRING.free_struct;
- td->print_struct = asn_DEF_OCTET_STRING.print_struct;
- td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
- td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
- td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
- td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
- td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
- td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
- td->elements = asn_DEF_OCTET_STRING.elements;
- td->elements_count = asn_DEF_OCTET_STRING.elements_count;
- td->specifics = asn_DEF_OCTET_STRING.specifics;
+static void GPSAssistanceData_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_OCTET_STRING.free_struct;
+ td->print_struct = asn_DEF_OCTET_STRING.print_struct;
+ td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
+ td->der_encoder = asn_DEF_OCTET_STRING.der_encoder;
+ td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder;
+ td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder;
+ td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder;
+ td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_OCTET_STRING.per_constraints;
+ td->elements = asn_DEF_OCTET_STRING.elements;
+ td->elements_count = asn_DEF_OCTET_STRING.elements_count;
+ td->specifics = asn_DEF_OCTET_STRING.specifics;
}
-void
-GPSAssistanceData_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GPSAssistanceData_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GPSAssistanceData_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GPSAssistanceData_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GPSAssistanceData_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) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GPSAssistanceData_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)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GPSAssistanceData_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) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GPSAssistanceData_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)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GPSAssistanceData_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) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GPSAssistanceData_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)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GPSAssistanceData_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) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GPSAssistanceData_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)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GPSAssistanceData_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GPSAssistanceData_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GPSAssistanceData_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GPSAssistanceData_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GPSAssistanceData_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ GPSAssistanceData_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GPS_ASSISTANCE_DATA_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 6, 6, 1, 40 } /* (SIZE(1..40)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 6, 6, 1, 40} /* (SIZE(1..40)) */,
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GPSAssistanceData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))};
asn_TYPE_descriptor_t asn_DEF_GPSAssistanceData = {
- "GPSAssistanceData",
- "GPSAssistanceData",
- GPSAssistanceData_free,
- GPSAssistanceData_print,
- GPSAssistanceData_constraint,
- GPSAssistanceData_decode_ber,
- GPSAssistanceData_encode_der,
- GPSAssistanceData_decode_xer,
- GPSAssistanceData_encode_xer,
- GPSAssistanceData_decode_uper,
- GPSAssistanceData_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSAssistanceData_tags_1,
- sizeof(asn_DEF_GPSAssistanceData_tags_1)
- /sizeof(asn_DEF_GPSAssistanceData_tags_1[0]), /* 1 */
- asn_DEF_GPSAssistanceData_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSAssistanceData_tags_1)
- /sizeof(asn_DEF_GPSAssistanceData_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GPS_ASSISTANCE_DATA_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GPSAssistanceData",
+ "GPSAssistanceData",
+ GPSAssistanceData_free,
+ GPSAssistanceData_print,
+ GPSAssistanceData_constraint,
+ GPSAssistanceData_decode_ber,
+ GPSAssistanceData_encode_der,
+ GPSAssistanceData_decode_xer,
+ GPSAssistanceData_encode_xer,
+ GPSAssistanceData_decode_uper,
+ GPSAssistanceData_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSAssistanceData_tags_1,
+ sizeof(asn_DEF_GPSAssistanceData_tags_1) /
+ sizeof(asn_DEF_GPSAssistanceData_tags_1[0]), /* 1 */
+ asn_DEF_GPSAssistanceData_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSAssistanceData_tags_1) /
+ sizeof(asn_DEF_GPSAssistanceData_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GPS_ASSISTANCE_DATA_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSAssistanceData.h b/src/core/libs/supl/asn-rrlp/GPSAssistanceData.h
index 4716111b7..3621b689b 100644
--- a/src/core/libs/supl/asn-rrlp/GPSAssistanceData.h
+++ b/src/core/libs/supl/asn-rrlp/GPSAssistanceData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSAssistanceData_H_
#define _GPSAssistanceData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.c b/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.c
index c80de1dad..20b54dc1b 100644
--- a/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.c
+++ b/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.c
@@ -1,145 +1,159 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSReferenceTimeUncertainty.h"
-int
-GPSReferenceTimeUncertainty_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GPSReferenceTimeUncertainty_constraint(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GPSReferenceTimeUncertainty_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GPSReferenceTimeUncertainty_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GPSReferenceTimeUncertainty_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GPSReferenceTimeUncertainty_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GPSReferenceTimeUncertainty_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) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GPSReferenceTimeUncertainty_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)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GPSReferenceTimeUncertainty_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) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GPSReferenceTimeUncertainty_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)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GPSReferenceTimeUncertainty_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) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GPSReferenceTimeUncertainty_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)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GPSReferenceTimeUncertainty_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) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GPSReferenceTimeUncertainty_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)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GPSReferenceTimeUncertainty_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GPSReferenceTimeUncertainty_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GPSReferenceTimeUncertainty_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GPSReferenceTimeUncertainty_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GPSReferenceTimeUncertainty_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
-static asn_per_constraints_t ASN_PER_TYPE_GPS_REFERENCE_TIME_UNCERTAINTY_CONSTR_1 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_GPS_REFERENCE_TIME_UNCERTAINTY_CONSTR_1 = {
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GPSReferenceTimeUncertainty_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GPSReferenceTimeUncertainty = {
- "GPSReferenceTimeUncertainty",
- "GPSReferenceTimeUncertainty",
- GPSReferenceTimeUncertainty_free,
- GPSReferenceTimeUncertainty_print,
- GPSReferenceTimeUncertainty_constraint,
- GPSReferenceTimeUncertainty_decode_ber,
- GPSReferenceTimeUncertainty_encode_der,
- GPSReferenceTimeUncertainty_decode_xer,
- GPSReferenceTimeUncertainty_encode_xer,
- GPSReferenceTimeUncertainty_decode_uper,
- GPSReferenceTimeUncertainty_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSReferenceTimeUncertainty_tags_1,
- sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1)
- /sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1[0]), /* 1 */
- asn_DEF_GPSReferenceTimeUncertainty_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1)
- /sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GPS_REFERENCE_TIME_UNCERTAINTY_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GPSReferenceTimeUncertainty",
+ "GPSReferenceTimeUncertainty",
+ GPSReferenceTimeUncertainty_free,
+ GPSReferenceTimeUncertainty_print,
+ GPSReferenceTimeUncertainty_constraint,
+ GPSReferenceTimeUncertainty_decode_ber,
+ GPSReferenceTimeUncertainty_encode_der,
+ GPSReferenceTimeUncertainty_decode_xer,
+ GPSReferenceTimeUncertainty_encode_xer,
+ GPSReferenceTimeUncertainty_decode_uper,
+ GPSReferenceTimeUncertainty_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSReferenceTimeUncertainty_tags_1,
+ sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1) /
+ sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1[0]), /* 1 */
+ asn_DEF_GPSReferenceTimeUncertainty_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1) /
+ sizeof(asn_DEF_GPSReferenceTimeUncertainty_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GPS_REFERENCE_TIME_UNCERTAINTY_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.h b/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.h
index 2fe9b91af..5eb12cdca 100644
--- a/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.h
+++ b/src/core/libs/supl/asn-rrlp/GPSReferenceTimeUncertainty.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSReferenceTimeUncertainty_H_
#define _GPSReferenceTimeUncertainty_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOW23b.c b/src/core/libs/supl/asn-rrlp/GPSTOW23b.c
index fe1c9d773..b5f776ec9 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOW23b.c
+++ b/src/core/libs/supl/asn-rrlp/GPSTOW23b.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSTOW23b.h"
-int
-GPSTOW23b_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7559999)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GPSTOW23b_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7559999))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GPSTOW23b_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GPSTOW23b_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GPSTOW23b_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GPSTOW23b_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GPSTOW23b_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GPSTOW23b_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GPSTOW23b_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) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GPSTOW23b_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)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GPSTOW23b_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) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GPSTOW23b_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)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GPSTOW23b_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) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GPSTOW23b_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)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GPSTOW23b_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) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GPSTOW23b_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)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GPSTOW23b_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GPSTOW23b_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GPSTOW23b_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GPSTOW23b_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GPSTOW23b_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GPSTOW23b_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GPSTO_W23B_CONSTR_1 = {
- { APC_CONSTRAINED, 23, -1, 0, 7559999 } /* (0..7559999) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 23, -1, 0, 7559999} /* (0..7559999) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GPSTOW23b_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GPSTOW23b = {
- "GPSTOW23b",
- "GPSTOW23b",
- GPSTOW23b_free,
- GPSTOW23b_print,
- GPSTOW23b_constraint,
- GPSTOW23b_decode_ber,
- GPSTOW23b_encode_der,
- GPSTOW23b_decode_xer,
- GPSTOW23b_encode_xer,
- GPSTOW23b_decode_uper,
- GPSTOW23b_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSTOW23b_tags_1,
- sizeof(asn_DEF_GPSTOW23b_tags_1)
- /sizeof(asn_DEF_GPSTOW23b_tags_1[0]), /* 1 */
- asn_DEF_GPSTOW23b_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSTOW23b_tags_1)
- /sizeof(asn_DEF_GPSTOW23b_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GPSTO_W23B_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GPSTOW23b",
+ "GPSTOW23b",
+ GPSTOW23b_free,
+ GPSTOW23b_print,
+ GPSTOW23b_constraint,
+ GPSTOW23b_decode_ber,
+ GPSTOW23b_encode_der,
+ GPSTOW23b_decode_xer,
+ GPSTOW23b_encode_xer,
+ GPSTOW23b_decode_uper,
+ GPSTOW23b_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSTOW23b_tags_1,
+ sizeof(asn_DEF_GPSTOW23b_tags_1) /
+ sizeof(asn_DEF_GPSTOW23b_tags_1[0]), /* 1 */
+ asn_DEF_GPSTOW23b_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSTOW23b_tags_1) /
+ sizeof(asn_DEF_GPSTOW23b_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GPSTO_W23B_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOW23b.h b/src/core/libs/supl/asn-rrlp/GPSTOW23b.h
index f280e9419..dd14855e8 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOW23b.h
+++ b/src/core/libs/supl/asn-rrlp/GPSTOW23b.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSTOW23b_H_
#define _GPSTOW23b_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOW24b.c b/src/core/libs/supl/asn-rrlp/GPSTOW24b.c
index 805fe2577..c4ba18751 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOW24b.c
+++ b/src/core/libs/supl/asn-rrlp/GPSTOW24b.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSTOW24b.h"
-int
-GPSTOW24b_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 14399999)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GPSTOW24b_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 14399999))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GPSTOW24b_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GPSTOW24b_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GPSTOW24b_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GPSTOW24b_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GPSTOW24b_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GPSTOW24b_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GPSTOW24b_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) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GPSTOW24b_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)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GPSTOW24b_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) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GPSTOW24b_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)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GPSTOW24b_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) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GPSTOW24b_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)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GPSTOW24b_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) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GPSTOW24b_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)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GPSTOW24b_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GPSTOW24b_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GPSTOW24b_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GPSTOW24b_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GPSTOW24b_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GPSTOW24b_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GPSTO_W24B_CONSTR_1 = {
- { APC_CONSTRAINED, 24, -1, 0, 14399999 } /* (0..14399999) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, 0, 14399999} /* (0..14399999) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GPSTOW24b_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GPSTOW24b = {
- "GPSTOW24b",
- "GPSTOW24b",
- GPSTOW24b_free,
- GPSTOW24b_print,
- GPSTOW24b_constraint,
- GPSTOW24b_decode_ber,
- GPSTOW24b_encode_der,
- GPSTOW24b_decode_xer,
- GPSTOW24b_encode_xer,
- GPSTOW24b_decode_uper,
- GPSTOW24b_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSTOW24b_tags_1,
- sizeof(asn_DEF_GPSTOW24b_tags_1)
- /sizeof(asn_DEF_GPSTOW24b_tags_1[0]), /* 1 */
- asn_DEF_GPSTOW24b_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSTOW24b_tags_1)
- /sizeof(asn_DEF_GPSTOW24b_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GPSTO_W24B_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GPSTOW24b",
+ "GPSTOW24b",
+ GPSTOW24b_free,
+ GPSTOW24b_print,
+ GPSTOW24b_constraint,
+ GPSTOW24b_decode_ber,
+ GPSTOW24b_encode_der,
+ GPSTOW24b_decode_xer,
+ GPSTOW24b_encode_xer,
+ GPSTOW24b_decode_uper,
+ GPSTOW24b_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSTOW24b_tags_1,
+ sizeof(asn_DEF_GPSTOW24b_tags_1) /
+ sizeof(asn_DEF_GPSTOW24b_tags_1[0]), /* 1 */
+ asn_DEF_GPSTOW24b_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSTOW24b_tags_1) /
+ sizeof(asn_DEF_GPSTOW24b_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GPSTO_W24B_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOW24b.h b/src/core/libs/supl/asn-rrlp/GPSTOW24b.h
index a2e7831fd..d92da2a38 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOW24b.h
+++ b/src/core/libs/supl/asn-rrlp/GPSTOW24b.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSTOW24b_H_
#define _GPSTOW24b_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOWAssist.c b/src/core/libs/supl/asn-rrlp/GPSTOWAssist.c
index 0ce4905d9..09d2ec7dc 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOWAssist.c
+++ b/src/core/libs/supl/asn-rrlp/GPSTOWAssist.c
@@ -1,57 +1,51 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSTOWAssist.h"
static asn_per_constraints_t ASN_PER_TYPE_GPSTOW_ASSIST_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 12 } /* (SIZE(1..12)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 12} /* (SIZE(1..12)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GPSTOWAssist_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GPSTOWAssistElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GPSTOWAssistElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_GPSTOWAssist_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_GPSTOWAssist_specs_1 = {
- sizeof(struct GPSTOWAssist),
- offsetof(struct GPSTOWAssist, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct GPSTOWAssist), offsetof(struct GPSTOWAssist, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_GPSTOWAssist = {
- "GPSTOWAssist",
- "GPSTOWAssist",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSTOWAssist_tags_1,
- sizeof(asn_DEF_GPSTOWAssist_tags_1)
- /sizeof(asn_DEF_GPSTOWAssist_tags_1[0]), /* 1 */
- asn_DEF_GPSTOWAssist_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSTOWAssist_tags_1)
- /sizeof(asn_DEF_GPSTOWAssist_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GPSTOW_ASSIST_CONSTR_1,
- asn_MBR_GPSTOWAssist_1,
- 1, /* Single element */
- &asn_SPC_GPSTOWAssist_specs_1 /* Additional specs */
+ "GPSTOWAssist",
+ "GPSTOWAssist",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSTOWAssist_tags_1,
+ sizeof(asn_DEF_GPSTOWAssist_tags_1) /
+ sizeof(asn_DEF_GPSTOWAssist_tags_1[0]), /* 1 */
+ asn_DEF_GPSTOWAssist_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSTOWAssist_tags_1) /
+ sizeof(asn_DEF_GPSTOWAssist_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GPSTOW_ASSIST_CONSTR_1,
+ asn_MBR_GPSTOWAssist_1,
+ 1, /* Single element */
+ &asn_SPC_GPSTOWAssist_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOWAssist.h b/src/core/libs/supl/asn-rrlp/GPSTOWAssist.h
index e7ea606d2..64dfddb43 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOWAssist.h
+++ b/src/core/libs/supl/asn-rrlp/GPSTOWAssist.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSTOWAssist_H_
#define _GPSTOWAssist_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.c b/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.c
index 59018c4ad..e6db25efd 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.c
+++ b/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.c
@@ -1,99 +1,82 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSTOWAssistElement.h"
static asn_TYPE_member_t asn_MBR_GPSTOWAssistElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, satelliteID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satelliteID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, tlmWord),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TLMWord,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "tlmWord"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, antiSpoof),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AntiSpoofFlag,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "antiSpoof"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, alert),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AlertFlag,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "alert"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, tlmRsvdBits),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TLMReservedBits,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "tlmRsvdBits"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, satelliteID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satelliteID"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, tlmWord),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TLMWord, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "tlmWord"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, antiSpoof),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AntiSpoofFlag,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "antiSpoof"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, alert),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AlertFlag, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "alert"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTOWAssistElement, tlmRsvdBits),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TLMReservedBits,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "tlmRsvdBits"},
};
static ber_tlv_tag_t asn_DEF_GPSTOWAssistElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPSTOWAssistElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID at 610 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tlmWord at 611 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* antiSpoof at 612 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alert at 613 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* tlmRsvdBits at 615 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* satelliteID at 610 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* tlmWord at 611 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* antiSpoof at 612 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* alert at 613 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* tlmRsvdBits at 615 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPSTOWAssistElement_specs_1 = {
- sizeof(struct GPSTOWAssistElement),
- offsetof(struct GPSTOWAssistElement, _asn_ctx),
- asn_MAP_GPSTOWAssistElement_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GPSTOWAssistElement),
+ offsetof(struct GPSTOWAssistElement, _asn_ctx),
+ asn_MAP_GPSTOWAssistElement_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPSTOWAssistElement = {
- "GPSTOWAssistElement",
- "GPSTOWAssistElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSTOWAssistElement_tags_1,
- sizeof(asn_DEF_GPSTOWAssistElement_tags_1)
- /sizeof(asn_DEF_GPSTOWAssistElement_tags_1[0]), /* 1 */
- asn_DEF_GPSTOWAssistElement_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSTOWAssistElement_tags_1)
- /sizeof(asn_DEF_GPSTOWAssistElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPSTOWAssistElement_1,
- 5, /* Elements count */
- &asn_SPC_GPSTOWAssistElement_specs_1 /* Additional specs */
+ "GPSTOWAssistElement",
+ "GPSTOWAssistElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSTOWAssistElement_tags_1,
+ sizeof(asn_DEF_GPSTOWAssistElement_tags_1) /
+ sizeof(asn_DEF_GPSTOWAssistElement_tags_1[0]), /* 1 */
+ asn_DEF_GPSTOWAssistElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSTOWAssistElement_tags_1) /
+ sizeof(asn_DEF_GPSTOWAssistElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPSTOWAssistElement_1,
+ 5, /* Elements count */
+ &asn_SPC_GPSTOWAssistElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.h b/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.h
index 939b7b3e5..c8074077a 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.h
+++ b/src/core/libs/supl/asn-rrlp/GPSTOWAssistElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSTOWAssistElement_H_
#define _GPSTOWAssistElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSTime.c b/src/core/libs/supl/asn-rrlp/GPSTime.c
index deaef7717..5c7c35b9f 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTime.c
+++ b/src/core/libs/supl/asn-rrlp/GPSTime.c
@@ -1,69 +1,59 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSTime.h"
static asn_TYPE_member_t asn_MBR_GPSTime_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GPSTime, gpsTOW23b),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSTOW23b,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTOW23b"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GPSTime, gpsWeek),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSWeek,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsWeek"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTime, gpsTOW23b),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSTOW23b, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTOW23b"},
+ {ATF_NOFLAGS, 0, offsetof(struct GPSTime, gpsWeek),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSWeek, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsWeek"},
};
static ber_tlv_tag_t asn_DEF_GPSTime_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GPSTime_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsTOW23b at 594 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gpsWeek at 596 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* gpsTOW23b at 594 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* gpsWeek at 596 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GPSTime_specs_1 = {
- sizeof(struct GPSTime),
- offsetof(struct GPSTime, _asn_ctx),
- asn_MAP_GPSTime_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GPSTime),
+ offsetof(struct GPSTime, _asn_ctx),
+ asn_MAP_GPSTime_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPSTime = {
- "GPSTime",
- "GPSTime",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSTime_tags_1,
- sizeof(asn_DEF_GPSTime_tags_1)
- /sizeof(asn_DEF_GPSTime_tags_1[0]), /* 1 */
- asn_DEF_GPSTime_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSTime_tags_1)
- /sizeof(asn_DEF_GPSTime_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPSTime_1,
- 2, /* Elements count */
- &asn_SPC_GPSTime_specs_1 /* Additional specs */
+ "GPSTime",
+ "GPSTime",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSTime_tags_1,
+ sizeof(asn_DEF_GPSTime_tags_1) / sizeof(asn_DEF_GPSTime_tags_1[0]), /* 1 */
+ asn_DEF_GPSTime_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSTime_tags_1) / sizeof(asn_DEF_GPSTime_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPSTime_1,
+ 2, /* Elements count */
+ &asn_SPC_GPSTime_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSTime.h b/src/core/libs/supl/asn-rrlp/GPSTime.h
index b25b5af57..84bc75a41 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTime.h
+++ b/src/core/libs/supl/asn-rrlp/GPSTime.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSTime_H_
#define _GPSTime_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.c b/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.c
index 67ef9b1a3..e0f208e5c 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.c
+++ b/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.c
@@ -1,181 +1,184 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSTimeAssistanceMeasurements.h"
-static int
-memb_referenceFrameMSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_referenceFrameMSB_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_gpsTowSubms_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 9999)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_gpsTowSubms_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 9999))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_deltaTow_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_deltaTow_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REFERENCE_FRAME_MSB_CONSTR_2 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GPS_TOW_SUBMS_CONSTR_3 = {
- { APC_CONSTRAINED, 14, 14, 0, 9999 } /* (0..9999) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 14, 14, 0, 9999} /* (0..9999) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DELTA_TOW_CONSTR_4 = {
- { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 0, 127} /* (0..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_GPSTimeAssistanceMeasurements_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GPSTimeAssistanceMeasurements, referenceFrameMSB),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_referenceFrameMSB_constraint_1,
- &ASN_PER_MEMB_REFERENCE_FRAME_MSB_CONSTR_2,
- 0,
- "referenceFrameMSB"
- },
- { ATF_POINTER, 3, offsetof(struct GPSTimeAssistanceMeasurements, gpsTowSubms),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_gpsTowSubms_constraint_1,
- &ASN_PER_MEMB_GPS_TOW_SUBMS_CONSTR_3,
- 0,
- "gpsTowSubms"
- },
- { ATF_POINTER, 2, offsetof(struct GPSTimeAssistanceMeasurements, deltaTow),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_deltaTow_constraint_1,
- &ASN_PER_MEMB_DELTA_TOW_CONSTR_4,
- 0,
- "deltaTow"
- },
- { ATF_POINTER, 1, offsetof(struct GPSTimeAssistanceMeasurements, gpsReferenceTimeUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSReferenceTimeUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsReferenceTimeUncertainty"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct GPSTimeAssistanceMeasurements, referenceFrameMSB),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_referenceFrameMSB_constraint_1,
+ &ASN_PER_MEMB_REFERENCE_FRAME_MSB_CONSTR_2, 0, "referenceFrameMSB"},
+ {ATF_POINTER, 3,
+ offsetof(struct GPSTimeAssistanceMeasurements, gpsTowSubms),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_gpsTowSubms_constraint_1,
+ &ASN_PER_MEMB_GPS_TOW_SUBMS_CONSTR_3, 0, "gpsTowSubms"},
+ {ATF_POINTER, 2, offsetof(struct GPSTimeAssistanceMeasurements, deltaTow),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_deltaTow_constraint_1,
+ &ASN_PER_MEMB_DELTA_TOW_CONSTR_4, 0, "deltaTow"},
+ {ATF_POINTER, 1,
+ offsetof(struct GPSTimeAssistanceMeasurements,
+ gpsReferenceTimeUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSReferenceTimeUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsReferenceTimeUncertainty"},
};
-static int asn_MAP_GPSTimeAssistanceMeasurements_oms_1[] = { 1, 2, 3 };
+static int asn_MAP_GPSTimeAssistanceMeasurements_oms_1[] = {1, 2, 3};
static ber_tlv_tag_t asn_DEF_GPSTimeAssistanceMeasurements_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_GPSTimeAssistanceMeasurements_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* referenceFrameMSB at 950 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* gpsTowSubms at 951 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* deltaTow at 952 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0} /* gpsReferenceTimeUncertainty at 953 */
};
-static asn_TYPE_tag2member_t asn_MAP_GPSTimeAssistanceMeasurements_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFrameMSB at 950 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsTowSubms at 951 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* deltaTow at 952 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* gpsReferenceTimeUncertainty at 953 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_GPSTimeAssistanceMeasurements_specs_1 = {
- sizeof(struct GPSTimeAssistanceMeasurements),
- offsetof(struct GPSTimeAssistanceMeasurements, _asn_ctx),
- asn_MAP_GPSTimeAssistanceMeasurements_tag2el_1,
- 4, /* Count of tags in the map */
- asn_MAP_GPSTimeAssistanceMeasurements_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_GPSTimeAssistanceMeasurements_specs_1 =
+ {
+ sizeof(struct GPSTimeAssistanceMeasurements),
+ offsetof(struct GPSTimeAssistanceMeasurements, _asn_ctx),
+ asn_MAP_GPSTimeAssistanceMeasurements_tag2el_1,
+ 4, /* Count of tags in the map */
+ asn_MAP_GPSTimeAssistanceMeasurements_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GPSTimeAssistanceMeasurements = {
- "GPSTimeAssistanceMeasurements",
- "GPSTimeAssistanceMeasurements",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSTimeAssistanceMeasurements_tags_1,
- sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1)
- /sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1[0]), /* 1 */
- asn_DEF_GPSTimeAssistanceMeasurements_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1)
- /sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GPSTimeAssistanceMeasurements_1,
- 4, /* Elements count */
- &asn_SPC_GPSTimeAssistanceMeasurements_specs_1 /* Additional specs */
+ "GPSTimeAssistanceMeasurements",
+ "GPSTimeAssistanceMeasurements",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSTimeAssistanceMeasurements_tags_1,
+ sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1) /
+ sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1[0]), /* 1 */
+ asn_DEF_GPSTimeAssistanceMeasurements_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1) /
+ sizeof(asn_DEF_GPSTimeAssistanceMeasurements_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GPSTimeAssistanceMeasurements_1,
+ 4, /* Elements count */
+ &asn_SPC_GPSTimeAssistanceMeasurements_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.h b/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.h
index 8bc8dfce0..fb743aa47 100644
--- a/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.h
+++ b/src/core/libs/supl/asn-rrlp/GPSTimeAssistanceMeasurements.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSTimeAssistanceMeasurements_H_
#define _GPSTimeAssistanceMeasurements_H_
-
#include
/* Including external dependencies */
@@ -26,7 +25,8 @@ extern "C"
long referenceFrameMSB;
long *gpsTowSubms /* OPTIONAL */;
long *deltaTow /* OPTIONAL */;
- GPSReferenceTimeUncertainty_t *gpsReferenceTimeUncertainty /* OPTIONAL */;
+ GPSReferenceTimeUncertainty_t
+ *gpsReferenceTimeUncertainty /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/GPSWeek.c b/src/core/libs/supl/asn-rrlp/GPSWeek.c
index 0b312cb38..1eb00b295 100644
--- a/src/core/libs/supl/asn-rrlp/GPSWeek.c
+++ b/src/core/libs/supl/asn-rrlp/GPSWeek.c
@@ -1,145 +1,153 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GPSWeek.h"
-int
-GPSWeek_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int GPSWeek_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-GPSWeek_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void GPSWeek_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-GPSWeek_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void GPSWeek_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-GPSWeek_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int GPSWeek_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-GPSWeek_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) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t GPSWeek_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)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-GPSWeek_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) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t GPSWeek_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)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-GPSWeek_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) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t GPSWeek_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)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-GPSWeek_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) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t GPSWeek_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)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-GPSWeek_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t GPSWeek_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-GPSWeek_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- GPSWeek_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t GPSWeek_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ GPSWeek_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_GPS_WEEK_CONSTR_1 = {
- { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1023} /* (0..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_GPSWeek_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_GPSWeek = {
- "GPSWeek",
- "GPSWeek",
- GPSWeek_free,
- GPSWeek_print,
- GPSWeek_constraint,
- GPSWeek_decode_ber,
- GPSWeek_encode_der,
- GPSWeek_decode_xer,
- GPSWeek_encode_xer,
- GPSWeek_decode_uper,
- GPSWeek_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GPSWeek_tags_1,
- sizeof(asn_DEF_GPSWeek_tags_1)
- /sizeof(asn_DEF_GPSWeek_tags_1[0]), /* 1 */
- asn_DEF_GPSWeek_tags_1, /* Same as above */
- sizeof(asn_DEF_GPSWeek_tags_1)
- /sizeof(asn_DEF_GPSWeek_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_GPS_WEEK_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "GPSWeek",
+ "GPSWeek",
+ GPSWeek_free,
+ GPSWeek_print,
+ GPSWeek_constraint,
+ GPSWeek_decode_ber,
+ GPSWeek_encode_der,
+ GPSWeek_decode_xer,
+ GPSWeek_encode_xer,
+ GPSWeek_decode_uper,
+ GPSWeek_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GPSWeek_tags_1,
+ sizeof(asn_DEF_GPSWeek_tags_1) / sizeof(asn_DEF_GPSWeek_tags_1[0]), /* 1 */
+ asn_DEF_GPSWeek_tags_1, /* Same as above */
+ sizeof(asn_DEF_GPSWeek_tags_1) / sizeof(asn_DEF_GPSWeek_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_GPS_WEEK_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GPSWeek.h b/src/core/libs/supl/asn-rrlp/GPSWeek.h
index bcfe49b70..5268cd48a 100644
--- a/src/core/libs/supl/asn-rrlp/GPSWeek.h
+++ b/src/core/libs/supl/asn-rrlp/GPSWeek.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GPSWeek_H_
#define _GPSWeek_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/GSMTime.c b/src/core/libs/supl/asn-rrlp/GSMTime.c
index af3f358c0..9740fa47b 100644
--- a/src/core/libs/supl/asn-rrlp/GSMTime.c
+++ b/src/core/libs/supl/asn-rrlp/GSMTime.c
@@ -1,99 +1,79 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "GSMTime.h"
static asn_TYPE_member_t asn_MBR_GSMTime_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct GSMTime, bcchCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BCCHCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bcchCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GSMTime, bsic),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSIC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GSMTime, frameNumber),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_FrameNumber,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "frameNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GSMTime, timeSlot),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TimeSlot,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeSlot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct GSMTime, bitNumber),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BitNumber,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bitNumber"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct GSMTime, bcchCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BCCHCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bcchCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct GSMTime, bsic),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSIC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsic"},
+ {ATF_NOFLAGS, 0, offsetof(struct GSMTime, frameNumber),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_FrameNumber,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "frameNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct GSMTime, timeSlot),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TimeSlot, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeSlot"},
+ {ATF_NOFLAGS, 0, offsetof(struct GSMTime, bitNumber),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BitNumber, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bitNumber"},
};
static ber_tlv_tag_t asn_DEF_GSMTime_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_GSMTime_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier at 630 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic at 631 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frameNumber at 632 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* timeSlot at 633 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* bitNumber at 635 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bcchCarrier at 630 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* bsic at 631 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* frameNumber at 632 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* timeSlot at 633 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* bitNumber at 635 */
};
static asn_SEQUENCE_specifics_t asn_SPC_GSMTime_specs_1 = {
- sizeof(struct GSMTime),
- offsetof(struct GSMTime, _asn_ctx),
- asn_MAP_GSMTime_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct GSMTime),
+ offsetof(struct GSMTime, _asn_ctx),
+ asn_MAP_GSMTime_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_GSMTime = {
- "GSMTime",
- "GSMTime",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_GSMTime_tags_1,
- sizeof(asn_DEF_GSMTime_tags_1)
- /sizeof(asn_DEF_GSMTime_tags_1[0]), /* 1 */
- asn_DEF_GSMTime_tags_1, /* Same as above */
- sizeof(asn_DEF_GSMTime_tags_1)
- /sizeof(asn_DEF_GSMTime_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_GSMTime_1,
- 5, /* Elements count */
- &asn_SPC_GSMTime_specs_1 /* Additional specs */
+ "GSMTime",
+ "GSMTime",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_GSMTime_tags_1,
+ sizeof(asn_DEF_GSMTime_tags_1) / sizeof(asn_DEF_GSMTime_tags_1[0]), /* 1 */
+ asn_DEF_GSMTime_tags_1, /* Same as above */
+ sizeof(asn_DEF_GSMTime_tags_1) / sizeof(asn_DEF_GSMTime_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_GSMTime_1,
+ 5, /* Elements count */
+ &asn_SPC_GSMTime_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/GSMTime.h b/src/core/libs/supl/asn-rrlp/GSMTime.h
index 9f360bb13..377c497e7 100644
--- a/src/core/libs/supl/asn-rrlp/GSMTime.h
+++ b/src/core/libs/supl/asn-rrlp/GSMTime.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _GSMTime_H_
#define _GSMTime_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/INTEGER.c b/src/core/libs/supl/asn-rrlp/INTEGER.c
index a3ede3905..67777b094 100644
--- a/src/core/libs/supl/asn-rrlp/INTEGER.c
+++ b/src/core/libs/supl/asn-rrlp/INTEGER.c
@@ -5,7 +5,7 @@
*/
#include
#include
-#include /* Encoder and decoder of a primitive type */
+#include /* Encoder and decoder of a primitive type */
#include
#include
@@ -13,928 +13,1062 @@
* INTEGER basic type description.
*/
static ber_tlv_tag_t asn_DEF_INTEGER_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_INTEGER = {
- "INTEGER",
- "INTEGER",
- ASN__PRIMITIVE_TYPE_free,
- INTEGER_print,
- asn_generic_no_constraint,
- ber_decode_primitive,
- INTEGER_encode_der,
- INTEGER_decode_xer,
- INTEGER_encode_xer,
- INTEGER_decode_uper, /* Unaligned PER decoder */
- INTEGER_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_INTEGER_tags,
- sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]),
- asn_DEF_INTEGER_tags, /* Same as above */
- sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "INTEGER",
+ "INTEGER",
+ ASN__PRIMITIVE_TYPE_free,
+ INTEGER_print,
+ asn_generic_no_constraint,
+ ber_decode_primitive,
+ INTEGER_encode_der,
+ INTEGER_decode_xer,
+ INTEGER_encode_xer,
+ INTEGER_decode_uper, /* Unaligned PER decoder */
+ INTEGER_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_INTEGER_tags,
+ sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]),
+ asn_DEF_INTEGER_tags, /* Same as above */
+ sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
/*
* Encode INTEGER type using DER.
*/
-asn_enc_rval_t
-INTEGER_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) {
- INTEGER_t *st = (INTEGER_t *)sptr;
+asn_enc_rval_t INTEGER_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)
+{
+ INTEGER_t *st = (INTEGER_t *)sptr;
- ASN_DEBUG("%s %s as INTEGER (tm=%d)",
- cb?"Encoding":"Estimating", td->name, tag_mode);
+ ASN_DEBUG("%s %s as INTEGER (tm=%d)", cb ? "Encoding" : "Estimating",
+ td->name, tag_mode);
- /*
- * Canonicalize integer in the buffer.
- * (Remove too long sign extension, remove some first 0x00 bytes)
- */
- if(st->buf) {
- uint8_t *buf = st->buf;
- uint8_t *end1 = buf + st->size - 1;
- int shift;
+ /*
+ * Canonicalize integer in the buffer.
+ * (Remove too long sign extension, remove some first 0x00 bytes)
+ */
+ if (st->buf)
+ {
+ uint8_t *buf = st->buf;
+ uint8_t *end1 = buf + st->size - 1;
+ int shift;
- /* Compute the number of superfluous leading bytes */
- for(; buf < end1; buf++) {
- /*
- * If the contents octets of an integer value encoding
- * consist of more than one octet, then the bits of the
- * first octet and bit 8 of the second octet:
- * a) shall not all be ones; and
- * b) shall not all be zero.
- */
- switch(*buf) {
- case 0x00: if((buf[1] & 0x80) == 0)
- continue;
- break;
- case 0xff: if((buf[1] & 0x80))
- continue;
- break;
- }
- break;
- }
+ /* Compute the number of superfluous leading bytes */
+ for (; buf < end1; buf++)
+ {
+ /*
+ * If the contents octets of an integer value encoding
+ * consist of more than one octet, then the bits of the
+ * first octet and bit 8 of the second octet:
+ * a) shall not all be ones; and
+ * b) shall not all be zero.
+ */
+ switch (*buf)
+ {
+ case 0x00:
+ if ((buf[1] & 0x80) == 0) continue;
+ break;
+ case 0xff:
+ if ((buf[1] & 0x80)) continue;
+ break;
+ }
+ break;
+ }
- /* Remove leading superfluous bytes from the integer */
- shift = buf - st->buf;
- if(shift) {
- uint8_t *nb = st->buf;
- uint8_t *end;
+ /* Remove leading superfluous bytes from the integer */
+ shift = buf - st->buf;
+ if (shift)
+ {
+ uint8_t *nb = st->buf;
+ uint8_t *end;
- st->size -= shift; /* New size, minus bad bytes */
- end = nb + st->size;
+ st->size -= shift; /* New size, minus bad bytes */
+ end = nb + st->size;
- for(; nb < end; nb++, buf++)
- *nb = *buf;
- }
+ for (; nb < end; nb++, buf++) *nb = *buf;
+ }
- } /* if(1) */
+ } /* if(1) */
- return der_encode_primitive(td, sptr, tag_mode, tag, cb, app_key);
+ return der_encode_primitive(td, sptr, tag_mode, tag, cb, app_key);
}
-static const asn_INTEGER_enum_map_t *INTEGER_map_enum2value(asn_INTEGER_specifics_t *specs, const char *lstart, const char *lstop);
+static const asn_INTEGER_enum_map_t *INTEGER_map_enum2value(
+ asn_INTEGER_specifics_t *specs, const char *lstart, const char *lstop);
/*
* INTEGER specific human-readable output.
*/
-static ssize_t
-INTEGER__dump(asn_TYPE_descriptor_t *td, const INTEGER_t *st, asn_app_consume_bytes_f *cb, void *app_key, int plainOrXER) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- char scratch[32]; /* Enough for 64-bit integer */
- uint8_t *buf = st->buf;
- uint8_t *buf_end = st->buf + st->size;
- int64_t accum;
- ssize_t wrote = 0;
- char *p;
- int ret;
+static ssize_t INTEGER__dump(asn_TYPE_descriptor_t *td, const INTEGER_t *st,
+ asn_app_consume_bytes_f *cb, void *app_key,
+ int plainOrXER)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ char scratch[32]; /* Enough for 64-bit integer */
+ uint8_t *buf = st->buf;
+ uint8_t *buf_end = st->buf + st->size;
+ int64_t accum;
+ ssize_t wrote = 0;
+ char *p;
+ int ret;
- /*
- * Advance buf pointer until the start of the value's body.
- * This will make us able to process large integers using simple case,
- * when the actual value is small
- * (0x0000000000abcdef would yield a fine 0x00abcdef)
- */
- /* Skip the insignificant leading bytes */
- for(; buf < buf_end-1; buf++) {
- switch(*buf) {
- case 0x00: if((buf[1] & 0x80) == 0) continue; break;
- case 0xff: if((buf[1] & 0x80) != 0) continue; break;
- }
- break;
- }
+ /*
+ * Advance buf pointer until the start of the value's body.
+ * This will make us able to process large integers using simple case,
+ * when the actual value is small
+ * (0x0000000000abcdef would yield a fine 0x00abcdef)
+ */
+ /* Skip the insignificant leading bytes */
+ for (; buf < buf_end - 1; buf++)
+ {
+ switch (*buf)
+ {
+ case 0x00:
+ if ((buf[1] & 0x80) == 0) continue;
+ break;
+ case 0xff:
+ if ((buf[1] & 0x80) != 0) continue;
+ break;
+ }
+ break;
+ }
- /* Simple case: the integer size is small */
- if((size_t)(buf_end - buf) <= sizeof(accum)) {
- const asn_INTEGER_enum_map_t *el;
- size_t scrsize;
- char *scr;
+ /* Simple case: the integer size is small */
+ if ((size_t)(buf_end - buf) <= sizeof(accum))
+ {
+ const asn_INTEGER_enum_map_t *el;
+ size_t scrsize;
+ char *scr;
- if(buf == buf_end) {
- accum = 0LL;
- } else {
- accum = (*buf & 0x80) ? -1LL : 0LL;
- for(; buf < buf_end; buf++)
- accum = (accum * 256) | *buf;
- }
+ if (buf == buf_end)
+ {
+ accum = 0LL;
+ }
+ else
+ {
+ accum = (*buf & 0x80) ? -1LL : 0LL;
+ for (; buf < buf_end; buf++) accum = (accum * 256) | *buf;
+ }
- el = INTEGER_map_value2enum(specs, accum);
- if(el) {
- scrsize = el->enum_len + 32;
- scr = (char *)alloca(scrsize);
- if(plainOrXER == 0)
- ret = snprintf(scr, scrsize,
- "%+"PRId64"(%s)", accum, el->enum_name);
- else
- ret = snprintf(scr, scrsize,
- "<%s/>", el->enum_name);
- } else if(plainOrXER && specs && specs->strict_enumeration) {
- ASN_DEBUG("ASN.1 forbids dealing with "
- "unknown value of ENUMERATED type");
- errno = EPERM;
- return -1;
- } else {
- scrsize = sizeof(scratch);
- scr = scratch;
- ret = snprintf(scr, scrsize,
- (specs && specs->field_unsigned)
- ?"%"PRIu64:"%+"PRId64, accum);
- }
- assert(ret > 0 && (size_t)ret < scrsize);
- return (cb(scr, ret, app_key) < 0) ? -1 : ret;
- } else if(plainOrXER && specs && specs->strict_enumeration) {
- /*
- * Here and earlier, we cannot encode the ENUMERATED values
- * if there is no corresponding identifier.
- */
- ASN_DEBUG("ASN.1 forbids dealing with "
- "unknown value of ENUMERATED type");
- errno = EPERM;
- return -1;
- }
+ el = INTEGER_map_value2enum(specs, accum);
+ if (el)
+ {
+ scrsize = el->enum_len + 32;
+ scr = (char *)alloca(scrsize);
+ if (plainOrXER == 0)
+ ret = snprintf(scr, scrsize, "%+" PRId64 "(%s)", accum,
+ el->enum_name);
+ else
+ ret = snprintf(scr, scrsize, "<%s/>", el->enum_name);
+ }
+ else if (plainOrXER && specs && specs->strict_enumeration)
+ {
+ ASN_DEBUG(
+ "ASN.1 forbids dealing with "
+ "unknown value of ENUMERATED type");
+ errno = EPERM;
+ return -1;
+ }
+ else
+ {
+ scrsize = sizeof(scratch);
+ scr = scratch;
+ ret =
+ snprintf(scr, scrsize,
+ (specs && specs->field_unsigned) ? "%" PRIu64
+ : "%+" PRId64,
+ accum);
+ }
+ assert(ret > 0 && (size_t)ret < scrsize);
+ return (cb(scr, ret, app_key) < 0) ? -1 : ret;
+ }
+ else if (plainOrXER && specs && specs->strict_enumeration)
+ {
+ /*
+ * Here and earlier, we cannot encode the ENUMERATED values
+ * if there is no corresponding identifier.
+ */
+ ASN_DEBUG(
+ "ASN.1 forbids dealing with "
+ "unknown value of ENUMERATED type");
+ errno = EPERM;
+ return -1;
+ }
- /* Output in the long xx:yy:zz... format */
- /* TODO: replace with generic algorithm (Knuth TAOCP Vol 2, 4.3.1) */
- for(p = scratch; buf < buf_end; buf++) {
- static const char *h2c = "0123456789ABCDEF";
- if((p - scratch) >= (ssize_t)(sizeof(scratch) - 4)) {
- /* Flush buffer */
- if(cb(scratch, p - scratch, app_key) < 0)
- return -1;
- wrote += p - scratch;
- p = scratch;
- }
- *p++ = h2c[*buf >> 4];
- *p++ = h2c[*buf & 0x0F];
- *p++ = 0x3a; /* ":" */
- }
- if(p != scratch)
- p--; /* Remove the last ":" */
+ /* Output in the long xx:yy:zz... format */
+ /* TODO: replace with generic algorithm (Knuth TAOCP Vol 2, 4.3.1) */
+ for (p = scratch; buf < buf_end; buf++)
+ {
+ static const char *h2c = "0123456789ABCDEF";
+ if ((p - scratch) >= (ssize_t)(sizeof(scratch) - 4))
+ {
+ /* Flush buffer */
+ if (cb(scratch, p - scratch, app_key) < 0) return -1;
+ wrote += p - scratch;
+ p = scratch;
+ }
+ *p++ = h2c[*buf >> 4];
+ *p++ = h2c[*buf & 0x0F];
+ *p++ = 0x3a; /* ":" */
+ }
+ if (p != scratch) p--; /* Remove the last ":" */
- wrote += p - scratch;
- return (cb(scratch, p - scratch, app_key) < 0) ? -1 : wrote;
+ wrote += p - scratch;
+ return (cb(scratch, p - scratch, app_key) < 0) ? -1 : wrote;
}
/*
* INTEGER specific human-readable output.
*/
-int
-INTEGER_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
- const INTEGER_t *st = (const INTEGER_t *)sptr;
- ssize_t ret;
+int INTEGER_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ const INTEGER_t *st = (const INTEGER_t *)sptr;
+ ssize_t ret;
- (void)td;
- (void)ilevel;
+ (void)td;
+ (void)ilevel;
- if(!st || !st->buf)
- ret = cb("", 8, app_key);
- else
- ret = INTEGER__dump(td, st, cb, app_key, 0);
+ if (!st || !st->buf)
+ ret = cb("", 8, app_key);
+ else
+ ret = INTEGER__dump(td, st, cb, app_key, 0);
- return (ret < 0) ? -1 : 0;
+ return (ret < 0) ? -1 : 0;
}
-struct e2v_key {
- const char *start;
- const char *stop;
- asn_INTEGER_enum_map_t *vemap;
- unsigned int *evmap;
+struct e2v_key
+{
+ const char *start;
+ const char *stop;
+ asn_INTEGER_enum_map_t *vemap;
+ unsigned int *evmap;
};
-static int
-INTEGER__compar_enum2value(const void *kp, const void *am) {
- const struct e2v_key *key = (const struct e2v_key *)kp;
- const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am;
- const char *ptr;
- const char *end;
- const char *name;
+static int INTEGER__compar_enum2value(const void *kp, const void *am)
+{
+ const struct e2v_key *key = (const struct e2v_key *)kp;
+ const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am;
+ const char *ptr;
+ const char *end;
+ const char *name;
- /* Remap the element (sort by different criterion) */
- el = key->vemap + key->evmap[el - key->vemap];
+ /* Remap the element (sort by different criterion) */
+ el = key->vemap + key->evmap[el - key->vemap];
- /* Compare strings */
- for(ptr = key->start, end = key->stop, name = el->enum_name;
- ptr < end; ptr++, name++) {
- if(*ptr != *name)
- return *(const unsigned char *)ptr
- - *(const unsigned char *)name;
- }
- return name[0] ? -1 : 0;
+ /* Compare strings */
+ for (ptr = key->start, end = key->stop, name = el->enum_name; ptr < end;
+ ptr++, name++)
+ {
+ if (*ptr != *name)
+ return *(const unsigned char *)ptr -
+ *(const unsigned char *)name;
+ }
+ return name[0] ? -1 : 0;
}
-static const asn_INTEGER_enum_map_t *
-INTEGER_map_enum2value(asn_INTEGER_specifics_t *specs, const char *lstart, const char *lstop) {
- asn_INTEGER_enum_map_t *el_found;
- int count = specs ? specs->map_count : 0;
- struct e2v_key key;
- const char *lp;
+static const asn_INTEGER_enum_map_t *INTEGER_map_enum2value(
+ asn_INTEGER_specifics_t *specs, const char *lstart, const char *lstop)
+{
+ asn_INTEGER_enum_map_t *el_found;
+ int count = specs ? specs->map_count : 0;
+ struct e2v_key key;
+ const char *lp;
- if(!count) return NULL;
+ if (!count) return NULL;
- /* Guaranteed: assert(lstart < lstop); */
- /* Figure out the tag name */
- for(lstart++, lp = lstart; lp < lstop; lp++) {
- switch(*lp) {
- case 9: case 10: case 11: case 12: case 13: case 32: /* WSP */
- case 0x2f: /* '/' */ case 0x3e: /* '>' */
- break;
- default:
- continue;
- }
- break;
- }
- if(lp == lstop) return NULL; /* No tag found */
- lstop = lp;
+ /* Guaranteed: assert(lstart < lstop); */
+ /* Figure out the tag name */
+ for (lstart++, lp = lstart; lp < lstop; lp++)
+ {
+ switch (*lp)
+ {
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 32: /* WSP */
+ case 0x2f: /* '/' */
+ case 0x3e: /* '>' */
+ break;
+ default:
+ continue;
+ }
+ break;
+ }
+ if (lp == lstop) return NULL; /* No tag found */
+ lstop = lp;
- key.start = lstart;
- key.stop = lstop;
- key.vemap = specs->value2enum;
- key.evmap = specs->enum2value;
- el_found = (asn_INTEGER_enum_map_t *)bsearch(&key,
- specs->value2enum, count, sizeof(specs->value2enum[0]),
- INTEGER__compar_enum2value);
- if(el_found) {
- /* Remap enum2value into value2enum */
- el_found = key.vemap + key.evmap[el_found - key.vemap];
- }
- return el_found;
+ key.start = lstart;
+ key.stop = lstop;
+ key.vemap = specs->value2enum;
+ key.evmap = specs->enum2value;
+ el_found = (asn_INTEGER_enum_map_t *)bsearch(&key, specs->value2enum, count,
+ sizeof(specs->value2enum[0]),
+ INTEGER__compar_enum2value);
+ if (el_found)
+ {
+ /* Remap enum2value into value2enum */
+ el_found = key.vemap + key.evmap[el_found - key.vemap];
+ }
+ return el_found;
}
-static int
-INTEGER__compar_value2enum(const void *kp, const void *am) {
- int64_t a = *(const int64_t *)kp;
- const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am;
- int64_t b = el->nat_value;
- if(a < b) return -1;
- else if(a == b) return 0;
- else return 1;
+static int INTEGER__compar_value2enum(const void *kp, const void *am)
+{
+ int64_t a = *(const int64_t *)kp;
+ const asn_INTEGER_enum_map_t *el = (const asn_INTEGER_enum_map_t *)am;
+ int64_t b = el->nat_value;
+ if (a < b)
+ return -1;
+ else if (a == b)
+ return 0;
+ else
+ return 1;
}
-const asn_INTEGER_enum_map_t *
-INTEGER_map_value2enum(asn_INTEGER_specifics_t *specs, int64_t value) {
- int count = specs ? specs->map_count : 0;
- if(!count) return 0;
- return (asn_INTEGER_enum_map_t *)bsearch(&value, specs->value2enum,
- count, sizeof(specs->value2enum[0]),
- INTEGER__compar_value2enum);
+const asn_INTEGER_enum_map_t *INTEGER_map_value2enum(
+ asn_INTEGER_specifics_t *specs, int64_t value)
+{
+ int count = specs ? specs->map_count : 0;
+ if (!count) return 0;
+ return (asn_INTEGER_enum_map_t *)bsearch(&value, specs->value2enum, count,
+ sizeof(specs->value2enum[0]),
+ INTEGER__compar_value2enum);
}
-static int
-INTEGER_st_prealloc(INTEGER_t *st, int min_size) {
- void *p = MALLOC(min_size + 1);
- if(p) {
- void *b = st->buf;
- st->size = 0;
- st->buf = p;
- FREEMEM(b);
- return 0;
- } else {
- return -1;
- }
+static int INTEGER_st_prealloc(INTEGER_t *st, int min_size)
+{
+ void *p = MALLOC(min_size + 1);
+ if (p)
+ {
+ void *b = st->buf;
+ st->size = 0;
+ st->buf = p;
+ FREEMEM(b);
+ return 0;
+ }
+ else
+ {
+ return -1;
+ }
}
/*
* Decode the chunk of XML text encoding INTEGER.
*/
-static enum xer_pbd_rval
-INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) {
- INTEGER_t *st = (INTEGER_t *)sptr;
- int64_t sign = 1;
- int64_t value;
- const char *lp;
- const char *lstart = (const char *)chunk_buf;
- const char *lstop = lstart + chunk_size;
- enum {
- ST_SKIPSPACE,
- ST_SKIPSPHEX,
- ST_WAITDIGITS,
- ST_DIGITS,
- ST_HEXDIGIT1,
- ST_HEXDIGIT2,
- ST_HEXCOLON,
- ST_EXTRASTUFF
- } state = ST_SKIPSPACE;
+static enum xer_pbd_rval INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td,
+ void *sptr,
+ const void *chunk_buf,
+ size_t chunk_size)
+{
+ INTEGER_t *st = (INTEGER_t *)sptr;
+ int64_t sign = 1;
+ int64_t value;
+ const char *lp;
+ const char *lstart = (const char *)chunk_buf;
+ const char *lstop = lstart + chunk_size;
+ enum
+ {
+ ST_SKIPSPACE,
+ ST_SKIPSPHEX,
+ ST_WAITDIGITS,
+ ST_DIGITS,
+ ST_HEXDIGIT1,
+ ST_HEXDIGIT2,
+ ST_HEXCOLON,
+ ST_EXTRASTUFF
+ } state = ST_SKIPSPACE;
- if(chunk_size)
- ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x",
- (int64_t)chunk_size, *lstart, lstop[-1]);
+ if (chunk_size)
+ ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x", (int64_t)chunk_size, *lstart,
+ lstop[-1]);
- /*
- * We may have received a tag here. It will be processed inline.
- * Use strtoul()-like code and serialize the result.
- */
- for(value = 0, lp = lstart; lp < lstop; lp++) {
- int lv = *lp;
- switch(lv) {
- case 0x09: case 0x0a: case 0x0d: case 0x20:
- switch(state) {
- case ST_SKIPSPACE:
- case ST_SKIPSPHEX:
- continue;
- case ST_HEXCOLON:
- if(xer_is_whitespace(lp, lstop - lp)) {
- lp = lstop - 1;
- continue;
- }
- break;
- default:
- break;
- }
- break;
- case 0x2d: /* '-' */
- if(state == ST_SKIPSPACE) {
- sign = -1;
- state = ST_WAITDIGITS;
- continue;
- }
- break;
- case 0x2b: /* '+' */
- if(state == ST_SKIPSPACE) {
- state = ST_WAITDIGITS;
- continue;
- }
- break;
- case 0x30: case 0x31: case 0x32: case 0x33: case 0x34:
- case 0x35: case 0x36: case 0x37: case 0x38: case 0x39:
- switch(state) {
- case ST_DIGITS: break;
- case ST_SKIPSPHEX: /* Fall through */
- case ST_HEXDIGIT1:
- value = (lv - 0x30) << 4;
- state = ST_HEXDIGIT2;
- continue;
- case ST_HEXDIGIT2:
- value += (lv - 0x30);
- state = ST_HEXCOLON;
- st->buf[st->size++] = (uint8_t)value;
- continue;
- case ST_HEXCOLON:
- return XPBD_BROKEN_ENCODING;
- default:
- state = ST_DIGITS;
- break;
- }
+ /*
+ * We may have received a tag here. It will be processed inline.
+ * Use strtoul()-like code and serialize the result.
+ */
+ for (value = 0, lp = lstart; lp < lstop; lp++)
+ {
+ int lv = *lp;
+ switch (lv)
+ {
+ case 0x09:
+ case 0x0a:
+ case 0x0d:
+ case 0x20:
+ switch (state)
+ {
+ case ST_SKIPSPACE:
+ case ST_SKIPSPHEX:
+ continue;
+ case ST_HEXCOLON:
+ if (xer_is_whitespace(lp, lstop - lp))
+ {
+ lp = lstop - 1;
+ continue;
+ }
+ break;
+ default:
+ break;
+ }
+ break;
+ case 0x2d: /* '-' */
+ if (state == ST_SKIPSPACE)
+ {
+ sign = -1;
+ state = ST_WAITDIGITS;
+ continue;
+ }
+ break;
+ case 0x2b: /* '+' */
+ if (state == ST_SKIPSPACE)
+ {
+ state = ST_WAITDIGITS;
+ continue;
+ }
+ break;
+ case 0x30:
+ case 0x31:
+ case 0x32:
+ case 0x33:
+ case 0x34:
+ case 0x35:
+ case 0x36:
+ case 0x37:
+ case 0x38:
+ case 0x39:
+ switch (state)
+ {
+ case ST_DIGITS:
+ break;
+ case ST_SKIPSPHEX: /* Fall through */
+ case ST_HEXDIGIT1:
+ value = (lv - 0x30) << 4;
+ state = ST_HEXDIGIT2;
+ continue;
+ case ST_HEXDIGIT2:
+ value += (lv - 0x30);
+ state = ST_HEXCOLON;
+ st->buf[st->size++] = (uint8_t)value;
+ continue;
+ case ST_HEXCOLON:
+ return XPBD_BROKEN_ENCODING;
+ default:
+ state = ST_DIGITS;
+ break;
+ }
- {
- int64_t new_value = value * 10;
+ {
+ int64_t new_value = value * 10;
- if(new_value / 10 != value)
- /* Overflow */
- return XPBD_DECODER_LIMIT;
+ if (new_value / 10 != value) /* Overflow */
+ return XPBD_DECODER_LIMIT;
- value = new_value + (lv - 0x30);
- /* Check for two's complement overflow */
- if(value < 0) {
- /* Check whether it is a LONG_MIN */
- if(sign == -1
- && (uint64_t)value
- == ~((uint64_t)-1 >> 1)) {
- sign = 1;
- } else {
- /* Overflow */
- return XPBD_DECODER_LIMIT;
- }
- }
- }
- continue;
- case 0x3c: /* '<' */
- if(state == ST_SKIPSPACE) {
- const asn_INTEGER_enum_map_t *el;
- el = INTEGER_map_enum2value(
- (asn_INTEGER_specifics_t *)
- td->specifics, lstart, lstop);
- if(el) {
- ASN_DEBUG("Found \"%s\" => %ld",
- el->enum_name, el->nat_value);
- state = ST_DIGITS;
- value = el->nat_value;
- lp = lstop - 1;
- continue;
- }
- ASN_DEBUG("Unknown identifier for INTEGER");
- }
- return XPBD_BROKEN_ENCODING;
- case 0x3a: /* ':' */
- if(state == ST_HEXCOLON) {
- /* This colon is expected */
- state = ST_HEXDIGIT1;
- continue;
- } else if(state == ST_DIGITS) {
- /* The colon here means that we have
- * decoded the first two hexadecimal
- * places as a decimal value.
- * Switch decoding mode. */
- ASN_DEBUG("INTEGER re-evaluate as hex form");
- if(INTEGER_st_prealloc(st, (chunk_size/3) + 1))
- return XPBD_SYSTEM_FAILURE;
- state = ST_SKIPSPHEX;
- lp = lstart - 1;
- continue;
- } else {
- ASN_DEBUG("state %d at %d", state, lp - lstart);
- break;
- }
- /* [A-Fa-f] */
- case 0x41:case 0x42:case 0x43:case 0x44:case 0x45:case 0x46:
- case 0x61:case 0x62:case 0x63:case 0x64:case 0x65:case 0x66:
- switch(state) {
- case ST_SKIPSPHEX:
- case ST_SKIPSPACE: /* Fall through */
- case ST_HEXDIGIT1:
- value = lv - ((lv < 0x61) ? 0x41 : 0x61);
- value += 10;
- value <<= 4;
- state = ST_HEXDIGIT2;
- continue;
- case ST_HEXDIGIT2:
- value += lv - ((lv < 0x61) ? 0x41 : 0x61);
- value += 10;
- st->buf[st->size++] = (uint8_t)value;
- state = ST_HEXCOLON;
- continue;
- case ST_DIGITS:
- ASN_DEBUG("INTEGER re-evaluate as hex form");
- if(INTEGER_st_prealloc(st, (chunk_size/3) + 1))
- return XPBD_SYSTEM_FAILURE;
- state = ST_SKIPSPHEX;
- lp = lstart - 1;
- continue;
- default:
- break;
- }
- break;
- }
+ value = new_value + (lv - 0x30);
+ /* Check for two's complement overflow */
+ if (value < 0)
+ {
+ /* Check whether it is a LONG_MIN */
+ if (sign == -1 &&
+ (uint64_t)value == ~((uint64_t)-1 >> 1))
+ {
+ sign = 1;
+ }
+ else
+ {
+ /* Overflow */
+ return XPBD_DECODER_LIMIT;
+ }
+ }
+ }
+ continue;
+ case 0x3c: /* '<' */
+ if (state == ST_SKIPSPACE)
+ {
+ const asn_INTEGER_enum_map_t *el;
+ el = INTEGER_map_enum2value(
+ (asn_INTEGER_specifics_t *)td->specifics,
+ lstart, lstop);
+ if (el)
+ {
+ ASN_DEBUG("Found \"%s\" => %ld",
+ el->enum_name, el->nat_value);
+ state = ST_DIGITS;
+ value = el->nat_value;
+ lp = lstop - 1;
+ continue;
+ }
+ ASN_DEBUG("Unknown identifier for INTEGER");
+ }
+ return XPBD_BROKEN_ENCODING;
+ case 0x3a: /* ':' */
+ if (state == ST_HEXCOLON)
+ {
+ /* This colon is expected */
+ state = ST_HEXDIGIT1;
+ continue;
+ }
+ else if (state == ST_DIGITS)
+ {
+ /* The colon here means that we have
+ * decoded the first two hexadecimal
+ * places as a decimal value.
+ * Switch decoding mode. */
+ ASN_DEBUG("INTEGER re-evaluate as hex form");
+ if (INTEGER_st_prealloc(st,
+ (chunk_size / 3) + 1))
+ return XPBD_SYSTEM_FAILURE;
+ state = ST_SKIPSPHEX;
+ lp = lstart - 1;
+ continue;
+ }
+ else
+ {
+ ASN_DEBUG("state %d at %d", state, lp - lstart);
+ break;
+ }
+ /* [A-Fa-f] */
+ case 0x41:
+ case 0x42:
+ case 0x43:
+ case 0x44:
+ case 0x45:
+ case 0x46:
+ case 0x61:
+ case 0x62:
+ case 0x63:
+ case 0x64:
+ case 0x65:
+ case 0x66:
+ switch (state)
+ {
+ case ST_SKIPSPHEX:
+ case ST_SKIPSPACE: /* Fall through */
+ case ST_HEXDIGIT1:
+ value = lv - ((lv < 0x61) ? 0x41 : 0x61);
+ value += 10;
+ value <<= 4;
+ state = ST_HEXDIGIT2;
+ continue;
+ case ST_HEXDIGIT2:
+ value += lv - ((lv < 0x61) ? 0x41 : 0x61);
+ value += 10;
+ st->buf[st->size++] = (uint8_t)value;
+ state = ST_HEXCOLON;
+ continue;
+ case ST_DIGITS:
+ ASN_DEBUG(
+ "INTEGER re-evaluate as hex form");
+ if (INTEGER_st_prealloc(
+ st, (chunk_size / 3) + 1))
+ return XPBD_SYSTEM_FAILURE;
+ state = ST_SKIPSPHEX;
+ lp = lstart - 1;
+ continue;
+ default:
+ break;
+ }
+ break;
+ }
- /* Found extra non-numeric stuff */
- ASN_DEBUG("Found non-numeric 0x%2x at %d",
- lv, lp - lstart);
- state = ST_EXTRASTUFF;
- break;
- }
+ /* Found extra non-numeric stuff */
+ ASN_DEBUG("Found non-numeric 0x%2x at %d", lv, lp - lstart);
+ state = ST_EXTRASTUFF;
+ break;
+ }
- switch(state) {
- case ST_DIGITS:
- /* Everything is cool */
- break;
- case ST_HEXCOLON:
- st->buf[st->size] = 0; /* Just in case termination */
- return XPBD_BODY_CONSUMED;
- case ST_HEXDIGIT1:
- case ST_HEXDIGIT2:
- case ST_SKIPSPHEX:
- return XPBD_BROKEN_ENCODING;
- default:
- if(xer_is_whitespace(lp, lstop - lp)) {
- if(state != ST_EXTRASTUFF)
- return XPBD_NOT_BODY_IGNORE;
- break;
- } else {
- ASN_DEBUG("INTEGER: No useful digits (state %d)",
- state);
- return XPBD_BROKEN_ENCODING; /* No digits */
- }
- break;
- }
+ switch (state)
+ {
+ case ST_DIGITS:
+ /* Everything is cool */
+ break;
+ case ST_HEXCOLON:
+ st->buf[st->size] = 0; /* Just in case termination */
+ return XPBD_BODY_CONSUMED;
+ case ST_HEXDIGIT1:
+ case ST_HEXDIGIT2:
+ case ST_SKIPSPHEX:
+ return XPBD_BROKEN_ENCODING;
+ default:
+ if (xer_is_whitespace(lp, lstop - lp))
+ {
+ if (state != ST_EXTRASTUFF) return XPBD_NOT_BODY_IGNORE;
+ break;
+ }
+ else
+ {
+ ASN_DEBUG("INTEGER: No useful digits (state %d)",
+ state);
+ return XPBD_BROKEN_ENCODING; /* No digits */
+ }
+ break;
+ }
- value *= sign; /* Change sign, if needed */
+ value *= sign; /* Change sign, if needed */
- if(asn_long2INTEGER(st, value))
- return XPBD_SYSTEM_FAILURE;
+ if (asn_long2INTEGER(st, value)) return XPBD_SYSTEM_FAILURE;
- return XPBD_BODY_CONSUMED;
+ return XPBD_BODY_CONSUMED;
}
-asn_dec_rval_t
-INTEGER_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) {
-
- return xer_decode_primitive(opt_codec_ctx, td,
- sptr, sizeof(INTEGER_t), opt_mname,
- buf_ptr, size, INTEGER__xer_body_decode);
+asn_dec_rval_t INTEGER_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)
+{
+ return xer_decode_primitive(opt_codec_ctx, td, sptr, sizeof(INTEGER_t),
+ opt_mname, buf_ptr, size,
+ INTEGER__xer_body_decode);
}
-asn_enc_rval_t
-INTEGER_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) {
- const INTEGER_t *st = (const INTEGER_t *)sptr;
- asn_enc_rval_t er;
+asn_enc_rval_t INTEGER_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)
+{
+ const INTEGER_t *st = (const INTEGER_t *)sptr;
+ asn_enc_rval_t er;
- (void)ilevel;
- (void)flags;
+ (void)ilevel;
+ (void)flags;
- if(!st || !st->buf)
- _ASN_ENCODE_FAILED;
+ if (!st || !st->buf) _ASN_ENCODE_FAILED;
- er.encoded = INTEGER__dump(td, st, cb, app_key, 1);
- if(er.encoded < 0) _ASN_ENCODE_FAILED;
+ er.encoded = INTEGER__dump(td, st, cb, app_key, 1);
+ if (er.encoded < 0) _ASN_ENCODE_FAILED;
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
}
-asn_dec_rval_t
-INTEGER_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_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- asn_dec_rval_t rval = { RC_OK, 0 };
- INTEGER_t *st = (INTEGER_t *)*sptr;
- asn_per_constraint_t *ct;
- int repeat;
+asn_dec_rval_t INTEGER_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_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_dec_rval_t rval = {RC_OK, 0};
+ INTEGER_t *st = (INTEGER_t *)*sptr;
+ asn_per_constraint_t *ct;
+ int repeat;
- (void)opt_codec_ctx;
+ (void)opt_codec_ctx;
- if(!st) {
- st = (INTEGER_t *)(*sptr = CALLOC(1, sizeof(*st)));
- if(!st) _ASN_DECODE_FAILED;
- }
+ if (!st)
+ {
+ st = (INTEGER_t *)(*sptr = CALLOC(1, sizeof(*st)));
+ if (!st) _ASN_DECODE_FAILED;
+ }
- if(!constraints) constraints = td->per_constraints;
- ct = constraints ? &constraints->value : 0;
+ if (!constraints) constraints = td->per_constraints;
+ ct = constraints ? &constraints->value : 0;
- if(ct && ct->flags & APC_EXTENSIBLE) {
- int inext = per_get_few_bits(pd, 1);
- if(inext < 0) _ASN_DECODE_STARVED;
- if(inext) ct = 0;
- }
+ if (ct && ct->flags & APC_EXTENSIBLE)
+ {
+ int inext = per_get_few_bits(pd, 1);
+ if (inext < 0) _ASN_DECODE_STARVED;
+ if (inext) ct = 0;
+ }
- FREEMEM(st->buf);
- st->buf = 0;
- st->size = 0;
- if(ct) {
- if(ct->flags & APC_SEMI_CONSTRAINED) {
- st->buf = (uint8_t *)CALLOC(1, 2);
- if(!st->buf) _ASN_DECODE_FAILED;
- st->size = 1;
- } else if(ct->flags & APC_CONSTRAINED && ct->range_bits >= 0) {
- size_t size = (ct->range_bits + 7) >> 3;
- st->buf = (uint8_t *)MALLOC(1 + size + 1);
- if(!st->buf) _ASN_DECODE_FAILED;
- st->size = size;
- }
- }
+ FREEMEM(st->buf);
+ st->buf = 0;
+ st->size = 0;
+ if (ct)
+ {
+ if (ct->flags & APC_SEMI_CONSTRAINED)
+ {
+ st->buf = (uint8_t *)CALLOC(1, 2);
+ if (!st->buf) _ASN_DECODE_FAILED;
+ st->size = 1;
+ }
+ else if (ct->flags & APC_CONSTRAINED && ct->range_bits >= 0)
+ {
+ size_t size = (ct->range_bits + 7) >> 3;
+ st->buf = (uint8_t *)MALLOC(1 + size + 1);
+ if (!st->buf) _ASN_DECODE_FAILED;
+ st->size = size;
+ }
+ }
- /* X.691, #12.2.2 */
- if(ct && ct->flags != APC_UNCONSTRAINED) {
- /* #10.5.6 */
- ASN_DEBUG("Integer with range %d bits", ct->range_bits);
- if(ct->range_bits >= 0) {
- int64_t value;
- if(ct->range_bits == 32) {
- int64_t lhalf;
- value = per_get_few_bits(pd, 16);
- if(value < 0) _ASN_DECODE_STARVED;
- lhalf = per_get_few_bits(pd, 16);
- if(lhalf < 0) _ASN_DECODE_STARVED;
- value = (value << 16) | lhalf;
- } else {
- value = per_get_few_bits(pd, ct->range_bits);
- if(value < 0) _ASN_DECODE_STARVED;
- }
- ASN_DEBUG("Got value %ld + low %ld",
- value, ct->lower_bound);
- value += ct->lower_bound;
- if((specs && specs->field_unsigned)
- ? asn_ulong2INTEGER(st, value)
- : asn_long2INTEGER(st, value))
- _ASN_DECODE_FAILED;
- return rval;
- }
- } else {
- ASN_DEBUG("Decoding unconstrained integer %s", td->name);
- }
+ /* X.691, #12.2.2 */
+ if (ct && ct->flags != APC_UNCONSTRAINED)
+ {
+ /* #10.5.6 */
+ ASN_DEBUG("Integer with range %d bits", ct->range_bits);
+ if (ct->range_bits >= 0)
+ {
+ int64_t value;
+ if (ct->range_bits == 32)
+ {
+ int64_t lhalf;
+ value = per_get_few_bits(pd, 16);
+ if (value < 0) _ASN_DECODE_STARVED;
+ lhalf = per_get_few_bits(pd, 16);
+ if (lhalf < 0) _ASN_DECODE_STARVED;
+ value = (value << 16) | lhalf;
+ }
+ else
+ {
+ value = per_get_few_bits(pd, ct->range_bits);
+ if (value < 0) _ASN_DECODE_STARVED;
+ }
+ ASN_DEBUG("Got value %ld + low %ld", value,
+ ct->lower_bound);
+ value += ct->lower_bound;
+ if ((specs && specs->field_unsigned)
+ ? asn_ulong2INTEGER(st, value)
+ : asn_long2INTEGER(st, value))
+ _ASN_DECODE_FAILED;
+ return rval;
+ }
+ }
+ else
+ {
+ ASN_DEBUG("Decoding unconstrained integer %s", td->name);
+ }
- /* X.691, #12.2.3, #12.2.4 */
- do {
- ssize_t len;
- void *p;
- int ret;
+ /* X.691, #12.2.3, #12.2.4 */
+ do
+ {
+ ssize_t len;
+ void *p;
+ int ret;
- /* Get the PER length */
- len = uper_get_length(pd, -1, &repeat);
- if(len < 0) _ASN_DECODE_STARVED;
+ /* Get the PER length */
+ len = uper_get_length(pd, -1, &repeat);
+ if (len < 0) _ASN_DECODE_STARVED;
- p = REALLOC(st->buf, st->size + len + 1);
- if(!p) _ASN_DECODE_FAILED;
- st->buf = (uint8_t *)p;
+ p = REALLOC(st->buf, st->size + len + 1);
+ if (!p) _ASN_DECODE_FAILED;
+ st->buf = (uint8_t *)p;
- ret = per_get_many_bits(pd, &st->buf[st->size], 0, 8 * len);
- if(ret < 0) _ASN_DECODE_STARVED;
- st->size += len;
- } while(repeat);
- st->buf[st->size] = 0; /* JIC */
+ ret = per_get_many_bits(pd, &st->buf[st->size], 0, 8 * len);
+ if (ret < 0) _ASN_DECODE_STARVED;
+ st->size += len;
+ }
+ while (repeat);
+ st->buf[st->size] = 0; /* JIC */
- /* #12.2.3 */
- if(ct && ct->lower_bound) {
- /*
- * TODO: replace by in-place arithmetics.
- */
- int64_t value;
- if(asn_INTEGER2long(st, &value))
- _ASN_DECODE_FAILED;
- if(asn_long2INTEGER(st, value + ct->lower_bound))
- _ASN_DECODE_FAILED;
- }
+ /* #12.2.3 */
+ if (ct && ct->lower_bound)
+ {
+ /*
+ * TODO: replace by in-place arithmetics.
+ */
+ int64_t value;
+ if (asn_INTEGER2long(st, &value)) _ASN_DECODE_FAILED;
+ if (asn_long2INTEGER(st, value + ct->lower_bound))
+ _ASN_DECODE_FAILED;
+ }
- return rval;
+ return rval;
}
-asn_enc_rval_t
-INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- asn_enc_rval_t er;
- INTEGER_t *st = (INTEGER_t *)sptr;
- const uint8_t *buf;
- const uint8_t *end;
- asn_per_constraint_t *ct;
- int64_t value = 0;
+asn_enc_rval_t INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *sptr, asn_per_outp_t *po)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_enc_rval_t er;
+ INTEGER_t *st = (INTEGER_t *)sptr;
+ const uint8_t *buf;
+ const uint8_t *end;
+ asn_per_constraint_t *ct;
+ int64_t value = 0;
- if(!st || st->size == 0) _ASN_ENCODE_FAILED;
+ if (!st || st->size == 0) _ASN_ENCODE_FAILED;
- if(!constraints) constraints = td->per_constraints;
- ct = constraints ? &constraints->value : 0;
+ if (!constraints) constraints = td->per_constraints;
+ ct = constraints ? &constraints->value : 0;
- er.encoded = 0;
+ er.encoded = 0;
- if(ct) {
- int inext = 0;
- if(specs && specs->field_unsigned) {
- uint64_t uval;
- if(asn_INTEGER2ulong(st, &uval))
- _ASN_ENCODE_FAILED;
- /* Check proper range */
- if(ct->flags & APC_SEMI_CONSTRAINED) {
- if(uval < (uint64_t)ct->lower_bound)
- inext = 1;
- } else if(ct->range_bits >= 0) {
- if(uval < (uint64_t)ct->lower_bound
- || uval > (uint64_t)ct->upper_bound)
- inext = 1;
- }
- ASN_DEBUG("Value %lu (%02x/%d) lb %lu ub %lu %s",
- uval, st->buf[0], st->size,
- ct->lower_bound, ct->upper_bound,
- inext ? "ext" : "fix");
- value = uval;
- } else {
- if(asn_INTEGER2long(st, &value))
- _ASN_ENCODE_FAILED;
- /* Check proper range */
- if(ct->flags & APC_SEMI_CONSTRAINED) {
- if(value < ct->lower_bound)
- inext = 1;
- } else if(ct->range_bits >= 0) {
- if(value < ct->lower_bound
- || value > ct->upper_bound)
- inext = 1;
- }
- ASN_DEBUG("Value %ld (%02x/%d) lb %ld ub %ld %s",
- value, st->buf[0], st->size,
- ct->lower_bound, ct->upper_bound,
- inext ? "ext" : "fix");
- }
- if(ct->flags & APC_EXTENSIBLE) {
- if(per_put_few_bits(po, inext, 1))
- _ASN_ENCODE_FAILED;
- if(inext) ct = 0;
- } else if(inext) {
- _ASN_ENCODE_FAILED;
- }
- }
+ if (ct)
+ {
+ int inext = 0;
+ if (specs && specs->field_unsigned)
+ {
+ uint64_t uval;
+ if (asn_INTEGER2ulong(st, &uval)) _ASN_ENCODE_FAILED;
+ /* Check proper range */
+ if (ct->flags & APC_SEMI_CONSTRAINED)
+ {
+ if (uval < (uint64_t)ct->lower_bound) inext = 1;
+ }
+ else if (ct->range_bits >= 0)
+ {
+ if (uval < (uint64_t)ct->lower_bound ||
+ uval > (uint64_t)ct->upper_bound)
+ inext = 1;
+ }
+ ASN_DEBUG("Value %lu (%02x/%d) lb %lu ub %lu %s", uval,
+ st->buf[0], st->size, ct->lower_bound,
+ ct->upper_bound, inext ? "ext" : "fix");
+ value = uval;
+ }
+ else
+ {
+ if (asn_INTEGER2long(st, &value)) _ASN_ENCODE_FAILED;
+ /* Check proper range */
+ if (ct->flags & APC_SEMI_CONSTRAINED)
+ {
+ if (value < ct->lower_bound) inext = 1;
+ }
+ else if (ct->range_bits >= 0)
+ {
+ if (value < ct->lower_bound ||
+ value > ct->upper_bound)
+ inext = 1;
+ }
+ ASN_DEBUG("Value %ld (%02x/%d) lb %ld ub %ld %s", value,
+ st->buf[0], st->size, ct->lower_bound,
+ ct->upper_bound, inext ? "ext" : "fix");
+ }
+ if (ct->flags & APC_EXTENSIBLE)
+ {
+ if (per_put_few_bits(po, inext, 1)) _ASN_ENCODE_FAILED;
+ if (inext) ct = 0;
+ }
+ else if (inext)
+ {
+ _ASN_ENCODE_FAILED;
+ }
+ }
+ /* X.691, #12.2.2 */
+ if (ct && ct->range_bits >= 0)
+ {
+ /* #10.5.6 */
+ ASN_DEBUG("Encoding integer with range %d bits", ct->range_bits);
+ if (ct->range_bits == 32)
+ {
+ /* TODO: extend to >32 bits */
+ int64_t v = value - ct->lower_bound;
+ if (per_put_few_bits(po, v >> 1, 31) ||
+ per_put_few_bits(po, v, 1))
+ _ASN_ENCODE_FAILED;
+ }
+ else
+ {
+ if (per_put_few_bits(po, value - ct->lower_bound,
+ ct->range_bits))
+ _ASN_ENCODE_FAILED;
+ }
+ _ASN_ENCODED_OK(er);
+ }
- /* X.691, #12.2.2 */
- if(ct && ct->range_bits >= 0) {
- /* #10.5.6 */
- ASN_DEBUG("Encoding integer with range %d bits",
- ct->range_bits);
- if(ct->range_bits == 32) {
- /* TODO: extend to >32 bits */
- int64_t v = value - ct->lower_bound;
- if(per_put_few_bits(po, v >> 1, 31)
- || per_put_few_bits(po, v, 1))
- _ASN_ENCODE_FAILED;
- } else {
- if(per_put_few_bits(po, value - ct->lower_bound,
- ct->range_bits))
- _ASN_ENCODE_FAILED;
- }
- _ASN_ENCODED_OK(er);
- }
+ if (ct && ct->lower_bound)
+ {
+ ASN_DEBUG("Adjust lower bound to %ld", ct->lower_bound);
+ /* TODO: adjust lower bound */
+ _ASN_ENCODE_FAILED;
+ }
- if(ct && ct->lower_bound) {
- ASN_DEBUG("Adjust lower bound to %ld", ct->lower_bound);
- /* TODO: adjust lower bound */
- _ASN_ENCODE_FAILED;
- }
+ for (buf = st->buf, end = st->buf + st->size; buf < end;)
+ {
+ ssize_t mayEncode = uper_put_length(po, end - buf);
+ if (mayEncode < 0) _ASN_ENCODE_FAILED;
+ if (per_put_many_bits(po, buf, 8 * mayEncode)) _ASN_ENCODE_FAILED;
+ buf += mayEncode;
+ }
- for(buf = st->buf, end = st->buf + st->size; buf < end;) {
- ssize_t mayEncode = uper_put_length(po, end - buf);
- if(mayEncode < 0)
- _ASN_ENCODE_FAILED;
- if(per_put_many_bits(po, buf, 8 * mayEncode))
- _ASN_ENCODE_FAILED;
- buf += mayEncode;
- }
-
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
}
-int
-asn_INTEGER2long(const INTEGER_t *iptr, int64_t *lptr) {
- uint8_t *b;
- uint8_t *end;
- size_t size;
- int64_t l;
+int asn_INTEGER2long(const INTEGER_t *iptr, int64_t *lptr)
+{
+ uint8_t *b;
+ uint8_t *end;
+ size_t size;
+ int64_t l;
- /* Sanity checking */
- if(!iptr || !iptr->buf || !lptr) {
- errno = EINVAL;
- return -1;
- }
+ /* Sanity checking */
+ if (!iptr || !iptr->buf || !lptr)
+ {
+ errno = EINVAL;
+ return -1;
+ }
- /* Cache the begin/end of the buffer */
- b = iptr->buf; /* Start of the INTEGER buffer */
- size = iptr->size;
- end = b + size; /* Where to stop */
+ /* Cache the begin/end of the buffer */
+ b = iptr->buf; /* Start of the INTEGER buffer */
+ size = iptr->size;
+ end = b + size; /* Where to stop */
- if(size > sizeof(int64_t)) {
- uint8_t *end1 = end - 1;
- /*
- * Slightly more advanced processing,
- * able to >sizeof(long) bytes,
- * when the actual value is small
- * (0x0000000000abcdef would yield a fine 0x00abcdef)
- */
- /* Skip out the insignificant leading bytes */
- for(; b < end1; b++) {
- switch(*b) {
- case 0x00: if((b[1] & 0x80) == 0) continue; break;
- case 0xff: if((b[1] & 0x80) != 0) continue; break;
- }
- break;
- }
+ if (size > sizeof(int64_t))
+ {
+ uint8_t *end1 = end - 1;
+ /*
+ * Slightly more advanced processing,
+ * able to >sizeof(long) bytes,
+ * when the actual value is small
+ * (0x0000000000abcdef would yield a fine 0x00abcdef)
+ */
+ /* Skip out the insignificant leading bytes */
+ for (; b < end1; b++)
+ {
+ switch (*b)
+ {
+ case 0x00:
+ if ((b[1] & 0x80) == 0) continue;
+ break;
+ case 0xff:
+ if ((b[1] & 0x80) != 0) continue;
+ break;
+ }
+ break;
+ }
- size = end - b;
- if(size > sizeof(int64_t)) {
- /* Still cannot fit the long */
- errno = ERANGE;
- return -1;
- }
- }
+ size = end - b;
+ if (size > sizeof(int64_t))
+ {
+ /* Still cannot fit the long */
+ errno = ERANGE;
+ return -1;
+ }
+ }
- /* Shortcut processing of a corner case */
- if(end == b) {
- *lptr = 0;
- return 0;
- }
+ /* Shortcut processing of a corner case */
+ if (end == b)
+ {
+ *lptr = 0;
+ return 0;
+ }
- /* Perform the sign initialization */
- /* Actually l = -(*b >> 7); gains nothing, yet unreadable! */
- if((*b >> 7)) l = -1; else l = 0;
+ /* Perform the sign initialization */
+ /* Actually l = -(*b >> 7); gains nothing, yet unreadable! */
+ if ((*b >> 7))
+ l = -1;
+ else
+ l = 0;
- /* Conversion engine */
- for(; b < end; b++)
- l = (l * 256) | *b;
+ /* Conversion engine */
+ for (; b < end; b++) l = (l * 256) | *b;
- *lptr = l;
- return 0;
+ *lptr = l;
+ return 0;
}
-int
-asn_INTEGER2ulong(const INTEGER_t *iptr, uint64_t *lptr) {
- uint8_t *b;
- uint8_t *end;
- uint64_t l;
- size_t size;
+int asn_INTEGER2ulong(const INTEGER_t *iptr, uint64_t *lptr)
+{
+ uint8_t *b;
+ uint8_t *end;
+ uint64_t l;
+ size_t size;
- if(!iptr || !iptr->buf || !lptr) {
- errno = EINVAL;
- return -1;
- }
+ if (!iptr || !iptr->buf || !lptr)
+ {
+ errno = EINVAL;
+ return -1;
+ }
- b = iptr->buf;
- size = iptr->size;
- end = b + size;
+ b = iptr->buf;
+ size = iptr->size;
+ end = b + size;
- /* If all extra leading bytes are zeroes, ignore them */
- for(; size > sizeof(uint64_t); b++, size--) {
- if(*b) {
- /* Value won't fit uint64_t */
- errno = ERANGE;
- return -1;
- }
- }
+ /* If all extra leading bytes are zeroes, ignore them */
+ for (; size > sizeof(uint64_t); b++, size--)
+ {
+ if (*b)
+ {
+ /* Value won't fit uint64_t */
+ errno = ERANGE;
+ return -1;
+ }
+ }
- /* Conversion engine */
- for(l = 0; b < end; b++)
- l = (l << 8) | *b;
+ /* Conversion engine */
+ for (l = 0; b < end; b++) l = (l << 8) | *b;
- *lptr = l;
- return 0;
+ *lptr = l;
+ return 0;
}
-int
-asn_ulong2INTEGER(INTEGER_t *st, uint64_t value) {
- uint8_t *buf;
- uint8_t *end;
- uint8_t *b;
- int shr;
+int asn_ulong2INTEGER(INTEGER_t *st, uint64_t value)
+{
+ uint8_t *buf;
+ uint8_t *end;
+ uint8_t *b;
+ int shr;
- if(value <= LONG_MAX)
- return asn_long2INTEGER(st, value);
+ if (value <= LONG_MAX) return asn_long2INTEGER(st, value);
- buf = (uint8_t *)MALLOC(1 + sizeof(value));
- if(!buf) return -1;
+ buf = (uint8_t *)MALLOC(1 + sizeof(value));
+ if (!buf) return -1;
- end = buf + (sizeof(value) + 1);
- buf[0] = 0;
- for(b = buf + 1, shr = (sizeof(int64_t)-1)*8; b < end; shr -= 8, b++)
- *b = (uint8_t)(value >> shr);
+ end = buf + (sizeof(value) + 1);
+ buf[0] = 0;
+ for (b = buf + 1, shr = (sizeof(int64_t) - 1) * 8; b < end; shr -= 8, b++)
+ *b = (uint8_t)(value >> shr);
- if(st->buf) FREEMEM(st->buf);
- st->buf = buf;
- st->size = 1 + sizeof(value);
+ if (st->buf) FREEMEM(st->buf);
+ st->buf = buf;
+ st->size = 1 + sizeof(value);
- return 0;
+ return 0;
}
-int
-asn_long2INTEGER(INTEGER_t *st, int64_t value) {
- uint8_t *buf;
- uint8_t *bp;
- uint8_t *p;
- uint8_t *pstart;
- uint8_t *pend1;
- int littleEndian = 1; /* Run-time detection */
- int add;
+int asn_long2INTEGER(INTEGER_t *st, int64_t value)
+{
+ uint8_t *buf;
+ uint8_t *bp;
+ uint8_t *p;
+ uint8_t *pstart;
+ uint8_t *pend1;
+ int littleEndian = 1; /* Run-time detection */
+ int add;
- if(!st) {
- errno = EINVAL;
- return -1;
- }
+ if (!st)
+ {
+ errno = EINVAL;
+ return -1;
+ }
- buf = (uint8_t *)MALLOC(8);
- if(!buf) return -1;
+ buf = (uint8_t *)MALLOC(8);
+ if (!buf) return -1;
- if(*(char *)&littleEndian) {
- pstart = (uint8_t *)&value + sizeof(value) - 1;
- pend1 = (uint8_t *)&value;
- add = -1;
- } else {
- pstart = (uint8_t *)&value;
- pend1 = pstart + sizeof(value) - 1;
- add = 1;
- }
+ if (*(char *)&littleEndian)
+ {
+ pstart = (uint8_t *)&value + sizeof(value) - 1;
+ pend1 = (uint8_t *)&value;
+ add = -1;
+ }
+ else
+ {
+ pstart = (uint8_t *)&value;
+ pend1 = pstart + sizeof(value) - 1;
+ add = 1;
+ }
- /*
- * If the contents octet consists of more than one octet,
- * then bits of the first octet and bit 8 of the second octet:
- * a) shall not all be ones; and
- * b) shall not all be zero.
- */
- for(p = pstart; p != pend1; p += add) {
- switch(*p) {
- case 0x00: if((*(p+add) & 0x80) == 0)
- continue;
- break;
- case 0xff: if((*(p+add) & 0x80))
- continue;
- break;
- }
- break;
- }
- /* Copy the integer body */
- for(pstart = p, bp = buf, pend1 += add; p != pend1; p += add)
- *bp++ = *p;
+ /*
+ * If the contents octet consists of more than one octet,
+ * then bits of the first octet and bit 8 of the second octet:
+ * a) shall not all be ones; and
+ * b) shall not all be zero.
+ */
+ for (p = pstart; p != pend1; p += add)
+ {
+ switch (*p)
+ {
+ case 0x00:
+ if ((*(p + add) & 0x80) == 0) continue;
+ break;
+ case 0xff:
+ if ((*(p + add) & 0x80)) continue;
+ break;
+ }
+ break;
+ }
+ /* Copy the integer body */
+ for (pstart = p, bp = buf, pend1 += add; p != pend1; p += add) *bp++ = *p;
- if(st->buf) FREEMEM(st->buf);
- st->buf = buf;
- st->size = bp - buf;
+ if (st->buf) FREEMEM(st->buf);
+ st->buf = buf;
+ st->size = bp - buf;
- return 0;
+ return 0;
}
diff --git a/src/core/libs/supl/asn-rrlp/INTEGER.h b/src/core/libs/supl/asn-rrlp/INTEGER.h
index 255e67eb7..e1802bd64 100644
--- a/src/core/libs/supl/asn-rrlp/INTEGER.h
+++ b/src/core/libs/supl/asn-rrlp/INTEGER.h
@@ -21,7 +21,7 @@ extern "C"
/* Map with to integer value association */
typedef struct asn_INTEGER_enum_map_s
{
- int64_t nat_value; /* associated native integer value */
+ int64_t nat_value; /* associated native integer value */
size_t enum_len; /* strlen("tag") */
const char *enum_name; /* "tag" */
} asn_INTEGER_enum_map_t;
@@ -47,24 +47,25 @@ extern "C"
per_type_encoder_f INTEGER_encode_uper;
/***********************************
- * Some handy conversion routines. *
- ***********************************/
+ * Some handy conversion routines. *
+ ***********************************/
/*
- * Returns 0 if it was possible to convert, -1 otherwise.
- * -1/EINVAL: Mandatory argument missing
- * -1/ERANGE: Value encoded is out of range for long representation
- * -1/ENOMEM: Memory allocation failed (in asn_long2INTEGER()).
- */
+ * Returns 0 if it was possible to convert, -1 otherwise.
+ * -1/EINVAL: Mandatory argument missing
+ * -1/ERANGE: Value encoded is out of range for long representation
+ * -1/ENOMEM: Memory allocation failed (in asn_long2INTEGER()).
+ */
int asn_INTEGER2long(const INTEGER_t *i, int64_t *l);
int asn_INTEGER2ulong(const INTEGER_t *i, uint64_t *l);
int asn_long2INTEGER(INTEGER_t *i, int64_t l);
int asn_ulong2INTEGER(INTEGER_t *i, uint64_t l);
/*
- * Convert the integer value into the corresponding enumeration map entry.
- */
- const asn_INTEGER_enum_map_t *INTEGER_map_value2enum(asn_INTEGER_specifics_t *specs, int64_t value);
+ * Convert the integer value into the corresponding enumeration map entry.
+ */
+ const asn_INTEGER_enum_map_t *INTEGER_map_value2enum(
+ asn_INTEGER_specifics_t *specs, int64_t value);
#ifdef __cplusplus
}
diff --git a/src/core/libs/supl/asn-rrlp/IonosphericModel.c b/src/core/libs/supl/asn-rrlp/IonosphericModel.c
index bafe72b87..3ed4b9d73 100644
--- a/src/core/libs/supl/asn-rrlp/IonosphericModel.c
+++ b/src/core/libs/supl/asn-rrlp/IonosphericModel.c
@@ -1,369 +1,361 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "IonosphericModel.h"
-static int
-memb_alfa0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_alfa0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_alfa1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_alfa1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_alfa2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_alfa2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_alfa3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_alfa3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_beta0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_beta0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_beta1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_beta1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_beta2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_beta2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_beta3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_beta3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_ALFA0_CONSTR_2 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALFA1_CONSTR_3 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALFA2_CONSTR_4 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_ALFA3_CONSTR_5 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_BETA0_CONSTR_6 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_BETA1_CONSTR_7 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_BETA2_CONSTR_8 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_BETA3_CONSTR_9 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_IonosphericModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa0),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_alfa0_constraint_1,
- &ASN_PER_MEMB_ALFA0_CONSTR_2,
- 0,
- "alfa0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa1),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_alfa1_constraint_1,
- &ASN_PER_MEMB_ALFA1_CONSTR_3,
- 0,
- "alfa1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa2),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_alfa2_constraint_1,
- &ASN_PER_MEMB_ALFA2_CONSTR_4,
- 0,
- "alfa2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa3),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_alfa3_constraint_1,
- &ASN_PER_MEMB_ALFA3_CONSTR_5,
- 0,
- "alfa3"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta0),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_beta0_constraint_1,
- &ASN_PER_MEMB_BETA0_CONSTR_6,
- 0,
- "beta0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta1),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_beta1_constraint_1,
- &ASN_PER_MEMB_BETA1_CONSTR_7,
- 0,
- "beta1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta2),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_beta2_constraint_1,
- &ASN_PER_MEMB_BETA2_CONSTR_8,
- 0,
- "beta2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta3),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_beta3_constraint_1,
- &ASN_PER_MEMB_BETA3_CONSTR_9,
- 0,
- "beta3"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa0),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_alfa0_constraint_1,
+ &ASN_PER_MEMB_ALFA0_CONSTR_2, 0, "alfa0"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa1),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_alfa1_constraint_1,
+ &ASN_PER_MEMB_ALFA1_CONSTR_3, 0, "alfa1"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa2),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_alfa2_constraint_1,
+ &ASN_PER_MEMB_ALFA2_CONSTR_4, 0, "alfa2"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, alfa3),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_alfa3_constraint_1,
+ &ASN_PER_MEMB_ALFA3_CONSTR_5, 0, "alfa3"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta0),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_beta0_constraint_1,
+ &ASN_PER_MEMB_BETA0_CONSTR_6, 0, "beta0"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta1),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_beta1_constraint_1,
+ &ASN_PER_MEMB_BETA1_CONSTR_7, 0, "beta1"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta2),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_beta2_constraint_1,
+ &ASN_PER_MEMB_BETA2_CONSTR_8, 0, "beta2"},
+ {ATF_NOFLAGS, 0, offsetof(struct IonosphericModel, beta3),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_beta3_constraint_1,
+ &ASN_PER_MEMB_BETA3_CONSTR_9, 0, "beta3"},
};
static ber_tlv_tag_t asn_DEF_IonosphericModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_IonosphericModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* alfa0 at 763 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* alfa1 at 764 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* alfa2 at 765 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* alfa3 at 766 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* beta0 at 767 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* beta1 at 768 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* beta2 at 769 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* beta3 at 770 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* alfa0 at 763 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* alfa1 at 764 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* alfa2 at 765 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* alfa3 at 766 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* beta0 at 767 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* beta1 at 768 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* beta2 at 769 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0} /* beta3 at 770 */
};
static asn_SEQUENCE_specifics_t asn_SPC_IonosphericModel_specs_1 = {
- sizeof(struct IonosphericModel),
- offsetof(struct IonosphericModel, _asn_ctx),
- asn_MAP_IonosphericModel_tag2el_1,
- 8, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct IonosphericModel),
+ offsetof(struct IonosphericModel, _asn_ctx),
+ asn_MAP_IonosphericModel_tag2el_1,
+ 8, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_IonosphericModel = {
- "IonosphericModel",
- "IonosphericModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_IonosphericModel_tags_1,
- sizeof(asn_DEF_IonosphericModel_tags_1)
- /sizeof(asn_DEF_IonosphericModel_tags_1[0]), /* 1 */
- asn_DEF_IonosphericModel_tags_1, /* Same as above */
- sizeof(asn_DEF_IonosphericModel_tags_1)
- /sizeof(asn_DEF_IonosphericModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_IonosphericModel_1,
- 8, /* Elements count */
- &asn_SPC_IonosphericModel_specs_1 /* Additional specs */
+ "IonosphericModel",
+ "IonosphericModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_IonosphericModel_tags_1,
+ sizeof(asn_DEF_IonosphericModel_tags_1) /
+ sizeof(asn_DEF_IonosphericModel_tags_1[0]), /* 1 */
+ asn_DEF_IonosphericModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_IonosphericModel_tags_1) /
+ sizeof(asn_DEF_IonosphericModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_IonosphericModel_1,
+ 8, /* Elements count */
+ &asn_SPC_IonosphericModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/IonosphericModel.h b/src/core/libs/supl/asn-rrlp/IonosphericModel.h
index 1174aeef8..b07794ac4 100644
--- a/src/core/libs/supl/asn-rrlp/IonosphericModel.h
+++ b/src/core/libs/supl/asn-rrlp/IonosphericModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _IonosphericModel_H_
#define _IonosphericModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/LAC.c b/src/core/libs/supl/asn-rrlp/LAC.c
index d6de9a0ae..8529f4f78 100644
--- a/src/core/libs/supl/asn-rrlp/LAC.c
+++ b/src/core/libs/supl/asn-rrlp/LAC.c
@@ -1,145 +1,152 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "LAC.h"
-int
-LAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+int LAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-LAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void LAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-LAC_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- LAC_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void LAC_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-LAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int LAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-LAC_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) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t LAC_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)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-LAC_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) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t LAC_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)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-LAC_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) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t LAC_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)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-LAC_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) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t LAC_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)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-LAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t LAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-LAC_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- LAC_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t LAC_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ LAC_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_LAC_CONSTR_1 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_LAC_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_LAC = {
- "LAC",
- "LAC",
- LAC_free,
- LAC_print,
- LAC_constraint,
- LAC_decode_ber,
- LAC_encode_der,
- LAC_decode_xer,
- LAC_encode_xer,
- LAC_decode_uper,
- LAC_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_LAC_tags_1,
- sizeof(asn_DEF_LAC_tags_1)
- /sizeof(asn_DEF_LAC_tags_1[0]), /* 1 */
- asn_DEF_LAC_tags_1, /* Same as above */
- sizeof(asn_DEF_LAC_tags_1)
- /sizeof(asn_DEF_LAC_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_LAC_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "LAC",
+ "LAC",
+ LAC_free,
+ LAC_print,
+ LAC_constraint,
+ LAC_decode_ber,
+ LAC_encode_der,
+ LAC_decode_xer,
+ LAC_encode_xer,
+ LAC_decode_uper,
+ LAC_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_LAC_tags_1,
+ sizeof(asn_DEF_LAC_tags_1) / sizeof(asn_DEF_LAC_tags_1[0]), /* 1 */
+ asn_DEF_LAC_tags_1, /* Same as above */
+ sizeof(asn_DEF_LAC_tags_1) / sizeof(asn_DEF_LAC_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_LAC_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/LAC.h b/src/core/libs/supl/asn-rrlp/LAC.h
index 69ccdb662..74fe745c7 100644
--- a/src/core/libs/supl/asn-rrlp/LAC.h
+++ b/src/core/libs/supl/asn-rrlp/LAC.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _LAC_H_
#define _LAC_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/LocErrorReason.c b/src/core/libs/supl/asn-rrlp/LocErrorReason.c
index 217112048..9d09337ad 100644
--- a/src/core/libs/supl/asn-rrlp/LocErrorReason.c
+++ b/src/core/libs/supl/asn-rrlp/LocErrorReason.c
@@ -1,171 +1,189 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "LocErrorReason.h"
-int
-LocErrorReason_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int LocErrorReason_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-LocErrorReason_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void LocErrorReason_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-LocErrorReason_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void LocErrorReason_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-LocErrorReason_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int LocErrorReason_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-LocErrorReason_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) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t LocErrorReason_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)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-LocErrorReason_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) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t LocErrorReason_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)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-LocErrorReason_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) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t LocErrorReason_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)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-LocErrorReason_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) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t LocErrorReason_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)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-LocErrorReason_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t LocErrorReason_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-LocErrorReason_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- LocErrorReason_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t LocErrorReason_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ LocErrorReason_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_LOC_ERROR_REASON_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 10 } /* (0..10,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 10} /* (0..10,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_LocErrorReason_value2enum_1[] = {
- { 0, 9, "unDefined" },
- { 1, 13, "notEnoughBTSs" },
- { 2, 13, "notEnoughSats" },
- { 3, 24, "eotdLocCalAssDataMissing" },
- { 4, 18, "eotdAssDataMissing" },
- { 5, 23, "gpsLocCalAssDataMissing" },
- { 6, 17, "gpsAssDataMissing" },
- { 7, 18, "methodNotSupported" },
- { 8, 12, "notProcessed" },
- { 9, 25, "refBTSForGPSNotServingBTS" },
- { 10, 26, "refBTSForEOTDNotServingBTS" },
- { 11, 18, "notEnoughGANSSSats" },
- { 12, 19, "ganssAssDataMissing" },
- { 13, 27, "refBTSForGANSSNotServingBTS" }
- /* This list is extensible */
+ {0, 9, "unDefined"},
+ {1, 13, "notEnoughBTSs"},
+ {2, 13, "notEnoughSats"},
+ {3, 24, "eotdLocCalAssDataMissing"},
+ {4, 18, "eotdAssDataMissing"},
+ {5, 23, "gpsLocCalAssDataMissing"},
+ {6, 17, "gpsAssDataMissing"},
+ {7, 18, "methodNotSupported"},
+ {8, 12, "notProcessed"},
+ {9, 25, "refBTSForGPSNotServingBTS"},
+ {10, 26, "refBTSForEOTDNotServingBTS"},
+ {11, 18, "notEnoughGANSSSats"},
+ {12, 19, "ganssAssDataMissing"},
+ {13, 27, "refBTSForGANSSNotServingBTS"}
+ /* This list is extensible */
};
static unsigned int asn_MAP_LocErrorReason_enum2value_1[] = {
- 4, /* eotdAssDataMissing(4) */
- 3, /* eotdLocCalAssDataMissing(3) */
- 12, /* ganssAssDataMissing(12) */
- 6, /* gpsAssDataMissing(6) */
- 5, /* gpsLocCalAssDataMissing(5) */
- 7, /* methodNotSupported(7) */
- 1, /* notEnoughBTSs(1) */
- 11, /* notEnoughGANSSSats(11) */
- 2, /* notEnoughSats(2) */
- 8, /* notProcessed(8) */
- 10, /* refBTSForEOTDNotServingBTS(10) */
- 13, /* refBTSForGANSSNotServingBTS(13) */
- 9, /* refBTSForGPSNotServingBTS(9) */
- 0 /* unDefined(0) */
- /* This list is extensible */
+ 4, /* eotdAssDataMissing(4) */
+ 3, /* eotdLocCalAssDataMissing(3) */
+ 12, /* ganssAssDataMissing(12) */
+ 6, /* gpsAssDataMissing(6) */
+ 5, /* gpsLocCalAssDataMissing(5) */
+ 7, /* methodNotSupported(7) */
+ 1, /* notEnoughBTSs(1) */
+ 11, /* notEnoughGANSSSats(11) */
+ 2, /* notEnoughSats(2) */
+ 8, /* notProcessed(8) */
+ 10, /* refBTSForEOTDNotServingBTS(10) */
+ 13, /* refBTSForGANSSNotServingBTS(13) */
+ 9, /* refBTSForGPSNotServingBTS(9) */
+ 0 /* unDefined(0) */
+ /* This list is extensible */
};
static asn_INTEGER_specifics_t asn_SPC_LocErrorReason_specs_1 = {
- asn_MAP_LocErrorReason_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_LocErrorReason_enum2value_1, /* N => "tag"; sorted by N */
- 14, /* Number of elements in the maps */
- 12, /* Extensions before this member */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_LocErrorReason_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_LocErrorReason_enum2value_1, /* N => "tag"; sorted by N */
+ 14, /* Number of elements in the maps */
+ 12, /* Extensions before this member */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_LocErrorReason_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_LocErrorReason = {
- "LocErrorReason",
- "LocErrorReason",
- LocErrorReason_free,
- LocErrorReason_print,
- LocErrorReason_constraint,
- LocErrorReason_decode_ber,
- LocErrorReason_encode_der,
- LocErrorReason_decode_xer,
- LocErrorReason_encode_xer,
- LocErrorReason_decode_uper,
- LocErrorReason_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_LocErrorReason_tags_1,
- sizeof(asn_DEF_LocErrorReason_tags_1)
- /sizeof(asn_DEF_LocErrorReason_tags_1[0]), /* 1 */
- asn_DEF_LocErrorReason_tags_1, /* Same as above */
- sizeof(asn_DEF_LocErrorReason_tags_1)
- /sizeof(asn_DEF_LocErrorReason_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_LOC_ERROR_REASON_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_LocErrorReason_specs_1 /* Additional specs */
+ "LocErrorReason",
+ "LocErrorReason",
+ LocErrorReason_free,
+ LocErrorReason_print,
+ LocErrorReason_constraint,
+ LocErrorReason_decode_ber,
+ LocErrorReason_encode_der,
+ LocErrorReason_decode_xer,
+ LocErrorReason_encode_xer,
+ LocErrorReason_decode_uper,
+ LocErrorReason_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_LocErrorReason_tags_1,
+ sizeof(asn_DEF_LocErrorReason_tags_1) /
+ sizeof(asn_DEF_LocErrorReason_tags_1[0]), /* 1 */
+ asn_DEF_LocErrorReason_tags_1, /* Same as above */
+ sizeof(asn_DEF_LocErrorReason_tags_1) /
+ sizeof(asn_DEF_LocErrorReason_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_LOC_ERROR_REASON_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_LocErrorReason_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/LocErrorReason.h b/src/core/libs/supl/asn-rrlp/LocErrorReason.h
index e8d074804..9b4ab7b0f 100644
--- a/src/core/libs/supl/asn-rrlp/LocErrorReason.h
+++ b/src/core/libs/supl/asn-rrlp/LocErrorReason.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _LocErrorReason_H_
#define _LocErrorReason_H_
-
#include
/* Including external dependencies */
@@ -33,8 +32,8 @@ extern "C"
LocErrorReason_refBTSForGPSNotServingBTS = 9,
LocErrorReason_refBTSForEOTDNotServingBTS = 10,
/*
- * Enumeration is extensible
- */
+ * Enumeration is extensible
+ */
LocErrorReason_notEnoughGANSSSats = 11,
LocErrorReason_ganssAssDataMissing = 12,
LocErrorReason_refBTSForGANSSNotServingBTS = 13
diff --git a/src/core/libs/supl/asn-rrlp/LocationError.c b/src/core/libs/supl/asn-rrlp/LocationError.c
index 228344253..5b5df88cb 100644
--- a/src/core/libs/supl/asn-rrlp/LocationError.c
+++ b/src/core/libs/supl/asn-rrlp/LocationError.c
@@ -1,71 +1,65 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "LocationError.h"
static asn_TYPE_member_t asn_MBR_LocationError_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct LocationError, locErrorReason),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_LocErrorReason,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "locErrorReason"
- },
- { ATF_POINTER, 1, offsetof(struct LocationError, additionalAssistanceData),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AdditionalAssistanceData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "additionalAssistanceData"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct LocationError, locErrorReason),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_LocErrorReason,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "locErrorReason"},
+ {ATF_POINTER, 1, offsetof(struct LocationError, additionalAssistanceData),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AdditionalAssistanceData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "additionalAssistanceData"},
};
-static int asn_MAP_LocationError_oms_1[] = { 1 };
+static int asn_MAP_LocationError_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_LocationError_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_LocationError_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* locErrorReason at 488 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* additionalAssistanceData at 489 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* locErrorReason at 488 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* additionalAssistanceData at 489 */
};
static asn_SEQUENCE_specifics_t asn_SPC_LocationError_specs_1 = {
- sizeof(struct LocationError),
- offsetof(struct LocationError, _asn_ctx),
- asn_MAP_LocationError_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_LocationError_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- 1, /* Start extensions */
- 3 /* Stop extensions */
+ sizeof(struct LocationError),
+ offsetof(struct LocationError, _asn_ctx),
+ asn_MAP_LocationError_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_LocationError_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ 1, /* Start extensions */
+ 3 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_LocationError = {
- "LocationError",
- "LocationError",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_LocationError_tags_1,
- sizeof(asn_DEF_LocationError_tags_1)
- /sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */
- asn_DEF_LocationError_tags_1, /* Same as above */
- sizeof(asn_DEF_LocationError_tags_1)
- /sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_LocationError_1,
- 2, /* Elements count */
- &asn_SPC_LocationError_specs_1 /* Additional specs */
+ "LocationError",
+ "LocationError",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_LocationError_tags_1,
+ sizeof(asn_DEF_LocationError_tags_1) /
+ sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */
+ asn_DEF_LocationError_tags_1, /* Same as above */
+ sizeof(asn_DEF_LocationError_tags_1) /
+ sizeof(asn_DEF_LocationError_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_LocationError_1,
+ 2, /* Elements count */
+ &asn_SPC_LocationError_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/LocationError.h b/src/core/libs/supl/asn-rrlp/LocationError.h
index 1ab241eba..fd1caf3de 100644
--- a/src/core/libs/supl/asn-rrlp/LocationError.h
+++ b/src/core/libs/supl/asn-rrlp/LocationError.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _LocationError_H_
#define _LocationError_H_
-
#include
/* Including external dependencies */
@@ -26,11 +25,12 @@ extern "C"
typedef struct LocationError
{
LocErrorReason_t locErrorReason;
- struct AdditionalAssistanceData *additionalAssistanceData /* OPTIONAL */;
+ struct AdditionalAssistanceData
+ *additionalAssistanceData /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/LocationInfo.c b/src/core/libs/supl/asn-rrlp/LocationInfo.c
index 53a747679..c2c75df51 100644
--- a/src/core/libs/supl/asn-rrlp/LocationInfo.c
+++ b/src/core/libs/supl/asn-rrlp/LocationInfo.c
@@ -1,151 +1,142 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "LocationInfo.h"
-static int
-memb_refFrame_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+static int memb_refFrame_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
-static int
-memb_gpsTOW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 14399999)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_gpsTOW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 14399999))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REF_FRAME_CONSTR_2 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_GPS_TOW_CONSTR_3 = {
- { APC_CONSTRAINED, 24, -1, 0, 14399999 } /* (0..14399999) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, 0, 14399999} /* (0..14399999) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_LocationInfo_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct LocationInfo, refFrame),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_refFrame_constraint_1,
- &ASN_PER_MEMB_REF_FRAME_CONSTR_2,
- 0,
- "refFrame"
- },
- { ATF_POINTER, 1, offsetof(struct LocationInfo, gpsTOW),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_gpsTOW_constraint_1,
- &ASN_PER_MEMB_GPS_TOW_CONSTR_3,
- 0,
- "gpsTOW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct LocationInfo, fixType),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_FixType,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "fixType"
- },
- { ATF_NOFLAGS, 0, offsetof(struct LocationInfo, posEstimate),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Ext_GeographicalInformation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "posEstimate"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct LocationInfo, refFrame),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_refFrame_constraint_1,
+ &ASN_PER_MEMB_REF_FRAME_CONSTR_2, 0, "refFrame"},
+ {ATF_POINTER, 1, offsetof(struct LocationInfo, gpsTOW),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_gpsTOW_constraint_1,
+ &ASN_PER_MEMB_GPS_TOW_CONSTR_3, 0, "gpsTOW"},
+ {ATF_NOFLAGS, 0, offsetof(struct LocationInfo, fixType),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_FixType, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "fixType"},
+ {ATF_NOFLAGS, 0, offsetof(struct LocationInfo, posEstimate),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Ext_GeographicalInformation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "posEstimate"},
};
-static int asn_MAP_LocationInfo_oms_1[] = { 1 };
+static int asn_MAP_LocationInfo_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_LocationInfo_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_LocationInfo_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refFrame at 420 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsTOW at 423 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fixType at 424 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* posEstimate at 432 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* refFrame at 420 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* gpsTOW at 423 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* fixType at 424 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* posEstimate at 432 */
};
static asn_SEQUENCE_specifics_t asn_SPC_LocationInfo_specs_1 = {
- sizeof(struct LocationInfo),
- offsetof(struct LocationInfo, _asn_ctx),
- asn_MAP_LocationInfo_tag2el_1,
- 4, /* Count of tags in the map */
- asn_MAP_LocationInfo_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct LocationInfo),
+ offsetof(struct LocationInfo, _asn_ctx),
+ asn_MAP_LocationInfo_tag2el_1,
+ 4, /* Count of tags in the map */
+ asn_MAP_LocationInfo_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_LocationInfo = {
- "LocationInfo",
- "LocationInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_LocationInfo_tags_1,
- sizeof(asn_DEF_LocationInfo_tags_1)
- /sizeof(asn_DEF_LocationInfo_tags_1[0]), /* 1 */
- asn_DEF_LocationInfo_tags_1, /* Same as above */
- sizeof(asn_DEF_LocationInfo_tags_1)
- /sizeof(asn_DEF_LocationInfo_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_LocationInfo_1,
- 4, /* Elements count */
- &asn_SPC_LocationInfo_specs_1 /* Additional specs */
+ "LocationInfo",
+ "LocationInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_LocationInfo_tags_1,
+ sizeof(asn_DEF_LocationInfo_tags_1) /
+ sizeof(asn_DEF_LocationInfo_tags_1[0]), /* 1 */
+ asn_DEF_LocationInfo_tags_1, /* Same as above */
+ sizeof(asn_DEF_LocationInfo_tags_1) /
+ sizeof(asn_DEF_LocationInfo_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_LocationInfo_1,
+ 4, /* Elements count */
+ &asn_SPC_LocationInfo_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/LocationInfo.h b/src/core/libs/supl/asn-rrlp/LocationInfo.h
index d31af60d5..1d6ffa117 100644
--- a/src/core/libs/supl/asn-rrlp/LocationInfo.h
+++ b/src/core/libs/supl/asn-rrlp/LocationInfo.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _LocationInfo_H_
#define _LocationInfo_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MeasureResponseTime.c b/src/core/libs/supl/asn-rrlp/MeasureResponseTime.c
index f46280af2..33393464b 100644
--- a/src/core/libs/supl/asn-rrlp/MeasureResponseTime.c
+++ b/src/core/libs/supl/asn-rrlp/MeasureResponseTime.c
@@ -1,145 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MeasureResponseTime.h"
-int
-MeasureResponseTime_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int MeasureResponseTime_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-MeasureResponseTime_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void MeasureResponseTime_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-MeasureResponseTime_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void MeasureResponseTime_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-MeasureResponseTime_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int MeasureResponseTime_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-MeasureResponseTime_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) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t MeasureResponseTime_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)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-MeasureResponseTime_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) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t MeasureResponseTime_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)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-MeasureResponseTime_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) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t MeasureResponseTime_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)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-MeasureResponseTime_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) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t MeasureResponseTime_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)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-MeasureResponseTime_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t MeasureResponseTime_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-MeasureResponseTime_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- MeasureResponseTime_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t MeasureResponseTime_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ MeasureResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_MEASURE_RESPONSE_TIME_CONSTR_1 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_MeasureResponseTime_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_MeasureResponseTime = {
- "MeasureResponseTime",
- "MeasureResponseTime",
- MeasureResponseTime_free,
- MeasureResponseTime_print,
- MeasureResponseTime_constraint,
- MeasureResponseTime_decode_ber,
- MeasureResponseTime_encode_der,
- MeasureResponseTime_decode_xer,
- MeasureResponseTime_encode_xer,
- MeasureResponseTime_decode_uper,
- MeasureResponseTime_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MeasureResponseTime_tags_1,
- sizeof(asn_DEF_MeasureResponseTime_tags_1)
- /sizeof(asn_DEF_MeasureResponseTime_tags_1[0]), /* 1 */
- asn_DEF_MeasureResponseTime_tags_1, /* Same as above */
- sizeof(asn_DEF_MeasureResponseTime_tags_1)
- /sizeof(asn_DEF_MeasureResponseTime_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_MEASURE_RESPONSE_TIME_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "MeasureResponseTime",
+ "MeasureResponseTime",
+ MeasureResponseTime_free,
+ MeasureResponseTime_print,
+ MeasureResponseTime_constraint,
+ MeasureResponseTime_decode_ber,
+ MeasureResponseTime_encode_der,
+ MeasureResponseTime_decode_xer,
+ MeasureResponseTime_encode_xer,
+ MeasureResponseTime_decode_uper,
+ MeasureResponseTime_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MeasureResponseTime_tags_1,
+ sizeof(asn_DEF_MeasureResponseTime_tags_1) /
+ sizeof(asn_DEF_MeasureResponseTime_tags_1[0]), /* 1 */
+ asn_DEF_MeasureResponseTime_tags_1, /* Same as above */
+ sizeof(asn_DEF_MeasureResponseTime_tags_1) /
+ sizeof(asn_DEF_MeasureResponseTime_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_MEASURE_RESPONSE_TIME_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MeasureResponseTime.h b/src/core/libs/supl/asn-rrlp/MeasureResponseTime.h
index 2607e7ff4..5b5b770ba 100644
--- a/src/core/libs/supl/asn-rrlp/MeasureResponseTime.h
+++ b/src/core/libs/supl/asn-rrlp/MeasureResponseTime.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MeasureResponseTime_H_
#define _MeasureResponseTime_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MethodType.c b/src/core/libs/supl/asn-rrlp/MethodType.c
index dc7782e8e..02c8a8191 100644
--- a/src/core/libs/supl/asn-rrlp/MethodType.c
+++ b/src/core/libs/supl/asn-rrlp/MethodType.c
@@ -1,90 +1,75 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MethodType.h"
static asn_per_constraints_t ASN_PER_TYPE_METHOD_TYPE_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_MethodType_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msAssisted),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AccuracyOpt,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msAssisted"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msBased),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Accuracy,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msBased"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msBasedPref),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Accuracy,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msBasedPref"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msAssistedPref),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Accuracy,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msAssistedPref"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msAssisted),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AccuracyOpt,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msAssisted"},
+ {ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msBased),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Accuracy, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msBased"},
+ {ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msBasedPref),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Accuracy, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msBasedPref"},
+ {ATF_NOFLAGS, 0, offsetof(struct MethodType, choice.msAssistedPref),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Accuracy, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msAssistedPref"},
};
static asn_TYPE_tag2member_t asn_MAP_MethodType_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msAssisted at 117 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* msBased at 118 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* msBasedPref at 119 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* msAssistedPref at 121 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* msAssisted at 117 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* msBased at 118 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* msBasedPref at 119 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* msAssistedPref at 121 */
};
static asn_CHOICE_specifics_t asn_SPC_MethodType_specs_1 = {
- sizeof(struct MethodType),
- offsetof(struct MethodType, _asn_ctx),
- offsetof(struct MethodType, present),
- sizeof(((struct MethodType *)0)->present),
- asn_MAP_MethodType_tag2el_1,
- 4, /* Count of tags in the map */
- 0,
- -1 /* Extensions start */
+ sizeof(struct MethodType),
+ offsetof(struct MethodType, _asn_ctx),
+ offsetof(struct MethodType, present),
+ sizeof(((struct MethodType *)0)->present),
+ asn_MAP_MethodType_tag2el_1,
+ 4, /* Count of tags in the map */
+ 0,
+ -1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_MethodType = {
- "MethodType",
- "MethodType",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_METHOD_TYPE_CONSTR_1,
- asn_MBR_MethodType_1,
- 4, /* Elements count */
- &asn_SPC_MethodType_specs_1 /* Additional specs */
+ "MethodType",
+ "MethodType",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_METHOD_TYPE_CONSTR_1,
+ asn_MBR_MethodType_1,
+ 4, /* Elements count */
+ &asn_SPC_MethodType_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MethodType.h b/src/core/libs/supl/asn-rrlp/MethodType.h
index 5529e2527..b99be62ca 100644
--- a/src/core/libs/supl/asn-rrlp/MethodType.h
+++ b/src/core/libs/supl/asn-rrlp/MethodType.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MethodType_H_
#define _MethodType_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.c b/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.c
index b14a2967f..a2f5092cf 100644
--- a/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.c
+++ b/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.c
@@ -1,145 +1,164 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ModuloTimeSlot.h"
-int
-ModuloTimeSlot_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int ModuloTimeSlot_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-ModuloTimeSlot_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void ModuloTimeSlot_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-ModuloTimeSlot_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void ModuloTimeSlot_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-ModuloTimeSlot_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int ModuloTimeSlot_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-ModuloTimeSlot_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) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t ModuloTimeSlot_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)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-ModuloTimeSlot_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) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t ModuloTimeSlot_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)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-ModuloTimeSlot_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) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t ModuloTimeSlot_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)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-ModuloTimeSlot_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) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t ModuloTimeSlot_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)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-ModuloTimeSlot_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t ModuloTimeSlot_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-ModuloTimeSlot_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t ModuloTimeSlot_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ ModuloTimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_MODULO_TIME_SLOT_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_ModuloTimeSlot_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_ModuloTimeSlot = {
- "ModuloTimeSlot",
- "ModuloTimeSlot",
- ModuloTimeSlot_free,
- ModuloTimeSlot_print,
- ModuloTimeSlot_constraint,
- ModuloTimeSlot_decode_ber,
- ModuloTimeSlot_encode_der,
- ModuloTimeSlot_decode_xer,
- ModuloTimeSlot_encode_xer,
- ModuloTimeSlot_decode_uper,
- ModuloTimeSlot_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ModuloTimeSlot_tags_1,
- sizeof(asn_DEF_ModuloTimeSlot_tags_1)
- /sizeof(asn_DEF_ModuloTimeSlot_tags_1[0]), /* 1 */
- asn_DEF_ModuloTimeSlot_tags_1, /* Same as above */
- sizeof(asn_DEF_ModuloTimeSlot_tags_1)
- /sizeof(asn_DEF_ModuloTimeSlot_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_MODULO_TIME_SLOT_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "ModuloTimeSlot",
+ "ModuloTimeSlot",
+ ModuloTimeSlot_free,
+ ModuloTimeSlot_print,
+ ModuloTimeSlot_constraint,
+ ModuloTimeSlot_decode_ber,
+ ModuloTimeSlot_encode_der,
+ ModuloTimeSlot_decode_xer,
+ ModuloTimeSlot_encode_xer,
+ ModuloTimeSlot_decode_uper,
+ ModuloTimeSlot_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ModuloTimeSlot_tags_1,
+ sizeof(asn_DEF_ModuloTimeSlot_tags_1) /
+ sizeof(asn_DEF_ModuloTimeSlot_tags_1[0]), /* 1 */
+ asn_DEF_ModuloTimeSlot_tags_1, /* Same as above */
+ sizeof(asn_DEF_ModuloTimeSlot_tags_1) /
+ sizeof(asn_DEF_ModuloTimeSlot_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_MODULO_TIME_SLOT_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.h b/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.h
index 186607231..e079c68ff 100644
--- a/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.h
+++ b/src/core/libs/supl/asn-rrlp/ModuloTimeSlot.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ModuloTimeSlot_H_
#define _ModuloTimeSlot_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.c b/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.c
index dd107752c..83ac43ebb 100644
--- a/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.c
+++ b/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.c
@@ -1,145 +1,162 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MoreAssDataToBeSent.h"
-int
-MoreAssDataToBeSent_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int MoreAssDataToBeSent_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-MoreAssDataToBeSent_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void MoreAssDataToBeSent_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-MoreAssDataToBeSent_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void MoreAssDataToBeSent_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-MoreAssDataToBeSent_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int MoreAssDataToBeSent_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-MoreAssDataToBeSent_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) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t MoreAssDataToBeSent_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)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-MoreAssDataToBeSent_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) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t MoreAssDataToBeSent_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)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-MoreAssDataToBeSent_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) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t MoreAssDataToBeSent_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)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-MoreAssDataToBeSent_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) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t MoreAssDataToBeSent_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)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-MoreAssDataToBeSent_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t MoreAssDataToBeSent_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-MoreAssDataToBeSent_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t MoreAssDataToBeSent_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ MoreAssDataToBeSent_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_MORE_ASS_DATA_TO_BE_SENT_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_MoreAssDataToBeSent_value2enum_1[] = {
- { 0, 14, "noMoreMessages" },
- { 1, 20, "moreMessagesOnTheWay" }
-};
+ {0, 14, "noMoreMessages"}, {1, 20, "moreMessagesOnTheWay"}};
static unsigned int asn_MAP_MoreAssDataToBeSent_enum2value_1[] = {
- 1, /* moreMessagesOnTheWay(1) */
- 0 /* noMoreMessages(0) */
+ 1, /* moreMessagesOnTheWay(1) */
+ 0 /* noMoreMessages(0) */
};
static asn_INTEGER_specifics_t asn_SPC_MoreAssDataToBeSent_specs_1 = {
- asn_MAP_MoreAssDataToBeSent_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_MoreAssDataToBeSent_enum2value_1, /* N => "tag"; sorted by N */
- 2, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_MoreAssDataToBeSent_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_MoreAssDataToBeSent_enum2value_1, /* N => "tag"; sorted by N */
+ 2, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_MoreAssDataToBeSent_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_MoreAssDataToBeSent = {
- "MoreAssDataToBeSent",
- "MoreAssDataToBeSent",
- MoreAssDataToBeSent_free,
- MoreAssDataToBeSent_print,
- MoreAssDataToBeSent_constraint,
- MoreAssDataToBeSent_decode_ber,
- MoreAssDataToBeSent_encode_der,
- MoreAssDataToBeSent_decode_xer,
- MoreAssDataToBeSent_encode_xer,
- MoreAssDataToBeSent_decode_uper,
- MoreAssDataToBeSent_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MoreAssDataToBeSent_tags_1,
- sizeof(asn_DEF_MoreAssDataToBeSent_tags_1)
- /sizeof(asn_DEF_MoreAssDataToBeSent_tags_1[0]), /* 1 */
- asn_DEF_MoreAssDataToBeSent_tags_1, /* Same as above */
- sizeof(asn_DEF_MoreAssDataToBeSent_tags_1)
- /sizeof(asn_DEF_MoreAssDataToBeSent_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_MORE_ASS_DATA_TO_BE_SENT_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_MoreAssDataToBeSent_specs_1 /* Additional specs */
+ "MoreAssDataToBeSent",
+ "MoreAssDataToBeSent",
+ MoreAssDataToBeSent_free,
+ MoreAssDataToBeSent_print,
+ MoreAssDataToBeSent_constraint,
+ MoreAssDataToBeSent_decode_ber,
+ MoreAssDataToBeSent_encode_der,
+ MoreAssDataToBeSent_decode_xer,
+ MoreAssDataToBeSent_encode_xer,
+ MoreAssDataToBeSent_decode_uper,
+ MoreAssDataToBeSent_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MoreAssDataToBeSent_tags_1,
+ sizeof(asn_DEF_MoreAssDataToBeSent_tags_1) /
+ sizeof(asn_DEF_MoreAssDataToBeSent_tags_1[0]), /* 1 */
+ asn_DEF_MoreAssDataToBeSent_tags_1, /* Same as above */
+ sizeof(asn_DEF_MoreAssDataToBeSent_tags_1) /
+ sizeof(asn_DEF_MoreAssDataToBeSent_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_MORE_ASS_DATA_TO_BE_SENT_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_MoreAssDataToBeSent_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.h b/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.h
index d1ad95faf..faa83acf1 100644
--- a/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.h
+++ b/src/core/libs/supl/asn-rrlp/MoreAssDataToBeSent.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MoreAssDataToBeSent_H_
#define _MoreAssDataToBeSent_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MpathIndic.c b/src/core/libs/supl/asn-rrlp/MpathIndic.c
index 67e26d4b0..9cf71b2a0 100644
--- a/src/core/libs/supl/asn-rrlp/MpathIndic.c
+++ b/src/core/libs/supl/asn-rrlp/MpathIndic.c
@@ -1,149 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MpathIndic.h"
-int
-MpathIndic_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int MpathIndic_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-MpathIndic_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void MpathIndic_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-MpathIndic_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void MpathIndic_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-MpathIndic_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int MpathIndic_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-MpathIndic_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) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t MpathIndic_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)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-MpathIndic_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) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t MpathIndic_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)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-MpathIndic_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) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t MpathIndic_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)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-MpathIndic_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) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t MpathIndic_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)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-MpathIndic_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t MpathIndic_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-MpathIndic_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- MpathIndic_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t MpathIndic_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ MpathIndic_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_MPATH_INDIC_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_MpathIndic_value2enum_1[] = {
- { 0, 11, "notMeasured" },
- { 1, 3, "low" },
- { 2, 6, "medium" },
- { 3, 4, "high" }
-};
+ {0, 11, "notMeasured"}, {1, 3, "low"}, {2, 6, "medium"}, {3, 4, "high"}};
static unsigned int asn_MAP_MpathIndic_enum2value_1[] = {
- 3, /* high(3) */
- 1, /* low(1) */
- 2, /* medium(2) */
- 0 /* notMeasured(0) */
+ 3, /* high(3) */
+ 1, /* low(1) */
+ 2, /* medium(2) */
+ 0 /* notMeasured(0) */
};
static asn_INTEGER_specifics_t asn_SPC_MpathIndic_specs_1 = {
- asn_MAP_MpathIndic_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_MpathIndic_enum2value_1, /* N => "tag"; sorted by N */
- 4, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_MpathIndic_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_MpathIndic_enum2value_1, /* N => "tag"; sorted by N */
+ 4, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_MpathIndic_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_MpathIndic = {
- "MpathIndic",
- "MpathIndic",
- MpathIndic_free,
- MpathIndic_print,
- MpathIndic_constraint,
- MpathIndic_decode_ber,
- MpathIndic_encode_der,
- MpathIndic_decode_xer,
- MpathIndic_encode_xer,
- MpathIndic_decode_uper,
- MpathIndic_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MpathIndic_tags_1,
- sizeof(asn_DEF_MpathIndic_tags_1)
- /sizeof(asn_DEF_MpathIndic_tags_1[0]), /* 1 */
- asn_DEF_MpathIndic_tags_1, /* Same as above */
- sizeof(asn_DEF_MpathIndic_tags_1)
- /sizeof(asn_DEF_MpathIndic_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_MPATH_INDIC_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_MpathIndic_specs_1 /* Additional specs */
+ "MpathIndic",
+ "MpathIndic",
+ MpathIndic_free,
+ MpathIndic_print,
+ MpathIndic_constraint,
+ MpathIndic_decode_ber,
+ MpathIndic_encode_der,
+ MpathIndic_decode_xer,
+ MpathIndic_encode_xer,
+ MpathIndic_decode_uper,
+ MpathIndic_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MpathIndic_tags_1,
+ sizeof(asn_DEF_MpathIndic_tags_1) /
+ sizeof(asn_DEF_MpathIndic_tags_1[0]), /* 1 */
+ asn_DEF_MpathIndic_tags_1, /* Same as above */
+ sizeof(asn_DEF_MpathIndic_tags_1) /
+ sizeof(asn_DEF_MpathIndic_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_MPATH_INDIC_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_MpathIndic_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MpathIndic.h b/src/core/libs/supl/asn-rrlp/MpathIndic.h
index 89907b6de..cbf30f2c3 100644
--- a/src/core/libs/supl/asn-rrlp/MpathIndic.h
+++ b/src/core/libs/supl/asn-rrlp/MpathIndic.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MpathIndic_H_
#define _MpathIndic_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.c
index 284872b9d..6aa864b8c 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.c
@@ -1,69 +1,64 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MsrAssistBTS-R98-ExpOTD.h"
static asn_TYPE_member_t asn_MBR_MsrAssistBTS_R98_ExpOTD_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS_R98_ExpOTD, expectedOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExpectedOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "expectedOTD"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS_R98_ExpOTD, expOTDUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExpOTDUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "expOTDUncertainty"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS_R98_ExpOTD, expectedOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExpectedOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "expectedOTD"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct MsrAssistBTS_R98_ExpOTD, expOTDUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExpOTDUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "expOTDUncertainty"},
};
static ber_tlv_tag_t asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MsrAssistBTS_R98_ExpOTD_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* expectedOTD at 910 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* expOTDUncertainty at 912 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* expectedOTD at 910 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* expOTDUncertainty at 912 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MsrAssistBTS_R98_ExpOTD_specs_1 = {
- sizeof(struct MsrAssistBTS_R98_ExpOTD),
- offsetof(struct MsrAssistBTS_R98_ExpOTD, _asn_ctx),
- asn_MAP_MsrAssistBTS_R98_ExpOTD_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct MsrAssistBTS_R98_ExpOTD),
+ offsetof(struct MsrAssistBTS_R98_ExpOTD, _asn_ctx),
+ asn_MAP_MsrAssistBTS_R98_ExpOTD_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MsrAssistBTS_R98_ExpOTD = {
- "MsrAssistBTS-R98-ExpOTD",
- "MsrAssistBTS-R98-ExpOTD",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1,
- sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MsrAssistBTS_R98_ExpOTD_1,
- 2, /* Elements count */
- &asn_SPC_MsrAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
+ "MsrAssistBTS-R98-ExpOTD",
+ "MsrAssistBTS-R98-ExpOTD",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1,
+ sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_MsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MsrAssistBTS_R98_ExpOTD_1,
+ 2, /* Elements count */
+ &asn_SPC_MsrAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.h
index 0efafd0bb..63a4ae3c6 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistBTS-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MsrAssistBTS_R98_ExpOTD_H_
#define _MsrAssistBTS_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistBTS.c b/src/core/libs/supl/asn-rrlp/MsrAssistBTS.c
index 1540767b9..81bc52b82 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistBTS.c
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistBTS.c
@@ -1,111 +1,90 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MsrAssistBTS.h"
static asn_TYPE_member_t asn_MBR_MsrAssistBTS_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, bcchCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BCCHCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bcchCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, bsic),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSIC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, multiFrameOffset),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MultiFrameOffset,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "multiFrameOffset"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, timeSlotScheme),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TimeSlotScheme,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeSlotScheme"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, roughRTD),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RoughRTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "roughRTD"
- },
- { ATF_POINTER, 1, offsetof(struct MsrAssistBTS, calcAssistanceBTS),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CalcAssistanceBTS,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "calcAssistanceBTS"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, bcchCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BCCHCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bcchCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, bsic),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSIC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsic"},
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, multiFrameOffset),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MultiFrameOffset,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "multiFrameOffset"},
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, timeSlotScheme),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TimeSlotScheme,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeSlotScheme"},
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistBTS, roughRTD),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RoughRTD, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "roughRTD"},
+ {ATF_POINTER, 1, offsetof(struct MsrAssistBTS, calcAssistanceBTS),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CalcAssistanceBTS,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "calcAssistanceBTS"},
};
-static int asn_MAP_MsrAssistBTS_oms_1[] = { 5 };
+static int asn_MAP_MsrAssistBTS_oms_1[] = {5};
static ber_tlv_tag_t asn_DEF_MsrAssistBTS_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MsrAssistBTS_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier at 193 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic at 194 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* multiFrameOffset at 195 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* timeSlotScheme at 196 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* roughRTD at 197 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* calcAssistanceBTS at 200 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bcchCarrier at 193 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* bsic at 194 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* multiFrameOffset at 195 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* timeSlotScheme at 196 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* roughRTD at 197 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0} /* calcAssistanceBTS at 200 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MsrAssistBTS_specs_1 = {
- sizeof(struct MsrAssistBTS),
- offsetof(struct MsrAssistBTS, _asn_ctx),
- asn_MAP_MsrAssistBTS_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_MsrAssistBTS_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct MsrAssistBTS),
+ offsetof(struct MsrAssistBTS, _asn_ctx),
+ asn_MAP_MsrAssistBTS_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_MsrAssistBTS_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MsrAssistBTS = {
- "MsrAssistBTS",
- "MsrAssistBTS",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MsrAssistBTS_tags_1,
- sizeof(asn_DEF_MsrAssistBTS_tags_1)
- /sizeof(asn_DEF_MsrAssistBTS_tags_1[0]), /* 1 */
- asn_DEF_MsrAssistBTS_tags_1, /* Same as above */
- sizeof(asn_DEF_MsrAssistBTS_tags_1)
- /sizeof(asn_DEF_MsrAssistBTS_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MsrAssistBTS_1,
- 6, /* Elements count */
- &asn_SPC_MsrAssistBTS_specs_1 /* Additional specs */
+ "MsrAssistBTS",
+ "MsrAssistBTS",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MsrAssistBTS_tags_1,
+ sizeof(asn_DEF_MsrAssistBTS_tags_1) /
+ sizeof(asn_DEF_MsrAssistBTS_tags_1[0]), /* 1 */
+ asn_DEF_MsrAssistBTS_tags_1, /* Same as above */
+ sizeof(asn_DEF_MsrAssistBTS_tags_1) /
+ sizeof(asn_DEF_MsrAssistBTS_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MsrAssistBTS_1,
+ 6, /* Elements count */
+ &asn_SPC_MsrAssistBTS_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistBTS.h b/src/core/libs/supl/asn-rrlp/MsrAssistBTS.h
index 7d2eac4d4..f39c569b7 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistBTS.h
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistBTS.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MsrAssistBTS_H_
#define _MsrAssistBTS_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.c
index 8c9e2df07..b353b894c 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.c
@@ -1,59 +1,58 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MsrAssistData-R98-ExpOTD.h"
static asn_TYPE_member_t asn_MBR_MsrAssistData_R98_ExpOTD_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistData_R98_ExpOTD, msrAssistList_R98_ExpOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrAssistList-R98-ExpOTD"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct MsrAssistData_R98_ExpOTD, msrAssistList_R98_ExpOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrAssistList-R98-ExpOTD"},
};
static ber_tlv_tag_t asn_DEF_MsrAssistData_R98_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MsrAssistData_R98_ExpOTD_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* msrAssistList-R98-ExpOTD at 900 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* msrAssistList-R98-ExpOTD at 900 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MsrAssistData_R98_ExpOTD_specs_1 = {
- sizeof(struct MsrAssistData_R98_ExpOTD),
- offsetof(struct MsrAssistData_R98_ExpOTD, _asn_ctx),
- asn_MAP_MsrAssistData_R98_ExpOTD_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct MsrAssistData_R98_ExpOTD),
+ offsetof(struct MsrAssistData_R98_ExpOTD, _asn_ctx),
+ asn_MAP_MsrAssistData_R98_ExpOTD_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MsrAssistData_R98_ExpOTD = {
- "MsrAssistData-R98-ExpOTD",
- "MsrAssistData-R98-ExpOTD",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MsrAssistData_R98_ExpOTD_tags_1,
- sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_MsrAssistData_R98_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MsrAssistData_R98_ExpOTD_1,
- 1, /* Elements count */
- &asn_SPC_MsrAssistData_R98_ExpOTD_specs_1 /* Additional specs */
+ "MsrAssistData-R98-ExpOTD",
+ "MsrAssistData-R98-ExpOTD",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MsrAssistData_R98_ExpOTD_tags_1,
+ sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_MsrAssistData_R98_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_MsrAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MsrAssistData_R98_ExpOTD_1,
+ 1, /* Elements count */
+ &asn_SPC_MsrAssistData_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.h
index a94887363..32c43cb59 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistData-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MsrAssistData_R98_ExpOTD_H_
#define _MsrAssistData_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistData.c b/src/core/libs/supl/asn-rrlp/MsrAssistData.c
index cd441bf5f..83c463998 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistData.c
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistData.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MsrAssistData.h"
static asn_TYPE_member_t asn_MBR_MsrAssistData_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MsrAssistData, msrAssistList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfMsrAssistBTS,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrAssistList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MsrAssistData, msrAssistList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfMsrAssistBTS,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrAssistList"},
};
static ber_tlv_tag_t asn_DEF_MsrAssistData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MsrAssistData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* msrAssistList at 189 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* msrAssistList at 189 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MsrAssistData_specs_1 = {
- sizeof(struct MsrAssistData),
- offsetof(struct MsrAssistData, _asn_ctx),
- asn_MAP_MsrAssistData_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct MsrAssistData),
+ offsetof(struct MsrAssistData, _asn_ctx),
+ asn_MAP_MsrAssistData_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MsrAssistData = {
- "MsrAssistData",
- "MsrAssistData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MsrAssistData_tags_1,
- sizeof(asn_DEF_MsrAssistData_tags_1)
- /sizeof(asn_DEF_MsrAssistData_tags_1[0]), /* 1 */
- asn_DEF_MsrAssistData_tags_1, /* Same as above */
- sizeof(asn_DEF_MsrAssistData_tags_1)
- /sizeof(asn_DEF_MsrAssistData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MsrAssistData_1,
- 1, /* Elements count */
- &asn_SPC_MsrAssistData_specs_1 /* Additional specs */
+ "MsrAssistData",
+ "MsrAssistData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MsrAssistData_tags_1,
+ sizeof(asn_DEF_MsrAssistData_tags_1) /
+ sizeof(asn_DEF_MsrAssistData_tags_1[0]), /* 1 */
+ asn_DEF_MsrAssistData_tags_1, /* Same as above */
+ sizeof(asn_DEF_MsrAssistData_tags_1) /
+ sizeof(asn_DEF_MsrAssistData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MsrAssistData_1,
+ 1, /* Elements count */
+ &asn_SPC_MsrAssistData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MsrAssistData.h b/src/core/libs/supl/asn-rrlp/MsrAssistData.h
index f0cf06491..6c12a483c 100644
--- a/src/core/libs/supl/asn-rrlp/MsrAssistData.h
+++ b/src/core/libs/supl/asn-rrlp/MsrAssistData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MsrAssistData_H_
#define _MsrAssistData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MsrPosition-Req.c b/src/core/libs/supl/asn-rrlp/MsrPosition-Req.c
index 4603e562c..2a3a0941a 100644
--- a/src/core/libs/supl/asn-rrlp/MsrPosition-Req.c
+++ b/src/core/libs/supl/asn-rrlp/MsrPosition-Req.c
@@ -1,131 +1,113 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MsrPosition-Req.h"
static asn_TYPE_member_t asn_MBR_MsrPosition_Req_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MsrPosition_Req, positionInstruct),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_PositionInstruct,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "positionInstruct"
- },
- { ATF_POINTER, 7, offsetof(struct MsrPosition_Req, referenceAssistData),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceAssistData"
- },
- { ATF_POINTER, 6, offsetof(struct MsrPosition_Req, msrAssistData),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MsrAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrAssistData"
- },
- { ATF_POINTER, 5, offsetof(struct MsrPosition_Req, systemInfoAssistData),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SystemInfoAssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoAssistData"
- },
- { ATF_POINTER, 4, offsetof(struct MsrPosition_Req, gps_AssistData),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPS_AssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gps-AssistData"
- },
- { ATF_POINTER, 3, offsetof(struct MsrPosition_Req, extensionContainer),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExtensionContainer,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extensionContainer"
- },
- { ATF_POINTER, 2, offsetof(struct MsrPosition_Req, rel98_MsrPosition_Req_extension),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel98_MsrPosition_Req_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel98-MsrPosition-Req-extension"
- },
- { ATF_POINTER, 1, offsetof(struct MsrPosition_Req, rel5_MsrPosition_Req_extension),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel5_MsrPosition_Req_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel5-MsrPosition-Req-extension"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MsrPosition_Req, positionInstruct),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_PositionInstruct,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "positionInstruct"},
+ {ATF_POINTER, 7, offsetof(struct MsrPosition_Req, referenceAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceAssistData"},
+ {ATF_POINTER, 6, offsetof(struct MsrPosition_Req, msrAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MsrAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrAssistData"},
+ {ATF_POINTER, 5, offsetof(struct MsrPosition_Req, systemInfoAssistData),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SystemInfoAssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoAssistData"},
+ {ATF_POINTER, 4, offsetof(struct MsrPosition_Req, gps_AssistData),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPS_AssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gps-AssistData"},
+ {ATF_POINTER, 3, offsetof(struct MsrPosition_Req, extensionContainer),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExtensionContainer,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extensionContainer"},
+ {ATF_POINTER, 2,
+ offsetof(struct MsrPosition_Req, rel98_MsrPosition_Req_extension),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel98_MsrPosition_Req_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel98-MsrPosition-Req-extension"},
+ {ATF_POINTER, 1,
+ offsetof(struct MsrPosition_Req, rel5_MsrPosition_Req_extension),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel5_MsrPosition_Req_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel5-MsrPosition-Req-extension"},
};
-static int asn_MAP_MsrPosition_Req_oms_1[] = { 1, 2, 3, 4, 5, 6, 7 };
+static int asn_MAP_MsrPosition_Req_oms_1[] = {1, 2, 3, 4, 5, 6, 7};
static ber_tlv_tag_t asn_DEF_MsrPosition_Req_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MsrPosition_Req_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* positionInstruct at 31 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceAssistData at 32 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* msrAssistData at 33 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* systemInfoAssistData at 34 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gps-AssistData at 35 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensionContainer at 36 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* rel98-MsrPosition-Req-extension at 39 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* rel5-MsrPosition-Req-extension at 41 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* positionInstruct at 31 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* referenceAssistData at 32 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* msrAssistData at 33 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0}, /* systemInfoAssistData at 34 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* gps-AssistData at 35 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* extensionContainer at 36 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* rel98-MsrPosition-Req-extension at 39 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0} /* rel5-MsrPosition-Req-extension at 41 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MsrPosition_Req_specs_1 = {
- sizeof(struct MsrPosition_Req),
- offsetof(struct MsrPosition_Req, _asn_ctx),
- asn_MAP_MsrPosition_Req_tag2el_1,
- 8, /* Count of tags in the map */
- asn_MAP_MsrPosition_Req_oms_1, /* Optional members */
- 5, 2, /* Root/Additions */
- 5, /* Start extensions */
- 9 /* Stop extensions */
+ sizeof(struct MsrPosition_Req),
+ offsetof(struct MsrPosition_Req, _asn_ctx),
+ asn_MAP_MsrPosition_Req_tag2el_1,
+ 8, /* Count of tags in the map */
+ asn_MAP_MsrPosition_Req_oms_1, /* Optional members */
+ 5,
+ 2, /* Root/Additions */
+ 5, /* Start extensions */
+ 9 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MsrPosition_Req = {
- "MsrPosition-Req",
- "MsrPosition-Req",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MsrPosition_Req_tags_1,
- sizeof(asn_DEF_MsrPosition_Req_tags_1)
- /sizeof(asn_DEF_MsrPosition_Req_tags_1[0]), /* 1 */
- asn_DEF_MsrPosition_Req_tags_1, /* Same as above */
- sizeof(asn_DEF_MsrPosition_Req_tags_1)
- /sizeof(asn_DEF_MsrPosition_Req_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MsrPosition_Req_1,
- 8, /* Elements count */
- &asn_SPC_MsrPosition_Req_specs_1 /* Additional specs */
+ "MsrPosition-Req",
+ "MsrPosition-Req",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MsrPosition_Req_tags_1,
+ sizeof(asn_DEF_MsrPosition_Req_tags_1) /
+ sizeof(asn_DEF_MsrPosition_Req_tags_1[0]), /* 1 */
+ asn_DEF_MsrPosition_Req_tags_1, /* Same as above */
+ sizeof(asn_DEF_MsrPosition_Req_tags_1) /
+ sizeof(asn_DEF_MsrPosition_Req_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MsrPosition_Req_1,
+ 8, /* Elements count */
+ &asn_SPC_MsrPosition_Req_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MsrPosition-Req.h b/src/core/libs/supl/asn-rrlp/MsrPosition-Req.h
index 3f0be38f5..80548b197 100644
--- a/src/core/libs/supl/asn-rrlp/MsrPosition-Req.h
+++ b/src/core/libs/supl/asn-rrlp/MsrPosition-Req.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MsrPosition_Req_H_
#define _MsrPosition_Req_H_
-
#include
/* Including external dependencies */
@@ -38,11 +37,13 @@ extern "C"
struct GPS_AssistData *gps_AssistData /* OPTIONAL */;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
- struct Rel98_MsrPosition_Req_Extension *rel98_MsrPosition_Req_extension /* OPTIONAL */;
- struct Rel5_MsrPosition_Req_Extension *rel5_MsrPosition_Req_extension /* OPTIONAL */;
+ * This type is extensible,
+ * possible extensions are below.
+ */
+ struct Rel98_MsrPosition_Req_Extension
+ *rel98_MsrPosition_Req_extension /* OPTIONAL */;
+ struct Rel5_MsrPosition_Req_Extension
+ *rel5_MsrPosition_Req_extension /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.c b/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.c
index 16ff241a0..9a095c7da 100644
--- a/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.c
+++ b/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.c
@@ -1,141 +1,118 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MsrPosition-Rsp.h"
static asn_TYPE_member_t asn_MBR_MsrPosition_Rsp_1[] = {
- { ATF_POINTER, 9, offsetof(struct MsrPosition_Rsp, multipleSets),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MultipleSets,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "multipleSets"
- },
- { ATF_POINTER, 8, offsetof(struct MsrPosition_Rsp, referenceIdentity),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceIdentity,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceIdentity"
- },
- { ATF_POINTER, 7, offsetof(struct MsrPosition_Rsp, otd_MeasureInfo),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_MeasureInfo,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otd-MeasureInfo"
- },
- { ATF_POINTER, 6, offsetof(struct MsrPosition_Rsp, locationInfo),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_LocationInfo,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "locationInfo"
- },
- { ATF_POINTER, 5, offsetof(struct MsrPosition_Rsp, gps_MeasureInfo),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPS_MeasureInfo,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gps-MeasureInfo"
- },
- { ATF_POINTER, 4, offsetof(struct MsrPosition_Rsp, locationError),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_LocationError,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "locationError"
- },
- { ATF_POINTER, 3, offsetof(struct MsrPosition_Rsp, extensionContainer),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExtensionContainer,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extensionContainer"
- },
- { ATF_POINTER, 2, offsetof(struct MsrPosition_Rsp, rel_98_MsrPosition_Rsp_Extension),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel_98_MsrPosition_Rsp_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel-98-MsrPosition-Rsp-Extension"
- },
- { ATF_POINTER, 1, offsetof(struct MsrPosition_Rsp, rel_5_MsrPosition_Rsp_Extension),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel_5_MsrPosition_Rsp_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel-5-MsrPosition-Rsp-Extension"
- },
+ {ATF_POINTER, 9, offsetof(struct MsrPosition_Rsp, multipleSets),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MultipleSets,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "multipleSets"},
+ {ATF_POINTER, 8, offsetof(struct MsrPosition_Rsp, referenceIdentity),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceIdentity,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceIdentity"},
+ {ATF_POINTER, 7, offsetof(struct MsrPosition_Rsp, otd_MeasureInfo),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_MeasureInfo,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otd-MeasureInfo"},
+ {ATF_POINTER, 6, offsetof(struct MsrPosition_Rsp, locationInfo),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_LocationInfo,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "locationInfo"},
+ {ATF_POINTER, 5, offsetof(struct MsrPosition_Rsp, gps_MeasureInfo),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPS_MeasureInfo,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gps-MeasureInfo"},
+ {ATF_POINTER, 4, offsetof(struct MsrPosition_Rsp, locationError),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_LocationError,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "locationError"},
+ {ATF_POINTER, 3, offsetof(struct MsrPosition_Rsp, extensionContainer),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExtensionContainer,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extensionContainer"},
+ {ATF_POINTER, 2,
+ offsetof(struct MsrPosition_Rsp, rel_98_MsrPosition_Rsp_Extension),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel_98_MsrPosition_Rsp_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel-98-MsrPosition-Rsp-Extension"},
+ {ATF_POINTER, 1,
+ offsetof(struct MsrPosition_Rsp, rel_5_MsrPosition_Rsp_Extension),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel_5_MsrPosition_Rsp_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel-5-MsrPosition-Rsp-Extension"},
};
-static int asn_MAP_MsrPosition_Rsp_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
+static int asn_MAP_MsrPosition_Rsp_oms_1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8};
static ber_tlv_tag_t asn_DEF_MsrPosition_Rsp_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MsrPosition_Rsp_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* multipleSets at 51 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceIdentity at 52 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* otd-MeasureInfo at 53 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* locationInfo at 54 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* gps-MeasureInfo at 55 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* locationError at 56 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* extensionContainer at 57 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* rel-98-MsrPosition-Rsp-Extension at 61 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* rel-5-MsrPosition-Rsp-Extension at 63 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* multipleSets at 51 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* referenceIdentity at 52 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* otd-MeasureInfo at 53 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* locationInfo at 54 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* gps-MeasureInfo at 55 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* locationError at 56 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* extensionContainer at 57 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0}, /* rel-98-MsrPosition-Rsp-Extension at 61 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0,
+ 0} /* rel-5-MsrPosition-Rsp-Extension at 63 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MsrPosition_Rsp_specs_1 = {
- sizeof(struct MsrPosition_Rsp),
- offsetof(struct MsrPosition_Rsp, _asn_ctx),
- asn_MAP_MsrPosition_Rsp_tag2el_1,
- 9, /* Count of tags in the map */
- asn_MAP_MsrPosition_Rsp_oms_1, /* Optional members */
- 7, 2, /* Root/Additions */
- 6, /* Start extensions */
- 10 /* Stop extensions */
+ sizeof(struct MsrPosition_Rsp),
+ offsetof(struct MsrPosition_Rsp, _asn_ctx),
+ asn_MAP_MsrPosition_Rsp_tag2el_1,
+ 9, /* Count of tags in the map */
+ asn_MAP_MsrPosition_Rsp_oms_1, /* Optional members */
+ 7,
+ 2, /* Root/Additions */
+ 6, /* Start extensions */
+ 10 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MsrPosition_Rsp = {
- "MsrPosition-Rsp",
- "MsrPosition-Rsp",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MsrPosition_Rsp_tags_1,
- sizeof(asn_DEF_MsrPosition_Rsp_tags_1)
- /sizeof(asn_DEF_MsrPosition_Rsp_tags_1[0]), /* 1 */
- asn_DEF_MsrPosition_Rsp_tags_1, /* Same as above */
- sizeof(asn_DEF_MsrPosition_Rsp_tags_1)
- /sizeof(asn_DEF_MsrPosition_Rsp_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MsrPosition_Rsp_1,
- 9, /* Elements count */
- &asn_SPC_MsrPosition_Rsp_specs_1 /* Additional specs */
+ "MsrPosition-Rsp",
+ "MsrPosition-Rsp",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MsrPosition_Rsp_tags_1,
+ sizeof(asn_DEF_MsrPosition_Rsp_tags_1) /
+ sizeof(asn_DEF_MsrPosition_Rsp_tags_1[0]), /* 1 */
+ asn_DEF_MsrPosition_Rsp_tags_1, /* Same as above */
+ sizeof(asn_DEF_MsrPosition_Rsp_tags_1) /
+ sizeof(asn_DEF_MsrPosition_Rsp_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MsrPosition_Rsp_1,
+ 9, /* Elements count */
+ &asn_SPC_MsrPosition_Rsp_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.h b/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.h
index 09dc9dcbc..d3aee5c32 100644
--- a/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.h
+++ b/src/core/libs/supl/asn-rrlp/MsrPosition-Rsp.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MsrPosition_Rsp_H_
#define _MsrPosition_Rsp_H_
-
#include
/* Including external dependencies */
@@ -40,11 +39,13 @@ extern "C"
struct LocationError *locationError /* OPTIONAL */;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
- struct Rel_98_MsrPosition_Rsp_Extension *rel_98_MsrPosition_Rsp_Extension /* OPTIONAL */;
- struct Rel_5_MsrPosition_Rsp_Extension *rel_5_MsrPosition_Rsp_Extension /* OPTIONAL */;
+ * This type is extensible,
+ * possible extensions are below.
+ */
+ struct Rel_98_MsrPosition_Rsp_Extension
+ *rel_98_MsrPosition_Rsp_Extension /* OPTIONAL */;
+ struct Rel_5_MsrPosition_Rsp_Extension
+ *rel_5_MsrPosition_Rsp_Extension /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.c b/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.c
index de7c825dd..c76dfa37c 100644
--- a/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.c
+++ b/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.c
@@ -1,69 +1,63 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MultiFrameCarrier.h"
static asn_TYPE_member_t asn_MBR_MultiFrameCarrier_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MultiFrameCarrier, bcchCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BCCHCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bcchCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MultiFrameCarrier, multiFrameOffset),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MultiFrameOffset,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "multiFrameOffset"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MultiFrameCarrier, bcchCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BCCHCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bcchCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct MultiFrameCarrier, multiFrameOffset),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MultiFrameOffset,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "multiFrameOffset"},
};
static ber_tlv_tag_t asn_DEF_MultiFrameCarrier_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MultiFrameCarrier_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier at 411 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* multiFrameOffset at 413 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bcchCarrier at 411 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* multiFrameOffset at 413 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MultiFrameCarrier_specs_1 = {
- sizeof(struct MultiFrameCarrier),
- offsetof(struct MultiFrameCarrier, _asn_ctx),
- asn_MAP_MultiFrameCarrier_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct MultiFrameCarrier),
+ offsetof(struct MultiFrameCarrier, _asn_ctx),
+ asn_MAP_MultiFrameCarrier_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MultiFrameCarrier = {
- "MultiFrameCarrier",
- "MultiFrameCarrier",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MultiFrameCarrier_tags_1,
- sizeof(asn_DEF_MultiFrameCarrier_tags_1)
- /sizeof(asn_DEF_MultiFrameCarrier_tags_1[0]), /* 1 */
- asn_DEF_MultiFrameCarrier_tags_1, /* Same as above */
- sizeof(asn_DEF_MultiFrameCarrier_tags_1)
- /sizeof(asn_DEF_MultiFrameCarrier_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MultiFrameCarrier_1,
- 2, /* Elements count */
- &asn_SPC_MultiFrameCarrier_specs_1 /* Additional specs */
+ "MultiFrameCarrier",
+ "MultiFrameCarrier",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MultiFrameCarrier_tags_1,
+ sizeof(asn_DEF_MultiFrameCarrier_tags_1) /
+ sizeof(asn_DEF_MultiFrameCarrier_tags_1[0]), /* 1 */
+ asn_DEF_MultiFrameCarrier_tags_1, /* Same as above */
+ sizeof(asn_DEF_MultiFrameCarrier_tags_1) /
+ sizeof(asn_DEF_MultiFrameCarrier_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MultiFrameCarrier_1,
+ 2, /* Elements count */
+ &asn_SPC_MultiFrameCarrier_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.h b/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.h
index 4a22a67fc..36fff2764 100644
--- a/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.h
+++ b/src/core/libs/supl/asn-rrlp/MultiFrameCarrier.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MultiFrameCarrier_H_
#define _MultiFrameCarrier_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MultiFrameOffset.c b/src/core/libs/supl/asn-rrlp/MultiFrameOffset.c
index 297d81b3f..292097309 100644
--- a/src/core/libs/supl/asn-rrlp/MultiFrameOffset.c
+++ b/src/core/libs/supl/asn-rrlp/MultiFrameOffset.c
@@ -1,145 +1,166 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MultiFrameOffset.h"
-int
-MultiFrameOffset_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+int MultiFrameOffset_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-MultiFrameOffset_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void MultiFrameOffset_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-MultiFrameOffset_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void MultiFrameOffset_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-MultiFrameOffset_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int MultiFrameOffset_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-MultiFrameOffset_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) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t MultiFrameOffset_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)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-MultiFrameOffset_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) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t MultiFrameOffset_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)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-MultiFrameOffset_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) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t MultiFrameOffset_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)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-MultiFrameOffset_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) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t MultiFrameOffset_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)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-MultiFrameOffset_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t MultiFrameOffset_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-MultiFrameOffset_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- MultiFrameOffset_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t MultiFrameOffset_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ MultiFrameOffset_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_MULTI_FRAME_OFFSET_CONSTR_1 = {
- { APC_CONSTRAINED, 6, 6, 0, 51 } /* (0..51) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 51} /* (0..51) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_MultiFrameOffset_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_MultiFrameOffset = {
- "MultiFrameOffset",
- "MultiFrameOffset",
- MultiFrameOffset_free,
- MultiFrameOffset_print,
- MultiFrameOffset_constraint,
- MultiFrameOffset_decode_ber,
- MultiFrameOffset_encode_der,
- MultiFrameOffset_decode_xer,
- MultiFrameOffset_encode_xer,
- MultiFrameOffset_decode_uper,
- MultiFrameOffset_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MultiFrameOffset_tags_1,
- sizeof(asn_DEF_MultiFrameOffset_tags_1)
- /sizeof(asn_DEF_MultiFrameOffset_tags_1[0]), /* 1 */
- asn_DEF_MultiFrameOffset_tags_1, /* Same as above */
- sizeof(asn_DEF_MultiFrameOffset_tags_1)
- /sizeof(asn_DEF_MultiFrameOffset_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_MULTI_FRAME_OFFSET_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "MultiFrameOffset",
+ "MultiFrameOffset",
+ MultiFrameOffset_free,
+ MultiFrameOffset_print,
+ MultiFrameOffset_constraint,
+ MultiFrameOffset_decode_ber,
+ MultiFrameOffset_encode_der,
+ MultiFrameOffset_decode_xer,
+ MultiFrameOffset_encode_xer,
+ MultiFrameOffset_decode_uper,
+ MultiFrameOffset_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MultiFrameOffset_tags_1,
+ sizeof(asn_DEF_MultiFrameOffset_tags_1) /
+ sizeof(asn_DEF_MultiFrameOffset_tags_1[0]), /* 1 */
+ asn_DEF_MultiFrameOffset_tags_1, /* Same as above */
+ sizeof(asn_DEF_MultiFrameOffset_tags_1) /
+ sizeof(asn_DEF_MultiFrameOffset_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_MULTI_FRAME_OFFSET_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MultiFrameOffset.h b/src/core/libs/supl/asn-rrlp/MultiFrameOffset.h
index ee06666df..654bb19dc 100644
--- a/src/core/libs/supl/asn-rrlp/MultiFrameOffset.h
+++ b/src/core/libs/supl/asn-rrlp/MultiFrameOffset.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MultiFrameOffset_H_
#define _MultiFrameOffset_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/MultipleSets.c b/src/core/libs/supl/asn-rrlp/MultipleSets.c
index 7199ac11d..26bf60c18 100644
--- a/src/core/libs/supl/asn-rrlp/MultipleSets.c
+++ b/src/core/libs/supl/asn-rrlp/MultipleSets.c
@@ -1,141 +1,137 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "MultipleSets.h"
-static int
-memb_nbrOfSets_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 2 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_nbrOfSets_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 2 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_nbrOfReferenceBTSs_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 1 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_nbrOfReferenceBTSs_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 1 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_NBR_OF_SETS_CONSTR_2 = {
- { APC_CONSTRAINED, 1, 1, 2, 3 } /* (2..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 2, 3} /* (2..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_NBR_OF_REFERENCE_BT_SS_CONSTR_3 = {
- { APC_CONSTRAINED, 2, 2, 1, 3 } /* (1..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 1, 3} /* (1..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_MultipleSets_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct MultipleSets, nbrOfSets),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_nbrOfSets_constraint_1,
- &ASN_PER_MEMB_NBR_OF_SETS_CONSTR_2,
- 0,
- "nbrOfSets"
- },
- { ATF_NOFLAGS, 0, offsetof(struct MultipleSets, nbrOfReferenceBTSs),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_nbrOfReferenceBTSs_constraint_1,
- &ASN_PER_MEMB_NBR_OF_REFERENCE_BT_SS_CONSTR_3,
- 0,
- "nbrOfReferenceBTSs"
- },
- { ATF_POINTER, 1, offsetof(struct MultipleSets, referenceRelation),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ReferenceRelation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceRelation"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct MultipleSets, nbrOfSets),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_nbrOfSets_constraint_1,
+ &ASN_PER_MEMB_NBR_OF_SETS_CONSTR_2, 0, "nbrOfSets"},
+ {ATF_NOFLAGS, 0, offsetof(struct MultipleSets, nbrOfReferenceBTSs),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_nbrOfReferenceBTSs_constraint_1,
+ &ASN_PER_MEMB_NBR_OF_REFERENCE_BT_SS_CONSTR_3, 0, "nbrOfReferenceBTSs"},
+ {ATF_POINTER, 1, offsetof(struct MultipleSets, referenceRelation),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ReferenceRelation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceRelation"},
};
-static int asn_MAP_MultipleSets_oms_1[] = { 2 };
+static int asn_MAP_MultipleSets_oms_1[] = {2};
static ber_tlv_tag_t asn_DEF_MultipleSets_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_MultipleSets_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nbrOfSets at 267 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nbrOfReferenceBTSs at 270 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* referenceRelation at 274 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* nbrOfSets at 267 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* nbrOfReferenceBTSs at 270 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* referenceRelation at 274 */
};
static asn_SEQUENCE_specifics_t asn_SPC_MultipleSets_specs_1 = {
- sizeof(struct MultipleSets),
- offsetof(struct MultipleSets, _asn_ctx),
- asn_MAP_MultipleSets_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_MultipleSets_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct MultipleSets),
+ offsetof(struct MultipleSets, _asn_ctx),
+ asn_MAP_MultipleSets_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_MultipleSets_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_MultipleSets = {
- "MultipleSets",
- "MultipleSets",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_MultipleSets_tags_1,
- sizeof(asn_DEF_MultipleSets_tags_1)
- /sizeof(asn_DEF_MultipleSets_tags_1[0]), /* 1 */
- asn_DEF_MultipleSets_tags_1, /* Same as above */
- sizeof(asn_DEF_MultipleSets_tags_1)
- /sizeof(asn_DEF_MultipleSets_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_MultipleSets_1,
- 3, /* Elements count */
- &asn_SPC_MultipleSets_specs_1 /* Additional specs */
+ "MultipleSets",
+ "MultipleSets",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_MultipleSets_tags_1,
+ sizeof(asn_DEF_MultipleSets_tags_1) /
+ sizeof(asn_DEF_MultipleSets_tags_1[0]), /* 1 */
+ asn_DEF_MultipleSets_tags_1, /* Same as above */
+ sizeof(asn_DEF_MultipleSets_tags_1) /
+ sizeof(asn_DEF_MultipleSets_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_MultipleSets_1,
+ 3, /* Elements count */
+ &asn_SPC_MultipleSets_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/MultipleSets.h b/src/core/libs/supl/asn-rrlp/MultipleSets.h
index 9f8f4a87d..daa565302 100644
--- a/src/core/libs/supl/asn-rrlp/MultipleSets.h
+++ b/src/core/libs/supl/asn-rrlp/MultipleSets.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _MultipleSets_H_
#define _MultipleSets_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/NULL.c b/src/core/libs/supl/asn-rrlp/NULL.c
index 6d3316f1c..c6950577d 100644
--- a/src/core/libs/supl/asn-rrlp/NULL.c
+++ b/src/core/libs/supl/asn-rrlp/NULL.c
@@ -5,143 +5,155 @@
#include
#include
#include
-#include /* Implemented in terms of BOOLEAN type */
+#include /* Implemented in terms of BOOLEAN type */
/*
* NULL basic type description.
*/
static ber_tlv_tag_t asn_DEF_NULL_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (5 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (5 << 2))};
asn_TYPE_descriptor_t asn_DEF_NULL = {
- "NULL",
- "NULL",
- BOOLEAN_free,
- NULL_print,
- asn_generic_no_constraint,
- BOOLEAN_decode_ber, /* Implemented in terms of BOOLEAN */
- NULL_encode_der, /* Special handling of DER encoding */
- NULL_decode_xer,
- NULL_encode_xer,
- NULL_decode_uper, /* Unaligned PER decoder */
- NULL_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NULL_tags,
- sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]),
- asn_DEF_NULL_tags, /* Same as above */
- sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "NULL",
+ "NULL",
+ BOOLEAN_free,
+ NULL_print,
+ asn_generic_no_constraint,
+ BOOLEAN_decode_ber, /* Implemented in terms of BOOLEAN */
+ NULL_encode_der, /* Special handling of DER encoding */
+ NULL_decode_xer,
+ NULL_encode_xer,
+ NULL_decode_uper, /* Unaligned PER decoder */
+ NULL_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NULL_tags,
+ sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]),
+ asn_DEF_NULL_tags, /* Same as above */
+ sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-asn_enc_rval_t
-NULL_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
- int tag_mode, ber_tlv_tag_t tag,
- asn_app_consume_bytes_f *cb, void *app_key) {
- asn_enc_rval_t erval;
+asn_enc_rval_t NULL_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
+ int tag_mode, ber_tlv_tag_t tag,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ asn_enc_rval_t erval;
- erval.encoded = der_write_tags(td, 0, tag_mode, 0, tag, cb, app_key);
- if(erval.encoded == -1) {
- erval.failed_type = td;
- erval.structure_ptr = ptr;
- }
+ erval.encoded = der_write_tags(td, 0, tag_mode, 0, tag, cb, app_key);
+ if (erval.encoded == -1)
+ {
+ erval.failed_type = td;
+ erval.structure_ptr = ptr;
+ }
- _ASN_ENCODED_OK(erval);
+ _ASN_ENCODED_OK(erval);
}
-asn_enc_rval_t
-NULL_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) {
- asn_enc_rval_t er;
+asn_enc_rval_t NULL_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)
+{
+ asn_enc_rval_t er;
- (void)td;
- (void)sptr;
- (void)ilevel;
- (void)flags;
- (void)cb;
- (void)app_key;
+ (void)td;
+ (void)sptr;
+ (void)ilevel;
+ (void)flags;
+ (void)cb;
+ (void)app_key;
- /* XMLNullValue is empty */
- er.encoded = 0;
- _ASN_ENCODED_OK(er);
+ /* XMLNullValue is empty */
+ er.encoded = 0;
+ _ASN_ENCODED_OK(er);
}
+static enum xer_pbd_rval NULL__xer_body_decode(asn_TYPE_descriptor_t *td,
+ void *sptr,
+ const void *chunk_buf,
+ size_t chunk_size)
+{
+ (void)td;
+ (void)sptr;
-static enum xer_pbd_rval
-NULL__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) {
- (void)td;
- (void)sptr;
-
- if(xer_is_whitespace(chunk_buf, chunk_size))
- return XPBD_BODY_CONSUMED;
- else
- return XPBD_BROKEN_ENCODING;
+ if (xer_is_whitespace(chunk_buf, chunk_size))
+ return XPBD_BODY_CONSUMED;
+ else
+ return XPBD_BROKEN_ENCODING;
}
-asn_dec_rval_t
-NULL_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) {
-
- return xer_decode_primitive(opt_codec_ctx, td,
- sptr, sizeof(NULL_t), opt_mname, buf_ptr, size,
- NULL__xer_body_decode);
+asn_dec_rval_t NULL_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)
+{
+ return xer_decode_primitive(opt_codec_ctx, td, sptr, sizeof(NULL_t),
+ opt_mname, buf_ptr, size,
+ NULL__xer_body_decode);
}
-int
-NULL_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
+int NULL_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ (void)td; /* Unused argument */
+ (void)ilevel; /* Unused argument */
- (void)td; /* Unused argument */
- (void)ilevel; /* Unused argument */
-
- if(sptr) {
- return (cb("", 9, app_key) < 0) ? -1 : 0;
- } else {
- return (cb("", 8, app_key) < 0) ? -1 : 0;
- }
+ if (sptr)
+ {
+ return (cb("", 9, app_key) < 0) ? -1 : 0;
+ }
+ else
+ {
+ return (cb("", 8, app_key) < 0) ? -1 : 0;
+ }
}
-asn_dec_rval_t
-NULL_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_dec_rval_t rv;
+asn_dec_rval_t NULL_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_dec_rval_t rv;
- (void)opt_codec_ctx;
- (void)td;
- (void)constraints;
- (void)pd;
+ (void)opt_codec_ctx;
+ (void)td;
+ (void)constraints;
+ (void)pd;
- if(!*sptr) {
- *sptr = MALLOC(sizeof(NULL_t));
- if(*sptr) {
- *(NULL_t *)*sptr = 0;
- } else {
- _ASN_DECODE_FAILED;
- }
- }
+ if (!*sptr)
+ {
+ *sptr = MALLOC(sizeof(NULL_t));
+ if (*sptr)
+ {
+ *(NULL_t *)*sptr = 0;
+ }
+ else
+ {
+ _ASN_DECODE_FAILED;
+ }
+ }
- /*
- * NULL type does not have content octets.
- */
+ /*
+ * NULL type does not have content octets.
+ */
- rv.code = RC_OK;
- rv.consumed = 0;
- return rv;
+ rv.code = RC_OK;
+ rv.consumed = 0;
+ return rv;
}
-asn_enc_rval_t
-NULL_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
- void *sptr, asn_per_outp_t *po) {
- asn_enc_rval_t er;
+asn_enc_rval_t NULL_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void *sptr,
+ asn_per_outp_t *po)
+{
+ asn_enc_rval_t er;
- (void)td;
- (void)constraints;
- (void)sptr;
- (void)po;
+ (void)td;
+ (void)constraints;
+ (void)sptr;
+ (void)po;
- er.encoded = 0;
- _ASN_ENCODED_OK(er);
+ er.encoded = 0;
+ _ASN_ENCODED_OK(er);
}
diff --git a/src/core/libs/supl/asn-rrlp/NULL.h b/src/core/libs/supl/asn-rrlp/NULL.h
index 5720faf3b..8b04ed03e 100644
--- a/src/core/libs/supl/asn-rrlp/NULL.h
+++ b/src/core/libs/supl/asn-rrlp/NULL.h
@@ -13,9 +13,9 @@ extern "C"
#endif
/*
- * The value of the NULL type is meaningless: see BOOLEAN if you want to
- * carry true/false semantics.
- */
+ * The value of the NULL type is meaningless: see BOOLEAN if you want to
+ * carry true/false semantics.
+ */
typedef int NULL_t;
extern asn_TYPE_descriptor_t asn_DEF_NULL;
diff --git a/src/core/libs/supl/asn-rrlp/NativeEnumerated.c b/src/core/libs/supl/asn-rrlp/NativeEnumerated.c
index 59df9134f..dd4d3f235 100644
--- a/src/core/libs/supl/asn-rrlp/NativeEnumerated.c
+++ b/src/core/libs/supl/asn-rrlp/NativeEnumerated.c
@@ -16,193 +16,211 @@
* NativeEnumerated basic type description.
*/
static ber_tlv_tag_t asn_DEF_NativeEnumerated_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_NativeEnumerated = {
- "ENUMERATED", /* The ASN.1 type is still ENUMERATED */
- "ENUMERATED",
- NativeInteger_free,
- NativeInteger_print,
- asn_generic_no_constraint,
- NativeInteger_decode_ber,
- NativeInteger_encode_der,
- NativeInteger_decode_xer,
- NativeEnumerated_encode_xer,
- NativeEnumerated_decode_uper,
- NativeEnumerated_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NativeEnumerated_tags,
- sizeof(asn_DEF_NativeEnumerated_tags) / sizeof(asn_DEF_NativeEnumerated_tags[0]),
- asn_DEF_NativeEnumerated_tags, /* Same as above */
- sizeof(asn_DEF_NativeEnumerated_tags) / sizeof(asn_DEF_NativeEnumerated_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "ENUMERATED", /* The ASN.1 type is still ENUMERATED */
+ "ENUMERATED",
+ NativeInteger_free,
+ NativeInteger_print,
+ asn_generic_no_constraint,
+ NativeInteger_decode_ber,
+ NativeInteger_encode_der,
+ NativeInteger_decode_xer,
+ NativeEnumerated_encode_xer,
+ NativeEnumerated_decode_uper,
+ NativeEnumerated_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NativeEnumerated_tags,
+ sizeof(asn_DEF_NativeEnumerated_tags) /
+ sizeof(asn_DEF_NativeEnumerated_tags[0]),
+ asn_DEF_NativeEnumerated_tags, /* Same as above */
+ sizeof(asn_DEF_NativeEnumerated_tags) /
+ sizeof(asn_DEF_NativeEnumerated_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-asn_enc_rval_t
-NativeEnumerated_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) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- asn_enc_rval_t er;
- const long *native = (const long *)sptr;
- const asn_INTEGER_enum_map_t *el;
+asn_enc_rval_t NativeEnumerated_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)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_enc_rval_t er;
+ const long *native = (const long *)sptr;
+ const asn_INTEGER_enum_map_t *el;
- (void)ilevel;
- (void)flags;
+ (void)ilevel;
+ (void)flags;
- if(!native) _ASN_ENCODE_FAILED;
+ if (!native) _ASN_ENCODE_FAILED;
- el = INTEGER_map_value2enum(specs, *native);
- if(el) {
- size_t srcsize = el->enum_len + 5;
- char *src = (char *)alloca(srcsize);
+ el = INTEGER_map_value2enum(specs, *native);
+ if (el)
+ {
+ size_t srcsize = el->enum_len + 5;
+ char *src = (char *)alloca(srcsize);
- er.encoded = snprintf(src, srcsize, "<%s/>", el->enum_name);
- assert(er.encoded > 0 && (size_t)er.encoded < srcsize);
- if(cb(src, er.encoded, app_key) < 0) _ASN_ENCODE_FAILED;
- _ASN_ENCODED_OK(er);
- } else {
- ASN_DEBUG("ASN.1 forbids dealing with "
- "unknown value of ENUMERATED type");
- _ASN_ENCODE_FAILED;
- }
+ er.encoded = snprintf(src, srcsize, "<%s/>", el->enum_name);
+ assert(er.encoded > 0 && (size_t)er.encoded < srcsize);
+ if (cb(src, er.encoded, app_key) < 0) _ASN_ENCODE_FAILED;
+ _ASN_ENCODED_OK(er);
+ }
+ else
+ {
+ ASN_DEBUG(
+ "ASN.1 forbids dealing with "
+ "unknown value of ENUMERATED type");
+ _ASN_ENCODE_FAILED;
+ }
}
-asn_dec_rval_t
-NativeEnumerated_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_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
- asn_dec_rval_t rval = { RC_OK, 0 };
- long *native = (long *)*sptr;
- asn_per_constraint_t *ct;
- long value;
+asn_dec_rval_t NativeEnumerated_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_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_dec_rval_t rval = {RC_OK, 0};
+ long *native = (long *)*sptr;
+ asn_per_constraint_t *ct;
+ long value;
- (void)opt_codec_ctx;
+ (void)opt_codec_ctx;
- if(constraints) ct = &constraints->value;
- else if(td->per_constraints) ct = &td->per_constraints->value;
- else _ASN_DECODE_FAILED; /* Mandatory! */
- if(!specs) _ASN_DECODE_FAILED;
+ if (constraints)
+ ct = &constraints->value;
+ else if (td->per_constraints)
+ ct = &td->per_constraints->value;
+ else
+ _ASN_DECODE_FAILED; /* Mandatory! */
+ if (!specs) _ASN_DECODE_FAILED;
- if(!native) {
- native = (long *)(*sptr = CALLOC(1, sizeof(*native)));
- if(!native) _ASN_DECODE_FAILED;
- }
+ if (!native)
+ {
+ native = (long *)(*sptr = CALLOC(1, sizeof(*native)));
+ if (!native) _ASN_DECODE_FAILED;
+ }
- ASN_DEBUG("Decoding %s as NativeEnumerated", td->name);
+ ASN_DEBUG("Decoding %s as NativeEnumerated", td->name);
- if(ct->flags & APC_EXTENSIBLE) {
- int inext = per_get_few_bits(pd, 1);
- if(inext < 0) _ASN_DECODE_STARVED;
- if(inext) ct = 0;
- }
+ if (ct->flags & APC_EXTENSIBLE)
+ {
+ int inext = per_get_few_bits(pd, 1);
+ if (inext < 0) _ASN_DECODE_STARVED;
+ if (inext) ct = 0;
+ }
- if(ct && ct->range_bits >= 0) {
- value = per_get_few_bits(pd, ct->range_bits);
- if(value < 0) _ASN_DECODE_STARVED;
- if(value >= (specs->extension
- ? specs->extension - 1 : specs->map_count))
- _ASN_DECODE_FAILED;
- } else {
- if(!specs->extension)
- _ASN_DECODE_FAILED;
- /*
- * X.691, #10.6: normally small non-negative whole number;
- */
- value = uper_get_nsnnwn(pd);
- if(value < 0) _ASN_DECODE_STARVED;
- value += specs->extension - 1;
- if(value >= specs->map_count)
- _ASN_DECODE_FAILED;
- }
+ if (ct && ct->range_bits >= 0)
+ {
+ value = per_get_few_bits(pd, ct->range_bits);
+ if (value < 0) _ASN_DECODE_STARVED;
+ if (value >=
+ (specs->extension ? specs->extension - 1 : specs->map_count))
+ _ASN_DECODE_FAILED;
+ }
+ else
+ {
+ if (!specs->extension) _ASN_DECODE_FAILED;
+ /*
+ * X.691, #10.6: normally small non-negative whole number;
+ */
+ value = uper_get_nsnnwn(pd);
+ if (value < 0) _ASN_DECODE_STARVED;
+ value += specs->extension - 1;
+ if (value >= specs->map_count) _ASN_DECODE_FAILED;
+ }
- *native = specs->value2enum[value].nat_value;
- ASN_DEBUG("Decoded %s = %ld", td->name, *native);
+ *native = specs->value2enum[value].nat_value;
+ ASN_DEBUG("Decoded %s = %ld", td->name, *native);
- return rval;
+ return rval;
}
-static int
-NativeEnumerated__compar_value2enum(const void *ap, const void *bp) {
- const asn_INTEGER_enum_map_t *a = ap;
- const asn_INTEGER_enum_map_t *b = bp;
- if(a->nat_value == b->nat_value)
- return 0;
- if(a->nat_value < b->nat_value)
- return -1;
- return 1;
+static int NativeEnumerated__compar_value2enum(const void *ap, const void *bp)
+{
+ const asn_INTEGER_enum_map_t *a = ap;
+ const asn_INTEGER_enum_map_t *b = bp;
+ if (a->nat_value == b->nat_value) return 0;
+ if (a->nat_value < b->nat_value) return -1;
+ return 1;
}
-asn_enc_rval_t
-NativeEnumerated_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
- asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
- asn_enc_rval_t er;
- long native;
- long value;
- asn_per_constraint_t *ct;
- int inext = 0;
- asn_INTEGER_enum_map_t key;
- asn_INTEGER_enum_map_t *kf;
+asn_enc_rval_t NativeEnumerated_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *sptr, asn_per_outp_t *po)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_enc_rval_t er;
+ long native;
+ long value;
+ asn_per_constraint_t *ct;
+ int inext = 0;
+ asn_INTEGER_enum_map_t key;
+ asn_INTEGER_enum_map_t *kf;
- if(!sptr) _ASN_ENCODE_FAILED;
- if(!specs) _ASN_ENCODE_FAILED;
+ if (!sptr) _ASN_ENCODE_FAILED;
+ if (!specs) _ASN_ENCODE_FAILED;
- if(constraints) ct = &constraints->value;
- else if(td->per_constraints) ct = &td->per_constraints->value;
- else _ASN_ENCODE_FAILED; /* Mandatory! */
+ if (constraints)
+ ct = &constraints->value;
+ else if (td->per_constraints)
+ ct = &td->per_constraints->value;
+ else
+ _ASN_ENCODE_FAILED; /* Mandatory! */
- ASN_DEBUG("Encoding %s as NativeEnumerated", td->name);
+ ASN_DEBUG("Encoding %s as NativeEnumerated", td->name);
- er.encoded = 0;
+ er.encoded = 0;
- native = *(long *)sptr;
- if(native < 0) _ASN_ENCODE_FAILED;
+ native = *(long *)sptr;
+ if (native < 0) _ASN_ENCODE_FAILED;
- key.nat_value = native;
- kf = bsearch(&key, specs->value2enum, specs->map_count,
- sizeof(key), NativeEnumerated__compar_value2enum);
- if(!kf) {
- ASN_DEBUG("No element corresponds to %ld", native);
- _ASN_ENCODE_FAILED;
- }
- value = kf - specs->value2enum;
+ key.nat_value = native;
+ kf = bsearch(&key, specs->value2enum, specs->map_count, sizeof(key),
+ NativeEnumerated__compar_value2enum);
+ if (!kf)
+ {
+ ASN_DEBUG("No element corresponds to %ld", native);
+ _ASN_ENCODE_FAILED;
+ }
+ value = kf - specs->value2enum;
- if(ct->range_bits >= 0) {
- int cmpWith = specs->extension
- ? specs->extension - 1 : specs->map_count;
- if(value >= cmpWith)
- inext = 1;
- }
- if(ct->flags & APC_EXTENSIBLE) {
- if(per_put_few_bits(po, inext, 1))
- _ASN_ENCODE_FAILED;
- if(inext) ct = 0;
- } else if(inext) {
- _ASN_ENCODE_FAILED;
- }
+ if (ct->range_bits >= 0)
+ {
+ int cmpWith =
+ specs->extension ? specs->extension - 1 : specs->map_count;
+ if (value >= cmpWith) inext = 1;
+ }
+ if (ct->flags & APC_EXTENSIBLE)
+ {
+ if (per_put_few_bits(po, inext, 1)) _ASN_ENCODE_FAILED;
+ if (inext) ct = 0;
+ }
+ else if (inext)
+ {
+ _ASN_ENCODE_FAILED;
+ }
- if(ct && ct->range_bits >= 0) {
- if(per_put_few_bits(po, value, ct->range_bits))
- _ASN_ENCODE_FAILED;
- _ASN_ENCODED_OK(er);
- }
+ if (ct && ct->range_bits >= 0)
+ {
+ if (per_put_few_bits(po, value, ct->range_bits)) _ASN_ENCODE_FAILED;
+ _ASN_ENCODED_OK(er);
+ }
- if(!specs->extension)
- _ASN_ENCODE_FAILED;
+ if (!specs->extension) _ASN_ENCODE_FAILED;
- /*
- * X.691, #10.6: normally small non-negative whole number;
- */
- ASN_DEBUG("value = %ld, ext = %d, inext = %d, res = %ld",
- value, specs->extension, inext,
- value - (inext ? (specs->extension - 1) : 0));
- if(uper_put_nsnnwn(po, value - (inext ? (specs->extension - 1) : 0)))
- _ASN_ENCODE_FAILED;
+ /*
+ * X.691, #10.6: normally small non-negative whole number;
+ */
+ ASN_DEBUG("value = %ld, ext = %d, inext = %d, res = %ld", value,
+ specs->extension, inext,
+ value - (inext ? (specs->extension - 1) : 0));
+ if (uper_put_nsnnwn(po, value - (inext ? (specs->extension - 1) : 0)))
+ _ASN_ENCODE_FAILED;
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
}
-
diff --git a/src/core/libs/supl/asn-rrlp/NativeInteger.c b/src/core/libs/supl/asn-rrlp/NativeInteger.c
index 157a0e16d..4439da598 100644
--- a/src/core/libs/supl/asn-rrlp/NativeInteger.c
+++ b/src/core/libs/supl/asn-rrlp/NativeInteger.c
@@ -17,315 +17,332 @@
* NativeInteger basic type description.
*/
static ber_tlv_tag_t asn_DEF_NativeInteger_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_NativeInteger = {
- "INTEGER", /* The ASN.1 type is still INTEGER */
- "INTEGER",
- NativeInteger_free,
- NativeInteger_print,
- asn_generic_no_constraint,
- NativeInteger_decode_ber,
- NativeInteger_encode_der,
- NativeInteger_decode_xer,
- NativeInteger_encode_xer,
- NativeInteger_decode_uper, /* Unaligned PER decoder */
- NativeInteger_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NativeInteger_tags,
- sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]),
- asn_DEF_NativeInteger_tags, /* Same as above */
- sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- 0 /* No specifics */
+ "INTEGER", /* The ASN.1 type is still INTEGER */
+ "INTEGER",
+ NativeInteger_free,
+ NativeInteger_print,
+ asn_generic_no_constraint,
+ NativeInteger_decode_ber,
+ NativeInteger_encode_der,
+ NativeInteger_decode_xer,
+ NativeInteger_encode_xer,
+ NativeInteger_decode_uper, /* Unaligned PER decoder */
+ NativeInteger_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NativeInteger_tags,
+ sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]),
+ asn_DEF_NativeInteger_tags, /* Same as above */
+ sizeof(asn_DEF_NativeInteger_tags) / sizeof(asn_DEF_NativeInteger_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
/*
* Decode INTEGER type.
*/
-asn_dec_rval_t
-NativeInteger_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
- asn_TYPE_descriptor_t *td,
- void **nint_ptr, const void *buf_ptr, size_t size, int tag_mode) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- long *native = (long *)*nint_ptr;
- asn_dec_rval_t rval;
- ber_tlv_len_t length;
+asn_dec_rval_t NativeInteger_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ void **nint_ptr, const void *buf_ptr,
+ size_t size, int tag_mode)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ long *native = (long *)*nint_ptr;
+ asn_dec_rval_t rval;
+ ber_tlv_len_t length;
- /*
- * If the structure is not there, allocate it.
- */
- if(native == NULL) {
- native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native)));
- if(native == NULL) {
- rval.code = RC_FAIL;
- rval.consumed = 0;
- return rval;
- }
- }
+ /*
+ * If the structure is not there, allocate it.
+ */
+ if (native == NULL)
+ {
+ native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native)));
+ if (native == NULL)
+ {
+ rval.code = RC_FAIL;
+ rval.consumed = 0;
+ return rval;
+ }
+ }
- ASN_DEBUG("Decoding %s as INTEGER (tm=%d)",
- td->name, tag_mode);
+ ASN_DEBUG("Decoding %s as INTEGER (tm=%d)", td->name, tag_mode);
- /*
- * Check tags.
- */
- rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size,
- tag_mode, 0, &length, 0);
- if(rval.code != RC_OK)
- return rval;
+ /*
+ * Check tags.
+ */
+ rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, tag_mode, 0,
+ &length, 0);
+ if (rval.code != RC_OK) return rval;
- ASN_DEBUG("%s length is %d bytes", td->name, (int)length);
+ ASN_DEBUG("%s length is %d bytes", td->name, (int)length);
- /*
- * Make sure we have this length.
- */
- buf_ptr = ((const char *)buf_ptr) + rval.consumed;
- size -= rval.consumed;
- if(length > (ber_tlv_len_t)size) {
- rval.code = RC_WMORE;
- rval.consumed = 0;
- return rval;
- }
+ /*
+ * Make sure we have this length.
+ */
+ buf_ptr = ((const char *)buf_ptr) + rval.consumed;
+ size -= rval.consumed;
+ if (length > (ber_tlv_len_t)size)
+ {
+ rval.code = RC_WMORE;
+ rval.consumed = 0;
+ return rval;
+ }
- /*
- * ASN.1 encoded INTEGER: buf_ptr, length
- * Fill the native, at the same time checking for overflow.
- * If overflow occurred, return with RC_FAIL.
- */
- {
- INTEGER_t tmp;
- union {
- const void *constbuf;
- void *nonconstbuf;
- } unconst_buf;
- int64_t l;
+ /*
+ * ASN.1 encoded INTEGER: buf_ptr, length
+ * Fill the native, at the same time checking for overflow.
+ * If overflow occurred, return with RC_FAIL.
+ */
+ {
+ INTEGER_t tmp;
+ union
+ {
+ const void *constbuf;
+ void *nonconstbuf;
+ } unconst_buf;
+ int64_t l;
- unconst_buf.constbuf = buf_ptr;
- tmp.buf = (uint8_t *)unconst_buf.nonconstbuf;
- tmp.size = length;
+ unconst_buf.constbuf = buf_ptr;
+ tmp.buf = (uint8_t *)unconst_buf.nonconstbuf;
+ tmp.size = length;
- if((specs&&specs->field_unsigned)
- ? asn_INTEGER2ulong(&tmp, (uint64_t*)&l)
- : asn_INTEGER2long(&tmp, &l)) {
- rval.code = RC_FAIL;
- rval.consumed = 0;
- return rval;
- }
+ if ((specs && specs->field_unsigned)
+ ? asn_INTEGER2ulong(&tmp, (uint64_t *)&l)
+ : asn_INTEGER2long(&tmp, &l))
+ {
+ rval.code = RC_FAIL;
+ rval.consumed = 0;
+ return rval;
+ }
- *native = l;
- }
+ *native = l;
+ }
- rval.code = RC_OK;
- rval.consumed += length;
+ rval.code = RC_OK;
+ rval.consumed += length;
- ASN_DEBUG("Took %ld/%ld bytes to encode %s (%ld)",
- (long)rval.consumed, (long)length, td->name, (long)*native);
+ ASN_DEBUG("Took %ld/%ld bytes to encode %s (%ld)", (long)rval.consumed,
+ (long)length, td->name, *native);
- return rval;
+ return rval;
}
/*
* Encode the NativeInteger using the standard INTEGER type DER encoder.
*/
-asn_enc_rval_t
-NativeInteger_encode_der(asn_TYPE_descriptor_t *sd, void *ptr,
- int tag_mode, ber_tlv_tag_t tag,
- asn_app_consume_bytes_f *cb, void *app_key) {
- uint64_t native = *(uint64_t *)ptr; /* Disable sign ext. */
- asn_enc_rval_t erval;
- INTEGER_t tmp;
+asn_enc_rval_t NativeInteger_encode_der(asn_TYPE_descriptor_t *sd, void *ptr,
+ int tag_mode, ber_tlv_tag_t tag,
+ asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ uint64_t native = *(uint64_t *)ptr; /* Disable sign ext. */
+ asn_enc_rval_t erval;
+ INTEGER_t tmp;
-#ifdef WORDS_BIGENDIAN /* Opportunistic optimization */
+#ifdef WORDS_BIGENDIAN /* Opportunistic optimization */
- tmp.buf = (uint8_t *)&native;
- tmp.size = sizeof(native);
+ tmp.buf = (uint8_t *)&native;
+ tmp.size = sizeof(native);
-#else /* Works even if WORDS_BIGENDIAN is not set where should've been */
- uint8_t buf[sizeof(native)];
- uint8_t *p;
+#else /* Works even if WORDS_BIGENDIAN is not set where should've been */
+ uint8_t buf[sizeof(native)];
+ uint8_t *p;
- /* Prepare a fake INTEGER */
- for(p = buf + sizeof(buf) - 1; p >= buf; p--, native >>= 8)
- *p = (uint8_t)native;
+ /* Prepare a fake INTEGER */
+ for (p = buf + sizeof(buf) - 1; p >= buf; p--, native >>= 8)
+ *p = (uint8_t)native;
- tmp.buf = buf;
- tmp.size = sizeof(buf);
-#endif /* WORDS_BIGENDIAN */
+ tmp.buf = buf;
+ tmp.size = sizeof(buf);
+#endif /* WORDS_BIGENDIAN */
- /* Encode fake INTEGER */
- erval = INTEGER_encode_der(sd, &tmp, tag_mode, tag, cb, app_key);
- if(erval.encoded == -1) {
- assert(erval.structure_ptr == &tmp);
- erval.structure_ptr = ptr;
- }
- return erval;
+ /* Encode fake INTEGER */
+ erval = INTEGER_encode_der(sd, &tmp, tag_mode, tag, cb, app_key);
+ if (erval.encoded == -1)
+ {
+ assert(erval.structure_ptr == &tmp);
+ erval.structure_ptr = ptr;
+ }
+ return erval;
}
/*
* Decode the chunk of XML text encoding INTEGER.
*/
-asn_dec_rval_t
-NativeInteger_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_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- asn_dec_rval_t rval;
- INTEGER_t st;
- void *st_ptr = (void *)&st;
- long *native = (long *)*sptr;
+asn_dec_rval_t NativeInteger_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_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_dec_rval_t rval;
+ INTEGER_t st;
+ void *st_ptr = (void *)&st;
+ long *native = (long *)*sptr;
- if(!native) {
- native = (long *)(*sptr = CALLOC(1, sizeof(*native)));
- if(!native) _ASN_DECODE_FAILED;
- }
+ if (!native)
+ {
+ native = (long *)(*sptr = CALLOC(1, sizeof(*native)));
+ if (!native) _ASN_DECODE_FAILED;
+ }
- memset(&st, 0, sizeof(st));
- rval = INTEGER_decode_xer(opt_codec_ctx, td, &st_ptr,
- opt_mname, buf_ptr, size);
- if(rval.code == RC_OK) {
- int64_t l;
- if((specs&&specs->field_unsigned)
- ? asn_INTEGER2ulong(&st, (uint64_t*)&l)
- : asn_INTEGER2long(&st, &l)) {
- rval.code = RC_FAIL;
- rval.consumed = 0;
- } else {
- *native = l;
- }
- } else {
- /*
- * Cannot restart from the middle;
- * there is no place to save state in the native type.
- * Request a continuation from the very beginning.
- */
- rval.consumed = 0;
- }
- ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st);
- return rval;
+ memset(&st, 0, sizeof(st));
+ rval = INTEGER_decode_xer(opt_codec_ctx, td, &st_ptr, opt_mname, buf_ptr,
+ size);
+ if (rval.code == RC_OK)
+ {
+ int64_t l;
+ if ((specs && specs->field_unsigned)
+ ? asn_INTEGER2ulong(&st, (uint64_t *)&l)
+ : asn_INTEGER2long(&st, &l))
+ {
+ rval.code = RC_FAIL;
+ rval.consumed = 0;
+ }
+ else
+ {
+ *native = l;
+ }
+ }
+ else
+ {
+ /*
+ * Cannot restart from the middle;
+ * there is no place to save state in the native type.
+ * Request a continuation from the very beginning.
+ */
+ rval.consumed = 0;
+ }
+ ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st);
+ return rval;
}
+asn_enc_rval_t NativeInteger_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)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ char scratch[32]; /* Enough for 64-bit int */
+ asn_enc_rval_t er;
+ const long *native = (const long *)sptr;
-asn_enc_rval_t
-NativeInteger_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) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- char scratch[32]; /* Enough for 64-bit int */
- asn_enc_rval_t er;
- const long *native = (const long *)sptr;
+ (void)ilevel;
+ (void)flags;
- (void)ilevel;
- (void)flags;
+ if (!native) _ASN_ENCODE_FAILED;
- if(!native) _ASN_ENCODE_FAILED;
+ er.encoded =
+ snprintf(scratch, sizeof(scratch),
+ (specs && specs->field_unsigned) ? "%lu" : "%ld", *native);
+ if (er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) ||
+ cb(scratch, er.encoded, app_key) < 0)
+ _ASN_ENCODE_FAILED;
- er.encoded = snprintf(scratch, sizeof(scratch),
- (specs && specs->field_unsigned)
- ? "%lu" : "%ld", *native);
- if(er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch)
- || cb(scratch, er.encoded, app_key) < 0)
- _ASN_ENCODE_FAILED;
-
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
}
-asn_dec_rval_t
-NativeInteger_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_dec_rval_t NativeInteger_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_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_dec_rval_t rval;
+ int64_t *native = (int64_t *)*sptr;
+ INTEGER_t tmpint;
+ void *tmpintptr = &tmpint;
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- asn_dec_rval_t rval;
- int64_t *native = (int64_t *)*sptr;
- INTEGER_t tmpint;
- void *tmpintptr = &tmpint;
+ (void)opt_codec_ctx;
+ ASN_DEBUG("Decoding NativeInteger %s (UPER)", td->name);
- (void)opt_codec_ctx;
- ASN_DEBUG("Decoding NativeInteger %s (UPER)", td->name);
+ if (!native)
+ {
+ native = (int64_t *)(*sptr = CALLOC(1, sizeof(*native)));
+ if (!native) _ASN_DECODE_FAILED;
+ }
- if(!native) {
- native = (int64_t *)(*sptr = CALLOC(1, sizeof(*native)));
- if(!native) _ASN_DECODE_FAILED;
- }
+ memset(&tmpint, 0, sizeof tmpint);
+ rval = INTEGER_decode_uper(opt_codec_ctx, td, constraints, &tmpintptr, pd);
+ if (rval.code == RC_OK)
+ {
+ if ((specs && specs->field_unsigned)
+ ? asn_INTEGER2ulong(&tmpint, (uint64_t *)native)
+ : asn_INTEGER2long(&tmpint, native))
+ rval.code = RC_FAIL;
+ else
+ ASN_DEBUG("NativeInteger %s got value %ld", td->name, *native);
+ }
+ ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint);
- memset(&tmpint, 0, sizeof tmpint);
- rval = INTEGER_decode_uper(opt_codec_ctx, td, constraints,
- &tmpintptr, pd);
- if(rval.code == RC_OK) {
- if((specs&&specs->field_unsigned)
- ? asn_INTEGER2ulong(&tmpint, (uint64_t*)native)
- : asn_INTEGER2long(&tmpint, native))
- rval.code = RC_FAIL;
- else
- ASN_DEBUG("NativeInteger %s got value %ld",
- td->name, *native);
- }
- ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint);
-
- return rval;
+ return rval;
}
-asn_enc_rval_t
-NativeInteger_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- asn_enc_rval_t er;
- long native;
- INTEGER_t tmpint;
+asn_enc_rval_t NativeInteger_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *sptr, asn_per_outp_t *po)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ asn_enc_rval_t er;
+ long native;
+ INTEGER_t tmpint;
- if(!sptr) _ASN_ENCODE_FAILED;
+ if (!sptr) _ASN_ENCODE_FAILED;
- native = *(long *)sptr;
+ native = *(long *)sptr;
- ASN_DEBUG("Encoding NativeInteger %s %ld (UPER)", td->name, native);
+ ASN_DEBUG("Encoding NativeInteger %s %ld (UPER)", td->name, native);
- memset(&tmpint, 0, sizeof(tmpint));
- if((specs&&specs->field_unsigned)
- ? asn_ulong2INTEGER(&tmpint, native)
- : asn_long2INTEGER(&tmpint, native))
- _ASN_ENCODE_FAILED;
- er = INTEGER_encode_uper(td, constraints, &tmpint, po);
- ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint);
- return er;
+ memset(&tmpint, 0, sizeof(tmpint));
+ if ((specs && specs->field_unsigned) ? asn_ulong2INTEGER(&tmpint, native)
+ : asn_long2INTEGER(&tmpint, native))
+ _ASN_ENCODE_FAILED;
+ er = INTEGER_encode_uper(td, constraints, &tmpint, po);
+ ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &tmpint);
+ return er;
}
/*
* INTEGER specific human-readable output.
*/
-int
-NativeInteger_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
- asn_INTEGER_specifics_t *specs=(asn_INTEGER_specifics_t *)td->specifics;
- const long *native = (const long *)sptr;
- char scratch[32]; /* Enough for 64-bit int */
- int ret;
+int NativeInteger_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ asn_INTEGER_specifics_t *specs = (asn_INTEGER_specifics_t *)td->specifics;
+ const long *native = (const long *)sptr;
+ char scratch[32]; /* Enough for 64-bit int */
+ int ret;
- (void)td; /* Unused argument */
- (void)ilevel; /* Unused argument */
+ (void)td; /* Unused argument */
+ (void)ilevel; /* Unused argument */
- if(native) {
- ret = snprintf(scratch, sizeof(scratch),
- (specs && specs->field_unsigned)
- ? "%lu" : "%ld", *native);
- assert(ret > 0 && (size_t)ret < sizeof(scratch));
- return (cb(scratch, ret, app_key) < 0) ? -1 : 0;
- } else {
- return (cb("", 8, app_key) < 0) ? -1 : 0;
- }
+ if (native)
+ {
+ ret = snprintf(scratch, sizeof(scratch),
+ (specs && specs->field_unsigned) ? "%lu" : "%ld",
+ *native);
+ assert(ret > 0 && (size_t)ret < sizeof(scratch));
+ return (cb(scratch, ret, app_key) < 0) ? -1 : 0;
+ }
+ else
+ {
+ return (cb("", 8, app_key) < 0) ? -1 : 0;
+ }
}
-void
-NativeInteger_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
+void NativeInteger_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only)
+{
+ if (!td || !ptr) return;
- if(!td || !ptr)
- return;
+ ASN_DEBUG("Freeing %s as INTEGER (%d, %p, Native)", td->name, contents_only,
+ ptr);
- ASN_DEBUG("Freeing %s as INTEGER (%d, %p, Native)",
- td->name, contents_only, ptr);
-
- if(!contents_only) {
- FREEMEM(ptr);
- }
+ if (!contents_only)
+ {
+ FREEMEM(ptr);
+ }
}
diff --git a/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.c b/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.c
index 4dcb8a6ec..5f729c464 100644
--- a/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.c
+++ b/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.c
@@ -1,689 +1,699 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "NavModel-KeplerianSet.h"
-static int
-memb_keplerToeLSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 511)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerToeLSB_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 511))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerW_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerDeltaN_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerDeltaN_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerM0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerM0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerOmegaDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerOmegaDot_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerELSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 33554431)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerELSB_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 33554431))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerIDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8192 && value <= 8191)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerIDot_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8192 && value <= 8191))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerAPowerHalfLSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 67108863)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerAPowerHalfLSB_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 67108863))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerI0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerI0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerOmega0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerOmega0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerCrs_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerCrs_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerCis_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerCis_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerCus_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerCus_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerCrc_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerCrc_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerCic_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerCic_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_keplerCuc_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_keplerCuc_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_TOE_LSB_CONSTR_2 = {
- { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 9, 9, 0, 511} /* (0..511) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_W_CONSTR_3 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_DELTA_N_CONSTR_4 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_M0_CONSTR_5 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_OMEGA_DOT_CONSTR_6 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_ELSB_CONSTR_7 = {
- { APC_CONSTRAINED, 25, -1, 0, 33554431 } /* (0..33554431) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 25, -1, 0, 33554431} /* (0..33554431) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_I_DOT_CONSTR_8 = {
- { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 14, 14, -8192, 8191} /* (-8192..8191) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_A_POWER_HALF_LSB_CONSTR_9 = {
- { APC_CONSTRAINED, 26, -1, 0, 67108863 } /* (0..67108863) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 26, -1, 0, 67108863} /* (0..67108863) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_I0_CONSTR_10 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_OMEGA0_CONSTR_11 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_CRS_CONSTR_12 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_CIS_CONSTR_13 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_CUS_CONSTR_14 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_CRC_CONSTR_15 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_CIC_CONSTR_16 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_KEPLER_CUC_CONSTR_17 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_NavModel_KeplerianSet_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerToeLSB),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerToeLSB_constraint_1,
- &ASN_PER_MEMB_KEPLER_TOE_LSB_CONSTR_2,
- 0,
- "keplerToeLSB"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerW),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerW_constraint_1,
- &ASN_PER_MEMB_KEPLER_W_CONSTR_3,
- 0,
- "keplerW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerDeltaN),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerDeltaN_constraint_1,
- &ASN_PER_MEMB_KEPLER_DELTA_N_CONSTR_4,
- 0,
- "keplerDeltaN"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerM0),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerM0_constraint_1,
- &ASN_PER_MEMB_KEPLER_M0_CONSTR_5,
- 0,
- "keplerM0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerOmegaDot),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerOmegaDot_constraint_1,
- &ASN_PER_MEMB_KEPLER_OMEGA_DOT_CONSTR_6,
- 0,
- "keplerOmegaDot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerELSB),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerELSB_constraint_1,
- &ASN_PER_MEMB_KEPLER_ELSB_CONSTR_7,
- 0,
- "keplerELSB"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerIDot),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerIDot_constraint_1,
- &ASN_PER_MEMB_KEPLER_I_DOT_CONSTR_8,
- 0,
- "keplerIDot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerAPowerHalfLSB),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerAPowerHalfLSB_constraint_1,
- &ASN_PER_MEMB_KEPLER_A_POWER_HALF_LSB_CONSTR_9,
- 0,
- "keplerAPowerHalfLSB"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerI0),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerI0_constraint_1,
- &ASN_PER_MEMB_KEPLER_I0_CONSTR_10,
- 0,
- "keplerI0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerOmega0),
- (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerOmega0_constraint_1,
- &ASN_PER_MEMB_KEPLER_OMEGA0_CONSTR_11,
- 0,
- "keplerOmega0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCrs),
- (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerCrs_constraint_1,
- &ASN_PER_MEMB_KEPLER_CRS_CONSTR_12,
- 0,
- "keplerCrs"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCis),
- (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerCis_constraint_1,
- &ASN_PER_MEMB_KEPLER_CIS_CONSTR_13,
- 0,
- "keplerCis"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCus),
- (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerCus_constraint_1,
- &ASN_PER_MEMB_KEPLER_CUS_CONSTR_14,
- 0,
- "keplerCus"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCrc),
- (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerCrc_constraint_1,
- &ASN_PER_MEMB_KEPLER_CRC_CONSTR_15,
- 0,
- "keplerCrc"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCic),
- (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerCic_constraint_1,
- &ASN_PER_MEMB_KEPLER_CIC_CONSTR_16,
- 0,
- "keplerCic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCuc),
- (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_keplerCuc_constraint_1,
- &ASN_PER_MEMB_KEPLER_CUC_CONSTR_17,
- 0,
- "keplerCuc"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerToeLSB),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerToeLSB_constraint_1,
+ &ASN_PER_MEMB_KEPLER_TOE_LSB_CONSTR_2, 0, "keplerToeLSB"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerW),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerW_constraint_1,
+ &ASN_PER_MEMB_KEPLER_W_CONSTR_3, 0, "keplerW"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerDeltaN),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerDeltaN_constraint_1,
+ &ASN_PER_MEMB_KEPLER_DELTA_N_CONSTR_4, 0, "keplerDeltaN"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerM0),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerM0_constraint_1,
+ &ASN_PER_MEMB_KEPLER_M0_CONSTR_5, 0, "keplerM0"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerOmegaDot),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerOmegaDot_constraint_1,
+ &ASN_PER_MEMB_KEPLER_OMEGA_DOT_CONSTR_6, 0, "keplerOmegaDot"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerELSB),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerELSB_constraint_1,
+ &ASN_PER_MEMB_KEPLER_ELSB_CONSTR_7, 0, "keplerELSB"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerIDot),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerIDot_constraint_1,
+ &ASN_PER_MEMB_KEPLER_I_DOT_CONSTR_8, 0, "keplerIDot"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct NavModel_KeplerianSet, keplerAPowerHalfLSB),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerAPowerHalfLSB_constraint_1,
+ &ASN_PER_MEMB_KEPLER_A_POWER_HALF_LSB_CONSTR_9, 0, "keplerAPowerHalfLSB"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerI0),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerI0_constraint_1,
+ &ASN_PER_MEMB_KEPLER_I0_CONSTR_10, 0, "keplerI0"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerOmega0),
+ (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerOmega0_constraint_1,
+ &ASN_PER_MEMB_KEPLER_OMEGA0_CONSTR_11, 0, "keplerOmega0"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCrs),
+ (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerCrs_constraint_1,
+ &ASN_PER_MEMB_KEPLER_CRS_CONSTR_12, 0, "keplerCrs"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCis),
+ (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerCis_constraint_1,
+ &ASN_PER_MEMB_KEPLER_CIS_CONSTR_13, 0, "keplerCis"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCus),
+ (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerCus_constraint_1,
+ &ASN_PER_MEMB_KEPLER_CUS_CONSTR_14, 0, "keplerCus"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCrc),
+ (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerCrc_constraint_1,
+ &ASN_PER_MEMB_KEPLER_CRC_CONSTR_15, 0, "keplerCrc"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCic),
+ (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerCic_constraint_1,
+ &ASN_PER_MEMB_KEPLER_CIC_CONSTR_16, 0, "keplerCic"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModel_KeplerianSet, keplerCuc),
+ (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_keplerCuc_constraint_1,
+ &ASN_PER_MEMB_KEPLER_CUC_CONSTR_17, 0, "keplerCuc"},
};
static ber_tlv_tag_t asn_DEF_NavModel_KeplerianSet_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_NavModel_KeplerianSet_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* keplerToeLSB at 1254 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* keplerW at 1255 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* keplerDeltaN at 1256 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* keplerM0 at 1257 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* keplerOmegaDot at 1258 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* keplerELSB at 1259 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* keplerIDot at 1260 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* keplerAPowerHalfLSB at 1261 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* keplerI0 at 1262 */
- { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* keplerOmega0 at 1263 */
- { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* keplerCrs at 1264 */
- { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* keplerCis at 1265 */
- { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* keplerCus at 1266 */
- { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* keplerCrc at 1267 */
- { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* keplerCic at 1268 */
- { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* keplerCuc at 1269 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* keplerToeLSB at 1254 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* keplerW at 1255 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* keplerDeltaN at 1256 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* keplerM0 at 1257 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* keplerOmegaDot at 1258 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* keplerELSB at 1259 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* keplerIDot at 1260 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0}, /* keplerAPowerHalfLSB at 1261 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0}, /* keplerI0 at 1262 */
+ {(ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0}, /* keplerOmega0 at 1263 */
+ {(ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0}, /* keplerCrs at 1264 */
+ {(ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0}, /* keplerCis at 1265 */
+ {(ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0}, /* keplerCus at 1266 */
+ {(ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0}, /* keplerCrc at 1267 */
+ {(ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0}, /* keplerCic at 1268 */
+ {(ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0} /* keplerCuc at 1269 */
};
static asn_SEQUENCE_specifics_t asn_SPC_NavModel_KeplerianSet_specs_1 = {
- sizeof(struct NavModel_KeplerianSet),
- offsetof(struct NavModel_KeplerianSet, _asn_ctx),
- asn_MAP_NavModel_KeplerianSet_tag2el_1,
- 16, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct NavModel_KeplerianSet),
+ offsetof(struct NavModel_KeplerianSet, _asn_ctx),
+ asn_MAP_NavModel_KeplerianSet_tag2el_1,
+ 16, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_NavModel_KeplerianSet = {
- "NavModel-KeplerianSet",
- "NavModel-KeplerianSet",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NavModel_KeplerianSet_tags_1,
- sizeof(asn_DEF_NavModel_KeplerianSet_tags_1)
- /sizeof(asn_DEF_NavModel_KeplerianSet_tags_1[0]), /* 1 */
- asn_DEF_NavModel_KeplerianSet_tags_1, /* Same as above */
- sizeof(asn_DEF_NavModel_KeplerianSet_tags_1)
- /sizeof(asn_DEF_NavModel_KeplerianSet_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_NavModel_KeplerianSet_1,
- 16, /* Elements count */
- &asn_SPC_NavModel_KeplerianSet_specs_1 /* Additional specs */
+ "NavModel-KeplerianSet",
+ "NavModel-KeplerianSet",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NavModel_KeplerianSet_tags_1,
+ sizeof(asn_DEF_NavModel_KeplerianSet_tags_1) /
+ sizeof(asn_DEF_NavModel_KeplerianSet_tags_1[0]), /* 1 */
+ asn_DEF_NavModel_KeplerianSet_tags_1, /* Same as above */
+ sizeof(asn_DEF_NavModel_KeplerianSet_tags_1) /
+ sizeof(asn_DEF_NavModel_KeplerianSet_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_NavModel_KeplerianSet_1,
+ 16, /* Elements count */
+ &asn_SPC_NavModel_KeplerianSet_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.h b/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.h
index 7d9f906ed..32864f9da 100644
--- a/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.h
+++ b/src/core/libs/supl/asn-rrlp/NavModel-KeplerianSet.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _NavModel_KeplerianSet_H_
#define _NavModel_KeplerianSet_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/NavModelElement.c b/src/core/libs/supl/asn-rrlp/NavModelElement.c
index 9ee6486e8..b0637344a 100644
--- a/src/core/libs/supl/asn-rrlp/NavModelElement.c
+++ b/src/core/libs/supl/asn-rrlp/NavModelElement.c
@@ -1,69 +1,62 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "NavModelElement.h"
static asn_TYPE_member_t asn_MBR_NavModelElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct NavModelElement, satelliteID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satelliteID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NavModelElement, satStatus),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_SatStatus,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satStatus"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct NavModelElement, satelliteID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satelliteID"},
+ {ATF_NOFLAGS, 0, offsetof(struct NavModelElement, satStatus),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */
+ &asn_DEF_SatStatus, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satStatus"},
};
static ber_tlv_tag_t asn_DEF_NavModelElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_NavModelElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID at 703 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* satStatus at 705 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* satelliteID at 703 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* satStatus at 705 */
};
static asn_SEQUENCE_specifics_t asn_SPC_NavModelElement_specs_1 = {
- sizeof(struct NavModelElement),
- offsetof(struct NavModelElement, _asn_ctx),
- asn_MAP_NavModelElement_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct NavModelElement),
+ offsetof(struct NavModelElement, _asn_ctx),
+ asn_MAP_NavModelElement_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_NavModelElement = {
- "NavModelElement",
- "NavModelElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NavModelElement_tags_1,
- sizeof(asn_DEF_NavModelElement_tags_1)
- /sizeof(asn_DEF_NavModelElement_tags_1[0]), /* 1 */
- asn_DEF_NavModelElement_tags_1, /* Same as above */
- sizeof(asn_DEF_NavModelElement_tags_1)
- /sizeof(asn_DEF_NavModelElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_NavModelElement_1,
- 2, /* Elements count */
- &asn_SPC_NavModelElement_specs_1 /* Additional specs */
+ "NavModelElement",
+ "NavModelElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NavModelElement_tags_1,
+ sizeof(asn_DEF_NavModelElement_tags_1) /
+ sizeof(asn_DEF_NavModelElement_tags_1[0]), /* 1 */
+ asn_DEF_NavModelElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_NavModelElement_tags_1) /
+ sizeof(asn_DEF_NavModelElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_NavModelElement_1,
+ 2, /* Elements count */
+ &asn_SPC_NavModelElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/NavModelElement.h b/src/core/libs/supl/asn-rrlp/NavModelElement.h
index d8d642c05..26cc9f352 100644
--- a/src/core/libs/supl/asn-rrlp/NavModelElement.h
+++ b/src/core/libs/supl/asn-rrlp/NavModelElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _NavModelElement_H_
#define _NavModelElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/NavigationModel.c b/src/core/libs/supl/asn-rrlp/NavigationModel.c
index 874918e2c..ad132ef17 100644
--- a/src/core/libs/supl/asn-rrlp/NavigationModel.c
+++ b/src/core/libs/supl/asn-rrlp/NavigationModel.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "NavigationModel.h"
static asn_TYPE_member_t asn_MBR_NavigationModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct NavigationModel, navModelList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfNavModelElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "navModelList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct NavigationModel, navModelList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfNavModelElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "navModelList"},
};
static ber_tlv_tag_t asn_DEF_NavigationModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_NavigationModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* navModelList at 697 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* navModelList at 697 */
};
static asn_SEQUENCE_specifics_t asn_SPC_NavigationModel_specs_1 = {
- sizeof(struct NavigationModel),
- offsetof(struct NavigationModel, _asn_ctx),
- asn_MAP_NavigationModel_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct NavigationModel),
+ offsetof(struct NavigationModel, _asn_ctx),
+ asn_MAP_NavigationModel_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_NavigationModel = {
- "NavigationModel",
- "NavigationModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NavigationModel_tags_1,
- sizeof(asn_DEF_NavigationModel_tags_1)
- /sizeof(asn_DEF_NavigationModel_tags_1[0]), /* 1 */
- asn_DEF_NavigationModel_tags_1, /* Same as above */
- sizeof(asn_DEF_NavigationModel_tags_1)
- /sizeof(asn_DEF_NavigationModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_NavigationModel_1,
- 1, /* Elements count */
- &asn_SPC_NavigationModel_specs_1 /* Additional specs */
+ "NavigationModel",
+ "NavigationModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NavigationModel_tags_1,
+ sizeof(asn_DEF_NavigationModel_tags_1) /
+ sizeof(asn_DEF_NavigationModel_tags_1[0]), /* 1 */
+ asn_DEF_NavigationModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_NavigationModel_tags_1) /
+ sizeof(asn_DEF_NavigationModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_NavigationModel_1,
+ 1, /* Elements count */
+ &asn_SPC_NavigationModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/NavigationModel.h b/src/core/libs/supl/asn-rrlp/NavigationModel.h
index 565f1f636..2c158dcbe 100644
--- a/src/core/libs/supl/asn-rrlp/NavigationModel.h
+++ b/src/core/libs/supl/asn-rrlp/NavigationModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _NavigationModel_H_
#define _NavigationModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/NeighborIdentity.c b/src/core/libs/supl/asn-rrlp/NeighborIdentity.c
index 4c6a649bb..c932fd1f0 100644
--- a/src/core/libs/supl/asn-rrlp/NeighborIdentity.c
+++ b/src/core/libs/supl/asn-rrlp/NeighborIdentity.c
@@ -1,110 +1,93 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "NeighborIdentity.h"
static asn_per_constraints_t ASN_PER_TYPE_NEIGHBOR_IDENTITY_CONSTR_1 = {
- { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 5} /* (0..5) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_NeighborIdentity_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.bsicAndCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSICAndCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsicAndCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.ci),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CellID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ci"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.multiFrameCarrier),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MultiFrameCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "multiFrameCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.requestIndex),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RequestIndex,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "requestIndex"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.systemInfoIndex),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SystemInfoIndex,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoIndex"
- },
- { ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.ciAndLAC),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CellIDAndLAC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ciAndLAC"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.bsicAndCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSICAndCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsicAndCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.ci),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CellID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ci"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct NeighborIdentity, choice.multiFrameCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MultiFrameCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "multiFrameCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.requestIndex),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RequestIndex,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "requestIndex"},
+ {ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.systemInfoIndex),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SystemInfoIndex,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoIndex"},
+ {ATF_NOFLAGS, 0, offsetof(struct NeighborIdentity, choice.ciAndLAC),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CellIDAndLAC,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ciAndLAC"},
};
static asn_TYPE_tag2member_t asn_MAP_NeighborIdentity_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsicAndCarrier at 398 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ci at 399 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* multiFrameCarrier at 400 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* requestIndex at 401 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* systemInfoIndex at 402 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ciAndLAC at 407 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bsicAndCarrier at 398 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ci at 399 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* multiFrameCarrier at 400 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* requestIndex at 401 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* systemInfoIndex at 402 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0} /* ciAndLAC at 407 */
};
static asn_CHOICE_specifics_t asn_SPC_NeighborIdentity_specs_1 = {
- sizeof(struct NeighborIdentity),
- offsetof(struct NeighborIdentity, _asn_ctx),
- offsetof(struct NeighborIdentity, present),
- sizeof(((struct NeighborIdentity *)0)->present),
- asn_MAP_NeighborIdentity_tag2el_1,
- 6, /* Count of tags in the map */
- 0,
- -1 /* Extensions start */
+ sizeof(struct NeighborIdentity),
+ offsetof(struct NeighborIdentity, _asn_ctx),
+ offsetof(struct NeighborIdentity, present),
+ sizeof(((struct NeighborIdentity *)0)->present),
+ asn_MAP_NeighborIdentity_tag2el_1,
+ 6, /* Count of tags in the map */
+ 0,
+ -1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_NeighborIdentity = {
- "NeighborIdentity",
- "NeighborIdentity",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_NEIGHBOR_IDENTITY_CONSTR_1,
- asn_MBR_NeighborIdentity_1,
- 6, /* Elements count */
- &asn_SPC_NeighborIdentity_specs_1 /* Additional specs */
+ "NeighborIdentity",
+ "NeighborIdentity",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_NEIGHBOR_IDENTITY_CONSTR_1,
+ asn_MBR_NeighborIdentity_1,
+ 6, /* Elements count */
+ &asn_SPC_NeighborIdentity_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/NeighborIdentity.h b/src/core/libs/supl/asn-rrlp/NeighborIdentity.h
index b87849d76..8923e9e4a 100644
--- a/src/core/libs/supl/asn-rrlp/NeighborIdentity.h
+++ b/src/core/libs/supl/asn-rrlp/NeighborIdentity.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _NeighborIdentity_H_
#define _NeighborIdentity_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/NumOfMeasurements.c b/src/core/libs/supl/asn-rrlp/NumOfMeasurements.c
index 047b97557..df8d88813 100644
--- a/src/core/libs/supl/asn-rrlp/NumOfMeasurements.c
+++ b/src/core/libs/supl/asn-rrlp/NumOfMeasurements.c
@@ -1,145 +1,167 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "NumOfMeasurements.h"
-int
-NumOfMeasurements_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int NumOfMeasurements_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-NumOfMeasurements_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void NumOfMeasurements_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-NumOfMeasurements_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void NumOfMeasurements_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-NumOfMeasurements_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int NumOfMeasurements_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-NumOfMeasurements_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) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t NumOfMeasurements_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)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-NumOfMeasurements_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) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t NumOfMeasurements_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)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-NumOfMeasurements_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) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t NumOfMeasurements_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)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-NumOfMeasurements_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) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t NumOfMeasurements_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)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-NumOfMeasurements_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t NumOfMeasurements_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-NumOfMeasurements_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- NumOfMeasurements_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t NumOfMeasurements_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ NumOfMeasurements_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_NUM_OF_MEASUREMENTS_CONSTR_1 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_NumOfMeasurements_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_NumOfMeasurements = {
- "NumOfMeasurements",
- "NumOfMeasurements",
- NumOfMeasurements_free,
- NumOfMeasurements_print,
- NumOfMeasurements_constraint,
- NumOfMeasurements_decode_ber,
- NumOfMeasurements_encode_der,
- NumOfMeasurements_decode_xer,
- NumOfMeasurements_encode_xer,
- NumOfMeasurements_decode_uper,
- NumOfMeasurements_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_NumOfMeasurements_tags_1,
- sizeof(asn_DEF_NumOfMeasurements_tags_1)
- /sizeof(asn_DEF_NumOfMeasurements_tags_1[0]), /* 1 */
- asn_DEF_NumOfMeasurements_tags_1, /* Same as above */
- sizeof(asn_DEF_NumOfMeasurements_tags_1)
- /sizeof(asn_DEF_NumOfMeasurements_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_NUM_OF_MEASUREMENTS_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "NumOfMeasurements",
+ "NumOfMeasurements",
+ NumOfMeasurements_free,
+ NumOfMeasurements_print,
+ NumOfMeasurements_constraint,
+ NumOfMeasurements_decode_ber,
+ NumOfMeasurements_encode_der,
+ NumOfMeasurements_decode_xer,
+ NumOfMeasurements_encode_xer,
+ NumOfMeasurements_decode_uper,
+ NumOfMeasurements_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_NumOfMeasurements_tags_1,
+ sizeof(asn_DEF_NumOfMeasurements_tags_1) /
+ sizeof(asn_DEF_NumOfMeasurements_tags_1[0]), /* 1 */
+ asn_DEF_NumOfMeasurements_tags_1, /* Same as above */
+ sizeof(asn_DEF_NumOfMeasurements_tags_1) /
+ sizeof(asn_DEF_NumOfMeasurements_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_NUM_OF_MEASUREMENTS_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/NumOfMeasurements.h b/src/core/libs/supl/asn-rrlp/NumOfMeasurements.h
index 0b897c0f2..46cd42335 100644
--- a/src/core/libs/supl/asn-rrlp/NumOfMeasurements.h
+++ b/src/core/libs/supl/asn-rrlp/NumOfMeasurements.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _NumOfMeasurements_H_
#define _NumOfMeasurements_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OCTET_STRING.c b/src/core/libs/supl/asn-rrlp/OCTET_STRING.c
index 3ce9dda76..e66360994 100644
--- a/src/core/libs/supl/asn-rrlp/OCTET_STRING.c
+++ b/src/core/libs/supl/asn-rrlp/OCTET_STRING.c
@@ -5,104 +5,116 @@
*/
#include
#include
-#include /* for .bits_unused member */
+#include /* for .bits_unused member */
#include
/*
* OCTET STRING basic type description.
*/
static ber_tlv_tag_t asn_DEF_OCTET_STRING_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))};
static asn_OCTET_STRING_specifics_t asn_DEF_OCTET_STRING_specs = {
- sizeof(OCTET_STRING_t),
- offsetof(OCTET_STRING_t, _asn_ctx),
- ASN_OSUBV_STR
-};
+ sizeof(OCTET_STRING_t), offsetof(OCTET_STRING_t, _asn_ctx), ASN_OSUBV_STR};
static asn_per_constraints_t ASN_DEF_OCTET_STRING_CONSTRAINTS = {
- { APC_CONSTRAINED, 8, 8, 0, 255 },
- { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 },
- 0, 0
-};
+ {APC_CONSTRAINED, 8, 8, 0, 255},
+ {APC_SEMI_CONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0};
asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = {
- "OCTET STRING", /* Canonical name */
- "OCTET_STRING", /* XML tag name */
- OCTET_STRING_free,
- OCTET_STRING_print, /* non-ascii stuff, generally */
- asn_generic_no_constraint,
- OCTET_STRING_decode_ber,
- OCTET_STRING_encode_der,
- OCTET_STRING_decode_xer_hex,
- OCTET_STRING_encode_xer,
- OCTET_STRING_decode_uper, /* Unaligned PER decoder */
- OCTET_STRING_encode_uper, /* Unaligned PER encoder */
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OCTET_STRING_tags,
- sizeof(asn_DEF_OCTET_STRING_tags)
- / sizeof(asn_DEF_OCTET_STRING_tags[0]),
- asn_DEF_OCTET_STRING_tags, /* Same as above */
- sizeof(asn_DEF_OCTET_STRING_tags)
- / sizeof(asn_DEF_OCTET_STRING_tags[0]),
- 0, /* No PER visible constraints */
- 0, 0, /* No members */
- &asn_DEF_OCTET_STRING_specs
-};
+ "OCTET STRING", /* Canonical name */
+ "OCTET_STRING", /* XML tag name */
+ OCTET_STRING_free,
+ OCTET_STRING_print, /* non-ascii stuff, generally */
+ asn_generic_no_constraint,
+ OCTET_STRING_decode_ber,
+ OCTET_STRING_encode_der,
+ OCTET_STRING_decode_xer_hex,
+ OCTET_STRING_encode_xer,
+ OCTET_STRING_decode_uper, /* Unaligned PER decoder */
+ OCTET_STRING_encode_uper, /* Unaligned PER encoder */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OCTET_STRING_tags,
+ sizeof(asn_DEF_OCTET_STRING_tags) / sizeof(asn_DEF_OCTET_STRING_tags[0]),
+ asn_DEF_OCTET_STRING_tags, /* Same as above */
+ sizeof(asn_DEF_OCTET_STRING_tags) / sizeof(asn_DEF_OCTET_STRING_tags[0]),
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* No members */
+ &asn_DEF_OCTET_STRING_specs};
-#undef _CH_PHASE
-#undef NEXT_PHASE
-#undef PREV_PHASE
-#define _CH_PHASE(ctx, inc) do { \
- if((ctx)->phase == 0) \
- (ctx)->context = 0; \
- (ctx)->phase += (inc); \
- } while(0)
-#define NEXT_PHASE(ctx) _CH_PHASE(ctx, +1)
-#define PREV_PHASE(ctx) _CH_PHASE(ctx, -1)
+#undef _CH_PHASE
+#undef NEXT_PHASE
+#undef PREV_PHASE
+#define _CH_PHASE(ctx, inc) \
+ do \
+ { \
+ if ((ctx)->phase == 0) (ctx)->context = 0; \
+ (ctx)->phase += (inc); \
+ } \
+ while (0)
+#define NEXT_PHASE(ctx) _CH_PHASE(ctx, +1)
+#define PREV_PHASE(ctx) _CH_PHASE(ctx, -1)
-#undef ADVANCE
-#define ADVANCE(num_bytes) do { \
- size_t num = (num_bytes); \
- buf_ptr = ((const char *)buf_ptr) + num; \
- size -= num; \
- consumed_myself += num; \
- } while(0)
+#undef ADVANCE
+#define ADVANCE(num_bytes) \
+ do \
+ { \
+ size_t num = (num_bytes); \
+ buf_ptr = ((const char *)buf_ptr) + num; \
+ size -= num; \
+ consumed_myself += num; \
+ } \
+ while (0)
-#undef RETURN
-#define RETURN(_code) do { \
- asn_dec_rval_t tmprval; \
- tmprval.code = _code; \
- tmprval.consumed = consumed_myself; \
- return tmprval; \
- } while(0)
+#undef RETURN
+#define RETURN(_code) \
+ do \
+ { \
+ asn_dec_rval_t tmprval; \
+ tmprval.code = _code; \
+ tmprval.consumed = consumed_myself; \
+ return tmprval; \
+ } \
+ while (0)
-#undef APPEND
-#define APPEND(bufptr, bufsize) do { \
- size_t _bs = (bufsize); /* Append size */ \
- size_t _ns = ctx->context; /* Allocated now */ \
- size_t _es = st->size + _bs; /* Expected size */ \
- /* int is really a typeof(st->size): */ \
- if((int)_es < 0) RETURN(RC_FAIL); \
- if(_ns <= _es) { \
- void *ptr; \
- /* Be nice and round to the memory allocator */ \
- do { _ns = _ns ? _ns << 1 : 16; } \
- while(_ns <= _es); \
- /* int is really a typeof(st->size): */ \
- if((int)_ns < 0) RETURN(RC_FAIL); \
- ptr = REALLOC(st->buf, _ns); \
- if(ptr) { \
- st->buf = (uint8_t *)ptr; \
- ctx->context = _ns; \
- } else { \
- RETURN(RC_FAIL); \
- } \
- ASN_DEBUG("Reallocating into %ld", (long)_ns); \
- } \
- memcpy(st->buf + st->size, bufptr, _bs); \
- /* Convenient nul-termination */ \
- st->buf[_es] = '\0'; \
- st->size = _es; \
- } while(0)
+#undef APPEND
+#define APPEND(bufptr, bufsize) \
+ do \
+ { \
+ size_t _bs = (bufsize); /* Append size */ \
+ size_t _ns = ctx->context; /* Allocated now */ \
+ size_t _es = st->size + _bs; /* Expected size */ \
+ /* int is really a typeof(st->size): */ \
+ if ((int)_es < 0) RETURN(RC_FAIL); \
+ if (_ns <= _es) \
+ { \
+ void *ptr; \
+ /* Be nice and round to the memory allocator */ \
+ do \
+ { \
+ _ns = _ns ? _ns << 1 : 16; \
+ } \
+ while (_ns <= _es); \
+ /* int is really a typeof(st->size): */ \
+ if ((int)_ns < 0) RETURN(RC_FAIL); \
+ ptr = REALLOC(st->buf, _ns); \
+ if (ptr) \
+ { \
+ st->buf = (uint8_t *)ptr; \
+ ctx->context = _ns; \
+ } \
+ else \
+ { \
+ RETURN(RC_FAIL); \
+ } \
+ ASN_DEBUG("Reallocating into %ld", (long)_ns); \
+ } \
+ memcpy(st->buf + st->size, bufptr, _bs); \
+ /* Convenient nul-termination */ \
+ st->buf[_es] = '\0'; \
+ st->size = _es; \
+ } \
+ while (0)
/*
* The main reason why ASN.1 is still alive is that too much time and effort
@@ -110,1698 +122,1999 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = {
* necessity to demonstrate that acquired skill everywhere afterwards.
* No, I am not going to explain what the following stuff is.
*/
-struct _stack_el {
- ber_tlv_len_t left; /* What's left to read (or -1) */
- ber_tlv_len_t got; /* What was actually processed */
- int cont_level; /* Depth of subcontainment */
- int want_nulls; /* Want null "end of content" octets? */
- int bits_chopped; /* Flag in BIT STRING mode */
- ber_tlv_tag_t tag; /* For debugging purposes */
- struct _stack_el *prev;
- struct _stack_el *next;
+struct _stack_el
+{
+ ber_tlv_len_t left; /* What's left to read (or -1) */
+ ber_tlv_len_t got; /* What was actually processed */
+ int cont_level; /* Depth of subcontainment */
+ int want_nulls; /* Want null "end of content" octets? */
+ int bits_chopped; /* Flag in BIT STRING mode */
+ ber_tlv_tag_t tag; /* For debugging purposes */
+ struct _stack_el *prev;
+ struct _stack_el *next;
};
-struct _stack {
- struct _stack_el *tail;
- struct _stack_el *cur_ptr;
+struct _stack
+{
+ struct _stack_el *tail;
+ struct _stack_el *cur_ptr;
};
-static struct _stack_el *
-OS__add_stack_el(struct _stack *st) {
- struct _stack_el *nel;
+static struct _stack_el *OS__add_stack_el(struct _stack *st)
+{
+ struct _stack_el *nel;
- /*
- * Reuse the old stack frame or allocate a new one.
- */
- if(st->cur_ptr && st->cur_ptr->next) {
- nel = st->cur_ptr->next;
- nel->bits_chopped = 0;
- nel->got = 0;
- /* Retain the nel->cont_level, it's correct. */
- } else {
- nel = (struct _stack_el *)CALLOC(1, sizeof(struct _stack_el));
- if(nel == NULL)
- return NULL;
+ /*
+ * Reuse the old stack frame or allocate a new one.
+ */
+ if (st->cur_ptr && st->cur_ptr->next)
+ {
+ nel = st->cur_ptr->next;
+ nel->bits_chopped = 0;
+ nel->got = 0;
+ /* Retain the nel->cont_level, it's correct. */
+ }
+ else
+ {
+ nel = (struct _stack_el *)CALLOC(1, sizeof(struct _stack_el));
+ if (nel == NULL) return NULL;
- if(st->tail) {
- /* Increase a subcontainment depth */
- nel->cont_level = st->tail->cont_level + 1;
- st->tail->next = nel;
- }
- nel->prev = st->tail;
- st->tail = nel;
- }
+ if (st->tail)
+ {
+ /* Increase a subcontainment depth */
+ nel->cont_level = st->tail->cont_level + 1;
+ st->tail->next = nel;
+ }
+ nel->prev = st->tail;
+ st->tail = nel;
+ }
- st->cur_ptr = nel;
+ st->cur_ptr = nel;
- return nel;
+ return nel;
}
-static struct _stack *
-_new_stack() {
- return (struct _stack *)CALLOC(1, sizeof(struct _stack));
+static struct _stack *_new_stack()
+{
+ return (struct _stack *)CALLOC(1, sizeof(struct _stack));
}
/*
* Decode OCTET STRING type.
*/
-asn_dec_rval_t
-OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
- asn_TYPE_descriptor_t *td,
- void **sptr, const void *buf_ptr, size_t size, int tag_mode) {
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- BIT_STRING_t *st = (BIT_STRING_t *)*sptr;
- asn_dec_rval_t rval;
- asn_struct_ctx_t *ctx;
- ssize_t consumed_myself = 0;
- struct _stack *stck; /* Expectations stack structure */
- struct _stack_el *sel = 0; /* Stack element */
- int tlv_constr;
- enum asn_OS_Subvariant type_variant = specs->subvariant;
+asn_dec_rval_t OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td, void **sptr,
+ const void *buf_ptr, size_t size,
+ int tag_mode)
+{
+ asn_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ BIT_STRING_t *st = (BIT_STRING_t *)*sptr;
+ asn_dec_rval_t rval;
+ asn_struct_ctx_t *ctx;
+ ssize_t consumed_myself = 0;
+ struct _stack *stck; /* Expectations stack structure */
+ struct _stack_el *sel = 0; /* Stack element */
+ int tlv_constr;
+ enum asn_OS_Subvariant type_variant = specs->subvariant;
- ASN_DEBUG("Decoding %s as %s (frame %ld)",
- td->name,
- (type_variant == ASN_OSUBV_STR) ?
- "OCTET STRING" : "OS-SpecialCase",
- (long)size);
+ ASN_DEBUG(
+ "Decoding %s as %s (frame %ld)", td->name,
+ (type_variant == ASN_OSUBV_STR) ? "OCTET STRING" : "OS-SpecialCase",
+ (long)size);
- /*
- * Create the string if does not exist.
- */
- if(st == NULL) {
- st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size));
- if(st == NULL) RETURN(RC_FAIL);
- }
+ /*
+ * Create the string if does not exist.
+ */
+ if (st == NULL)
+ {
+ st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size));
+ if (st == NULL) RETURN(RC_FAIL);
+ }
- /* Restore parsing context */
- ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset);
+ /* Restore parsing context */
+ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset);
- switch(ctx->phase) {
- case 0:
- /*
- * Check tags.
- */
- rval = ber_check_tags(opt_codec_ctx, td, ctx,
- buf_ptr, size, tag_mode, -1,
- &ctx->left, &tlv_constr);
- if(rval.code != RC_OK)
- return rval;
+ switch (ctx->phase)
+ {
+ case 0:
+ /*
+ * Check tags.
+ */
+ rval = ber_check_tags(opt_codec_ctx, td, ctx, buf_ptr, size,
+ tag_mode, -1, &ctx->left, &tlv_constr);
+ if (rval.code != RC_OK) return rval;
- if(tlv_constr) {
- /*
- * Complex operation, requires stack of expectations.
- */
- ctx->ptr = _new_stack();
- if(ctx->ptr) {
- stck = (struct _stack *)ctx->ptr;
- } else {
- RETURN(RC_FAIL);
- }
- } else {
- /*
- * Jump into stackless primitive decoding.
- */
- _CH_PHASE(ctx, 3);
- if(type_variant == ASN_OSUBV_ANY && tag_mode != 1)
- APPEND(buf_ptr, rval.consumed);
- ADVANCE(rval.consumed);
- goto phase3;
- }
+ if (tlv_constr)
+ {
+ /*
+ * Complex operation, requires stack of expectations.
+ */
+ ctx->ptr = _new_stack();
+ if (ctx->ptr)
+ {
+ stck = (struct _stack *)ctx->ptr;
+ }
+ else
+ {
+ RETURN(RC_FAIL);
+ }
+ }
+ else
+ {
+ /*
+ * Jump into stackless primitive decoding.
+ */
+ _CH_PHASE(ctx, 3);
+ if (type_variant == ASN_OSUBV_ANY && tag_mode != 1)
+ APPEND(buf_ptr, rval.consumed);
+ ADVANCE(rval.consumed);
+ goto phase3;
+ }
- NEXT_PHASE(ctx);
- /* Fall through */
- case 1:
- phase1:
- /*
- * Fill the stack with expectations.
- */
- stck = (struct _stack *)ctx->ptr;
- sel = stck->cur_ptr;
- do {
- ber_tlv_tag_t tlv_tag;
- ber_tlv_len_t tlv_len;
- ber_tlv_tag_t expected_tag;
- ssize_t tl;
- ssize_t ll;
- ssize_t tlvl;
- /* This one works even if (sel->left == -1) */
- ssize_t Left = ((!sel||(size_t)sel->left >= size)
- ?(ssize_t)size:sel->left);
+ NEXT_PHASE(ctx);
+ /* Fall through */
+ case 1:
+ phase1:
+ /*
+ * Fill the stack with expectations.
+ */
+ stck = (struct _stack *)ctx->ptr;
+ sel = stck->cur_ptr;
+ do
+ {
+ ber_tlv_tag_t tlv_tag;
+ ber_tlv_len_t tlv_len;
+ ber_tlv_tag_t expected_tag;
+ ssize_t tl;
+ ssize_t ll;
+ ssize_t tlvl;
+ /* This one works even if (sel->left == -1) */
+ ssize_t Left =
+ ((!sel || (size_t)sel->left >= size) ? (ssize_t)size
+ : sel->left);
+ ASN_DEBUG("%p, s->l=%ld, s->wn=%ld, s->g=%ld\n", sel,
+ (sel ? sel->left : 0),
+ (long)(sel ? sel->want_nulls : 0),
+ (sel ? sel->got : 0));
+ if (sel && sel->left <= 0 && sel->want_nulls == 0)
+ {
+ if (sel->prev)
+ {
+ struct _stack_el *prev = sel->prev;
+ if (prev->left != -1)
+ {
+ if (prev->left < sel->got)
+ RETURN(RC_FAIL);
+ prev->left -= sel->got;
+ }
+ prev->got += sel->got;
+ sel = stck->cur_ptr = prev;
+ if (!sel) break;
+ tlv_constr = 1;
+ continue;
+ }
+ else
+ {
+ sel = stck->cur_ptr = 0;
+ break; /* Nothing to wait */
+ }
+ }
- ASN_DEBUG("%p, s->l=%ld, s->wn=%ld, s->g=%ld\n", sel,
- (long)(sel?sel->left:0),
- (long)(sel?sel->want_nulls:0),
- (long)(sel?sel->got:0)
- );
- if(sel && sel->left <= 0 && sel->want_nulls == 0) {
- if(sel->prev) {
- struct _stack_el *prev = sel->prev;
- if(prev->left != -1) {
- if(prev->left < sel->got)
- RETURN(RC_FAIL);
- prev->left -= sel->got;
- }
- prev->got += sel->got;
- sel = stck->cur_ptr = prev;
- if(!sel) break;
- tlv_constr = 1;
- continue;
- } else {
- sel = stck->cur_ptr = 0;
- break; /* Nothing to wait */
- }
- }
+ tl = ber_fetch_tag(buf_ptr, Left, &tlv_tag);
+ ASN_DEBUG(
+ "fetch tag(size=%ld,L=%ld), %sstack, left=%ld, "
+ "wn=%ld, "
+ "tl=%ld",
+ (long)size, (long)Left, sel ? "" : "!",
+ (sel ? sel->left : 0),
+ (long)(sel ? sel->want_nulls : 0), (long)tl);
+ switch (tl)
+ {
+ case -1:
+ RETURN(RC_FAIL);
+ case 0:
+ RETURN(RC_WMORE);
+ }
- tl = ber_fetch_tag(buf_ptr, Left, &tlv_tag);
- ASN_DEBUG("fetch tag(size=%ld,L=%ld), %sstack, left=%ld, wn=%ld, tl=%ld",
- (long)size, (long)Left, sel?"":"!",
- (long)(sel?sel->left:0),
- (long)(sel?sel->want_nulls:0),
- (long)tl);
- switch(tl) {
- case -1: RETURN(RC_FAIL);
- case 0: RETURN(RC_WMORE);
- }
+ tlv_constr = BER_TLV_CONSTRUCTED(buf_ptr);
- tlv_constr = BER_TLV_CONSTRUCTED(buf_ptr);
+ ll = ber_fetch_length(tlv_constr,
+ (const char *)buf_ptr + tl,
+ Left - tl, &tlv_len);
+ ASN_DEBUG(
+ "Got tag=%s, tc=%d, left=%ld, tl=%ld, len=%ld, "
+ "ll=%ld",
+ ber_tlv_tag_string(tlv_tag), tlv_constr, (long)Left,
+ (long)tl, (long)tlv_len, (long)ll);
+ switch (ll)
+ {
+ case -1:
+ RETURN(RC_FAIL);
+ case 0:
+ RETURN(RC_WMORE);
+ }
- ll = ber_fetch_length(tlv_constr,
- (const char *)buf_ptr + tl,Left - tl,&tlv_len);
- ASN_DEBUG("Got tag=%s, tc=%d, left=%ld, tl=%ld, len=%ld, ll=%ld",
- ber_tlv_tag_string(tlv_tag), tlv_constr,
- (long)Left, (long)tl, (long)tlv_len, (long)ll);
- switch(ll) {
- case -1: RETURN(RC_FAIL);
- case 0: RETURN(RC_WMORE);
- }
+ if (sel && sel->want_nulls &&
+ ((const uint8_t *)buf_ptr)[0] == 0 &&
+ ((const uint8_t *)buf_ptr)[1] == 0)
+ {
+ ASN_DEBUG("Eat EOC; wn=%d--", sel->want_nulls);
- if(sel && sel->want_nulls
- && ((const uint8_t *)buf_ptr)[0] == 0
- && ((const uint8_t *)buf_ptr)[1] == 0)
- {
+ if (type_variant == ASN_OSUBV_ANY &&
+ (tag_mode != 1 || sel->cont_level))
+ APPEND("\0\0", 2);
- ASN_DEBUG("Eat EOC; wn=%d--", sel->want_nulls);
+ ADVANCE(2);
+ sel->got += 2;
+ if (sel->left != -1)
+ {
+ sel->left -=
+ 2; /* assert(sel->left >= 2) */
+ }
- if(type_variant == ASN_OSUBV_ANY
- && (tag_mode != 1 || sel->cont_level))
- APPEND("\0\0", 2);
+ sel->want_nulls--;
+ if (sel->want_nulls == 0)
+ {
+ /* Move to the next expectation */
+ sel->left = 0;
+ tlv_constr = 1;
+ }
- ADVANCE(2);
- sel->got += 2;
- if(sel->left != -1) {
- sel->left -= 2; /* assert(sel->left >= 2) */
- }
+ continue;
+ }
- sel->want_nulls--;
- if(sel->want_nulls == 0) {
- /* Move to the next expectation */
- sel->left = 0;
- tlv_constr = 1;
- }
+ /*
+ * Set up expected tags,
+ * depending on ASN.1 type being decoded.
+ */
+ switch (type_variant)
+ {
+ case ASN_OSUBV_BIT:
+ /* X.690: 8.6.4.1, NOTE 2 */
+ /* Fall through */
+ case ASN_OSUBV_STR:
+ default:
+ if (sel)
+ {
+ int level = sel->cont_level;
+ if (level < td->all_tags_count)
+ {
+ expected_tag =
+ td->all_tags[level];
+ break;
+ }
+ else if (td->all_tags_count)
+ {
+ expected_tag =
+ td->all_tags
+ [td->all_tags_count -
+ 1];
+ break;
+ }
+ /* else, Fall through */
+ }
+ /* Fall through */
+ case ASN_OSUBV_ANY:
+ expected_tag = tlv_tag;
+ break;
+ }
- continue;
- }
+ if (tlv_tag != expected_tag)
+ {
+ char buf[2][32];
+ ber_tlv_tag_snprint(tlv_tag, buf[0],
+ sizeof(buf[0]));
+ ber_tlv_tag_snprint(
+ td->tags[td->tags_count - 1], buf[1],
+ sizeof(buf[1]));
+ ASN_DEBUG(
+ "Tag does not match expectation: %s != %s",
+ buf[0], buf[1]);
+ RETURN(RC_FAIL);
+ }
- /*
- * Set up expected tags,
- * depending on ASN.1 type being decoded.
- */
- switch(type_variant) {
- case ASN_OSUBV_BIT:
- /* X.690: 8.6.4.1, NOTE 2 */
- /* Fall through */
- case ASN_OSUBV_STR:
- default:
- if(sel) {
- int level = sel->cont_level;
- if(level < td->all_tags_count) {
- expected_tag = td->all_tags[level];
- break;
- } else if(td->all_tags_count) {
- expected_tag = td->all_tags
- [td->all_tags_count - 1];
- break;
- }
- /* else, Fall through */
- }
- /* Fall through */
- case ASN_OSUBV_ANY:
- expected_tag = tlv_tag;
- break;
- }
+ tlvl =
+ tl + ll; /* Combined length of T and L encoding */
+ if ((tlv_len + tlvl) < 0)
+ {
+ /* tlv_len value is too big */
+ ASN_DEBUG(
+ "TLV encoding + length (%ld) is too big",
+ (long)tlv_len);
+ RETURN(RC_FAIL);
+ }
+ /*
+ * Append a new expectation.
+ */
+ sel = OS__add_stack_el(stck);
+ if (!sel) RETURN(RC_FAIL);
- if(tlv_tag != expected_tag) {
- char buf[2][32];
- ber_tlv_tag_snprint(tlv_tag,
- buf[0], sizeof(buf[0]));
- ber_tlv_tag_snprint(td->tags[td->tags_count-1],
- buf[1], sizeof(buf[1]));
- ASN_DEBUG("Tag does not match expectation: %s != %s",
- buf[0], buf[1]);
- RETURN(RC_FAIL);
- }
+ sel->tag = tlv_tag;
- tlvl = tl + ll; /* Combined length of T and L encoding */
- if((tlv_len + tlvl) < 0) {
- /* tlv_len value is too big */
- ASN_DEBUG("TLV encoding + length (%ld) is too big",
- (long)tlv_len);
- RETURN(RC_FAIL);
- }
+ sel->want_nulls = (tlv_len == -1);
+ if (sel->prev && sel->prev->left != -1)
+ {
+ /* Check that the parent frame is big enough */
+ if (sel->prev->left <
+ tlvl + (tlv_len == -1 ? 0 : tlv_len))
+ RETURN(RC_FAIL);
+ if (tlv_len == -1)
+ sel->left = sel->prev->left - tlvl;
+ else
+ sel->left = tlv_len;
+ }
+ else
+ {
+ sel->left = tlv_len;
+ }
+ if (type_variant == ASN_OSUBV_ANY &&
+ (tag_mode != 1 || sel->cont_level))
+ APPEND(buf_ptr, tlvl);
+ sel->got += tlvl;
+ ADVANCE(tlvl);
- /*
- * Append a new expectation.
- */
- sel = OS__add_stack_el(stck);
- if(!sel) RETURN(RC_FAIL);
+ ASN_DEBUG("+EXPECT2 got=%ld left=%ld, wn=%d, clvl=%d",
+ (long)sel->got, (long)sel->left,
+ sel->want_nulls, sel->cont_level);
+ }
+ while (tlv_constr);
+ if (sel == NULL)
+ {
+ /* Finished operation, "phase out" */
+ ASN_DEBUG("Phase out");
+ _CH_PHASE(ctx, +3);
+ break;
+ }
- sel->tag = tlv_tag;
+ NEXT_PHASE(ctx);
+ /* Fall through */
+ case 2:
+ stck = (struct _stack *)ctx->ptr;
+ sel = stck->cur_ptr;
+ ASN_DEBUG("Phase 2: Need %ld bytes, size=%ld, alrg=%ld, wn=%d",
+ (long)sel->left, (long)size, (long)sel->got,
+ sel->want_nulls);
+ {
+ ber_tlv_len_t len;
- sel->want_nulls = (tlv_len==-1);
- if(sel->prev && sel->prev->left != -1) {
- /* Check that the parent frame is big enough */
- if(sel->prev->left < tlvl + (tlv_len==-1?0:tlv_len))
- RETURN(RC_FAIL);
- if(tlv_len == -1)
- sel->left = sel->prev->left - tlvl;
- else
- sel->left = tlv_len;
- } else {
- sel->left = tlv_len;
- }
- if(type_variant == ASN_OSUBV_ANY
- && (tag_mode != 1 || sel->cont_level))
- APPEND(buf_ptr, tlvl);
- sel->got += tlvl;
- ADVANCE(tlvl);
+ assert(sel->left >= 0);
- ASN_DEBUG("+EXPECT2 got=%ld left=%ld, wn=%d, clvl=%d",
- (long)sel->got, (long)sel->left,
- sel->want_nulls, sel->cont_level);
+ len = ((ber_tlv_len_t)size < sel->left)
+ ? (ber_tlv_len_t)size
+ : sel->left;
+ if (len > 0)
+ {
+ if (type_variant == ASN_OSUBV_BIT &&
+ sel->bits_chopped == 0)
+ {
+ /* Put the unused-bits-octet away */
+ st->bits_unused = *(const uint8_t *)buf_ptr;
+ APPEND(((const char *)buf_ptr + 1),
+ (len - 1));
+ sel->bits_chopped = 1;
+ }
+ else
+ {
+ APPEND(buf_ptr, len);
+ }
+ ADVANCE(len);
+ sel->left -= len;
+ sel->got += len;
+ }
- } while(tlv_constr);
- if(sel == NULL) {
- /* Finished operation, "phase out" */
- ASN_DEBUG("Phase out");
- _CH_PHASE(ctx, +3);
- break;
- }
+ if (sel->left)
+ {
+ ASN_DEBUG("OS left %ld, size = %ld, wn=%d\n",
+ (long)sel->left, (long)size,
+ sel->want_nulls);
+ RETURN(RC_WMORE);
+ }
- NEXT_PHASE(ctx);
- /* Fall through */
- case 2:
- stck = (struct _stack *)ctx->ptr;
- sel = stck->cur_ptr;
- ASN_DEBUG("Phase 2: Need %ld bytes, size=%ld, alrg=%ld, wn=%d",
- (long)sel->left, (long)size, (long)sel->got,
- sel->want_nulls);
- {
- ber_tlv_len_t len;
+ PREV_PHASE(ctx);
+ goto phase1;
+ }
+ break;
+ case 3:
+ phase3:
+ /*
+ * Primitive form, no stack required.
+ */
+ assert(ctx->left >= 0);
- assert(sel->left >= 0);
+ if (size < (size_t)ctx->left)
+ {
+ if (!size) RETURN(RC_WMORE);
+ if (type_variant == ASN_OSUBV_BIT && !ctx->context)
+ {
+ st->bits_unused = *(const uint8_t *)buf_ptr;
+ ctx->left--;
+ ADVANCE(1);
+ }
+ APPEND(buf_ptr, size);
+ assert(ctx->context > 0);
+ ctx->left -= size;
+ ADVANCE(size);
+ RETURN(RC_WMORE);
+ }
+ else
+ {
+ if (type_variant == ASN_OSUBV_BIT && !ctx->context &&
+ ctx->left)
+ {
+ st->bits_unused = *(const uint8_t *)buf_ptr;
+ ctx->left--;
+ ADVANCE(1);
+ }
+ APPEND(buf_ptr, ctx->left);
+ ADVANCE(ctx->left);
+ ctx->left = 0;
- len = ((ber_tlv_len_t)size < sel->left)
- ? (ber_tlv_len_t)size : sel->left;
- if(len > 0) {
- if(type_variant == ASN_OSUBV_BIT
- && sel->bits_chopped == 0) {
- /* Put the unused-bits-octet away */
- st->bits_unused = *(const uint8_t *)buf_ptr;
- APPEND(((const char *)buf_ptr+1), (len - 1));
- sel->bits_chopped = 1;
- } else {
- APPEND(buf_ptr, len);
- }
- ADVANCE(len);
- sel->left -= len;
- sel->got += len;
- }
+ NEXT_PHASE(ctx);
+ }
+ break;
+ }
- if(sel->left) {
- ASN_DEBUG("OS left %ld, size = %ld, wn=%d\n",
- (long)sel->left, (long)size, sel->want_nulls);
- RETURN(RC_WMORE);
- }
+ if (sel)
+ {
+ ASN_DEBUG("3sel p=%p, wn=%d, l=%ld, g=%ld, size=%ld", sel->prev,
+ sel->want_nulls, (long)sel->left, (long)sel->got,
+ (long)size);
+ if (sel->prev || sel->want_nulls > 1 || sel->left > 0)
+ {
+ RETURN(RC_WMORE);
+ }
+ }
- PREV_PHASE(ctx);
- goto phase1;
- }
- break;
- case 3:
- phase3:
- /*
- * Primitive form, no stack required.
- */
- assert(ctx->left >= 0);
+ /*
+ * BIT STRING-specific processing.
+ */
+ if (type_variant == ASN_OSUBV_BIT && st->size)
+ {
+ /* Finalize BIT STRING: zero out unused bits. */
+ st->buf[st->size - 1] &= 0xff << st->bits_unused;
+ }
- if(size < (size_t)ctx->left) {
- if(!size) RETURN(RC_WMORE);
- if(type_variant == ASN_OSUBV_BIT && !ctx->context) {
- st->bits_unused = *(const uint8_t *)buf_ptr;
- ctx->left--;
- ADVANCE(1);
- }
- APPEND(buf_ptr, size);
- assert(ctx->context > 0);
- ctx->left -= size;
- ADVANCE(size);
- RETURN(RC_WMORE);
- } else {
- if(type_variant == ASN_OSUBV_BIT
- && !ctx->context && ctx->left) {
- st->bits_unused = *(const uint8_t *)buf_ptr;
- ctx->left--;
- ADVANCE(1);
- }
- APPEND(buf_ptr, ctx->left);
- ADVANCE(ctx->left);
- ctx->left = 0;
+ ASN_DEBUG("Took %ld bytes to encode %s: [%s]:%ld", (long)consumed_myself,
+ td->name,
+ (type_variant == ASN_OSUBV_STR) ? (char *)st->buf : "",
+ (long)st->size);
- NEXT_PHASE(ctx);
- }
- break;
- }
-
- if(sel) {
- ASN_DEBUG("3sel p=%p, wn=%d, l=%ld, g=%ld, size=%ld",
- sel->prev, sel->want_nulls,
- (long)sel->left, (long)sel->got, (long)size);
- if(sel->prev || sel->want_nulls > 1 || sel->left > 0) {
- RETURN(RC_WMORE);
- }
- }
-
- /*
- * BIT STRING-specific processing.
- */
- if(type_variant == ASN_OSUBV_BIT && st->size) {
- /* Finalize BIT STRING: zero out unused bits. */
- st->buf[st->size-1] &= 0xff << st->bits_unused;
- }
-
- ASN_DEBUG("Took %ld bytes to encode %s: [%s]:%ld",
- (long)consumed_myself, td->name,
- (type_variant == ASN_OSUBV_STR) ? (char *)st->buf : "",
- (long)st->size);
-
-
- RETURN(RC_OK);
+ RETURN(RC_OK);
}
/*
* Encode OCTET STRING type using DER.
*/
-asn_enc_rval_t
-OCTET_STRING_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) {
- asn_enc_rval_t er;
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- BIT_STRING_t *st = (BIT_STRING_t *)sptr;
- enum asn_OS_Subvariant type_variant = specs->subvariant;
- int fix_last_byte = 0;
+asn_enc_rval_t OCTET_STRING_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)
+{
+ asn_enc_rval_t er;
+ asn_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ BIT_STRING_t *st = (BIT_STRING_t *)sptr;
+ enum asn_OS_Subvariant type_variant = specs->subvariant;
+ int fix_last_byte = 0;
- ASN_DEBUG("%s %s as OCTET STRING",
- cb?"Estimating":"Encoding", td->name);
+ ASN_DEBUG("%s %s as OCTET STRING", cb ? "Estimating" : "Encoding",
+ td->name);
- /*
- * Write tags.
- */
- if(type_variant != ASN_OSUBV_ANY || tag_mode == 1) {
- er.encoded = der_write_tags(td,
- (type_variant == ASN_OSUBV_BIT) + st->size,
- tag_mode, type_variant == ASN_OSUBV_ANY, tag,
- cb, app_key);
- if(er.encoded == -1) {
- er.failed_type = td;
- er.structure_ptr = sptr;
- return er;
- }
- } else {
- /* Disallow: [] IMPLICIT ANY */
- assert(type_variant != ASN_OSUBV_ANY || tag_mode != -1);
- er.encoded = 0;
- }
+ /*
+ * Write tags.
+ */
+ if (type_variant != ASN_OSUBV_ANY || tag_mode == 1)
+ {
+ er.encoded = der_write_tags(
+ td, (type_variant == ASN_OSUBV_BIT) + st->size, tag_mode,
+ type_variant == ASN_OSUBV_ANY, tag, cb, app_key);
+ if (er.encoded == -1)
+ {
+ er.failed_type = td;
+ er.structure_ptr = sptr;
+ return er;
+ }
+ }
+ else
+ {
+ /* Disallow: [] IMPLICIT ANY */
+ assert(type_variant != ASN_OSUBV_ANY || tag_mode != -1);
+ er.encoded = 0;
+ }
- if(!cb) {
- er.encoded += (type_variant == ASN_OSUBV_BIT) + st->size;
- _ASN_ENCODED_OK(er);
- }
+ if (!cb)
+ {
+ er.encoded += (type_variant == ASN_OSUBV_BIT) + st->size;
+ _ASN_ENCODED_OK(er);
+ }
- /*
- * Prepare to deal with the last octet of BIT STRING.
- */
- if(type_variant == ASN_OSUBV_BIT) {
- uint8_t b = st->bits_unused & 0x07;
- if(b && st->size) fix_last_byte = 1;
- _ASN_CALLBACK(&b, 1);
- er.encoded++;
- }
+ /*
+ * Prepare to deal with the last octet of BIT STRING.
+ */
+ if (type_variant == ASN_OSUBV_BIT)
+ {
+ uint8_t b = st->bits_unused & 0x07;
+ if (b && st->size) fix_last_byte = 1;
+ _ASN_CALLBACK(&b, 1);
+ er.encoded++;
+ }
- /* Invoke callback for the main part of the buffer */
- _ASN_CALLBACK(st->buf, st->size - fix_last_byte);
+ /* Invoke callback for the main part of the buffer */
+ _ASN_CALLBACK(st->buf, st->size - fix_last_byte);
- /* The last octet should be stripped off the unused bits */
- if(fix_last_byte) {
- uint8_t b = st->buf[st->size-1] & (0xff << st->bits_unused);
- _ASN_CALLBACK(&b, 1);
- }
+ /* The last octet should be stripped off the unused bits */
+ if (fix_last_byte)
+ {
+ uint8_t b = st->buf[st->size - 1] & (0xff << st->bits_unused);
+ _ASN_CALLBACK(&b, 1);
+ }
- er.encoded += st->size;
- _ASN_ENCODED_OK(er);
+ er.encoded += st->size;
+ _ASN_ENCODED_OK(er);
cb_failed:
- _ASN_ENCODE_FAILED;
+ _ASN_ENCODE_FAILED;
}
-asn_enc_rval_t
-OCTET_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) {
- static const char *h2c = "0123456789ABCDEF";
- const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
- asn_enc_rval_t er;
- char scratch[16 * 3 + 4];
- char *p = scratch;
- uint8_t *buf;
- uint8_t *end;
- size_t i;
+asn_enc_rval_t OCTET_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)
+{
+ static const char *h2c = "0123456789ABCDEF";
+ const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
+ asn_enc_rval_t er;
+ char scratch[16 * 3 + 4];
+ char *p = scratch;
+ uint8_t *buf;
+ uint8_t *end;
+ size_t i;
- if(!st || (!st->buf && st->size))
- _ASN_ENCODE_FAILED;
+ if (!st || (!st->buf && st->size)) _ASN_ENCODE_FAILED;
- er.encoded = 0;
+ er.encoded = 0;
- /*
- * Dump the contents of the buffer in hexadecimal.
- */
- buf = st->buf;
- end = buf + st->size;
- if(flags & XER_F_CANONICAL) {
- char *scend = scratch + (sizeof(scratch) - 2);
- for(; buf < end; buf++) {
- if(p >= scend) {
- _ASN_CALLBACK(scratch, p - scratch);
- er.encoded += p - scratch;
- p = scratch;
- }
- *p++ = h2c[(*buf >> 4) & 0x0F];
- *p++ = h2c[*buf & 0x0F];
- }
+ /*
+ * Dump the contents of the buffer in hexadecimal.
+ */
+ buf = st->buf;
+ end = buf + st->size;
+ if (flags & XER_F_CANONICAL)
+ {
+ char *scend = scratch + (sizeof(scratch) - 2);
+ for (; buf < end; buf++)
+ {
+ if (p >= scend)
+ {
+ _ASN_CALLBACK(scratch, p - scratch);
+ er.encoded += p - scratch;
+ p = scratch;
+ }
+ *p++ = h2c[(*buf >> 4) & 0x0F];
+ *p++ = h2c[*buf & 0x0F];
+ }
- _ASN_CALLBACK(scratch, p-scratch); /* Dump the rest */
- er.encoded += p - scratch;
- } else {
- for(i = 0; buf < end; buf++, i++) {
- if(!(i % 16) && (i || st->size > 16)) {
- _ASN_CALLBACK(scratch, p-scratch);
- er.encoded += (p-scratch);
- p = scratch;
- _i_ASN_TEXT_INDENT(1, ilevel);
- }
- *p++ = h2c[(*buf >> 4) & 0x0F];
- *p++ = h2c[*buf & 0x0F];
- *p++ = 0x20;
- }
- if(p - scratch) {
- p--; /* Remove the tail space */
- _ASN_CALLBACK(scratch, p-scratch); /* Dump the rest */
- er.encoded += p - scratch;
- if(st->size > 16)
- _i_ASN_TEXT_INDENT(1, ilevel-1);
- }
- }
+ _ASN_CALLBACK(scratch, p - scratch); /* Dump the rest */
+ er.encoded += p - scratch;
+ }
+ else
+ {
+ for (i = 0; buf < end; buf++, i++)
+ {
+ if (!(i % 16) && (i || st->size > 16))
+ {
+ _ASN_CALLBACK(scratch, p - scratch);
+ er.encoded += (p - scratch);
+ p = scratch;
+ _i_ASN_TEXT_INDENT(1, ilevel);
+ }
+ *p++ = h2c[(*buf >> 4) & 0x0F];
+ *p++ = h2c[*buf & 0x0F];
+ *p++ = 0x20;
+ }
+ if (p - scratch)
+ {
+ p--; /* Remove the tail space */
+ _ASN_CALLBACK(scratch, p - scratch); /* Dump the rest */
+ er.encoded += p - scratch;
+ if (st->size > 16) _i_ASN_TEXT_INDENT(1, ilevel - 1);
+ }
+ }
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
cb_failed:
- _ASN_ENCODE_FAILED;
+ _ASN_ENCODE_FAILED;
}
-static struct OCTET_STRING__xer_escape_table_s {
- char *string;
- int size;
+static struct OCTET_STRING__xer_escape_table_s
+{
+ char *string;
+ int size;
} OCTET_STRING__xer_escape_table[] = {
-#define OSXET(s) { s, sizeof(s) - 1 }
- OSXET("\074\156\165\154\057\076"), /* */
- OSXET("\074\163\157\150\057\076"), /* */
- OSXET("\074\163\164\170\057\076"), /* */
- OSXET("\074\145\164\170\057\076"), /* */
- OSXET("\074\145\157\164\057\076"), /* */
- OSXET("\074\145\156\161\057\076"), /* */
- OSXET("\074\141\143\153\057\076"), /* */
- OSXET("\074\142\145\154\057\076"), /* */
- OSXET("\074\142\163\057\076"), /* */
- OSXET("\011"), /* \t */
- OSXET("\012"), /* \n */
- OSXET("\074\166\164\057\076"), /* */
- OSXET("\074\146\146\057\076"), /* */
- OSXET("\015"), /* \r */
- OSXET("\074\163\157\057\076"), /* */
- OSXET("\074\163\151\057\076"), /* */
- OSXET("\074\144\154\145\057\076"), /* */
- OSXET("\074\144\143\061\057\076"), /* */
- OSXET("\074\144\143\062\057\076"), /* */
- OSXET("\074\144\143\063\057\076"), /* */
- OSXET("\074\144\143\064\057\076"), /* */
- OSXET("\074\156\141\153\057\076"), /* */
- OSXET("\074\163\171\156\057\076"), /* */
- OSXET("\074\145\164\142\057\076"), /* */
- OSXET("\074\143\141\156\057\076"), /* */
- OSXET("\074\145\155\057\076"), /* */
- OSXET("\074\163\165\142\057\076"), /* */
- OSXET("\074\145\163\143\057\076"), /* */
- OSXET("\074\151\163\064\057\076"), /* */
- OSXET("\074\151\163\063\057\076"), /* */
- OSXET("\074\151\163\062\057\076"), /* */
- OSXET("\074\151\163\061\057\076"), /* */
- { 0, 0 }, /* " " */
- { 0, 0 }, /* ! */
- { 0, 0 }, /* \" */
- { 0, 0 }, /* # */
- { 0, 0 }, /* $ */
- { 0, 0 }, /* % */
- OSXET("\046\141\155\160\073"), /* & */
- { 0, 0 }, /* ' */
- {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* ()*+,-./ */
- {0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, /* 01234567 */
- {0,0},{0,0},{0,0},{0,0}, /* 89:; */
- OSXET("\046\154\164\073"), /* < */
- { 0, 0 }, /* = */
- OSXET("\046\147\164\073"), /* > */
+#define OSXET(s) \
+ { \
+ s, sizeof(s) - 1 \
+ }
+ OSXET("\074\156\165\154\057\076"), /* */
+ OSXET("\074\163\157\150\057\076"), /* */
+ OSXET("\074\163\164\170\057\076"), /* */
+ OSXET("\074\145\164\170\057\076"), /* */
+ OSXET("\074\145\157\164\057\076"), /* */
+ OSXET("\074\145\156\161\057\076"), /* */
+ OSXET("\074\141\143\153\057\076"), /* */
+ OSXET("\074\142\145\154\057\076"), /* */
+ OSXET("\074\142\163\057\076"), /* */
+ OSXET("\011"), /* \t */
+ OSXET("\012"), /* \n */
+ OSXET("\074\166\164\057\076"), /* */
+ OSXET("\074\146\146\057\076"), /* */
+ OSXET("\015"), /* \r */
+ OSXET("\074\163\157\057\076"), /* */
+ OSXET("\074\163\151\057\076"), /* */
+ OSXET("\074\144\154\145\057\076"), /* */
+ OSXET("\074\144\143\061\057\076"), /* */
+ OSXET("\074\144\143\062\057\076"), /* */
+ OSXET("\074\144\143\063\057\076"), /* */
+ OSXET("\074\144\143\064\057\076"), /* */
+ OSXET("\074\156\141\153\057\076"), /* */
+ OSXET("\074\163\171\156\057\076"), /* */
+ OSXET("\074\145\164\142\057\076"), /* */
+ OSXET("\074\143\141\156\057\076"), /* */
+ OSXET("\074\145\155\057\076"), /* */
+ OSXET("\074\163\165\142\057\076"), /* */
+ OSXET("\074\145\163\143\057\076"), /* */
+ OSXET("\074\151\163\064\057\076"), /* */
+ OSXET("\074\151\163\063\057\076"), /* */
+ OSXET("\074\151\163\062\057\076"), /* */
+ OSXET("\074\151\163\061\057\076"), /* */
+ {0, 0}, /* " " */
+ {0, 0}, /* ! */
+ {0, 0}, /* \" */
+ {0, 0}, /* # */
+ {0, 0}, /* $ */
+ {0, 0}, /* % */
+ OSXET("\046\141\155\160\073"), /* & */
+ {0, 0}, /* ' */
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0}, /* ()*+,-./ */
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0}, /* 01234567 */
+ {0, 0},
+ {0, 0},
+ {0, 0},
+ {0, 0}, /* 89:; */
+ OSXET("\046\154\164\073"), /* < */
+ {0, 0}, /* = */
+ OSXET("\046\147\164\073"), /* > */
};
-static int
-OS__check_escaped_control_char(const void *buf, int size) {
- size_t i;
- /*
- * Inefficient algorithm which translates the escape sequences
- * defined above into characters. Returns -1 if not found.
- * TODO: replace by a faster algorithm (bsearch(), hash or
- * nested table lookups).
- */
- for(i = 0; i < 32 /* Don't spend time on the bottom half */; i++) {
- struct OCTET_STRING__xer_escape_table_s *el;
- el = &OCTET_STRING__xer_escape_table[i];
- if(el->size == size && memcmp(buf, el->string, size) == 0)
- return i;
- }
- return -1;
+static int OS__check_escaped_control_char(const void *buf, int size)
+{
+ size_t i;
+ /*
+ * Inefficient algorithm which translates the escape sequences
+ * defined above into characters. Returns -1 if not found.
+ * TODO: replace by a faster algorithm (bsearch(), hash or
+ * nested table lookups).
+ */
+ for (i = 0; i < 32 /* Don't spend time on the bottom half */; i++)
+ {
+ struct OCTET_STRING__xer_escape_table_s *el;
+ el = &OCTET_STRING__xer_escape_table[i];
+ if (el->size == size && memcmp(buf, el->string, size) == 0)
+ return i;
+ }
+ return -1;
}
-static int
-OCTET_STRING__handle_control_chars(void *struct_ptr, const void *chunk_buf, size_t chunk_size) {
- /*
- * This might be one of the escape sequences
- * for control characters. Check it out.
- * #11.15.5
- */
- int control_char = OS__check_escaped_control_char(chunk_buf,chunk_size);
- if(control_char >= 0) {
- OCTET_STRING_t *st = (OCTET_STRING_t *)struct_ptr;
- void *p = REALLOC(st->buf, st->size + 2);
- if(p) {
- st->buf = (uint8_t *)p;
- st->buf[st->size++] = control_char;
- st->buf[st->size] = '\0'; /* nul-termination */
- return 0;
- }
- }
+static int OCTET_STRING__handle_control_chars(void *struct_ptr,
+ const void *chunk_buf,
+ size_t chunk_size)
+{
+ /*
+ * This might be one of the escape sequences
+ * for control characters. Check it out.
+ * #11.15.5
+ */
+ int control_char = OS__check_escaped_control_char(chunk_buf, chunk_size);
+ if (control_char >= 0)
+ {
+ OCTET_STRING_t *st = (OCTET_STRING_t *)struct_ptr;
+ void *p = REALLOC(st->buf, st->size + 2);
+ if (p)
+ {
+ st->buf = (uint8_t *)p;
+ st->buf[st->size++] = control_char;
+ st->buf[st->size] = '\0'; /* nul-termination */
+ return 0;
+ }
+ }
- return -1; /* No, it's not */
+ return -1; /* No, it's not */
}
-asn_enc_rval_t
-OCTET_STRING_encode_xer_utf8(asn_TYPE_descriptor_t *td, void *sptr,
- int ilevel, enum xer_encoder_flags_e flags,
- asn_app_consume_bytes_f *cb, void *app_key) {
- const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
- asn_enc_rval_t er;
- uint8_t *buf;
- uint8_t *end;
- uint8_t *ss; /* Sequence start */
- ssize_t encoded_len = 0;
+asn_enc_rval_t OCTET_STRING_encode_xer_utf8(asn_TYPE_descriptor_t *td,
+ void *sptr, int ilevel,
+ enum xer_encoder_flags_e flags,
+ asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
+ asn_enc_rval_t er;
+ uint8_t *buf;
+ uint8_t *end;
+ uint8_t *ss; /* Sequence start */
+ ssize_t encoded_len = 0;
- (void)ilevel; /* Unused argument */
- (void)flags; /* Unused argument */
+ (void)ilevel; /* Unused argument */
+ (void)flags; /* Unused argument */
- if(!st || (!st->buf && st->size))
- _ASN_ENCODE_FAILED;
+ if (!st || (!st->buf && st->size)) _ASN_ENCODE_FAILED;
- buf = st->buf;
- end = buf + st->size;
- for(ss = buf; buf < end; buf++) {
- unsigned int ch = *buf;
- int s_len; /* Special encoding sequence length */
+ buf = st->buf;
+ end = buf + st->size;
+ for (ss = buf; buf < end; buf++)
+ {
+ unsigned int ch = *buf;
+ int s_len; /* Special encoding sequence length */
- /*
- * Escape certain characters: X.680/11.15
- */
- if(ch < sizeof(OCTET_STRING__xer_escape_table)
- /sizeof(OCTET_STRING__xer_escape_table[0])
- && (s_len = OCTET_STRING__xer_escape_table[ch].size)) {
- if(((buf - ss) && cb(ss, buf - ss, app_key) < 0)
- || cb(OCTET_STRING__xer_escape_table[ch].string, s_len,
- app_key) < 0)
- _ASN_ENCODE_FAILED;
- encoded_len += (buf - ss) + s_len;
- ss = buf + 1;
- }
- }
+ /*
+ * Escape certain characters: X.680/11.15
+ */
+ if (ch < sizeof(OCTET_STRING__xer_escape_table) /
+ sizeof(OCTET_STRING__xer_escape_table[0]) &&
+ (s_len = OCTET_STRING__xer_escape_table[ch].size))
+ {
+ if (((buf - ss) && cb(ss, buf - ss, app_key) < 0) ||
+ cb(OCTET_STRING__xer_escape_table[ch].string, s_len,
+ app_key) < 0)
+ _ASN_ENCODE_FAILED;
+ encoded_len += (buf - ss) + s_len;
+ ss = buf + 1;
+ }
+ }
- encoded_len += (buf - ss);
- if((buf - ss) && cb(ss, buf - ss, app_key) < 0)
- _ASN_ENCODE_FAILED;
+ encoded_len += (buf - ss);
+ if ((buf - ss) && cb(ss, buf - ss, app_key) < 0) _ASN_ENCODE_FAILED;
- er.encoded = encoded_len;
- _ASN_ENCODED_OK(er);
+ er.encoded = encoded_len;
+ _ASN_ENCODED_OK(er);
}
/*
* Convert from hexadecimal format (cstring): "AB CD EF"
*/
-static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) {
- OCTET_STRING_t *st = (OCTET_STRING_t *)sptr;
- const char *chunk_stop = (const char *)chunk_buf;
- const char *p = chunk_stop;
- const char *pend = p + chunk_size;
- unsigned int clv = 0;
- int half = 0; /* Half bit */
- uint8_t *buf;
+static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr,
+ const void *chunk_buf,
+ size_t chunk_size,
+ int have_more)
+{
+ OCTET_STRING_t *st = (OCTET_STRING_t *)sptr;
+ const char *chunk_stop = (const char *)chunk_buf;
+ const char *p = chunk_stop;
+ const char *pend = p + chunk_size;
+ unsigned int clv = 0;
+ int half = 0; /* Half bit */
+ uint8_t *buf;
- /* Reallocate buffer according to high cap estimation */
- ssize_t _ns = st->size + (chunk_size + 1) / 2;
- void *nptr = REALLOC(st->buf, _ns + 1);
- if(!nptr) return -1;
- st->buf = (uint8_t *)nptr;
- buf = st->buf + st->size;
+ /* Reallocate buffer according to high cap estimation */
+ ssize_t _ns = st->size + (chunk_size + 1) / 2;
+ void *nptr = REALLOC(st->buf, _ns + 1);
+ if (!nptr) return -1;
+ st->buf = (uint8_t *)nptr;
+ buf = st->buf + st->size;
- /*
- * If something like " a b c " appears here, the " a b":3 will be
- * converted, and the rest skipped. That is, unless buf_size is greater
- * than chunk_size, then it'll be equivalent to "ABC0".
- */
- for(; p < pend; p++) {
- int ch = *(const unsigned char *)p;
- switch(ch) {
- case 0x09: case 0x0a: case 0x0c: case 0x0d:
- case 0x20:
- /* Ignore whitespace */
- continue;
- case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/
- case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/
- clv = (clv << 4) + (ch - 0x30);
- break;
- case 0x41: case 0x42: case 0x43: /* ABC */
- case 0x44: case 0x45: case 0x46: /* DEF */
- clv = (clv << 4) + (ch - 0x41 + 10);
- break;
- case 0x61: case 0x62: case 0x63: /* abc */
- case 0x64: case 0x65: case 0x66: /* def */
- clv = (clv << 4) + (ch - 0x61 + 10);
- break;
- default:
- *buf = 0; /* JIC */
- return -1;
- }
- if(half++) {
- half = 0;
- *buf++ = clv;
- chunk_stop = p + 1;
- }
- }
+ /*
+ * If something like " a b c " appears here, the " a b":3 will be
+ * converted, and the rest skipped. That is, unless buf_size is greater
+ * than chunk_size, then it'll be equivalent to "ABC0".
+ */
+ for (; p < pend; p++)
+ {
+ int ch = *(const unsigned char *)p;
+ switch (ch)
+ {
+ case 0x09:
+ case 0x0a:
+ case 0x0c:
+ case 0x0d:
+ case 0x20:
+ /* Ignore whitespace */
+ continue;
+ case 0x30:
+ case 0x31:
+ case 0x32:
+ case 0x33:
+ case 0x34: /*01234*/
+ case 0x35:
+ case 0x36:
+ case 0x37:
+ case 0x38:
+ case 0x39: /*56789*/
+ clv = (clv << 4) + (ch - 0x30);
+ break;
+ case 0x41:
+ case 0x42:
+ case 0x43: /* ABC */
+ case 0x44:
+ case 0x45:
+ case 0x46: /* DEF */
+ clv = (clv << 4) + (ch - 0x41 + 10);
+ break;
+ case 0x61:
+ case 0x62:
+ case 0x63: /* abc */
+ case 0x64:
+ case 0x65:
+ case 0x66: /* def */
+ clv = (clv << 4) + (ch - 0x61 + 10);
+ break;
+ default:
+ *buf = 0; /* JIC */
+ return -1;
+ }
+ if (half++)
+ {
+ half = 0;
+ *buf++ = clv;
+ chunk_stop = p + 1;
+ }
+ }
- /*
- * Check partial decoding.
- */
- if(half) {
- if(have_more) {
- /*
- * Partial specification is fine,
- * because no more more PXER_TEXT data is available.
- */
- *buf++ = clv << 4;
- chunk_stop = p;
- }
- } else {
- chunk_stop = p;
- }
+ /*
+ * Check partial decoding.
+ */
+ if (half)
+ {
+ if (have_more)
+ {
+ /*
+ * Partial specification is fine,
+ * because no more more PXER_TEXT data is available.
+ */
+ *buf++ = clv << 4;
+ chunk_stop = p;
+ }
+ }
+ else
+ {
+ chunk_stop = p;
+ }
- st->size = buf - st->buf; /* Adjust the buffer size */
- assert(st->size <= _ns);
- st->buf[st->size] = 0; /* Courtesy termination */
+ st->size = buf - st->buf; /* Adjust the buffer size */
+ assert(st->size <= _ns);
+ st->buf[st->size] = 0; /* Courtesy termination */
- return (chunk_stop - (const char *)chunk_buf); /* Converted size */
+ return (chunk_stop - (const char *)chunk_buf); /* Converted size */
}
/*
* Convert from binary format: "00101011101"
*/
-static ssize_t OCTET_STRING__convert_binary(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) {
- BIT_STRING_t *st = (BIT_STRING_t *)sptr;
- const char *p = (const char *)chunk_buf;
- const char *pend = p + chunk_size;
- int bits_unused = st->bits_unused & 0x7;
- uint8_t *buf;
+static ssize_t OCTET_STRING__convert_binary(void *sptr, const void *chunk_buf,
+ size_t chunk_size, int have_more)
+{
+ BIT_STRING_t *st = (BIT_STRING_t *)sptr;
+ const char *p = (const char *)chunk_buf;
+ const char *pend = p + chunk_size;
+ int bits_unused = st->bits_unused & 0x7;
+ uint8_t *buf;
- /* Reallocate buffer according to high cap estimation */
- ssize_t _ns = st->size + (chunk_size + 7) / 8;
- void *nptr = REALLOC(st->buf, _ns + 1);
- if(!nptr) return -1;
- st->buf = (uint8_t *)nptr;
- buf = st->buf + st->size;
+ /* Reallocate buffer according to high cap estimation */
+ ssize_t _ns = st->size + (chunk_size + 7) / 8;
+ void *nptr = REALLOC(st->buf, _ns + 1);
+ if (!nptr) return -1;
+ st->buf = (uint8_t *)nptr;
+ buf = st->buf + st->size;
- (void)have_more;
+ (void)have_more;
- if(bits_unused == 0)
- bits_unused = 8;
- else if(st->size)
- buf--;
+ if (bits_unused == 0)
+ bits_unused = 8;
+ else if (st->size)
+ buf--;
- /*
- * Convert series of 0 and 1 into the octet string.
- */
- for(; p < pend; p++) {
- int ch = *(const unsigned char *)p;
- switch(ch) {
- case 0x09: case 0x0a: case 0x0c: case 0x0d:
- case 0x20:
- /* Ignore whitespace */
- break;
- case 0x30:
- case 0x31:
- if(bits_unused-- <= 0) {
- *++buf = 0; /* Clean the cell */
- bits_unused = 7;
- }
- *buf |= (ch&1) << bits_unused;
- break;
- default:
- st->bits_unused = bits_unused;
- return -1;
- }
- }
+ /*
+ * Convert series of 0 and 1 into the octet string.
+ */
+ for (; p < pend; p++)
+ {
+ int ch = *(const unsigned char *)p;
+ switch (ch)
+ {
+ case 0x09:
+ case 0x0a:
+ case 0x0c:
+ case 0x0d:
+ case 0x20:
+ /* Ignore whitespace */
+ break;
+ case 0x30:
+ case 0x31:
+ if (bits_unused-- <= 0)
+ {
+ *++buf = 0; /* Clean the cell */
+ bits_unused = 7;
+ }
+ *buf |= (ch & 1) << bits_unused;
+ break;
+ default:
+ st->bits_unused = bits_unused;
+ return -1;
+ }
+ }
- if(bits_unused == 8) {
- st->size = buf - st->buf;
- st->bits_unused = 0;
- } else {
- st->size = buf - st->buf + 1;
- st->bits_unused = bits_unused;
- }
+ if (bits_unused == 8)
+ {
+ st->size = buf - st->buf;
+ st->bits_unused = 0;
+ }
+ else
+ {
+ st->size = buf - st->buf + 1;
+ st->bits_unused = bits_unused;
+ }
- assert(st->size <= _ns);
- st->buf[st->size] = 0; /* Courtesy termination */
+ assert(st->size <= _ns);
+ st->buf[st->size] = 0; /* Courtesy termination */
- return chunk_size; /* Converted in full */
+ return chunk_size; /* Converted in full */
}
/*
* Something like strtod(), but with stricter rules.
*/
-static int
-OS__strtoent(int base, const char *buf, const char *end, int32_t *ret_value) {
- int32_t val = 0;
- const char *p;
+static int OS__strtoent(int base, const char *buf, const char *end,
+ int32_t *ret_value)
+{
+ int32_t val = 0;
+ const char *p;
- for(p = buf; p < end; p++) {
- int ch = *p;
+ for (p = buf; p < end; p++)
+ {
+ int ch = *p;
- /* Strange huge value */
- if((val * base + base) < 0)
- return -1;
+ /* Strange huge value */
+ if ((val * base + base) < 0) return -1;
- switch(ch) {
- case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/
- case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/
- val = val * base + (ch - 0x30);
- break;
- case 0x41: case 0x42: case 0x43: /* ABC */
- case 0x44: case 0x45: case 0x46: /* DEF */
- val = val * base + (ch - 0x41 + 10);
- break;
- case 0x61: case 0x62: case 0x63: /* abc */
- case 0x64: case 0x65: case 0x66: /* def */
- val = val * base + (ch - 0x61 + 10);
- break;
- case 0x3b: /* ';' */
- *ret_value = val;
- return (p - buf) + 1;
- default:
- return -1; /* Character set error */
- }
- }
+ switch (ch)
+ {
+ case 0x30:
+ case 0x31:
+ case 0x32:
+ case 0x33:
+ case 0x34: /*01234*/
+ case 0x35:
+ case 0x36:
+ case 0x37:
+ case 0x38:
+ case 0x39: /*56789*/
+ val = val * base + (ch - 0x30);
+ break;
+ case 0x41:
+ case 0x42:
+ case 0x43: /* ABC */
+ case 0x44:
+ case 0x45:
+ case 0x46: /* DEF */
+ val = val * base + (ch - 0x41 + 10);
+ break;
+ case 0x61:
+ case 0x62:
+ case 0x63: /* abc */
+ case 0x64:
+ case 0x65:
+ case 0x66: /* def */
+ val = val * base + (ch - 0x61 + 10);
+ break;
+ case 0x3b: /* ';' */
+ *ret_value = val;
+ return (p - buf) + 1;
+ default:
+ return -1; /* Character set error */
+ }
+ }
- *ret_value = -1;
- return (p - buf);
+ *ret_value = -1;
+ return (p - buf);
}
/*
* Convert from the plain UTF-8 format, expanding entity references: "2 < 3"
*/
-static ssize_t OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) {
- OCTET_STRING_t *st = (OCTET_STRING_t *)sptr;
- const char *p = (const char *)chunk_buf;
- const char *pend = p + chunk_size;
- uint8_t *buf;
+static ssize_t OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf,
+ size_t chunk_size, int have_more)
+{
+ OCTET_STRING_t *st = (OCTET_STRING_t *)sptr;
+ const char *p = (const char *)chunk_buf;
+ const char *pend = p + chunk_size;
+ uint8_t *buf;
- /* Reallocate buffer */
- ssize_t _ns = st->size + chunk_size;
- void *nptr = REALLOC(st->buf, _ns + 1);
- if(!nptr) return -1;
- st->buf = (uint8_t *)nptr;
- buf = st->buf + st->size;
+ /* Reallocate buffer */
+ ssize_t _ns = st->size + chunk_size;
+ void *nptr = REALLOC(st->buf, _ns + 1);
+ if (!nptr) return -1;
+ st->buf = (uint8_t *)nptr;
+ buf = st->buf + st->size;
- /*
- * Convert series of 0 and 1 into the octet string.
- */
- for(; p < pend; p++) {
- int ch = *(const unsigned char *)p;
- int len; /* Length of the rest of the chunk */
+ /*
+ * Convert series of 0 and 1 into the octet string.
+ */
+ for (; p < pend; p++)
+ {
+ int ch = *(const unsigned char *)p;
+ int len; /* Length of the rest of the chunk */
- if(ch != 0x26 /* '&' */) {
- *buf++ = ch;
- continue; /* That was easy... */
- }
+ if (ch != 0x26 /* '&' */)
+ {
+ *buf++ = ch;
+ continue; /* That was easy... */
+ }
- /*
- * Process entity reference.
- */
- len = chunk_size - (p - (const char *)chunk_buf);
- if(len == 1 /* "&" */) goto want_more;
- if(p[1] == 0x23 /* '#' */) {
- const char *pval; /* Pointer to start of digits */
- int32_t val = 0; /* Entity reference value */
- int base;
+ /*
+ * Process entity reference.
+ */
+ len = chunk_size - (p - (const char *)chunk_buf);
+ if (len == 1 /* "&" */) goto want_more;
+ if (p[1] == 0x23 /* '#' */)
+ {
+ const char *pval; /* Pointer to start of digits */
+ int32_t val = 0; /* Entity reference value */
+ int base;
- if(len == 2 /* "" */) goto want_more;
- if(p[2] == 0x78 /* 'x' */)
- pval = p + 3, base = 16;
- else
- pval = p + 2, base = 10;
- len = OS__strtoent(base, pval, p + len, &val);
- if(len == -1) {
- /* Invalid charset. Just copy verbatim. */
- *buf++ = ch;
- continue;
- }
- if(!len || pval[len-1] != 0x3b) goto want_more;
- assert(val > 0);
- p += (pval - p) + len - 1; /* Advance past entref */
+ if (len == 2 /* "" */) goto want_more;
+ if (p[2] == 0x78 /* 'x' */)
+ pval = p + 3, base = 16;
+ else
+ pval = p + 2, base = 10;
+ len = OS__strtoent(base, pval, p + len, &val);
+ if (len == -1)
+ {
+ /* Invalid charset. Just copy verbatim. */
+ *buf++ = ch;
+ continue;
+ }
+ if (!len || pval[len - 1] != 0x3b) goto want_more;
+ assert(val > 0);
+ p += (pval - p) + len - 1; /* Advance past entref */
- if(val < 0x80) {
- *buf++ = (char)val;
- } else if(val < 0x800) {
- *buf++ = 0xc0 | ((val >> 6));
- *buf++ = 0x80 | ((val & 0x3f));
- } else if(val < 0x10000) {
- *buf++ = 0xe0 | ((val >> 12));
- *buf++ = 0x80 | ((val >> 6) & 0x3f);
- *buf++ = 0x80 | ((val & 0x3f));
- } else if(val < 0x200000) {
- *buf++ = 0xf0 | ((val >> 18));
- *buf++ = 0x80 | ((val >> 12) & 0x3f);
- *buf++ = 0x80 | ((val >> 6) & 0x3f);
- *buf++ = 0x80 | ((val & 0x3f));
- } else if(val < 0x4000000) {
- *buf++ = 0xf8 | ((val >> 24));
- *buf++ = 0x80 | ((val >> 18) & 0x3f);
- *buf++ = 0x80 | ((val >> 12) & 0x3f);
- *buf++ = 0x80 | ((val >> 6) & 0x3f);
- *buf++ = 0x80 | ((val & 0x3f));
- } else {
- *buf++ = 0xfc | ((val >> 30) & 0x1);
- *buf++ = 0x80 | ((val >> 24) & 0x3f);
- *buf++ = 0x80 | ((val >> 18) & 0x3f);
- *buf++ = 0x80 | ((val >> 12) & 0x3f);
- *buf++ = 0x80 | ((val >> 6) & 0x3f);
- *buf++ = 0x80 | ((val & 0x3f));
- }
- } else {
- /*
- * Ugly, limited parsing of & > <
- */
- char *sc = (char *)memchr(p, 0x3b, len > 5 ? 5 : len);
- if(!sc) goto want_more;
- if((sc - p) == 4
- && p[1] == 0x61 /* 'a' */
- && p[2] == 0x6d /* 'm' */
- && p[3] == 0x70 /* 'p' */) {
- *buf++ = 0x26;
- p = sc;
- continue;
- }
- if((sc - p) == 3) {
- if(p[1] == 0x6c) {
- *buf = 0x3c; /* '<' */
- } else if(p[1] == 0x67) {
- *buf = 0x3e; /* '>' */
- } else {
- /* Unsupported entity reference */
- *buf++ = ch;
- continue;
- }
- if(p[2] != 0x74) {
- /* Unsupported entity reference */
- *buf++ = ch;
- continue;
- }
- buf++;
- p = sc;
- continue;
- }
- /* Unsupported entity reference */
- *buf++ = ch;
- }
+ if (val < 0x80)
+ {
+ *buf++ = (char)val;
+ }
+ else if (val < 0x800)
+ {
+ *buf++ = 0xc0 | ((val >> 6));
+ *buf++ = 0x80 | ((val & 0x3f));
+ }
+ else if (val < 0x10000)
+ {
+ *buf++ = 0xe0 | ((val >> 12));
+ *buf++ = 0x80 | ((val >> 6) & 0x3f);
+ *buf++ = 0x80 | ((val & 0x3f));
+ }
+ else if (val < 0x200000)
+ {
+ *buf++ = 0xf0 | ((val >> 18));
+ *buf++ = 0x80 | ((val >> 12) & 0x3f);
+ *buf++ = 0x80 | ((val >> 6) & 0x3f);
+ *buf++ = 0x80 | ((val & 0x3f));
+ }
+ else if (val < 0x4000000)
+ {
+ *buf++ = 0xf8 | ((val >> 24));
+ *buf++ = 0x80 | ((val >> 18) & 0x3f);
+ *buf++ = 0x80 | ((val >> 12) & 0x3f);
+ *buf++ = 0x80 | ((val >> 6) & 0x3f);
+ *buf++ = 0x80 | ((val & 0x3f));
+ }
+ else
+ {
+ *buf++ = 0xfc | ((val >> 30) & 0x1);
+ *buf++ = 0x80 | ((val >> 24) & 0x3f);
+ *buf++ = 0x80 | ((val >> 18) & 0x3f);
+ *buf++ = 0x80 | ((val >> 12) & 0x3f);
+ *buf++ = 0x80 | ((val >> 6) & 0x3f);
+ *buf++ = 0x80 | ((val & 0x3f));
+ }
+ }
+ else
+ {
+ /*
+ * Ugly, limited parsing of & > <
+ */
+ char *sc = (char *)memchr(p, 0x3b, len > 5 ? 5 : len);
+ if (!sc) goto want_more;
+ if ((sc - p) == 4 && p[1] == 0x61 /* 'a' */
+ && p[2] == 0x6d /* 'm' */
+ && p[3] == 0x70 /* 'p' */)
+ {
+ *buf++ = 0x26;
+ p = sc;
+ continue;
+ }
+ if ((sc - p) == 3)
+ {
+ if (p[1] == 0x6c)
+ {
+ *buf = 0x3c; /* '<' */
+ }
+ else if (p[1] == 0x67)
+ {
+ *buf = 0x3e; /* '>' */
+ }
+ else
+ {
+ /* Unsupported entity reference */
+ *buf++ = ch;
+ continue;
+ }
+ if (p[2] != 0x74)
+ {
+ /* Unsupported entity reference */
+ *buf++ = ch;
+ continue;
+ }
+ buf++;
+ p = sc;
+ continue;
+ }
+ /* Unsupported entity reference */
+ *buf++ = ch;
+ }
- continue;
- want_more:
- if(have_more) {
- /*
- * We know that no more data (of the same type)
- * is coming. Copy the rest verbatim.
- */
- *buf++ = ch;
- continue;
- }
- chunk_size = (p - (const char *)chunk_buf);
- /* Processing stalled: need more data */
- break;
- }
+ continue;
+ want_more:
+ if (have_more)
+ {
+ /*
+ * We know that no more data (of the same type)
+ * is coming. Copy the rest verbatim.
+ */
+ *buf++ = ch;
+ continue;
+ }
+ chunk_size = (p - (const char *)chunk_buf);
+ /* Processing stalled: need more data */
+ break;
+ }
- st->size = buf - st->buf;
- assert(st->size <= _ns);
- st->buf[st->size] = 0; /* Courtesy termination */
+ st->size = buf - st->buf;
+ assert(st->size <= _ns);
+ st->buf[st->size] = 0; /* Courtesy termination */
- return chunk_size; /* Converted in full */
+ return chunk_size; /* Converted in full */
}
/*
* Decode OCTET STRING from the XML element's body.
*/
-static asn_dec_rval_t
-OCTET_STRING__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,
- int (*opt_unexpected_tag_decoder)
- (void *struct_ptr, const void *chunk_buf, size_t chunk_size),
- ssize_t (*body_receiver)
- (void *struct_ptr, const void *chunk_buf, size_t chunk_size,
- int have_more)
-) {
- OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr;
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- const char *xml_tag = opt_mname ? opt_mname : td->xml_tag;
- asn_struct_ctx_t *ctx; /* Per-structure parser context */
- asn_dec_rval_t rval; /* Return value from the decoder */
- int st_allocated;
+static asn_dec_rval_t OCTET_STRING__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,
+ int (*opt_unexpected_tag_decoder)(void *struct_ptr, const void *chunk_buf,
+ size_t chunk_size),
+ ssize_t (*body_receiver)(void *struct_ptr, const void *chunk_buf,
+ size_t chunk_size, int have_more))
+{
+ OCTET_STRING_t *st = (OCTET_STRING_t *)*sptr;
+ asn_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ const char *xml_tag = opt_mname ? opt_mname : td->xml_tag;
+ asn_struct_ctx_t *ctx; /* Per-structure parser context */
+ asn_dec_rval_t rval; /* Return value from the decoder */
+ int st_allocated;
- /*
- * Create the string if does not exist.
- */
- if(!st) {
- st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size);
- *sptr = (void *)st;
- if(!st) goto sta_failed;
- st_allocated = 1;
- } else {
- st_allocated = 0;
- }
- if(!st->buf) {
- /* This is separate from above section */
- st->buf = (uint8_t *)CALLOC(1, 1);
- if(!st->buf) {
- if(st_allocated) {
- *sptr = 0;
- goto stb_failed;
- } else {
- goto sta_failed;
- }
- }
- }
+ /*
+ * Create the string if does not exist.
+ */
+ if (!st)
+ {
+ st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size);
+ *sptr = (void *)st;
+ if (!st) goto sta_failed;
+ st_allocated = 1;
+ }
+ else
+ {
+ st_allocated = 0;
+ }
+ if (!st->buf)
+ {
+ /* This is separate from above section */
+ st->buf = (uint8_t *)CALLOC(1, 1);
+ if (!st->buf)
+ {
+ if (st_allocated)
+ {
+ *sptr = 0;
+ goto stb_failed;
+ }
+ else
+ {
+ goto sta_failed;
+ }
+ }
+ }
- /* Restore parsing context */
- ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset);
+ /* Restore parsing context */
+ ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset);
- return xer_decode_general(opt_codec_ctx, ctx, *sptr, xml_tag,
- buf_ptr, size, opt_unexpected_tag_decoder, body_receiver);
+ return xer_decode_general(opt_codec_ctx, ctx, *sptr, xml_tag, buf_ptr, size,
+ opt_unexpected_tag_decoder, body_receiver);
stb_failed:
- FREEMEM(st);
+ FREEMEM(st);
sta_failed:
- rval.code = RC_FAIL;
- rval.consumed = 0;
- return rval;
+ rval.code = RC_FAIL;
+ rval.consumed = 0;
+ return rval;
}
/*
* Decode OCTET STRING from the hexadecimal data.
*/
-asn_dec_rval_t
-OCTET_STRING_decode_xer_hex(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) {
- return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname,
- buf_ptr, size, 0, OCTET_STRING__convert_hexadecimal);
+asn_dec_rval_t OCTET_STRING_decode_xer_hex(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)
+{
+ return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, buf_ptr,
+ size, 0, OCTET_STRING__convert_hexadecimal);
}
/*
* Decode OCTET STRING from the binary (0/1) data.
*/
-asn_dec_rval_t
-OCTET_STRING_decode_xer_binary(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) {
- return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname,
- buf_ptr, size, 0, OCTET_STRING__convert_binary);
+asn_dec_rval_t OCTET_STRING_decode_xer_binary(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)
+{
+ return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, buf_ptr,
+ size, 0, OCTET_STRING__convert_binary);
}
/*
* Decode OCTET STRING from the string (ASCII/UTF-8) data.
*/
-asn_dec_rval_t
-OCTET_STRING_decode_xer_utf8(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) {
- return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname,
- buf_ptr, size,
- OCTET_STRING__handle_control_chars,
- OCTET_STRING__convert_entrefs);
+asn_dec_rval_t OCTET_STRING_decode_xer_utf8(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)
+{
+ return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, buf_ptr,
+ size, OCTET_STRING__handle_control_chars,
+ OCTET_STRING__convert_entrefs);
}
-static int
-OCTET_STRING_per_get_characters(asn_per_data_t *po, uint8_t *buf,
- size_t units, unsigned int bpc, unsigned int unit_bits,
- long lb, long ub, asn_per_constraints_t *pc) {
- uint8_t *end = buf + units * bpc;
+static int OCTET_STRING_per_get_characters(asn_per_data_t *po, uint8_t *buf,
+ size_t units, unsigned int bpc,
+ unsigned int unit_bits, long lb,
+ long ub, asn_per_constraints_t *pc)
+{
+ uint8_t *end = buf + units * bpc;
- ASN_DEBUG("Expanding %d characters into (%ld..%ld):%d",
- (int)units, lb, ub, unit_bits);
+ ASN_DEBUG("Expanding %d characters into (%ld..%ld):%d", (int)units, lb, ub,
+ unit_bits);
- /* X.691: 27.5.4 */
- if((unsigned long)ub <= ((unsigned long)2 << (unit_bits - 1))) {
- /* Decode without translation */
- lb = 0;
- } else if(pc && pc->code2value) {
- if(unit_bits > 16)
- return 1; /* FATAL: can't have constrained
- * UniversalString with more than
- * 16 million code points */
- for(; buf < end; buf += bpc) {
- int value;
- int code = per_get_few_bits(po, unit_bits);
- if(code < 0) return -1; /* WMORE */
- value = pc->code2value(code);
- if(value < 0) {
- ASN_DEBUG("Code %d (0x%02x) is"
- " not in map (%ld..%ld)",
- code, code, lb, ub);
- return 1; /* FATAL */
- }
- switch(bpc) {
- case 1: *buf = value; break;
- case 2: buf[0] = value >> 8; buf[1] = value; break;
- case 4: buf[0] = value >> 24; buf[1] = value >> 16;
- buf[2] = value >> 8; buf[3] = value; break;
- }
- }
- return 0;
- }
+ /* X.691: 27.5.4 */
+ if ((unsigned long)ub <= ((unsigned long)2 << (unit_bits - 1)))
+ {
+ /* Decode without translation */
+ lb = 0;
+ }
+ else if (pc && pc->code2value)
+ {
+ if (unit_bits > 16)
+ return 1; /* FATAL: can't have constrained
+ * UniversalString with more than
+ * 16 million code points */
+ for (; buf < end; buf += bpc)
+ {
+ int value;
+ int code = per_get_few_bits(po, unit_bits);
+ if (code < 0) return -1; /* WMORE */
+ value = pc->code2value(code);
+ if (value < 0)
+ {
+ ASN_DEBUG(
+ "Code %d (0x%02x) is"
+ " not in map (%ld..%ld)",
+ code, code, lb, ub);
+ return 1; /* FATAL */
+ }
+ switch (bpc)
+ {
+ case 1:
+ *buf = value;
+ break;
+ case 2:
+ buf[0] = value >> 8;
+ buf[1] = value;
+ break;
+ case 4:
+ buf[0] = value >> 24;
+ buf[1] = value >> 16;
+ buf[2] = value >> 8;
+ buf[3] = value;
+ break;
+ }
+ }
+ return 0;
+ }
- /* Shortcut the no-op copying to the aligned structure */
- if(lb == 0 && (unit_bits == 8 * bpc)) {
- return per_get_many_bits(po, buf, 0, unit_bits * units);
- }
+ /* Shortcut the no-op copying to the aligned structure */
+ if (lb == 0 && (unit_bits == 8 * bpc))
+ {
+ return per_get_many_bits(po, buf, 0, unit_bits * units);
+ }
- for(; buf < end; buf += bpc) {
- int code = per_get_few_bits(po, unit_bits);
- int ch = code + lb;
- if(code < 0) return -1; /* WMORE */
- if(ch > ub) {
- ASN_DEBUG("Code %d is out of range (%ld..%ld)",
- ch, lb, ub);
- return 1; /* FATAL */
- }
- switch(bpc) {
- case 1: *buf = ch; break;
- case 2: buf[0] = ch >> 8; buf[1] = ch; break;
- case 4: buf[0] = ch >> 24; buf[1] = ch >> 16;
- buf[2] = ch >> 8; buf[3] = ch; break;
- }
- }
+ for (; buf < end; buf += bpc)
+ {
+ int code = per_get_few_bits(po, unit_bits);
+ int ch = code + lb;
+ if (code < 0) return -1; /* WMORE */
+ if (ch > ub)
+ {
+ ASN_DEBUG("Code %d is out of range (%ld..%ld)", ch, lb, ub);
+ return 1; /* FATAL */
+ }
+ switch (bpc)
+ {
+ case 1:
+ *buf = ch;
+ break;
+ case 2:
+ buf[0] = ch >> 8;
+ buf[1] = ch;
+ break;
+ case 4:
+ buf[0] = ch >> 24;
+ buf[1] = ch >> 16;
+ buf[2] = ch >> 8;
+ buf[3] = ch;
+ break;
+ }
+ }
- return 0;
+ return 0;
}
-static int
-OCTET_STRING_per_put_characters(asn_per_outp_t *po, const uint8_t *buf,
- size_t units, unsigned int bpc, unsigned int unit_bits,
- long lb, long ub, asn_per_constraints_t *pc) {
- const uint8_t *end = buf + units * bpc;
+static int OCTET_STRING_per_put_characters(asn_per_outp_t *po,
+ const uint8_t *buf, size_t units,
+ unsigned int bpc,
+ unsigned int unit_bits, long lb,
+ long ub, asn_per_constraints_t *pc)
+{
+ const uint8_t *end = buf + units * bpc;
- ASN_DEBUG("Squeezing %d characters into (%ld..%ld):%d (%d bpc)",
- (int)units, lb, ub, unit_bits, bpc);
+ ASN_DEBUG("Squeezing %d characters into (%ld..%ld):%d (%d bpc)", (int)units,
+ lb, ub, unit_bits, bpc);
- /* X.691: 27.5.4 */
- if((unsigned long)ub <= ((unsigned long)2 << (unit_bits - 1))) {
- /* Encode as is */
- lb = 0;
- } else if(pc && pc->value2code) {
- for(; buf < end; buf += bpc) {
- int code;
- uint32_t value;
- switch(bpc) {
- case 1: value = *(const uint8_t *)buf; break;
- case 2: value = (buf[0] << 8) | buf[1]; break;
- case 4: value = (buf[0] << 24) | (buf[1] << 16)
- | (buf[2] << 8) | buf[3]; break;
- default: return -1;
- }
- code = pc->value2code(value);
- if(code < 0) {
- ASN_DEBUG("Character %d (0x%02x) is"
- " not in map (%ld..%ld)",
- *buf, *buf, lb, ub);
- return -1;
- }
- if(per_put_few_bits(po, code, unit_bits))
- return -1;
- }
- }
+ /* X.691: 27.5.4 */
+ if ((unsigned long)ub <= ((unsigned long)2 << (unit_bits - 1)))
+ {
+ /* Encode as is */
+ lb = 0;
+ }
+ else if (pc && pc->value2code)
+ {
+ for (; buf < end; buf += bpc)
+ {
+ int code;
+ uint32_t value;
+ switch (bpc)
+ {
+ case 1:
+ value = *buf;
+ break;
+ case 2:
+ value = (buf[0] << 8) | buf[1];
+ break;
+ case 4:
+ value = (buf[0] << 24) | (buf[1] << 16) |
+ (buf[2] << 8) | buf[3];
+ break;
+ default:
+ return -1;
+ }
+ code = pc->value2code(value);
+ if (code < 0)
+ {
+ ASN_DEBUG(
+ "Character %d (0x%02x) is"
+ " not in map (%ld..%ld)",
+ *buf, *buf, lb, ub);
+ return -1;
+ }
+ if (per_put_few_bits(po, code, unit_bits)) return -1;
+ }
+ }
- /* Shortcut the no-op copying to the aligned structure */
- if(lb == 0 && (unit_bits == 8 * bpc)) {
- return per_put_many_bits(po, buf, unit_bits * units);
- }
+ /* Shortcut the no-op copying to the aligned structure */
+ if (lb == 0 && (unit_bits == 8 * bpc))
+ {
+ return per_put_many_bits(po, buf, unit_bits * units);
+ }
- for(ub -= lb; buf < end; buf += bpc) {
- int ch;
- uint32_t value;
- switch(bpc) {
- case 1: value = *(const uint8_t *)buf; break;
- case 2: value = (buf[0] << 8) | buf[1]; break;
- case 4: value = (buf[0] << 24) | (buf[1] << 16)
- | (buf[2] << 8) | buf[3]; break;
- default: return -1;
- }
- ch = value - lb;
- if(ch < 0 || ch > ub) {
- ASN_DEBUG("Character %d (0x%02x)"
- " is out of range (%ld..%ld)",
- *buf, *buf, lb, ub + lb);
- return -1;
- }
- if(per_put_few_bits(po, ch, unit_bits))
- return -1;
- }
+ for (ub -= lb; buf < end; buf += bpc)
+ {
+ int ch;
+ uint32_t value;
+ switch (bpc)
+ {
+ case 1:
+ value = *buf;
+ break;
+ case 2:
+ value = (buf[0] << 8) | buf[1];
+ break;
+ case 4:
+ value = (buf[0] << 24) | (buf[1] << 16) |
+ (buf[2] << 8) | buf[3];
+ break;
+ default:
+ return -1;
+ }
+ ch = value - lb;
+ if (ch < 0 || ch > ub)
+ {
+ ASN_DEBUG(
+ "Character %d (0x%02x)"
+ " is out of range (%ld..%ld)",
+ *buf, *buf, lb, ub + lb);
+ return -1;
+ }
+ if (per_put_few_bits(po, ch, unit_bits)) return -1;
+ }
- return 0;
+ return 0;
}
-asn_dec_rval_t
-OCTET_STRING_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_dec_rval_t OCTET_STRING_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_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ asn_per_constraints_t *pc = constraints ? constraints : td->per_constraints;
+ asn_per_constraint_t *cval;
+ asn_per_constraint_t *csiz;
+ asn_dec_rval_t rval = {RC_OK, 0};
+ BIT_STRING_t *st = (BIT_STRING_t *)*sptr;
+ ssize_t consumed_myself = 0;
+ int repeat;
+ enum
+ {
+ OS__BPC_BIT = 0,
+ OS__BPC_CHAR = 1,
+ OS__BPC_U16 = 2,
+ OS__BPC_U32 = 4
+ } bpc; /* Bytes per character */
+ unsigned int unit_bits;
+ unsigned int canonical_unit_bits;
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- asn_per_constraints_t *pc = constraints ? constraints
- : td->per_constraints;
- asn_per_constraint_t *cval;
- asn_per_constraint_t *csiz;
- asn_dec_rval_t rval = { RC_OK, 0 };
- BIT_STRING_t *st = (BIT_STRING_t *)*sptr;
- ssize_t consumed_myself = 0;
- int repeat;
- enum {
- OS__BPC_BIT = 0,
- OS__BPC_CHAR = 1,
- OS__BPC_U16 = 2,
- OS__BPC_U32 = 4
- } bpc; /* Bytes per character */
- unsigned int unit_bits;
- unsigned int canonical_unit_bits;
+ (void)opt_codec_ctx;
- (void)opt_codec_ctx;
+ if (pc)
+ {
+ cval = &pc->value;
+ csiz = &pc->size;
+ }
+ else
+ {
+ cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
+ csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
+ }
- if(pc) {
- cval = &pc->value;
- csiz = &pc->size;
- } else {
- cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
- csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
- }
+ switch (specs->subvariant)
+ {
+ default:
+ case ASN_OSUBV_ANY:
+ ASN_DEBUG("Unrecognized subvariant %d", specs->subvariant);
+ RETURN(RC_FAIL);
+ case ASN_OSUBV_BIT:
+ canonical_unit_bits = unit_bits = 1;
+ bpc = OS__BPC_BIT;
+ break;
+ case ASN_OSUBV_STR:
+ canonical_unit_bits = unit_bits = 8;
+ if (cval->flags & APC_CONSTRAINED) unit_bits = cval->range_bits;
+ bpc = OS__BPC_CHAR;
+ break;
+ case ASN_OSUBV_U16:
+ canonical_unit_bits = unit_bits = 16;
+ if (cval->flags & APC_CONSTRAINED) unit_bits = cval->range_bits;
+ bpc = OS__BPC_U16;
+ break;
+ case ASN_OSUBV_U32:
+ canonical_unit_bits = unit_bits = 32;
+ if (cval->flags & APC_CONSTRAINED) unit_bits = cval->range_bits;
+ bpc = OS__BPC_U32;
+ break;
+ }
- switch(specs->subvariant) {
- default:
- case ASN_OSUBV_ANY:
- ASN_DEBUG("Unrecognized subvariant %d", specs->subvariant);
- RETURN(RC_FAIL);
- case ASN_OSUBV_BIT:
- canonical_unit_bits = unit_bits = 1;
- bpc = OS__BPC_BIT;
- break;
- case ASN_OSUBV_STR:
- canonical_unit_bits = unit_bits = 8;
- if(cval->flags & APC_CONSTRAINED)
- unit_bits = cval->range_bits;
- bpc = OS__BPC_CHAR;
- break;
- case ASN_OSUBV_U16:
- canonical_unit_bits = unit_bits = 16;
- if(cval->flags & APC_CONSTRAINED)
- unit_bits = cval->range_bits;
- bpc = OS__BPC_U16;
- break;
- case ASN_OSUBV_U32:
- canonical_unit_bits = unit_bits = 32;
- if(cval->flags & APC_CONSTRAINED)
- unit_bits = cval->range_bits;
- bpc = OS__BPC_U32;
- break;
- }
+ /*
+ * Allocate the string.
+ */
+ if (!st)
+ {
+ st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size));
+ if (!st) RETURN(RC_FAIL);
+ }
- /*
- * Allocate the string.
- */
- if(!st) {
- st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size));
- if(!st) RETURN(RC_FAIL);
- }
+ ASN_DEBUG("PER Decoding %s size %ld .. %ld bits %d",
+ csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible",
+ csiz->lower_bound, csiz->upper_bound, csiz->effective_bits);
- ASN_DEBUG("PER Decoding %s size %ld .. %ld bits %d",
- csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible",
- csiz->lower_bound, csiz->upper_bound, csiz->effective_bits);
+ if (csiz->flags & APC_EXTENSIBLE)
+ {
+ int inext = per_get_few_bits(pd, 1);
+ if (inext < 0) RETURN(RC_WMORE);
+ if (inext)
+ {
+ csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
+ cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
+ unit_bits = canonical_unit_bits;
+ }
+ }
- if(csiz->flags & APC_EXTENSIBLE) {
- int inext = per_get_few_bits(pd, 1);
- if(inext < 0) RETURN(RC_WMORE);
- if(inext) {
- csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
- cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
- unit_bits = canonical_unit_bits;
- }
- }
+ if (csiz->effective_bits >= 0)
+ {
+ FREEMEM(st->buf);
+ if (bpc)
+ {
+ st->size = csiz->upper_bound * bpc;
+ }
+ else
+ {
+ st->size = (csiz->upper_bound + 7) >> 3;
+ }
+ st->buf = (uint8_t *)MALLOC(st->size + 1);
+ if (!st->buf)
+ {
+ st->size = 0;
+ RETURN(RC_FAIL);
+ }
+ }
- if(csiz->effective_bits >= 0) {
- FREEMEM(st->buf);
- if(bpc) {
- st->size = csiz->upper_bound * bpc;
- } else {
- st->size = (csiz->upper_bound + 7) >> 3;
- }
- st->buf = (uint8_t *)MALLOC(st->size + 1);
- if(!st->buf) { st->size = 0; RETURN(RC_FAIL); }
- }
+ /* X.691, #16.5: zero-length encoding */
+ /* X.691, #16.6: short fixed length encoding (up to 2 octets) */
+ /* X.691, #16.7: long fixed length encoding (up to 64K octets) */
+ if (csiz->effective_bits == 0)
+ {
+ int ret;
+ if (bpc)
+ {
+ ASN_DEBUG("Encoding OCTET STRING size %ld",
+ csiz->upper_bound);
+ ret = OCTET_STRING_per_get_characters(
+ pd, st->buf, csiz->upper_bound, bpc, unit_bits,
+ cval->lower_bound, cval->upper_bound, pc);
+ if (ret > 0) RETURN(RC_FAIL);
+ }
+ else
+ {
+ ASN_DEBUG("Encoding BIT STRING size %ld",
+ csiz->upper_bound);
+ ret = per_get_many_bits(pd, st->buf, 0,
+ unit_bits * csiz->upper_bound);
+ }
+ if (ret < 0) RETURN(RC_WMORE);
+ consumed_myself += unit_bits * csiz->upper_bound;
+ st->buf[st->size] = 0;
+ if (bpc == 0)
+ {
+ int ubs = (csiz->upper_bound & 0x7);
+ st->bits_unused = ubs ? 8 - ubs : 0;
+ }
+ RETURN(RC_OK);
+ }
- /* X.691, #16.5: zero-length encoding */
- /* X.691, #16.6: short fixed length encoding (up to 2 octets) */
- /* X.691, #16.7: long fixed length encoding (up to 64K octets) */
- if(csiz->effective_bits == 0) {
- int ret;
- if(bpc) {
- ASN_DEBUG("Encoding OCTET STRING size %ld",
- csiz->upper_bound);
- ret = OCTET_STRING_per_get_characters(pd, st->buf,
- csiz->upper_bound, bpc, unit_bits,
- cval->lower_bound, cval->upper_bound, pc);
- if(ret > 0) RETURN(RC_FAIL);
- } else {
- ASN_DEBUG("Encoding BIT STRING size %ld",
- csiz->upper_bound);
- ret = per_get_many_bits(pd, st->buf, 0,
- unit_bits * csiz->upper_bound);
- }
- if(ret < 0) RETURN(RC_WMORE);
- consumed_myself += unit_bits * csiz->upper_bound;
- st->buf[st->size] = 0;
- if(bpc == 0) {
- int ubs = (csiz->upper_bound & 0x7);
- st->bits_unused = ubs ? 8 - ubs : 0;
- }
- RETURN(RC_OK);
- }
+ st->size = 0;
+ do
+ {
+ ssize_t raw_len;
+ ssize_t len_bytes;
+ ssize_t len_bits;
+ void *p;
+ int ret;
- st->size = 0;
- do {
- ssize_t raw_len;
- ssize_t len_bytes;
- ssize_t len_bits;
- void *p;
- int ret;
+ /* Get the PER length */
+ raw_len = uper_get_length(pd, csiz->effective_bits, &repeat);
+ if (raw_len < 0) RETURN(RC_WMORE);
+ raw_len += csiz->lower_bound;
- /* Get the PER length */
- raw_len = uper_get_length(pd, csiz->effective_bits, &repeat);
- if(raw_len < 0) RETURN(RC_WMORE);
- raw_len += csiz->lower_bound;
+ ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)",
+ (long)csiz->effective_bits, (long)raw_len,
+ repeat ? "repeat" : "once", td->name);
+ if (bpc)
+ {
+ len_bytes = raw_len * bpc;
+ len_bits = len_bytes * unit_bits;
+ }
+ else
+ {
+ len_bits = raw_len;
+ len_bytes = (len_bits + 7) >> 3;
+ if (len_bits & 0x7) st->bits_unused = 8 - (len_bits & 0x7);
+ /* len_bits be multiple of 16K if repeat is set */
+ }
+ p = REALLOC(st->buf, st->size + len_bytes + 1);
+ if (!p) RETURN(RC_FAIL);
+ st->buf = (uint8_t *)p;
- ASN_DEBUG("Got PER length eb %ld, len %ld, %s (%s)",
- (long)csiz->effective_bits, (long)raw_len,
- repeat ? "repeat" : "once", td->name);
- if(bpc) {
- len_bytes = raw_len * bpc;
- len_bits = len_bytes * unit_bits;
- } else {
- len_bits = raw_len;
- len_bytes = (len_bits + 7) >> 3;
- if(len_bits & 0x7)
- st->bits_unused = 8 - (len_bits & 0x7);
- /* len_bits be multiple of 16K if repeat is set */
- }
- p = REALLOC(st->buf, st->size + len_bytes + 1);
- if(!p) RETURN(RC_FAIL);
- st->buf = (uint8_t *)p;
+ if (bpc)
+ {
+ ret = OCTET_STRING_per_get_characters(
+ pd, &st->buf[st->size], raw_len, bpc, unit_bits,
+ cval->lower_bound, cval->upper_bound, pc);
+ if (ret > 0) RETURN(RC_FAIL);
+ }
+ else
+ {
+ ret =
+ per_get_many_bits(pd, &st->buf[st->size], 0, len_bits);
+ }
+ if (ret < 0) RETURN(RC_WMORE);
+ st->size += len_bytes;
+ }
+ while (repeat);
+ st->buf[st->size] = 0; /* nul-terminate */
- if(bpc) {
- ret = OCTET_STRING_per_get_characters(pd,
- &st->buf[st->size], raw_len, bpc, unit_bits,
- cval->lower_bound, cval->upper_bound, pc);
- if(ret > 0) RETURN(RC_FAIL);
- } else {
- ret = per_get_many_bits(pd, &st->buf[st->size],
- 0, len_bits);
- }
- if(ret < 0) RETURN(RC_WMORE);
- st->size += len_bytes;
- } while(repeat);
- st->buf[st->size] = 0; /* nul-terminate */
-
- return rval;
+ return rval;
}
-asn_enc_rval_t
-OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void *sptr, asn_per_outp_t *po) {
+asn_enc_rval_t OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *sptr, asn_per_outp_t *po)
+{
+ asn_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ asn_per_constraints_t *pc = constraints ? constraints : td->per_constraints;
+ asn_per_constraint_t *cval;
+ asn_per_constraint_t *csiz;
+ const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
+ asn_enc_rval_t er = {0, 0, 0};
+ int inext = 0; /* Lies not within extension root */
+ unsigned int unit_bits;
+ unsigned int canonical_unit_bits;
+ unsigned int sizeinunits;
+ const uint8_t *buf;
+ int ret;
+ enum
+ {
+ OS__BPC_BIT = 0,
+ OS__BPC_CHAR = 1,
+ OS__BPC_U16 = 2,
+ OS__BPC_U32 = 4
+ } bpc; /* Bytes per character */
+ int ct_extensible;
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- asn_per_constraints_t *pc = constraints ? constraints
- : td->per_constraints;
- asn_per_constraint_t *cval;
- asn_per_constraint_t *csiz;
- const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
- asn_enc_rval_t er = { 0, 0, 0 };
- int inext = 0; /* Lies not within extension root */
- unsigned int unit_bits;
- unsigned int canonical_unit_bits;
- unsigned int sizeinunits;
- const uint8_t *buf;
- int ret;
- enum {
- OS__BPC_BIT = 0,
- OS__BPC_CHAR = 1,
- OS__BPC_U16 = 2,
- OS__BPC_U32 = 4
- } bpc; /* Bytes per character */
- int ct_extensible;
+ if (!st || (!st->buf && st->size)) _ASN_ENCODE_FAILED;
- if(!st || (!st->buf && st->size))
- _ASN_ENCODE_FAILED;
+ if (pc)
+ {
+ cval = &pc->value;
+ csiz = &pc->size;
+ }
+ else
+ {
+ cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
+ csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
+ }
+ ct_extensible = csiz->flags & APC_EXTENSIBLE;
- if(pc) {
- cval = &pc->value;
- csiz = &pc->size;
- } else {
- cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
- csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
- }
- ct_extensible = csiz->flags & APC_EXTENSIBLE;
+ switch (specs->subvariant)
+ {
+ default:
+ case ASN_OSUBV_ANY:
+ _ASN_ENCODE_FAILED;
+ case ASN_OSUBV_BIT:
+ canonical_unit_bits = unit_bits = 1;
+ bpc = OS__BPC_BIT;
+ sizeinunits = st->size * 8 - (st->bits_unused & 0x07);
+ ASN_DEBUG("BIT STRING of %d bytes, %d bits unused", sizeinunits,
+ st->bits_unused);
+ break;
+ case ASN_OSUBV_STR:
+ canonical_unit_bits = unit_bits = 8;
+ if (cval->flags & APC_CONSTRAINED) unit_bits = cval->range_bits;
+ bpc = OS__BPC_CHAR;
+ sizeinunits = st->size;
+ break;
+ case ASN_OSUBV_U16:
+ canonical_unit_bits = unit_bits = 16;
+ if (cval->flags & APC_CONSTRAINED) unit_bits = cval->range_bits;
+ bpc = OS__BPC_U16;
+ sizeinunits = st->size / 2;
+ break;
+ case ASN_OSUBV_U32:
+ canonical_unit_bits = unit_bits = 32;
+ if (cval->flags & APC_CONSTRAINED) unit_bits = cval->range_bits;
+ bpc = OS__BPC_U32;
+ sizeinunits = st->size / 4;
+ break;
+ }
- switch(specs->subvariant) {
- default:
- case ASN_OSUBV_ANY:
- _ASN_ENCODE_FAILED;
- case ASN_OSUBV_BIT:
- canonical_unit_bits = unit_bits = 1;
- bpc = OS__BPC_BIT;
- sizeinunits = st->size * 8 - (st->bits_unused & 0x07);
- ASN_DEBUG("BIT STRING of %d bytes, %d bits unused",
- sizeinunits, st->bits_unused);
- break;
- case ASN_OSUBV_STR:
- canonical_unit_bits = unit_bits = 8;
- if(cval->flags & APC_CONSTRAINED)
- unit_bits = cval->range_bits;
- bpc = OS__BPC_CHAR;
- sizeinunits = st->size;
- break;
- case ASN_OSUBV_U16:
- canonical_unit_bits = unit_bits = 16;
- if(cval->flags & APC_CONSTRAINED)
- unit_bits = cval->range_bits;
- bpc = OS__BPC_U16;
- sizeinunits = st->size / 2;
- break;
- case ASN_OSUBV_U32:
- canonical_unit_bits = unit_bits = 32;
- if(cval->flags & APC_CONSTRAINED)
- unit_bits = cval->range_bits;
- bpc = OS__BPC_U32;
- sizeinunits = st->size / 4;
- break;
- }
+ ASN_DEBUG(
+ "Encoding %s into %d units of %d bits"
+ " (%ld..%ld, effective %d)%s",
+ td->name, sizeinunits, unit_bits, csiz->lower_bound, csiz->upper_bound,
+ csiz->effective_bits, ct_extensible ? " EXT" : "");
- ASN_DEBUG("Encoding %s into %d units of %d bits"
- " (%ld..%ld, effective %d)%s",
- td->name, sizeinunits, unit_bits,
- csiz->lower_bound, csiz->upper_bound,
- csiz->effective_bits, ct_extensible ? " EXT" : "");
+ /* Figure out whether size lies within PER visible constraint */
- /* Figure out whether size lies within PER visible constraint */
+ if (csiz->effective_bits >= 0)
+ {
+ if ((int)sizeinunits < csiz->lower_bound ||
+ (int)sizeinunits > csiz->upper_bound)
+ {
+ if (ct_extensible)
+ {
+ cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
+ csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
+ unit_bits = canonical_unit_bits;
+ inext = 1;
+ }
+ else
+ _ASN_ENCODE_FAILED;
+ }
+ }
+ else
+ {
+ inext = 0;
+ }
- if(csiz->effective_bits >= 0) {
- if((int)sizeinunits < csiz->lower_bound
- || (int)sizeinunits > csiz->upper_bound) {
- if(ct_extensible) {
- cval = &ASN_DEF_OCTET_STRING_CONSTRAINTS.value;
- csiz = &ASN_DEF_OCTET_STRING_CONSTRAINTS.size;
- unit_bits = canonical_unit_bits;
- inext = 1;
- } else
- _ASN_ENCODE_FAILED;
- }
- } else {
- inext = 0;
- }
+ if (ct_extensible)
+ {
+ /* Declare whether length is [not] within extension root */
+ if (per_put_few_bits(po, inext, 1)) _ASN_ENCODE_FAILED;
+ }
- if(ct_extensible) {
- /* Declare whether length is [not] within extension root */
- if(per_put_few_bits(po, inext, 1))
- _ASN_ENCODE_FAILED;
- }
+ /* X.691, #16.5: zero-length encoding */
+ /* X.691, #16.6: short fixed length encoding (up to 2 octets) */
+ /* X.691, #16.7: long fixed length encoding (up to 64K octets) */
+ if (csiz->effective_bits >= 0)
+ {
+ ASN_DEBUG("Encoding %d bytes (%ld), length in %d bits", st->size,
+ sizeinunits - csiz->lower_bound, csiz->effective_bits);
+ ret = per_put_few_bits(po, sizeinunits - csiz->lower_bound,
+ csiz->effective_bits);
+ if (ret) _ASN_ENCODE_FAILED;
+ if (bpc)
+ {
+ ret = OCTET_STRING_per_put_characters(
+ po, st->buf, sizeinunits, bpc, unit_bits,
+ cval->lower_bound, cval->upper_bound, pc);
+ }
+ else
+ {
+ ret =
+ per_put_many_bits(po, st->buf, sizeinunits * unit_bits);
+ }
+ if (ret) _ASN_ENCODE_FAILED;
+ _ASN_ENCODED_OK(er);
+ }
- /* X.691, #16.5: zero-length encoding */
- /* X.691, #16.6: short fixed length encoding (up to 2 octets) */
- /* X.691, #16.7: long fixed length encoding (up to 64K octets) */
- if(csiz->effective_bits >= 0) {
- ASN_DEBUG("Encoding %d bytes (%ld), length in %d bits",
- st->size, sizeinunits - csiz->lower_bound,
- csiz->effective_bits);
- ret = per_put_few_bits(po, sizeinunits - csiz->lower_bound,
- csiz->effective_bits);
- if(ret) _ASN_ENCODE_FAILED;
- if(bpc) {
- ret = OCTET_STRING_per_put_characters(po, st->buf,
- sizeinunits, bpc, unit_bits,
- cval->lower_bound, cval->upper_bound, pc);
- } else {
- ret = per_put_many_bits(po, st->buf,
- sizeinunits * unit_bits);
- }
- if(ret) _ASN_ENCODE_FAILED;
- _ASN_ENCODED_OK(er);
- }
+ ASN_DEBUG("Encoding %d bytes", st->size);
- ASN_DEBUG("Encoding %d bytes", st->size);
+ if (sizeinunits == 0)
+ {
+ if (uper_put_length(po, 0)) _ASN_ENCODE_FAILED;
+ _ASN_ENCODED_OK(er);
+ }
- if(sizeinunits == 0) {
- if(uper_put_length(po, 0))
- _ASN_ENCODE_FAILED;
- _ASN_ENCODED_OK(er);
- }
+ buf = st->buf;
+ while (sizeinunits)
+ {
+ ssize_t maySave = uper_put_length(po, sizeinunits);
+ if (maySave < 0) _ASN_ENCODE_FAILED;
- buf = st->buf;
- while(sizeinunits) {
- ssize_t maySave = uper_put_length(po, sizeinunits);
- if(maySave < 0) _ASN_ENCODE_FAILED;
+ ASN_DEBUG("Encoding %ld of %ld", (long)maySave, (long)sizeinunits);
- ASN_DEBUG("Encoding %ld of %ld",
- (long)maySave, (long)sizeinunits);
+ if (bpc)
+ {
+ ret = OCTET_STRING_per_put_characters(
+ po, buf, maySave, bpc, unit_bits, cval->lower_bound,
+ cval->upper_bound, pc);
+ }
+ else
+ {
+ ret = per_put_many_bits(po, buf, maySave * unit_bits);
+ }
+ if (ret) _ASN_ENCODE_FAILED;
- if(bpc) {
- ret = OCTET_STRING_per_put_characters(po, buf,
- maySave, bpc, unit_bits,
- cval->lower_bound, cval->upper_bound, pc);
- } else {
- ret = per_put_many_bits(po, buf, maySave * unit_bits);
- }
- if(ret) _ASN_ENCODE_FAILED;
+ if (bpc)
+ buf += maySave * bpc;
+ else
+ buf += maySave >> 3;
+ sizeinunits -= maySave;
+ assert(!(maySave & 0x07) || !sizeinunits);
+ }
- if(bpc)
- buf += maySave * bpc;
- else
- buf += maySave >> 3;
- sizeinunits -= maySave;
- assert(!(maySave & 0x07) || !sizeinunits);
- }
-
- _ASN_ENCODED_OK(er);
+ _ASN_ENCODED_OK(er);
}
-int
-OCTET_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
- static const char *h2c = "0123456789ABCDEF";
- const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
- char scratch[16 * 3 + 4];
- char *p = scratch;
- uint8_t *buf;
- uint8_t *end;
- size_t i;
+int OCTET_STRING_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ static const char *h2c = "0123456789ABCDEF";
+ const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
+ char scratch[16 * 3 + 4];
+ char *p = scratch;
+ uint8_t *buf;
+ uint8_t *end;
+ size_t i;
- (void)td; /* Unused argument */
+ (void)td; /* Unused argument */
- if(!st || (!st->buf && st->size))
- return (cb("", 8, app_key) < 0) ? -1 : 0;
+ if (!st || (!st->buf && st->size))
+ return (cb("", 8, app_key) < 0) ? -1 : 0;
- /*
- * Dump the contents of the buffer in hexadecimal.
- */
- buf = st->buf;
- end = buf + st->size;
- for(i = 0; buf < end; buf++, i++) {
- if(!(i % 16) && (i || st->size > 16)) {
- if(cb(scratch, p - scratch, app_key) < 0)
- return -1;
- _i_INDENT(1);
- p = scratch;
- }
- *p++ = h2c[(*buf >> 4) & 0x0F];
- *p++ = h2c[*buf & 0x0F];
- *p++ = 0x20;
- }
+ /*
+ * Dump the contents of the buffer in hexadecimal.
+ */
+ buf = st->buf;
+ end = buf + st->size;
+ for (i = 0; buf < end; buf++, i++)
+ {
+ if (!(i % 16) && (i || st->size > 16))
+ {
+ if (cb(scratch, p - scratch, app_key) < 0) return -1;
+ _i_INDENT(1);
+ p = scratch;
+ }
+ *p++ = h2c[(*buf >> 4) & 0x0F];
+ *p++ = h2c[*buf & 0x0F];
+ *p++ = 0x20;
+ }
- if(p > scratch) {
- p--; /* Remove the tail space */
- if(cb(scratch, p - scratch, app_key) < 0)
- return -1;
- }
+ if (p > scratch)
+ {
+ p--; /* Remove the tail space */
+ if (cb(scratch, p - scratch, app_key) < 0) return -1;
+ }
- return 0;
+ return 0;
}
-int
-OCTET_STRING_print_utf8(asn_TYPE_descriptor_t *td, const void *sptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
+int OCTET_STRING_print_utf8(asn_TYPE_descriptor_t *td, const void *sptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
- (void)td; /* Unused argument */
- (void)ilevel; /* Unused argument */
+ (void)td; /* Unused argument */
+ (void)ilevel; /* Unused argument */
- if(st && (st->buf || !st->size)) {
- return (cb(st->buf, st->size, app_key) < 0) ? -1 : 0;
- } else {
- return (cb("", 8, app_key) < 0) ? -1 : 0;
- }
+ if (st && (st->buf || !st->size))
+ {
+ return (cb(st->buf, st->size, app_key) < 0) ? -1 : 0;
+ }
+ else
+ {
+ return (cb("", 8, app_key) < 0) ? -1 : 0;
+ }
}
-void
-OCTET_STRING_free(asn_TYPE_descriptor_t *td, void *sptr, int contents_only) {
- OCTET_STRING_t *st = (OCTET_STRING_t *)sptr;
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- asn_struct_ctx_t *ctx = (asn_struct_ctx_t *)
- ((char *)st + specs->ctx_offset);
- struct _stack *stck;
+void OCTET_STRING_free(asn_TYPE_descriptor_t *td, void *sptr, int contents_only)
+{
+ OCTET_STRING_t *st = (OCTET_STRING_t *)sptr;
+ asn_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ asn_struct_ctx_t *ctx =
+ (asn_struct_ctx_t *)((char *)st + specs->ctx_offset);
+ struct _stack *stck;
- if(!td || !st)
- return;
+ if (!td || !st) return;
- ASN_DEBUG("Freeing %s as OCTET STRING", td->name);
+ ASN_DEBUG("Freeing %s as OCTET STRING", td->name);
- if(st->buf) {
- FREEMEM(st->buf);
- st->buf = 0;
- }
+ if (st->buf)
+ {
+ FREEMEM(st->buf);
+ st->buf = 0;
+ }
- /*
- * Remove decode-time stack.
- */
- stck = (struct _stack *)ctx->ptr;
- if(stck) {
- while(stck->tail) {
- struct _stack_el *sel = stck->tail;
- stck->tail = sel->prev;
- FREEMEM(sel);
- }
- FREEMEM(stck);
- }
+ /*
+ * Remove decode-time stack.
+ */
+ stck = (struct _stack *)ctx->ptr;
+ if (stck)
+ {
+ while (stck->tail)
+ {
+ struct _stack_el *sel = stck->tail;
+ stck->tail = sel->prev;
+ FREEMEM(sel);
+ }
+ FREEMEM(stck);
+ }
- if(!contents_only) {
- FREEMEM(st);
- }
+ if (!contents_only)
+ {
+ FREEMEM(st);
+ }
}
/*
* Conversion routines.
*/
-int
-OCTET_STRING_fromBuf(OCTET_STRING_t *st, const char *str, int len) {
- void *buf;
+int OCTET_STRING_fromBuf(OCTET_STRING_t *st, const char *str, int len)
+{
+ void *buf;
- if(st == 0 || (str == 0 && len)) {
- errno = EINVAL;
- return -1;
- }
+ if (st == 0 || (str == 0 && len))
+ {
+ errno = EINVAL;
+ return -1;
+ }
- /*
- * Clear the OCTET STRING.
- */
- if(str == NULL) {
- FREEMEM(st->buf);
- st->buf = 0;
- st->size = 0;
- return 0;
- }
+ /*
+ * Clear the OCTET STRING.
+ */
+ if (str == NULL)
+ {
+ FREEMEM(st->buf);
+ st->buf = 0;
+ st->size = 0;
+ return 0;
+ }
- /* Determine the original string size, if not explicitly given */
- if(len < 0)
- len = strlen(str);
+ /* Determine the original string size, if not explicitly given */
+ if (len < 0) len = strlen(str);
- /* Allocate and fill the memory */
- buf = MALLOC(len + 1);
- if(buf == NULL)
- return -1;
+ /* Allocate and fill the memory */
+ buf = MALLOC(len + 1);
+ if (buf == NULL) return -1;
- memcpy(buf, str, len);
- ((uint8_t *)buf)[len] = '\0'; /* Couldn't use memcpy(len+1)! */
- FREEMEM(st->buf);
- st->buf = (uint8_t *)buf;
- st->size = len;
+ memcpy(buf, str, len);
+ ((uint8_t *)buf)[len] = '\0'; /* Couldn't use memcpy(len+1)! */
+ FREEMEM(st->buf);
+ st->buf = (uint8_t *)buf;
+ st->size = len;
- return 0;
+ return 0;
}
-OCTET_STRING_t *
-OCTET_STRING_new_fromBuf(asn_TYPE_descriptor_t *td, const char *str, int len) {
- asn_OCTET_STRING_specifics_t *specs = td->specifics
- ? (asn_OCTET_STRING_specifics_t *)td->specifics
- : &asn_DEF_OCTET_STRING_specs;
- OCTET_STRING_t *st;
+OCTET_STRING_t *OCTET_STRING_new_fromBuf(asn_TYPE_descriptor_t *td,
+ const char *str, int len)
+{
+ asn_OCTET_STRING_specifics_t *specs =
+ td->specifics ? (asn_OCTET_STRING_specifics_t *)td->specifics
+ : &asn_DEF_OCTET_STRING_specs;
+ OCTET_STRING_t *st;
- st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size);
- if(st && str && OCTET_STRING_fromBuf(st, str, len)) {
- FREEMEM(st);
- st = NULL;
- }
+ st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size);
+ if (st && str && OCTET_STRING_fromBuf(st, str, len))
+ {
+ FREEMEM(st);
+ st = NULL;
+ }
- return st;
+ return st;
}
diff --git a/src/core/libs/supl/asn-rrlp/OCTET_STRING.h b/src/core/libs/supl/asn-rrlp/OCTET_STRING.h
index 124fde559..042fa5ab1 100644
--- a/src/core/libs/supl/asn-rrlp/OCTET_STRING.h
+++ b/src/core/libs/supl/asn-rrlp/OCTET_STRING.h
@@ -36,40 +36,40 @@ extern "C"
per_type_encoder_f OCTET_STRING_encode_uper;
/******************************
- * Handy conversion routines. *
- ******************************/
+ * Handy conversion routines. *
+ ******************************/
/*
- * This function clears the previous value of the OCTET STRING (if any)
- * and then allocates a new memory with the specified content (str/size).
- * If size = -1, the size of the original string will be determined
- * using strlen(str).
- * If str equals to NULL, the function will silently clear the
- * current contents of the OCTET STRING.
- * Returns 0 if it was possible to perform operation, -1 otherwise.
- */
+ * This function clears the previous value of the OCTET STRING (if any)
+ * and then allocates a new memory with the specified content (str/size).
+ * If size = -1, the size of the original string will be determined
+ * using strlen(str).
+ * If str equals to NULL, the function will silently clear the
+ * current contents of the OCTET STRING.
+ * Returns 0 if it was possible to perform operation, -1 otherwise.
+ */
int OCTET_STRING_fromBuf(OCTET_STRING_t *s, const char *str, int size);
/* Handy conversion from the C string into the OCTET STRING. */
#define OCTET_STRING_fromString(s, str) OCTET_STRING_fromBuf(s, str, -1)
/*
- * Allocate and fill the new OCTET STRING and return a pointer to the newly
- * allocated object. NULL is permitted in str: the function will just allocate
- * empty OCTET STRING.
- */
+ * Allocate and fill the new OCTET STRING and return a pointer to the newly
+ * allocated object. NULL is permitted in str: the function will just
+ * allocate empty OCTET STRING.
+ */
OCTET_STRING_t *OCTET_STRING_new_fromBuf(asn_TYPE_descriptor_t *td,
- const char *str, int size);
+ const char *str, int size);
/****************************
- * Internally useful stuff. *
- ****************************/
+ * Internally useful stuff. *
+ ****************************/
typedef struct asn_OCTET_STRING_specifics_s
{
/*
- * Target structure description.
- */
+ * Target structure description.
+ */
int struct_size; /* Size of the structure */
int ctx_offset; /* Offset of the asn_struct_ctx_t member */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.c b/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.c
index 5b2b79eda..0c637e17e 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.c
@@ -1,123 +1,141 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-FirstSetMsrs.h"
-int
-OTD_FirstSetMsrs_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_OTD_MeasurementWithID.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int OTD_FirstSetMsrs_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_OTD_MeasurementWithID.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using OTD_MeasurementWithID,
* so here we adjust the DEF accordingly.
*/
-static void
-OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_OTD_MeasurementWithID.free_struct;
- td->print_struct = asn_DEF_OTD_MeasurementWithID.print_struct;
- td->ber_decoder = asn_DEF_OTD_MeasurementWithID.ber_decoder;
- td->der_encoder = asn_DEF_OTD_MeasurementWithID.der_encoder;
- td->xer_decoder = asn_DEF_OTD_MeasurementWithID.xer_decoder;
- td->xer_encoder = asn_DEF_OTD_MeasurementWithID.xer_encoder;
- td->uper_decoder = asn_DEF_OTD_MeasurementWithID.uper_decoder;
- td->uper_encoder = asn_DEF_OTD_MeasurementWithID.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_OTD_MeasurementWithID.per_constraints;
- td->elements = asn_DEF_OTD_MeasurementWithID.elements;
- td->elements_count = asn_DEF_OTD_MeasurementWithID.elements_count;
- td->specifics = asn_DEF_OTD_MeasurementWithID.specifics;
+static void OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_OTD_MeasurementWithID.free_struct;
+ td->print_struct = asn_DEF_OTD_MeasurementWithID.print_struct;
+ td->ber_decoder = asn_DEF_OTD_MeasurementWithID.ber_decoder;
+ td->der_encoder = asn_DEF_OTD_MeasurementWithID.der_encoder;
+ td->xer_decoder = asn_DEF_OTD_MeasurementWithID.xer_decoder;
+ td->xer_encoder = asn_DEF_OTD_MeasurementWithID.xer_encoder;
+ td->uper_decoder = asn_DEF_OTD_MeasurementWithID.uper_decoder;
+ td->uper_encoder = asn_DEF_OTD_MeasurementWithID.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_OTD_MeasurementWithID.per_constraints;
+ td->elements = asn_DEF_OTD_MeasurementWithID.elements;
+ td->elements_count = asn_DEF_OTD_MeasurementWithID.elements_count;
+ td->specifics = asn_DEF_OTD_MeasurementWithID.specifics;
}
-void
-OTD_FirstSetMsrs_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void OTD_FirstSetMsrs_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-OTD_FirstSetMsrs_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int OTD_FirstSetMsrs_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-OTD_FirstSetMsrs_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) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t OTD_FirstSetMsrs_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)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-OTD_FirstSetMsrs_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) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t OTD_FirstSetMsrs_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)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-OTD_FirstSetMsrs_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) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t OTD_FirstSetMsrs_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)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-OTD_FirstSetMsrs_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) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t OTD_FirstSetMsrs_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)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-OTD_FirstSetMsrs_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t OTD_FirstSetMsrs_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-OTD_FirstSetMsrs_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t OTD_FirstSetMsrs_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ OTD_FirstSetMsrs_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static ber_tlv_tag_t asn_DEF_OTD_FirstSetMsrs_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
asn_TYPE_descriptor_t asn_DEF_OTD_FirstSetMsrs = {
- "OTD-FirstSetMsrs",
- "OTD-FirstSetMsrs",
- OTD_FirstSetMsrs_free,
- OTD_FirstSetMsrs_print,
- OTD_FirstSetMsrs_constraint,
- OTD_FirstSetMsrs_decode_ber,
- OTD_FirstSetMsrs_encode_der,
- OTD_FirstSetMsrs_decode_xer,
- OTD_FirstSetMsrs_encode_xer,
- OTD_FirstSetMsrs_decode_uper,
- OTD_FirstSetMsrs_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_FirstSetMsrs_tags_1,
- sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1)
- /sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1[0]), /* 1 */
- asn_DEF_OTD_FirstSetMsrs_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1)
- /sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
+ "OTD-FirstSetMsrs",
+ "OTD-FirstSetMsrs",
+ OTD_FirstSetMsrs_free,
+ OTD_FirstSetMsrs_print,
+ OTD_FirstSetMsrs_constraint,
+ OTD_FirstSetMsrs_decode_ber,
+ OTD_FirstSetMsrs_encode_der,
+ OTD_FirstSetMsrs_decode_xer,
+ OTD_FirstSetMsrs_encode_xer,
+ OTD_FirstSetMsrs_decode_uper,
+ OTD_FirstSetMsrs_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_FirstSetMsrs_tags_1,
+ sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1) /
+ sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1[0]), /* 1 */
+ asn_DEF_OTD_FirstSetMsrs_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1) /
+ sizeof(asn_DEF_OTD_FirstSetMsrs_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* Defined elsewhere */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.h b/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.h
index 04d3624e7..8854ed6b0 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-FirstSetMsrs.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_FirstSetMsrs_H_
#define _OTD_FirstSetMsrs_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.c b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.c
index 52a6c7323..a785f145b 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.c
@@ -1,141 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MeasureInfo-5-Ext.h"
-int
-OTD_MeasureInfo_5_Ext_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- /* Determine the number of elements */
- size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
-
- if((size >= 1 && size <= 2)) {
- /* 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__);
- return -1;
- }
+int OTD_MeasureInfo_5_Ext_constraint(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ /* Determine the number of elements */
+ size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
+
+ if ((size >= 1 && size <= 2))
+ {
+ /* 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__);
+ return -1;
+ }
}
/*
* This type is implemented using SeqOfOTD_MsrElementRest,
* so here we adjust the DEF accordingly.
*/
-static void
-OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_SeqOfOTD_MsrElementRest.free_struct;
- td->print_struct = asn_DEF_SeqOfOTD_MsrElementRest.print_struct;
- td->ber_decoder = asn_DEF_SeqOfOTD_MsrElementRest.ber_decoder;
- td->der_encoder = asn_DEF_SeqOfOTD_MsrElementRest.der_encoder;
- td->xer_decoder = asn_DEF_SeqOfOTD_MsrElementRest.xer_decoder;
- td->xer_encoder = asn_DEF_SeqOfOTD_MsrElementRest.xer_encoder;
- td->uper_decoder = asn_DEF_SeqOfOTD_MsrElementRest.uper_decoder;
- td->uper_encoder = asn_DEF_SeqOfOTD_MsrElementRest.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_SeqOfOTD_MsrElementRest.per_constraints;
- td->elements = asn_DEF_SeqOfOTD_MsrElementRest.elements;
- td->elements_count = asn_DEF_SeqOfOTD_MsrElementRest.elements_count;
- td->specifics = asn_DEF_SeqOfOTD_MsrElementRest.specifics;
+static void OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_SeqOfOTD_MsrElementRest.free_struct;
+ td->print_struct = asn_DEF_SeqOfOTD_MsrElementRest.print_struct;
+ td->ber_decoder = asn_DEF_SeqOfOTD_MsrElementRest.ber_decoder;
+ td->der_encoder = asn_DEF_SeqOfOTD_MsrElementRest.der_encoder;
+ td->xer_decoder = asn_DEF_SeqOfOTD_MsrElementRest.xer_decoder;
+ td->xer_encoder = asn_DEF_SeqOfOTD_MsrElementRest.xer_encoder;
+ td->uper_decoder = asn_DEF_SeqOfOTD_MsrElementRest.uper_decoder;
+ td->uper_encoder = asn_DEF_SeqOfOTD_MsrElementRest.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_SeqOfOTD_MsrElementRest.per_constraints;
+ td->elements = asn_DEF_SeqOfOTD_MsrElementRest.elements;
+ td->elements_count = asn_DEF_SeqOfOTD_MsrElementRest.elements_count;
+ td->specifics = asn_DEF_SeqOfOTD_MsrElementRest.specifics;
}
-void
-OTD_MeasureInfo_5_Ext_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void OTD_MeasureInfo_5_Ext_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-OTD_MeasureInfo_5_Ext_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int OTD_MeasureInfo_5_Ext_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-OTD_MeasureInfo_5_Ext_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) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t OTD_MeasureInfo_5_Ext_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)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-OTD_MeasureInfo_5_Ext_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) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t OTD_MeasureInfo_5_Ext_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)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-OTD_MeasureInfo_5_Ext_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) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t OTD_MeasureInfo_5_Ext_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)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-OTD_MeasureInfo_5_Ext_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) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t OTD_MeasureInfo_5_Ext_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)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-OTD_MeasureInfo_5_Ext_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t OTD_MeasureInfo_5_Ext_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-OTD_MeasureInfo_5_Ext_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t OTD_MeasureInfo_5_Ext_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ OTD_MeasureInfo_5_Ext_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static ber_tlv_tag_t asn_DEF_OTD_MeasureInfo_5_Ext_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
asn_TYPE_descriptor_t asn_DEF_OTD_MeasureInfo_5_Ext = {
- "OTD-MeasureInfo-5-Ext",
- "OTD-MeasureInfo-5-Ext",
- OTD_MeasureInfo_5_Ext_free,
- OTD_MeasureInfo_5_Ext_print,
- OTD_MeasureInfo_5_Ext_constraint,
- OTD_MeasureInfo_5_Ext_decode_ber,
- OTD_MeasureInfo_5_Ext_encode_der,
- OTD_MeasureInfo_5_Ext_decode_xer,
- OTD_MeasureInfo_5_Ext_encode_xer,
- OTD_MeasureInfo_5_Ext_decode_uper,
- OTD_MeasureInfo_5_Ext_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MeasureInfo_5_Ext_tags_1,
- sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1)
- /sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1[0]), /* 1 */
- asn_DEF_OTD_MeasureInfo_5_Ext_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1)
- /sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
+ "OTD-MeasureInfo-5-Ext",
+ "OTD-MeasureInfo-5-Ext",
+ OTD_MeasureInfo_5_Ext_free,
+ OTD_MeasureInfo_5_Ext_print,
+ OTD_MeasureInfo_5_Ext_constraint,
+ OTD_MeasureInfo_5_Ext_decode_ber,
+ OTD_MeasureInfo_5_Ext_encode_der,
+ OTD_MeasureInfo_5_Ext_decode_xer,
+ OTD_MeasureInfo_5_Ext_encode_xer,
+ OTD_MeasureInfo_5_Ext_decode_uper,
+ OTD_MeasureInfo_5_Ext_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MeasureInfo_5_Ext_tags_1,
+ sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1) /
+ sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MeasureInfo_5_Ext_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1) /
+ sizeof(asn_DEF_OTD_MeasureInfo_5_Ext_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ 0,
+ 0, /* Defined elsewhere */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.h b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.h
index 8cdd331bc..90a2bb56d 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-5-Ext.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MeasureInfo_5_Ext_H_
#define _OTD_MeasureInfo_5_Ext_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.c b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.c
index 6b6b6c73f..70ac29bdc 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.c
@@ -1,59 +1,58 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MeasureInfo-R98-Ext.h"
static asn_TYPE_member_t asn_MBR_OTD_MeasureInfo_R98_Ext_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MeasureInfo_R98_Ext, otdMsrFirstSets_R98_Ext),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_MsrElementFirst_R98_Ext,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otdMsrFirstSets-R98-Ext"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct OTD_MeasureInfo_R98_Ext, otdMsrFirstSets_R98_Ext),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_MsrElementFirst_R98_Ext,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otdMsrFirstSets-R98-Ext"},
};
static ber_tlv_tag_t asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_MeasureInfo_R98_Ext_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* otdMsrFirstSets-R98-Ext at 974 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* otdMsrFirstSets-R98-Ext at 974 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_MeasureInfo_R98_Ext_specs_1 = {
- sizeof(struct OTD_MeasureInfo_R98_Ext),
- offsetof(struct OTD_MeasureInfo_R98_Ext, _asn_ctx),
- asn_MAP_OTD_MeasureInfo_R98_Ext_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_MeasureInfo_R98_Ext),
+ offsetof(struct OTD_MeasureInfo_R98_Ext, _asn_ctx),
+ asn_MAP_OTD_MeasureInfo_R98_Ext_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MeasureInfo_R98_Ext = {
- "OTD-MeasureInfo-R98-Ext",
- "OTD-MeasureInfo-R98-Ext",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1,
- sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1)
- /sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1[0]), /* 1 */
- asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1)
- /sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_MeasureInfo_R98_Ext_1,
- 1, /* Elements count */
- &asn_SPC_OTD_MeasureInfo_R98_Ext_specs_1 /* Additional specs */
+ "OTD-MeasureInfo-R98-Ext",
+ "OTD-MeasureInfo-R98-Ext",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1,
+ sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1) /
+ sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1) /
+ sizeof(asn_DEF_OTD_MeasureInfo_R98_Ext_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_MeasureInfo_R98_Ext_1,
+ 1, /* Elements count */
+ &asn_SPC_OTD_MeasureInfo_R98_Ext_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.h b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.h
index 5a2bcc22c..c08c35a6d 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo-R98-Ext.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MeasureInfo_R98_Ext_H_
#define _OTD_MeasureInfo_R98_Ext_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.c b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.c
index 09f8cc1fd..fd92230f4 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.c
@@ -1,71 +1,64 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MeasureInfo.h"
static asn_TYPE_member_t asn_MBR_OTD_MeasureInfo_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MeasureInfo, otdMsrFirstSets),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_MsrElementFirst,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otdMsrFirstSets"
- },
- { ATF_POINTER, 1, offsetof(struct OTD_MeasureInfo, otdMsrRestSets),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfOTD_MsrElementRest,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otdMsrRestSets"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MeasureInfo, otdMsrFirstSets),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_MsrElementFirst,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otdMsrFirstSets"},
+ {ATF_POINTER, 1, offsetof(struct OTD_MeasureInfo, otdMsrRestSets),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfOTD_MsrElementRest,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otdMsrRestSets"},
};
-static int asn_MAP_OTD_MeasureInfo_oms_1[] = { 1 };
+static int asn_MAP_OTD_MeasureInfo_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_OTD_MeasureInfo_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_MeasureInfo_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* otdMsrFirstSets at 323 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* otdMsrRestSets at 327 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* otdMsrFirstSets at 323 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* otdMsrRestSets at 327 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_MeasureInfo_specs_1 = {
- sizeof(struct OTD_MeasureInfo),
- offsetof(struct OTD_MeasureInfo, _asn_ctx),
- asn_MAP_OTD_MeasureInfo_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_OTD_MeasureInfo_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_MeasureInfo),
+ offsetof(struct OTD_MeasureInfo, _asn_ctx),
+ asn_MAP_OTD_MeasureInfo_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_OTD_MeasureInfo_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MeasureInfo = {
- "OTD-MeasureInfo",
- "OTD-MeasureInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MeasureInfo_tags_1,
- sizeof(asn_DEF_OTD_MeasureInfo_tags_1)
- /sizeof(asn_DEF_OTD_MeasureInfo_tags_1[0]), /* 1 */
- asn_DEF_OTD_MeasureInfo_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MeasureInfo_tags_1)
- /sizeof(asn_DEF_OTD_MeasureInfo_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_MeasureInfo_1,
- 2, /* Elements count */
- &asn_SPC_OTD_MeasureInfo_specs_1 /* Additional specs */
+ "OTD-MeasureInfo",
+ "OTD-MeasureInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MeasureInfo_tags_1,
+ sizeof(asn_DEF_OTD_MeasureInfo_tags_1) /
+ sizeof(asn_DEF_OTD_MeasureInfo_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MeasureInfo_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MeasureInfo_tags_1) /
+ sizeof(asn_DEF_OTD_MeasureInfo_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_MeasureInfo_1,
+ 2, /* Elements count */
+ &asn_SPC_OTD_MeasureInfo_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.h b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.h
index 3c57b4f9c..b40215549 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasureInfo.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MeasureInfo_H_
#define _OTD_MeasureInfo_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-Measurement.c b/src/core/libs/supl/asn-rrlp/OTD-Measurement.c
index eb3dfcd3c..642f12138 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-Measurement.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-Measurement.c
@@ -1,79 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-Measurement.h"
static asn_TYPE_member_t asn_MBR_OTD_Measurement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_Measurement, nborTimeSlot),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ModuloTimeSlot,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "nborTimeSlot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_Measurement, eotdQuality),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_EOTDQuality,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "eotdQuality"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_Measurement, otdValue),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTDValue,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otdValue"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_Measurement, nborTimeSlot),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ModuloTimeSlot,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "nborTimeSlot"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_Measurement, eotdQuality),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_EOTDQuality,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "eotdQuality"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_Measurement, otdValue),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTDValue, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otdValue"},
};
static ber_tlv_tag_t asn_DEF_OTD_Measurement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_Measurement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nborTimeSlot at 379 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eotdQuality at 380 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* otdValue at 382 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* nborTimeSlot at 379 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* eotdQuality at 380 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* otdValue at 382 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_Measurement_specs_1 = {
- sizeof(struct OTD_Measurement),
- offsetof(struct OTD_Measurement, _asn_ctx),
- asn_MAP_OTD_Measurement_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_Measurement),
+ offsetof(struct OTD_Measurement, _asn_ctx),
+ asn_MAP_OTD_Measurement_tag2el_1,
+ 3, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_Measurement = {
- "OTD-Measurement",
- "OTD-Measurement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_Measurement_tags_1,
- sizeof(asn_DEF_OTD_Measurement_tags_1)
- /sizeof(asn_DEF_OTD_Measurement_tags_1[0]), /* 1 */
- asn_DEF_OTD_Measurement_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_Measurement_tags_1)
- /sizeof(asn_DEF_OTD_Measurement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_Measurement_1,
- 3, /* Elements count */
- &asn_SPC_OTD_Measurement_specs_1 /* Additional specs */
+ "OTD-Measurement",
+ "OTD-Measurement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_Measurement_tags_1,
+ sizeof(asn_DEF_OTD_Measurement_tags_1) /
+ sizeof(asn_DEF_OTD_Measurement_tags_1[0]), /* 1 */
+ asn_DEF_OTD_Measurement_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_Measurement_tags_1) /
+ sizeof(asn_DEF_OTD_Measurement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_Measurement_1,
+ 3, /* Elements count */
+ &asn_SPC_OTD_Measurement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-Measurement.h b/src/core/libs/supl/asn-rrlp/OTD-Measurement.h
index 7fa183b7c..f2f0492ad 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-Measurement.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-Measurement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_Measurement_H_
#define _OTD_Measurement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.c b/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.c
index 2d23dae79..4da4bbef2 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.c
@@ -1,89 +1,76 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MeasurementWithID.h"
static asn_TYPE_member_t asn_MBR_OTD_MeasurementWithID_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, neighborIdentity),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_NeighborIdentity,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "neighborIdentity"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, nborTimeSlot),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ModuloTimeSlot,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "nborTimeSlot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, eotdQuality),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_EOTDQuality,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "eotdQuality"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, otdValue),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTDValue,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otdValue"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, neighborIdentity),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */
+ &asn_DEF_NeighborIdentity,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "neighborIdentity"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, nborTimeSlot),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ModuloTimeSlot,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "nborTimeSlot"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, eotdQuality),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_EOTDQuality,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "eotdQuality"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MeasurementWithID, otdValue),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTDValue, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otdValue"},
};
static ber_tlv_tag_t asn_DEF_OTD_MeasurementWithID_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_MeasurementWithID_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* neighborIdentity at 386 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nborTimeSlot at 387 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* eotdQuality at 388 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* otdValue at 390 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* neighborIdentity at 386 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* nborTimeSlot at 387 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* eotdQuality at 388 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* otdValue at 390 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_MeasurementWithID_specs_1 = {
- sizeof(struct OTD_MeasurementWithID),
- offsetof(struct OTD_MeasurementWithID, _asn_ctx),
- asn_MAP_OTD_MeasurementWithID_tag2el_1,
- 4, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_MeasurementWithID),
+ offsetof(struct OTD_MeasurementWithID, _asn_ctx),
+ asn_MAP_OTD_MeasurementWithID_tag2el_1,
+ 4, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MeasurementWithID = {
- "OTD-MeasurementWithID",
- "OTD-MeasurementWithID",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MeasurementWithID_tags_1,
- sizeof(asn_DEF_OTD_MeasurementWithID_tags_1)
- /sizeof(asn_DEF_OTD_MeasurementWithID_tags_1[0]), /* 1 */
- asn_DEF_OTD_MeasurementWithID_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MeasurementWithID_tags_1)
- /sizeof(asn_DEF_OTD_MeasurementWithID_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_MeasurementWithID_1,
- 4, /* Elements count */
- &asn_SPC_OTD_MeasurementWithID_specs_1 /* Additional specs */
+ "OTD-MeasurementWithID",
+ "OTD-MeasurementWithID",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MeasurementWithID_tags_1,
+ sizeof(asn_DEF_OTD_MeasurementWithID_tags_1) /
+ sizeof(asn_DEF_OTD_MeasurementWithID_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MeasurementWithID_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MeasurementWithID_tags_1) /
+ sizeof(asn_DEF_OTD_MeasurementWithID_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_MeasurementWithID_1,
+ 4, /* Elements count */
+ &asn_SPC_OTD_MeasurementWithID_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.h b/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.h
index 6431c7a89..6d57f1fef 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MeasurementWithID.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MeasurementWithID_H_
#define _OTD_MeasurementWithID_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.c b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.c
index 1acef169f..026d37a7f 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.c
@@ -1,61 +1,59 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MsrElementFirst-R98-Ext.h"
static asn_TYPE_member_t asn_MBR_OTD_MsrElementFirst_R98_Ext_1[] = {
- { ATF_POINTER, 1, offsetof(struct OTD_MsrElementFirst_R98_Ext, otd_FirstSetMsrs_R98_Ext),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otd-FirstSetMsrs-R98-Ext"
- },
+ {ATF_POINTER, 1,
+ offsetof(struct OTD_MsrElementFirst_R98_Ext, otd_FirstSetMsrs_R98_Ext),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otd-FirstSetMsrs-R98-Ext"},
};
-static int asn_MAP_OTD_MsrElementFirst_R98_Ext_oms_1[] = { 0 };
+static int asn_MAP_OTD_MsrElementFirst_R98_Ext_oms_1[] = {0};
static ber_tlv_tag_t asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_MsrElementFirst_R98_Ext_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* otd-FirstSetMsrs-R98-Ext at 979 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* otd-FirstSetMsrs-R98-Ext at 979 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_MsrElementFirst_R98_Ext_specs_1 = {
- sizeof(struct OTD_MsrElementFirst_R98_Ext),
- offsetof(struct OTD_MsrElementFirst_R98_Ext, _asn_ctx),
- asn_MAP_OTD_MsrElementFirst_R98_Ext_tag2el_1,
- 1, /* Count of tags in the map */
- asn_MAP_OTD_MsrElementFirst_R98_Ext_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_MsrElementFirst_R98_Ext),
+ offsetof(struct OTD_MsrElementFirst_R98_Ext, _asn_ctx),
+ asn_MAP_OTD_MsrElementFirst_R98_Ext_tag2el_1,
+ 1, /* Count of tags in the map */
+ asn_MAP_OTD_MsrElementFirst_R98_Ext_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MsrElementFirst_R98_Ext = {
- "OTD-MsrElementFirst-R98-Ext",
- "OTD-MsrElementFirst-R98-Ext",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1,
- sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1)
- /sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1[0]), /* 1 */
- asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1)
- /sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_MsrElementFirst_R98_Ext_1,
- 1, /* Elements count */
- &asn_SPC_OTD_MsrElementFirst_R98_Ext_specs_1 /* Additional specs */
+ "OTD-MsrElementFirst-R98-Ext",
+ "OTD-MsrElementFirst-R98-Ext",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1,
+ sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1) /
+ sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1) /
+ sizeof(asn_DEF_OTD_MsrElementFirst_R98_Ext_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_MsrElementFirst_R98_Ext_1,
+ 1, /* Elements count */
+ &asn_SPC_OTD_MsrElementFirst_R98_Ext_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.h b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.h
index e99001016..644c8758c 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst-R98-Ext.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MsrElementFirst_R98_Ext_H_
#define _OTD_MsrElementFirst_R98_Ext_H_
-
#include
/* Including external dependencies */
@@ -24,7 +23,8 @@ extern "C"
/* OTD-MsrElementFirst-R98-Ext */
typedef struct OTD_MsrElementFirst_R98_Ext
{
- struct SeqOfOTD_FirstSetMsrs_R98_Ext *otd_FirstSetMsrs_R98_Ext /* OPTIONAL */;
+ struct SeqOfOTD_FirstSetMsrs_R98_Ext
+ *otd_FirstSetMsrs_R98_Ext /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.c b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.c
index a61d02dc6..9a2c1902e 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.c
@@ -1,171 +1,159 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MsrElementFirst.h"
-static int
-memb_refFrameNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 42431)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_refFrameNumber_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 42431))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_taCorrection_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 960)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_taCorrection_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 960))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REF_FRAME_NUMBER_CONSTR_2 = {
- { APC_CONSTRAINED, 16, 16, 0, 42431 } /* (0..42431) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 42431} /* (0..42431) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_TA_CORRECTION_CONSTR_6 = {
- { APC_CONSTRAINED, 10, 10, 0, 960 } /* (0..960) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 960} /* (0..960) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_OTD_MsrElementFirst_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementFirst, refFrameNumber),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_refFrameNumber_constraint_1,
- &ASN_PER_MEMB_REF_FRAME_NUMBER_CONSTR_2,
- 0,
- "refFrameNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementFirst, referenceTimeSlot),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ModuloTimeSlot,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceTimeSlot"
- },
- { ATF_POINTER, 1, offsetof(struct OTD_MsrElementFirst, toaMeasurementsOfRef),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TOA_MeasurementsOfRef,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "toaMeasurementsOfRef"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementFirst, stdResolution),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_StdResolution,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "stdResolution"
- },
- { ATF_POINTER, 2, offsetof(struct OTD_MsrElementFirst, taCorrection),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_taCorrection_constraint_1,
- &ASN_PER_MEMB_TA_CORRECTION_CONSTR_6,
- 0,
- "taCorrection"
- },
- { ATF_POINTER, 1, offsetof(struct OTD_MsrElementFirst, otd_FirstSetMsrs),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfOTD_FirstSetMsrs,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otd-FirstSetMsrs"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementFirst, refFrameNumber),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_refFrameNumber_constraint_1,
+ &ASN_PER_MEMB_REF_FRAME_NUMBER_CONSTR_2, 0, "refFrameNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementFirst, referenceTimeSlot),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ModuloTimeSlot,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceTimeSlot"},
+ {ATF_POINTER, 1, offsetof(struct OTD_MsrElementFirst, toaMeasurementsOfRef),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TOA_MeasurementsOfRef,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "toaMeasurementsOfRef"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementFirst, stdResolution),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_StdResolution,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "stdResolution"},
+ {ATF_POINTER, 2, offsetof(struct OTD_MsrElementFirst, taCorrection),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_taCorrection_constraint_1,
+ &ASN_PER_MEMB_TA_CORRECTION_CONSTR_6, 0, "taCorrection"},
+ {ATF_POINTER, 1, offsetof(struct OTD_MsrElementFirst, otd_FirstSetMsrs),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfOTD_FirstSetMsrs,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otd-FirstSetMsrs"},
};
-static int asn_MAP_OTD_MsrElementFirst_oms_1[] = { 2, 4, 5 };
+static int asn_MAP_OTD_MsrElementFirst_oms_1[] = {2, 4, 5};
static ber_tlv_tag_t asn_DEF_OTD_MsrElementFirst_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_MsrElementFirst_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refFrameNumber at 334 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceTimeSlot at 335 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* toaMeasurementsOfRef at 336 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stdResolution at 337 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* taCorrection at 338 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* otd-FirstSetMsrs at 341 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* refFrameNumber at 334 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* referenceTimeSlot at 335 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* toaMeasurementsOfRef at 336 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* stdResolution at 337 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* taCorrection at 338 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0} /* otd-FirstSetMsrs at 341 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_MsrElementFirst_specs_1 = {
- sizeof(struct OTD_MsrElementFirst),
- offsetof(struct OTD_MsrElementFirst, _asn_ctx),
- asn_MAP_OTD_MsrElementFirst_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_OTD_MsrElementFirst_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_MsrElementFirst),
+ offsetof(struct OTD_MsrElementFirst, _asn_ctx),
+ asn_MAP_OTD_MsrElementFirst_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_OTD_MsrElementFirst_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MsrElementFirst = {
- "OTD-MsrElementFirst",
- "OTD-MsrElementFirst",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MsrElementFirst_tags_1,
- sizeof(asn_DEF_OTD_MsrElementFirst_tags_1)
- /sizeof(asn_DEF_OTD_MsrElementFirst_tags_1[0]), /* 1 */
- asn_DEF_OTD_MsrElementFirst_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MsrElementFirst_tags_1)
- /sizeof(asn_DEF_OTD_MsrElementFirst_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_MsrElementFirst_1,
- 6, /* Elements count */
- &asn_SPC_OTD_MsrElementFirst_specs_1 /* Additional specs */
+ "OTD-MsrElementFirst",
+ "OTD-MsrElementFirst",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MsrElementFirst_tags_1,
+ sizeof(asn_DEF_OTD_MsrElementFirst_tags_1) /
+ sizeof(asn_DEF_OTD_MsrElementFirst_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MsrElementFirst_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MsrElementFirst_tags_1) /
+ sizeof(asn_DEF_OTD_MsrElementFirst_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_MsrElementFirst_1,
+ 6, /* Elements count */
+ &asn_SPC_OTD_MsrElementFirst_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.h b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.h
index 322e104c1..39afa7bd5 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrElementFirst.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MsrElementFirst_H_
#define _OTD_MsrElementFirst_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.c b/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.c
index ad523960e..7f6f47685 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.c
@@ -1,171 +1,160 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MsrElementRest.h"
-static int
-memb_refFrameNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 42431)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_refFrameNumber_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 42431))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_taCorrection_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 960)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_taCorrection_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 960))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REF_FRAME_NUMBER_CONSTR_2 = {
- { APC_CONSTRAINED, 16, 16, 0, 42431 } /* (0..42431) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 42431} /* (0..42431) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_TA_CORRECTION_CONSTR_6 = {
- { APC_CONSTRAINED, 10, 10, 0, 960 } /* (0..960) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 960} /* (0..960) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_OTD_MsrElementRest_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementRest, refFrameNumber),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_refFrameNumber_constraint_1,
- &ASN_PER_MEMB_REF_FRAME_NUMBER_CONSTR_2,
- 0,
- "refFrameNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementRest, referenceTimeSlot),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ModuloTimeSlot,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "referenceTimeSlot"
- },
- { ATF_POINTER, 1, offsetof(struct OTD_MsrElementRest, toaMeasurementsOfRef),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TOA_MeasurementsOfRef,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "toaMeasurementsOfRef"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementRest, stdResolution),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_StdResolution,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "stdResolution"
- },
- { ATF_POINTER, 2, offsetof(struct OTD_MsrElementRest, taCorrection),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_taCorrection_constraint_1,
- &ASN_PER_MEMB_TA_CORRECTION_CONSTR_6,
- 0,
- "taCorrection"
- },
- { ATF_POINTER, 1, offsetof(struct OTD_MsrElementRest, otd_MsrsOfOtherSets),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfOTD_MsrsOfOtherSets,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otd-MsrsOfOtherSets"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementRest, refFrameNumber),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_refFrameNumber_constraint_1,
+ &ASN_PER_MEMB_REF_FRAME_NUMBER_CONSTR_2, 0, "refFrameNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementRest, referenceTimeSlot),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ModuloTimeSlot,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "referenceTimeSlot"},
+ {ATF_POINTER, 1, offsetof(struct OTD_MsrElementRest, toaMeasurementsOfRef),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TOA_MeasurementsOfRef,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "toaMeasurementsOfRef"},
+ {ATF_NOFLAGS, 0, offsetof(struct OTD_MsrElementRest, stdResolution),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_StdResolution,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "stdResolution"},
+ {ATF_POINTER, 2, offsetof(struct OTD_MsrElementRest, taCorrection),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_taCorrection_constraint_1,
+ &ASN_PER_MEMB_TA_CORRECTION_CONSTR_6, 0, "taCorrection"},
+ {ATF_POINTER, 1, offsetof(struct OTD_MsrElementRest, otd_MsrsOfOtherSets),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfOTD_MsrsOfOtherSets,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otd-MsrsOfOtherSets"},
};
-static int asn_MAP_OTD_MsrElementRest_oms_1[] = { 2, 4, 5 };
+static int asn_MAP_OTD_MsrElementRest_oms_1[] = {2, 4, 5};
static ber_tlv_tag_t asn_DEF_OTD_MsrElementRest_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_OTD_MsrElementRest_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refFrameNumber at 347 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referenceTimeSlot at 348 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* toaMeasurementsOfRef at 349 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stdResolution at 350 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* taCorrection at 351 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* otd-MsrsOfOtherSets at 354 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* refFrameNumber at 347 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* referenceTimeSlot at 348 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* toaMeasurementsOfRef at 349 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* stdResolution at 350 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* taCorrection at 351 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0} /* otd-MsrsOfOtherSets at 354 */
};
static asn_SEQUENCE_specifics_t asn_SPC_OTD_MsrElementRest_specs_1 = {
- sizeof(struct OTD_MsrElementRest),
- offsetof(struct OTD_MsrElementRest, _asn_ctx),
- asn_MAP_OTD_MsrElementRest_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_OTD_MsrElementRest_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct OTD_MsrElementRest),
+ offsetof(struct OTD_MsrElementRest, _asn_ctx),
+ asn_MAP_OTD_MsrElementRest_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_OTD_MsrElementRest_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MsrElementRest = {
- "OTD-MsrElementRest",
- "OTD-MsrElementRest",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTD_MsrElementRest_tags_1,
- sizeof(asn_DEF_OTD_MsrElementRest_tags_1)
- /sizeof(asn_DEF_OTD_MsrElementRest_tags_1[0]), /* 1 */
- asn_DEF_OTD_MsrElementRest_tags_1, /* Same as above */
- sizeof(asn_DEF_OTD_MsrElementRest_tags_1)
- /sizeof(asn_DEF_OTD_MsrElementRest_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_OTD_MsrElementRest_1,
- 6, /* Elements count */
- &asn_SPC_OTD_MsrElementRest_specs_1 /* Additional specs */
+ "OTD-MsrElementRest",
+ "OTD-MsrElementRest",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTD_MsrElementRest_tags_1,
+ sizeof(asn_DEF_OTD_MsrElementRest_tags_1) /
+ sizeof(asn_DEF_OTD_MsrElementRest_tags_1[0]), /* 1 */
+ asn_DEF_OTD_MsrElementRest_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTD_MsrElementRest_tags_1) /
+ sizeof(asn_DEF_OTD_MsrElementRest_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_OTD_MsrElementRest_1,
+ 6, /* Elements count */
+ &asn_SPC_OTD_MsrElementRest_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.h b/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.h
index fd1955652..3287ccf96 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrElementRest.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MsrElementRest_H_
#define _OTD_MsrElementRest_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.c b/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.c
index d018129ab..9f3d01df9 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.c
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.c
@@ -1,70 +1,67 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTD-MsrsOfOtherSets.h"
static asn_per_constraints_t ASN_PER_TYPE_OTD_MSRS_OF_OTHER_SETS_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_OTD_MsrsOfOtherSets_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrsOfOtherSets, choice.identityNotPresent),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_Measurement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "identityNotPresent"
- },
- { ATF_NOFLAGS, 0, offsetof(struct OTD_MsrsOfOtherSets, choice.identityPresent),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_MeasurementWithID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "identityPresent"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct OTD_MsrsOfOtherSets, choice.identityNotPresent),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_Measurement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "identityNotPresent"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct OTD_MsrsOfOtherSets, choice.identityPresent),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_MeasurementWithID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "identityPresent"},
};
static asn_TYPE_tag2member_t asn_MAP_OTD_MsrsOfOtherSets_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* identityNotPresent at 372 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* identityPresent at 374 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* identityNotPresent at 372 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* identityPresent at 374 */
};
static asn_CHOICE_specifics_t asn_SPC_OTD_MsrsOfOtherSets_specs_1 = {
- sizeof(struct OTD_MsrsOfOtherSets),
- offsetof(struct OTD_MsrsOfOtherSets, _asn_ctx),
- offsetof(struct OTD_MsrsOfOtherSets, present),
- sizeof(((struct OTD_MsrsOfOtherSets *)0)->present),
- asn_MAP_OTD_MsrsOfOtherSets_tag2el_1,
- 2, /* Count of tags in the map */
- 0,
- -1 /* Extensions start */
+ sizeof(struct OTD_MsrsOfOtherSets),
+ offsetof(struct OTD_MsrsOfOtherSets, _asn_ctx),
+ offsetof(struct OTD_MsrsOfOtherSets, present),
+ sizeof(((struct OTD_MsrsOfOtherSets *)0)->present),
+ asn_MAP_OTD_MsrsOfOtherSets_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ -1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_OTD_MsrsOfOtherSets = {
- "OTD-MsrsOfOtherSets",
- "OTD-MsrsOfOtherSets",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_OTD_MSRS_OF_OTHER_SETS_CONSTR_1,
- asn_MBR_OTD_MsrsOfOtherSets_1,
- 2, /* Elements count */
- &asn_SPC_OTD_MsrsOfOtherSets_specs_1 /* Additional specs */
+ "OTD-MsrsOfOtherSets",
+ "OTD-MsrsOfOtherSets",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_OTD_MSRS_OF_OTHER_SETS_CONSTR_1,
+ asn_MBR_OTD_MsrsOfOtherSets_1,
+ 2, /* Elements count */
+ &asn_SPC_OTD_MsrsOfOtherSets_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.h b/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.h
index 7df79d03a..169dc2de9 100644
--- a/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.h
+++ b/src/core/libs/supl/asn-rrlp/OTD-MsrsOfOtherSets.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTD_MsrsOfOtherSets_H_
#define _OTD_MsrsOfOtherSets_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/OTDValue.c b/src/core/libs/supl/asn-rrlp/OTDValue.c
index 4f837f8c9..0a51c64a6 100644
--- a/src/core/libs/supl/asn-rrlp/OTDValue.c
+++ b/src/core/libs/supl/asn-rrlp/OTDValue.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "OTDValue.h"
-int
-OTDValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 39999)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int OTDValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 39999))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-OTDValue_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void OTDValue_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-OTDValue_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void OTDValue_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-OTDValue_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int OTDValue_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-OTDValue_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) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t OTDValue_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)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-OTDValue_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) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t OTDValue_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)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-OTDValue_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) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t OTDValue_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)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-OTDValue_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) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t OTDValue_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)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-OTDValue_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t OTDValue_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-OTDValue_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- OTDValue_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t OTDValue_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ OTDValue_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_OTD_VALUE_CONSTR_1 = {
- { APC_CONSTRAINED, 16, 16, 0, 39999 } /* (0..39999) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 39999} /* (0..39999) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_OTDValue_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_OTDValue = {
- "OTDValue",
- "OTDValue",
- OTDValue_free,
- OTDValue_print,
- OTDValue_constraint,
- OTDValue_decode_ber,
- OTDValue_encode_der,
- OTDValue_decode_xer,
- OTDValue_encode_xer,
- OTDValue_decode_uper,
- OTDValue_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_OTDValue_tags_1,
- sizeof(asn_DEF_OTDValue_tags_1)
- /sizeof(asn_DEF_OTDValue_tags_1[0]), /* 1 */
- asn_DEF_OTDValue_tags_1, /* Same as above */
- sizeof(asn_DEF_OTDValue_tags_1)
- /sizeof(asn_DEF_OTDValue_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_OTD_VALUE_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "OTDValue",
+ "OTDValue",
+ OTDValue_free,
+ OTDValue_print,
+ OTDValue_constraint,
+ OTDValue_decode_ber,
+ OTDValue_encode_der,
+ OTDValue_decode_xer,
+ OTDValue_encode_xer,
+ OTDValue_decode_uper,
+ OTDValue_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_OTDValue_tags_1,
+ sizeof(asn_DEF_OTDValue_tags_1) /
+ sizeof(asn_DEF_OTDValue_tags_1[0]), /* 1 */
+ asn_DEF_OTDValue_tags_1, /* Same as above */
+ sizeof(asn_DEF_OTDValue_tags_1) /
+ sizeof(asn_DEF_OTDValue_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_OTD_VALUE_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/OTDValue.h b/src/core/libs/supl/asn-rrlp/OTDValue.h
index 42ea5a9e4..77c85c558 100644
--- a/src/core/libs/supl/asn-rrlp/OTDValue.h
+++ b/src/core/libs/supl/asn-rrlp/OTDValue.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _OTDValue_H_
#define _OTDValue_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/PDU.c b/src/core/libs/supl/asn-rrlp/PDU.c
index bf4708ddd..71249ab0c 100644
--- a/src/core/libs/supl/asn-rrlp/PDU.c
+++ b/src/core/libs/supl/asn-rrlp/PDU.c
@@ -1,99 +1,93 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Messages"
- * found in "../rrlp-messages.asn"
+ * found in "../rrlp-messages.asn"
*/
#include "PDU.h"
-static int
-memb_referenceNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_referenceNumber_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REFERENCE_NUMBER_CONSTR_2 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_PDU_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct PDU, referenceNumber),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_referenceNumber_constraint_1,
- &ASN_PER_MEMB_REFERENCE_NUMBER_CONSTR_2,
- 0,
- "referenceNumber"
- },
- { ATF_NOFLAGS, 0, offsetof(struct PDU, component),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_RRLP_Component,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "component"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct PDU, referenceNumber),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_referenceNumber_constraint_1,
+ &ASN_PER_MEMB_REFERENCE_NUMBER_CONSTR_2, 0, "referenceNumber"},
+ {ATF_NOFLAGS, 0, offsetof(struct PDU, component),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */
+ &asn_DEF_RRLP_Component,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "component"},
};
static ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceNumber at 16 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* component at 18 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* referenceNumber at 16 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* component at 18 */
};
static asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1 = {
- sizeof(struct PDU),
- offsetof(struct PDU, _asn_ctx),
- asn_MAP_PDU_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct PDU),
+ offsetof(struct PDU, _asn_ctx),
+ asn_MAP_PDU_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_PDU = {
- "PDU",
- "PDU",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_PDU_tags_1,
- sizeof(asn_DEF_PDU_tags_1)
- /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
- asn_DEF_PDU_tags_1, /* Same as above */
- sizeof(asn_DEF_PDU_tags_1)
- /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_PDU_1,
- 2, /* Elements count */
- &asn_SPC_PDU_specs_1 /* Additional specs */
+ "PDU",
+ "PDU",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_PDU_tags_1,
+ sizeof(asn_DEF_PDU_tags_1) / sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
+ asn_DEF_PDU_tags_1, /* Same as above */
+ sizeof(asn_DEF_PDU_tags_1) / sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_PDU_1,
+ 2, /* Elements count */
+ &asn_SPC_PDU_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/PDU.h b/src/core/libs/supl/asn-rrlp/PDU.h
index 5a815aaf5..ba9a3085d 100644
--- a/src/core/libs/supl/asn-rrlp/PDU.h
+++ b/src/core/libs/supl/asn-rrlp/PDU.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Messages"
- * found in "../rrlp-messages.asn"
+ * found in "../rrlp-messages.asn"
*/
#ifndef _PDU_H_
#define _PDU_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/PositionData.c b/src/core/libs/supl/asn-rrlp/PositionData.c
index 249c4bf46..cbfe07429 100644
--- a/src/core/libs/supl/asn-rrlp/PositionData.c
+++ b/src/core/libs/supl/asn-rrlp/PositionData.c
@@ -1,151 +1,172 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "PositionData.h"
-int
-PositionData_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
- size_t size;
-
- if(!sptr) {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: value not given (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
-
- if(st->size > 0) {
- /* Size in bits */
- size = 8 * st->size - (st->bits_unused & 0x07);
- } else {
- size = 0;
- }
-
- if((size >= 3 && size <= 16)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int PositionData_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
+ size_t size;
+
+ if (!sptr)
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
+
+ if (st->size > 0)
+ {
+ /* Size in bits */
+ size = 8 * st->size - (st->bits_unused & 0x07);
+ }
+ else
+ {
+ size = 0;
+ }
+
+ if ((size >= 3 && size <= 16))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using BIT_STRING,
* so here we adjust the DEF accordingly.
*/
-static void
-PositionData_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_BIT_STRING.free_struct;
- td->print_struct = asn_DEF_BIT_STRING.print_struct;
- td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder;
- td->der_encoder = asn_DEF_BIT_STRING.der_encoder;
- td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder;
- td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder;
- td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder;
- td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_BIT_STRING.per_constraints;
- td->elements = asn_DEF_BIT_STRING.elements;
- td->elements_count = asn_DEF_BIT_STRING.elements_count;
- td->specifics = asn_DEF_BIT_STRING.specifics;
+static void PositionData_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_BIT_STRING.free_struct;
+ td->print_struct = asn_DEF_BIT_STRING.print_struct;
+ td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder;
+ td->der_encoder = asn_DEF_BIT_STRING.der_encoder;
+ td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder;
+ td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder;
+ td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder;
+ td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_BIT_STRING.per_constraints;
+ td->elements = asn_DEF_BIT_STRING.elements;
+ td->elements_count = asn_DEF_BIT_STRING.elements_count;
+ td->specifics = asn_DEF_BIT_STRING.specifics;
}
-void
-PositionData_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- PositionData_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void PositionData_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-PositionData_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int PositionData_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-PositionData_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) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t PositionData_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)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-PositionData_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) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t PositionData_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)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-PositionData_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) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t PositionData_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)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-PositionData_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) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t PositionData_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)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-PositionData_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t PositionData_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-PositionData_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- PositionData_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t PositionData_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ PositionData_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_POSITION_DATA_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 3, 16 } /* (SIZE(3..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 3, 16} /* (SIZE(3..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_PositionData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))};
asn_TYPE_descriptor_t asn_DEF_PositionData = {
- "PositionData",
- "PositionData",
- PositionData_free,
- PositionData_print,
- PositionData_constraint,
- PositionData_decode_ber,
- PositionData_encode_der,
- PositionData_decode_xer,
- PositionData_encode_xer,
- PositionData_decode_uper,
- PositionData_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_PositionData_tags_1,
- sizeof(asn_DEF_PositionData_tags_1)
- /sizeof(asn_DEF_PositionData_tags_1[0]), /* 1 */
- asn_DEF_PositionData_tags_1, /* Same as above */
- sizeof(asn_DEF_PositionData_tags_1)
- /sizeof(asn_DEF_PositionData_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_POSITION_DATA_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
+ "PositionData",
+ "PositionData",
+ PositionData_free,
+ PositionData_print,
+ PositionData_constraint,
+ PositionData_decode_ber,
+ PositionData_encode_der,
+ PositionData_decode_xer,
+ PositionData_encode_xer,
+ PositionData_decode_uper,
+ PositionData_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_PositionData_tags_1,
+ sizeof(asn_DEF_PositionData_tags_1) /
+ sizeof(asn_DEF_PositionData_tags_1[0]), /* 1 */
+ asn_DEF_PositionData_tags_1, /* Same as above */
+ sizeof(asn_DEF_PositionData_tags_1) /
+ sizeof(asn_DEF_PositionData_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_POSITION_DATA_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/PositionData.h b/src/core/libs/supl/asn-rrlp/PositionData.h
index 7545873ef..d94e32f49 100644
--- a/src/core/libs/supl/asn-rrlp/PositionData.h
+++ b/src/core/libs/supl/asn-rrlp/PositionData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _PositionData_H_
#define _PositionData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/PositionInstruct.c b/src/core/libs/supl/asn-rrlp/PositionInstruct.c
index 473b09612..58a0205f1 100644
--- a/src/core/libs/supl/asn-rrlp/PositionInstruct.c
+++ b/src/core/libs/supl/asn-rrlp/PositionInstruct.c
@@ -1,101 +1,86 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "PositionInstruct.h"
static asn_TYPE_member_t asn_MBR_PositionInstruct_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, methodType),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_MethodType,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "methodType"
- },
- { ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, positionMethod),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_PositionMethod,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "positionMethod"
- },
- { ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, measureResponseTime),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MeasureResponseTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "measureResponseTime"
- },
- { ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, useMultipleSets),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_UseMultipleSets,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "useMultipleSets"
- },
- { ATF_POINTER, 1, offsetof(struct PositionInstruct, environmentCharacter),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_EnvironmentCharacter,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "environmentCharacter"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, methodType),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */
+ &asn_DEF_MethodType, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "methodType"},
+ {ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, positionMethod),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_PositionMethod,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "positionMethod"},
+ {ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, measureResponseTime),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MeasureResponseTime,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "measureResponseTime"},
+ {ATF_NOFLAGS, 0, offsetof(struct PositionInstruct, useMultipleSets),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_UseMultipleSets,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "useMultipleSets"},
+ {ATF_POINTER, 1, offsetof(struct PositionInstruct, environmentCharacter),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_EnvironmentCharacter,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "environmentCharacter"},
};
-static int asn_MAP_PositionInstruct_oms_1[] = { 4 };
+static int asn_MAP_PositionInstruct_oms_1[] = {4};
static ber_tlv_tag_t asn_DEF_PositionInstruct_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_PositionInstruct_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* methodType at 108 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* positionMethod at 109 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measureResponseTime at 110 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* useMultipleSets at 111 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* environmentCharacter at 112 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* methodType at 108 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* positionMethod at 109 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* measureResponseTime at 110 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* useMultipleSets at 111 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0} /* environmentCharacter at 112 */
};
static asn_SEQUENCE_specifics_t asn_SPC_PositionInstruct_specs_1 = {
- sizeof(struct PositionInstruct),
- offsetof(struct PositionInstruct, _asn_ctx),
- asn_MAP_PositionInstruct_tag2el_1,
- 5, /* Count of tags in the map */
- asn_MAP_PositionInstruct_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct PositionInstruct),
+ offsetof(struct PositionInstruct, _asn_ctx),
+ asn_MAP_PositionInstruct_tag2el_1,
+ 5, /* Count of tags in the map */
+ asn_MAP_PositionInstruct_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_PositionInstruct = {
- "PositionInstruct",
- "PositionInstruct",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_PositionInstruct_tags_1,
- sizeof(asn_DEF_PositionInstruct_tags_1)
- /sizeof(asn_DEF_PositionInstruct_tags_1[0]), /* 1 */
- asn_DEF_PositionInstruct_tags_1, /* Same as above */
- sizeof(asn_DEF_PositionInstruct_tags_1)
- /sizeof(asn_DEF_PositionInstruct_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_PositionInstruct_1,
- 5, /* Elements count */
- &asn_SPC_PositionInstruct_specs_1 /* Additional specs */
+ "PositionInstruct",
+ "PositionInstruct",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_PositionInstruct_tags_1,
+ sizeof(asn_DEF_PositionInstruct_tags_1) /
+ sizeof(asn_DEF_PositionInstruct_tags_1[0]), /* 1 */
+ asn_DEF_PositionInstruct_tags_1, /* Same as above */
+ sizeof(asn_DEF_PositionInstruct_tags_1) /
+ sizeof(asn_DEF_PositionInstruct_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_PositionInstruct_1,
+ 5, /* Elements count */
+ &asn_SPC_PositionInstruct_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/PositionInstruct.h b/src/core/libs/supl/asn-rrlp/PositionInstruct.h
index e0e49f72f..1043f1fe6 100644
--- a/src/core/libs/supl/asn-rrlp/PositionInstruct.h
+++ b/src/core/libs/supl/asn-rrlp/PositionInstruct.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _PositionInstruct_H_
#define _PositionInstruct_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/PositionMethod.c b/src/core/libs/supl/asn-rrlp/PositionMethod.c
index b1c3df488..537d2f801 100644
--- a/src/core/libs/supl/asn-rrlp/PositionMethod.c
+++ b/src/core/libs/supl/asn-rrlp/PositionMethod.c
@@ -1,147 +1,162 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "PositionMethod.h"
-int
-PositionMethod_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int PositionMethod_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-PositionMethod_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void PositionMethod_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-PositionMethod_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void PositionMethod_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-PositionMethod_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int PositionMethod_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-PositionMethod_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) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t PositionMethod_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)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-PositionMethod_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) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t PositionMethod_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)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-PositionMethod_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) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t PositionMethod_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)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-PositionMethod_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) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t PositionMethod_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)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-PositionMethod_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t PositionMethod_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-PositionMethod_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- PositionMethod_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t PositionMethod_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ PositionMethod_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_POSITION_METHOD_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 2} /* (0..2) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_PositionMethod_value2enum_1[] = {
- { 0, 4, "eotd" },
- { 1, 3, "gps" },
- { 2, 9, "gpsOrEOTD" }
-};
+ {0, 4, "eotd"}, {1, 3, "gps"}, {2, 9, "gpsOrEOTD"}};
static unsigned int asn_MAP_PositionMethod_enum2value_1[] = {
- 0, /* eotd(0) */
- 1, /* gps(1) */
- 2 /* gpsOrEOTD(2) */
+ 0, /* eotd(0) */
+ 1, /* gps(1) */
+ 2 /* gpsOrEOTD(2) */
};
static asn_INTEGER_specifics_t asn_SPC_PositionMethod_specs_1 = {
- asn_MAP_PositionMethod_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_PositionMethod_enum2value_1, /* N => "tag"; sorted by N */
- 3, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_PositionMethod_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_PositionMethod_enum2value_1, /* N => "tag"; sorted by N */
+ 3, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_PositionMethod_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_PositionMethod = {
- "PositionMethod",
- "PositionMethod",
- PositionMethod_free,
- PositionMethod_print,
- PositionMethod_constraint,
- PositionMethod_decode_ber,
- PositionMethod_encode_der,
- PositionMethod_decode_xer,
- PositionMethod_encode_xer,
- PositionMethod_decode_uper,
- PositionMethod_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_PositionMethod_tags_1,
- sizeof(asn_DEF_PositionMethod_tags_1)
- /sizeof(asn_DEF_PositionMethod_tags_1[0]), /* 1 */
- asn_DEF_PositionMethod_tags_1, /* Same as above */
- sizeof(asn_DEF_PositionMethod_tags_1)
- /sizeof(asn_DEF_PositionMethod_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_POSITION_METHOD_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_PositionMethod_specs_1 /* Additional specs */
+ "PositionMethod",
+ "PositionMethod",
+ PositionMethod_free,
+ PositionMethod_print,
+ PositionMethod_constraint,
+ PositionMethod_decode_ber,
+ PositionMethod_encode_der,
+ PositionMethod_decode_xer,
+ PositionMethod_encode_xer,
+ PositionMethod_decode_uper,
+ PositionMethod_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_PositionMethod_tags_1,
+ sizeof(asn_DEF_PositionMethod_tags_1) /
+ sizeof(asn_DEF_PositionMethod_tags_1[0]), /* 1 */
+ asn_DEF_PositionMethod_tags_1, /* Same as above */
+ sizeof(asn_DEF_PositionMethod_tags_1) /
+ sizeof(asn_DEF_PositionMethod_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_POSITION_METHOD_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_PositionMethod_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/PositionMethod.h b/src/core/libs/supl/asn-rrlp/PositionMethod.h
index 64db54e6c..2d790bfd5 100644
--- a/src/core/libs/supl/asn-rrlp/PositionMethod.h
+++ b/src/core/libs/supl/asn-rrlp/PositionMethod.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _PositionMethod_H_
#define _PositionMethod_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ProtocolError.c b/src/core/libs/supl/asn-rrlp/ProtocolError.c
index dce79738d..5516db6fc 100644
--- a/src/core/libs/supl/asn-rrlp/ProtocolError.c
+++ b/src/core/libs/supl/asn-rrlp/ProtocolError.c
@@ -1,81 +1,73 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ProtocolError.h"
static asn_TYPE_member_t asn_MBR_ProtocolError_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ProtocolError, errorCause),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ErrorCodes,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "errorCause"
- },
- { ATF_POINTER, 2, offsetof(struct ProtocolError, extensionContainer),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ExtensionContainer,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extensionContainer"
- },
- { ATF_POINTER, 1, offsetof(struct ProtocolError, rel_5_ProtocolError_Extension),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel_5_ProtocolError_Extension,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel-5-ProtocolError-Extension"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct ProtocolError, errorCause),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ErrorCodes, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "errorCause"},
+ {ATF_POINTER, 2, offsetof(struct ProtocolError, extensionContainer),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ExtensionContainer,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extensionContainer"},
+ {ATF_POINTER, 1,
+ offsetof(struct ProtocolError, rel_5_ProtocolError_Extension),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel_5_ProtocolError_Extension,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel-5-ProtocolError-Extension"},
};
-static int asn_MAP_ProtocolError_oms_1[] = { 1, 2 };
+static int asn_MAP_ProtocolError_oms_1[] = {1, 2};
static ber_tlv_tag_t asn_DEF_ProtocolError_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ProtocolError_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* errorCause at 96 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* extensionContainer at 97 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* rel-5-ProtocolError-Extension at 100 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* errorCause at 96 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* extensionContainer at 97 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* rel-5-ProtocolError-Extension at 100 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ProtocolError_specs_1 = {
- sizeof(struct ProtocolError),
- offsetof(struct ProtocolError, _asn_ctx),
- asn_MAP_ProtocolError_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_ProtocolError_oms_1, /* Optional members */
- 1, 1, /* Root/Additions */
- 1, /* Start extensions */
- 4 /* Stop extensions */
+ sizeof(struct ProtocolError),
+ offsetof(struct ProtocolError, _asn_ctx),
+ asn_MAP_ProtocolError_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_ProtocolError_oms_1, /* Optional members */
+ 1,
+ 1, /* Root/Additions */
+ 1, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ProtocolError = {
- "ProtocolError",
- "ProtocolError",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ProtocolError_tags_1,
- sizeof(asn_DEF_ProtocolError_tags_1)
- /sizeof(asn_DEF_ProtocolError_tags_1[0]), /* 1 */
- asn_DEF_ProtocolError_tags_1, /* Same as above */
- sizeof(asn_DEF_ProtocolError_tags_1)
- /sizeof(asn_DEF_ProtocolError_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ProtocolError_1,
- 3, /* Elements count */
- &asn_SPC_ProtocolError_specs_1 /* Additional specs */
+ "ProtocolError",
+ "ProtocolError",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ProtocolError_tags_1,
+ sizeof(asn_DEF_ProtocolError_tags_1) /
+ sizeof(asn_DEF_ProtocolError_tags_1[0]), /* 1 */
+ asn_DEF_ProtocolError_tags_1, /* Same as above */
+ sizeof(asn_DEF_ProtocolError_tags_1) /
+ sizeof(asn_DEF_ProtocolError_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ProtocolError_1,
+ 3, /* Elements count */
+ &asn_SPC_ProtocolError_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ProtocolError.h b/src/core/libs/supl/asn-rrlp/ProtocolError.h
index 8dd1b0fdc..cc5dde184 100644
--- a/src/core/libs/supl/asn-rrlp/ProtocolError.h
+++ b/src/core/libs/supl/asn-rrlp/ProtocolError.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ProtocolError_H_
#define _ProtocolError_H_
-
#include
/* Including external dependencies */
@@ -29,10 +28,11 @@ extern "C"
ErrorCodes_t errorCause;
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
- struct Rel_5_ProtocolError_Extension *rel_5_ProtocolError_Extension /* OPTIONAL */;
+ * This type is extensible,
+ * possible extensions are below.
+ */
+ struct Rel_5_ProtocolError_Extension
+ *rel_5_ProtocolError_Extension /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/RRLP-Component.c b/src/core/libs/supl/asn-rrlp/RRLP-Component.c
index fe8f448a7..93cd43550 100644
--- a/src/core/libs/supl/asn-rrlp/RRLP-Component.c
+++ b/src/core/libs/supl/asn-rrlp/RRLP-Component.c
@@ -1,100 +1,84 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Messages"
- * found in "../rrlp-messages.asn"
+ * found in "../rrlp-messages.asn"
*/
#include "RRLP-Component.h"
static asn_per_constraints_t ASN_PER_TYPE_RRLP_COMPONENT_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4 } /* (0..4,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 4} /* (0..4,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_RRLP_Component_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.msrPositionReq),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MsrPosition_Req,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrPositionReq"
- },
- { ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.msrPositionRsp),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MsrPosition_Rsp,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrPositionRsp"
- },
- { ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.assistanceData),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AssistanceData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "assistanceData"
- },
- { ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.assistanceDataAck),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "assistanceDataAck"
- },
- { ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.protocolError),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ProtocolError,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "protocolError"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.msrPositionReq),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MsrPosition_Req,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrPositionReq"},
+ {ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.msrPositionRsp),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MsrPosition_Rsp,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrPositionRsp"},
+ {ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.assistanceData),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AssistanceData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "assistanceData"},
+ {ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.assistanceDataAck),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "assistanceDataAck"},
+ {ATF_NOFLAGS, 0, offsetof(struct RRLP_Component, choice.protocolError),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ProtocolError,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "protocolError"},
};
static asn_TYPE_tag2member_t asn_MAP_RRLP_Component_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msrPositionReq at 21 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* msrPositionRsp at 22 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* assistanceData at 23 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* assistanceDataAck at 24 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* protocolError at 25 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* msrPositionReq at 21 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* msrPositionRsp at 22 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* assistanceData at 23 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* assistanceDataAck at 24 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* protocolError at 25 */
};
static asn_CHOICE_specifics_t asn_SPC_RRLP_Component_specs_1 = {
- sizeof(struct RRLP_Component),
- offsetof(struct RRLP_Component, _asn_ctx),
- offsetof(struct RRLP_Component, present),
- sizeof(((struct RRLP_Component *)0)->present),
- asn_MAP_RRLP_Component_tag2el_1,
- 5, /* Count of tags in the map */
- 0,
- 5 /* Extensions start */
+ sizeof(struct RRLP_Component),
+ offsetof(struct RRLP_Component, _asn_ctx),
+ offsetof(struct RRLP_Component, present),
+ sizeof(((struct RRLP_Component *)0)->present),
+ asn_MAP_RRLP_Component_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ 5 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_RRLP_Component = {
- "RRLP-Component",
- "RRLP-Component",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_RRLP_COMPONENT_CONSTR_1,
- asn_MBR_RRLP_Component_1,
- 5, /* Elements count */
- &asn_SPC_RRLP_Component_specs_1 /* Additional specs */
+ "RRLP-Component",
+ "RRLP-Component",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_RRLP_COMPONENT_CONSTR_1,
+ asn_MBR_RRLP_Component_1,
+ 5, /* Elements count */
+ &asn_SPC_RRLP_Component_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RRLP-Component.h b/src/core/libs/supl/asn-rrlp/RRLP-Component.h
index bdeaa99aa..48d2e0f51 100644
--- a/src/core/libs/supl/asn-rrlp/RRLP-Component.h
+++ b/src/core/libs/supl/asn-rrlp/RRLP-Component.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Messages"
- * found in "../rrlp-messages.asn"
+ * found in "../rrlp-messages.asn"
*/
#ifndef _RRLP_Component_H_
#define _RRLP_Component_H_
-
#include
/* Including external dependencies */
@@ -47,9 +46,9 @@ extern "C"
NULL_t assistanceDataAck;
ProtocolError_t protocolError;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
} choice;
/* Context for parsing across buffer boundaries */
diff --git a/src/core/libs/supl/asn-rrlp/RefLocation.c b/src/core/libs/supl/asn-rrlp/RefLocation.c
index c08ab64fd..efc9c4ca0 100644
--- a/src/core/libs/supl/asn-rrlp/RefLocation.c
+++ b/src/core/libs/supl/asn-rrlp/RefLocation.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RefLocation.h"
static asn_TYPE_member_t asn_MBR_RefLocation_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct RefLocation, threeDLocation),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Ext_GeographicalInformation,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "threeDLocation"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct RefLocation, threeDLocation),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Ext_GeographicalInformation,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "threeDLocation"},
};
static ber_tlv_tag_t asn_DEF_RefLocation_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_RefLocation_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* threeDLocation at 650 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* threeDLocation at 650 */
};
static asn_SEQUENCE_specifics_t asn_SPC_RefLocation_specs_1 = {
- sizeof(struct RefLocation),
- offsetof(struct RefLocation, _asn_ctx),
- asn_MAP_RefLocation_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct RefLocation),
+ offsetof(struct RefLocation, _asn_ctx),
+ asn_MAP_RefLocation_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_RefLocation = {
- "RefLocation",
- "RefLocation",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RefLocation_tags_1,
- sizeof(asn_DEF_RefLocation_tags_1)
- /sizeof(asn_DEF_RefLocation_tags_1[0]), /* 1 */
- asn_DEF_RefLocation_tags_1, /* Same as above */
- sizeof(asn_DEF_RefLocation_tags_1)
- /sizeof(asn_DEF_RefLocation_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_RefLocation_1,
- 1, /* Elements count */
- &asn_SPC_RefLocation_specs_1 /* Additional specs */
+ "RefLocation",
+ "RefLocation",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RefLocation_tags_1,
+ sizeof(asn_DEF_RefLocation_tags_1) /
+ sizeof(asn_DEF_RefLocation_tags_1[0]), /* 1 */
+ asn_DEF_RefLocation_tags_1, /* Same as above */
+ sizeof(asn_DEF_RefLocation_tags_1) /
+ sizeof(asn_DEF_RefLocation_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_RefLocation_1,
+ 1, /* Elements count */
+ &asn_SPC_RefLocation_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RefLocation.h b/src/core/libs/supl/asn-rrlp/RefLocation.h
index d95632425..b584fae32 100644
--- a/src/core/libs/supl/asn-rrlp/RefLocation.h
+++ b/src/core/libs/supl/asn-rrlp/RefLocation.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RefLocation_H_
#define _RefLocation_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/RefQuality.c b/src/core/libs/supl/asn-rrlp/RefQuality.c
index 0b4fd5c23..e2e7c62b0 100644
--- a/src/core/libs/supl/asn-rrlp/RefQuality.c
+++ b/src/core/libs/supl/asn-rrlp/RefQuality.c
@@ -1,145 +1,157 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RefQuality.h"
-int
-RefQuality_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 31)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int RefQuality_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 31))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-RefQuality_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void RefQuality_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-RefQuality_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void RefQuality_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-RefQuality_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int RefQuality_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-RefQuality_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) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t RefQuality_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)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-RefQuality_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) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t RefQuality_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)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-RefQuality_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) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t RefQuality_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)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-RefQuality_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) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t RefQuality_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)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-RefQuality_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t RefQuality_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-RefQuality_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- RefQuality_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t RefQuality_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ RefQuality_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_REF_QUALITY_CONSTR_1 = {
- { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 31} /* (0..31) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_RefQuality_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_RefQuality = {
- "RefQuality",
- "RefQuality",
- RefQuality_free,
- RefQuality_print,
- RefQuality_constraint,
- RefQuality_decode_ber,
- RefQuality_encode_der,
- RefQuality_decode_xer,
- RefQuality_encode_xer,
- RefQuality_decode_uper,
- RefQuality_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RefQuality_tags_1,
- sizeof(asn_DEF_RefQuality_tags_1)
- /sizeof(asn_DEF_RefQuality_tags_1[0]), /* 1 */
- asn_DEF_RefQuality_tags_1, /* Same as above */
- sizeof(asn_DEF_RefQuality_tags_1)
- /sizeof(asn_DEF_RefQuality_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_REF_QUALITY_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "RefQuality",
+ "RefQuality",
+ RefQuality_free,
+ RefQuality_print,
+ RefQuality_constraint,
+ RefQuality_decode_ber,
+ RefQuality_encode_der,
+ RefQuality_decode_xer,
+ RefQuality_encode_xer,
+ RefQuality_decode_uper,
+ RefQuality_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RefQuality_tags_1,
+ sizeof(asn_DEF_RefQuality_tags_1) /
+ sizeof(asn_DEF_RefQuality_tags_1[0]), /* 1 */
+ asn_DEF_RefQuality_tags_1, /* Same as above */
+ sizeof(asn_DEF_RefQuality_tags_1) /
+ sizeof(asn_DEF_RefQuality_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_REF_QUALITY_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RefQuality.h b/src/core/libs/supl/asn-rrlp/RefQuality.h
index d8e0f451d..4e64e0a1d 100644
--- a/src/core/libs/supl/asn-rrlp/RefQuality.h
+++ b/src/core/libs/supl/asn-rrlp/RefQuality.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RefQuality_H_
#define _RefQuality_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceAssistData.c b/src/core/libs/supl/asn-rrlp/ReferenceAssistData.c
index 8f2ad8ff1..ec800df72 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceAssistData.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceAssistData.c
@@ -1,91 +1,77 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceAssistData.h"
static asn_TYPE_member_t asn_MBR_ReferenceAssistData_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceAssistData, bcchCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BCCHCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bcchCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceAssistData, bsic),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSIC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceAssistData, timeSlotScheme),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TimeSlotScheme,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeSlotScheme"
- },
- { ATF_POINTER, 1, offsetof(struct ReferenceAssistData, btsPosition),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BTSPosition,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "btsPosition"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceAssistData, bcchCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BCCHCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bcchCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceAssistData, bsic),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSIC, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsic"},
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceAssistData, timeSlotScheme),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_TimeSlotScheme,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeSlotScheme"},
+ {ATF_POINTER, 1, offsetof(struct ReferenceAssistData, btsPosition),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BTSPosition,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "btsPosition"},
};
-static int asn_MAP_ReferenceAssistData_oms_1[] = { 3 };
+static int asn_MAP_ReferenceAssistData_oms_1[] = {3};
static ber_tlv_tag_t asn_DEF_ReferenceAssistData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ReferenceAssistData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bcchCarrier at 157 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bsic at 158 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeSlotScheme at 159 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* btsPosition at 160 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bcchCarrier at 157 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* bsic at 158 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* timeSlotScheme at 159 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0} /* btsPosition at 160 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ReferenceAssistData_specs_1 = {
- sizeof(struct ReferenceAssistData),
- offsetof(struct ReferenceAssistData, _asn_ctx),
- asn_MAP_ReferenceAssistData_tag2el_1,
- 4, /* Count of tags in the map */
- asn_MAP_ReferenceAssistData_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct ReferenceAssistData),
+ offsetof(struct ReferenceAssistData, _asn_ctx),
+ asn_MAP_ReferenceAssistData_tag2el_1,
+ 4, /* Count of tags in the map */
+ asn_MAP_ReferenceAssistData_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ReferenceAssistData = {
- "ReferenceAssistData",
- "ReferenceAssistData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ReferenceAssistData_tags_1,
- sizeof(asn_DEF_ReferenceAssistData_tags_1)
- /sizeof(asn_DEF_ReferenceAssistData_tags_1[0]), /* 1 */
- asn_DEF_ReferenceAssistData_tags_1, /* Same as above */
- sizeof(asn_DEF_ReferenceAssistData_tags_1)
- /sizeof(asn_DEF_ReferenceAssistData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ReferenceAssistData_1,
- 4, /* Elements count */
- &asn_SPC_ReferenceAssistData_specs_1 /* Additional specs */
+ "ReferenceAssistData",
+ "ReferenceAssistData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ReferenceAssistData_tags_1,
+ sizeof(asn_DEF_ReferenceAssistData_tags_1) /
+ sizeof(asn_DEF_ReferenceAssistData_tags_1[0]), /* 1 */
+ asn_DEF_ReferenceAssistData_tags_1, /* Same as above */
+ sizeof(asn_DEF_ReferenceAssistData_tags_1) /
+ sizeof(asn_DEF_ReferenceAssistData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ReferenceAssistData_1,
+ 4, /* Elements count */
+ &asn_SPC_ReferenceAssistData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceAssistData.h b/src/core/libs/supl/asn-rrlp/ReferenceAssistData.h
index b1e6d924a..0ae8e55e1 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceAssistData.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceAssistData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceAssistData_H_
#define _ReferenceAssistData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceFrame.c b/src/core/libs/supl/asn-rrlp/ReferenceFrame.c
index 96d482637..c87e89dd0 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceFrame.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceFrame.c
@@ -1,131 +1,129 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceFrame.h"
-static int
-memb_referenceFN_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- 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__);
- return -1;
- }
+static int memb_referenceFN_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ 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__);
+ return -1;
+ }
}
-static int
-memb_referenceFNMSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_referenceFNMSB_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_REFERENCE_FN_CONSTR_2 = {
- { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 65535} /* (0..65535) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_REFERENCE_FNMSB_CONSTR_3 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_ReferenceFrame_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceFrame, referenceFN),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_referenceFN_constraint_1,
- &ASN_PER_MEMB_REFERENCE_FN_CONSTR_2,
- 0,
- "referenceFN"
- },
- { ATF_POINTER, 1, offsetof(struct ReferenceFrame, referenceFNMSB),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_referenceFNMSB_constraint_1,
- &ASN_PER_MEMB_REFERENCE_FNMSB_CONSTR_3,
- 0,
- "referenceFNMSB"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceFrame, referenceFN),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_referenceFN_constraint_1,
+ &ASN_PER_MEMB_REFERENCE_FN_CONSTR_2, 0, "referenceFN"},
+ {ATF_POINTER, 1, offsetof(struct ReferenceFrame, referenceFNMSB),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_referenceFNMSB_constraint_1,
+ &ASN_PER_MEMB_REFERENCE_FNMSB_CONSTR_3, 0, "referenceFNMSB"},
};
-static int asn_MAP_ReferenceFrame_oms_1[] = { 1 };
+static int asn_MAP_ReferenceFrame_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_ReferenceFrame_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ReferenceFrame_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceFN at 1438 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referenceFNMSB at 1440 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* referenceFN at 1438 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* referenceFNMSB at 1440 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ReferenceFrame_specs_1 = {
- sizeof(struct ReferenceFrame),
- offsetof(struct ReferenceFrame, _asn_ctx),
- asn_MAP_ReferenceFrame_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_ReferenceFrame_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct ReferenceFrame),
+ offsetof(struct ReferenceFrame, _asn_ctx),
+ asn_MAP_ReferenceFrame_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_ReferenceFrame_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ReferenceFrame = {
- "ReferenceFrame",
- "ReferenceFrame",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ReferenceFrame_tags_1,
- sizeof(asn_DEF_ReferenceFrame_tags_1)
- /sizeof(asn_DEF_ReferenceFrame_tags_1[0]), /* 1 */
- asn_DEF_ReferenceFrame_tags_1, /* Same as above */
- sizeof(asn_DEF_ReferenceFrame_tags_1)
- /sizeof(asn_DEF_ReferenceFrame_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ReferenceFrame_1,
- 2, /* Elements count */
- &asn_SPC_ReferenceFrame_specs_1 /* Additional specs */
+ "ReferenceFrame",
+ "ReferenceFrame",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ReferenceFrame_tags_1,
+ sizeof(asn_DEF_ReferenceFrame_tags_1) /
+ sizeof(asn_DEF_ReferenceFrame_tags_1[0]), /* 1 */
+ asn_DEF_ReferenceFrame_tags_1, /* Same as above */
+ sizeof(asn_DEF_ReferenceFrame_tags_1) /
+ sizeof(asn_DEF_ReferenceFrame_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ReferenceFrame_1,
+ 2, /* Elements count */
+ &asn_SPC_ReferenceFrame_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceFrame.h b/src/core/libs/supl/asn-rrlp/ReferenceFrame.h
index 6f34f557a..ae7fde19b 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceFrame.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceFrame.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceFrame_H_
#define _ReferenceFrame_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceIdentity.c b/src/core/libs/supl/asn-rrlp/ReferenceIdentity.c
index 06ca2f3ea..1f5c212ff 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceIdentity.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceIdentity.c
@@ -1,59 +1,56 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceIdentity.h"
static asn_TYPE_member_t asn_MBR_ReferenceIdentity_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentity, refBTSList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfReferenceIdentityType,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "refBTSList"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentity, refBTSList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfReferenceIdentityType,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "refBTSList"},
};
static ber_tlv_tag_t asn_DEF_ReferenceIdentity_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ReferenceIdentity_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* refBTSList at 289 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0} /* refBTSList at 289 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ReferenceIdentity_specs_1 = {
- sizeof(struct ReferenceIdentity),
- offsetof(struct ReferenceIdentity, _asn_ctx),
- asn_MAP_ReferenceIdentity_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct ReferenceIdentity),
+ offsetof(struct ReferenceIdentity, _asn_ctx),
+ asn_MAP_ReferenceIdentity_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ReferenceIdentity = {
- "ReferenceIdentity",
- "ReferenceIdentity",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ReferenceIdentity_tags_1,
- sizeof(asn_DEF_ReferenceIdentity_tags_1)
- /sizeof(asn_DEF_ReferenceIdentity_tags_1[0]), /* 1 */
- asn_DEF_ReferenceIdentity_tags_1, /* Same as above */
- sizeof(asn_DEF_ReferenceIdentity_tags_1)
- /sizeof(asn_DEF_ReferenceIdentity_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ReferenceIdentity_1,
- 1, /* Elements count */
- &asn_SPC_ReferenceIdentity_specs_1 /* Additional specs */
+ "ReferenceIdentity",
+ "ReferenceIdentity",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ReferenceIdentity_tags_1,
+ sizeof(asn_DEF_ReferenceIdentity_tags_1) /
+ sizeof(asn_DEF_ReferenceIdentity_tags_1[0]), /* 1 */
+ asn_DEF_ReferenceIdentity_tags_1, /* Same as above */
+ sizeof(asn_DEF_ReferenceIdentity_tags_1) /
+ sizeof(asn_DEF_ReferenceIdentity_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ReferenceIdentity_1,
+ 1, /* Elements count */
+ &asn_SPC_ReferenceIdentity_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceIdentity.h b/src/core/libs/supl/asn-rrlp/ReferenceIdentity.h
index 444681d8f..38498145e 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceIdentity.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceIdentity.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceIdentity_H_
#define _ReferenceIdentity_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.c b/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.c
index 95e47ecb4..c749f97d5 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.c
@@ -1,100 +1,87 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceIdentityType.h"
static asn_per_constraints_t ASN_PER_TYPE_REFERENCE_IDENTITY_TYPE_CONSTR_1 = {
- { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 4} /* (0..4) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_ReferenceIdentityType_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.bsicAndCarrier),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BSICAndCarrier,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "bsicAndCarrier"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.ci),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CellID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ci"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.requestIndex),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RequestIndex,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "requestIndex"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.systemInfoIndex),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SystemInfoIndex,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoIndex"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.ciAndLAC),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_CellIDAndLAC,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ciAndLAC"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct ReferenceIdentityType, choice.bsicAndCarrier),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_BSICAndCarrier,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "bsicAndCarrier"},
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.ci),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CellID, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ci"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct ReferenceIdentityType, choice.requestIndex),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RequestIndex,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "requestIndex"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct ReferenceIdentityType, choice.systemInfoIndex),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SystemInfoIndex,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoIndex"},
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceIdentityType, choice.ciAndLAC),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_CellIDAndLAC,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ciAndLAC"},
};
static asn_TYPE_tag2member_t asn_MAP_ReferenceIdentityType_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bsicAndCarrier at 294 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ci at 295 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* requestIndex at 296 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* systemInfoIndex at 297 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ciAndLAC at 301 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* bsicAndCarrier at 294 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ci at 295 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* requestIndex at 296 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* systemInfoIndex at 297 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0} /* ciAndLAC at 301 */
};
static asn_CHOICE_specifics_t asn_SPC_ReferenceIdentityType_specs_1 = {
- sizeof(struct ReferenceIdentityType),
- offsetof(struct ReferenceIdentityType, _asn_ctx),
- offsetof(struct ReferenceIdentityType, present),
- sizeof(((struct ReferenceIdentityType *)0)->present),
- asn_MAP_ReferenceIdentityType_tag2el_1,
- 5, /* Count of tags in the map */
- 0,
- -1 /* Extensions start */
+ sizeof(struct ReferenceIdentityType),
+ offsetof(struct ReferenceIdentityType, _asn_ctx),
+ offsetof(struct ReferenceIdentityType, present),
+ sizeof(((struct ReferenceIdentityType *)0)->present),
+ asn_MAP_ReferenceIdentityType_tag2el_1,
+ 5, /* Count of tags in the map */
+ 0,
+ -1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_ReferenceIdentityType = {
- "ReferenceIdentityType",
- "ReferenceIdentityType",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_REFERENCE_IDENTITY_TYPE_CONSTR_1,
- asn_MBR_ReferenceIdentityType_1,
- 5, /* Elements count */
- &asn_SPC_ReferenceIdentityType_specs_1 /* Additional specs */
+ "ReferenceIdentityType",
+ "ReferenceIdentityType",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_REFERENCE_IDENTITY_TYPE_CONSTR_1,
+ asn_MBR_ReferenceIdentityType_1,
+ 5, /* Elements count */
+ &asn_SPC_ReferenceIdentityType_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.h b/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.h
index 6b5b8afc0..2fd9d6ae1 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceIdentityType.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceIdentityType_H_
#define _ReferenceIdentityType_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceRelation.c b/src/core/libs/supl/asn-rrlp/ReferenceRelation.c
index c4497a860..08cca6413 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceRelation.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceRelation.c
@@ -1,147 +1,167 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceRelation.h"
-int
-ReferenceRelation_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int ReferenceRelation_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-ReferenceRelation_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void ReferenceRelation_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-ReferenceRelation_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void ReferenceRelation_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-ReferenceRelation_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int ReferenceRelation_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-ReferenceRelation_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) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t ReferenceRelation_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)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-ReferenceRelation_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) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t ReferenceRelation_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)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-ReferenceRelation_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) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t ReferenceRelation_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)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-ReferenceRelation_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) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t ReferenceRelation_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)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-ReferenceRelation_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t ReferenceRelation_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-ReferenceRelation_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ReferenceRelation_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t ReferenceRelation_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ ReferenceRelation_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_REFERENCE_RELATION_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 2} /* (0..2) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_ReferenceRelation_value2enum_1[] = {
- { 0, 17, "secondBTSThirdSet" },
- { 1, 18, "secondBTSSecondSet" },
- { 2, 16, "firstBTSFirstSet" }
-};
+ {0, 17, "secondBTSThirdSet"},
+ {1, 18, "secondBTSSecondSet"},
+ {2, 16, "firstBTSFirstSet"}};
static unsigned int asn_MAP_ReferenceRelation_enum2value_1[] = {
- 2, /* firstBTSFirstSet(2) */
- 1, /* secondBTSSecondSet(1) */
- 0 /* secondBTSThirdSet(0) */
+ 2, /* firstBTSFirstSet(2) */
+ 1, /* secondBTSSecondSet(1) */
+ 0 /* secondBTSThirdSet(0) */
};
static asn_INTEGER_specifics_t asn_SPC_ReferenceRelation_specs_1 = {
- asn_MAP_ReferenceRelation_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_ReferenceRelation_enum2value_1, /* N => "tag"; sorted by N */
- 3, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_ReferenceRelation_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_ReferenceRelation_enum2value_1, /* N => "tag"; sorted by N */
+ 3, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_ReferenceRelation_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_ReferenceRelation = {
- "ReferenceRelation",
- "ReferenceRelation",
- ReferenceRelation_free,
- ReferenceRelation_print,
- ReferenceRelation_constraint,
- ReferenceRelation_decode_ber,
- ReferenceRelation_encode_der,
- ReferenceRelation_decode_xer,
- ReferenceRelation_encode_xer,
- ReferenceRelation_decode_uper,
- ReferenceRelation_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ReferenceRelation_tags_1,
- sizeof(asn_DEF_ReferenceRelation_tags_1)
- /sizeof(asn_DEF_ReferenceRelation_tags_1[0]), /* 1 */
- asn_DEF_ReferenceRelation_tags_1, /* Same as above */
- sizeof(asn_DEF_ReferenceRelation_tags_1)
- /sizeof(asn_DEF_ReferenceRelation_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_REFERENCE_RELATION_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_ReferenceRelation_specs_1 /* Additional specs */
+ "ReferenceRelation",
+ "ReferenceRelation",
+ ReferenceRelation_free,
+ ReferenceRelation_print,
+ ReferenceRelation_constraint,
+ ReferenceRelation_decode_ber,
+ ReferenceRelation_encode_der,
+ ReferenceRelation_decode_xer,
+ ReferenceRelation_encode_xer,
+ ReferenceRelation_decode_uper,
+ ReferenceRelation_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ReferenceRelation_tags_1,
+ sizeof(asn_DEF_ReferenceRelation_tags_1) /
+ sizeof(asn_DEF_ReferenceRelation_tags_1[0]), /* 1 */
+ asn_DEF_ReferenceRelation_tags_1, /* Same as above */
+ sizeof(asn_DEF_ReferenceRelation_tags_1) /
+ sizeof(asn_DEF_ReferenceRelation_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_REFERENCE_RELATION_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_ReferenceRelation_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceRelation.h b/src/core/libs/supl/asn-rrlp/ReferenceRelation.h
index 544d32483..0154e0397 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceRelation.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceRelation.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceRelation_H_
#define _ReferenceRelation_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceTime.c b/src/core/libs/supl/asn-rrlp/ReferenceTime.c
index 6e96a8119..f783b26a8 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceTime.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceTime.c
@@ -1,81 +1,69 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceTime.h"
static asn_TYPE_member_t asn_MBR_ReferenceTime_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceTime, gpsTime),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTime"
- },
- { ATF_POINTER, 2, offsetof(struct ReferenceTime, gsmTime),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GSMTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gsmTime"
- },
- { ATF_POINTER, 1, offsetof(struct ReferenceTime, gpsTowAssist),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSTOWAssist,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTowAssist"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceTime, gpsTime),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSTime, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTime"},
+ {ATF_POINTER, 2, offsetof(struct ReferenceTime, gsmTime),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GSMTime, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gsmTime"},
+ {ATF_POINTER, 1, offsetof(struct ReferenceTime, gpsTowAssist),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSTOWAssist,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTowAssist"},
};
-static int asn_MAP_ReferenceTime_oms_1[] = { 1, 2 };
+static int asn_MAP_ReferenceTime_oms_1[] = {1, 2};
static ber_tlv_tag_t asn_DEF_ReferenceTime_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ReferenceTime_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsTime at 586 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gsmTime at 587 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gpsTowAssist at 588 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* gpsTime at 586 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* gsmTime at 587 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* gpsTowAssist at 588 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ReferenceTime_specs_1 = {
- sizeof(struct ReferenceTime),
- offsetof(struct ReferenceTime, _asn_ctx),
- asn_MAP_ReferenceTime_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_ReferenceTime_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct ReferenceTime),
+ offsetof(struct ReferenceTime, _asn_ctx),
+ asn_MAP_ReferenceTime_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_ReferenceTime_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ReferenceTime = {
- "ReferenceTime",
- "ReferenceTime",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ReferenceTime_tags_1,
- sizeof(asn_DEF_ReferenceTime_tags_1)
- /sizeof(asn_DEF_ReferenceTime_tags_1[0]), /* 1 */
- asn_DEF_ReferenceTime_tags_1, /* Same as above */
- sizeof(asn_DEF_ReferenceTime_tags_1)
- /sizeof(asn_DEF_ReferenceTime_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ReferenceTime_1,
- 3, /* Elements count */
- &asn_SPC_ReferenceTime_specs_1 /* Additional specs */
+ "ReferenceTime",
+ "ReferenceTime",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ReferenceTime_tags_1,
+ sizeof(asn_DEF_ReferenceTime_tags_1) /
+ sizeof(asn_DEF_ReferenceTime_tags_1[0]), /* 1 */
+ asn_DEF_ReferenceTime_tags_1, /* Same as above */
+ sizeof(asn_DEF_ReferenceTime_tags_1) /
+ sizeof(asn_DEF_ReferenceTime_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ReferenceTime_1,
+ 3, /* Elements count */
+ &asn_SPC_ReferenceTime_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceTime.h b/src/core/libs/supl/asn-rrlp/ReferenceTime.h
index cf1ade693..bda66b758 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceTime.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceTime.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceTime_H_
#define _ReferenceTime_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceWGS84.c b/src/core/libs/supl/asn-rrlp/ReferenceWGS84.c
index c50931e21..aaea13d45 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceWGS84.c
+++ b/src/core/libs/supl/asn-rrlp/ReferenceWGS84.c
@@ -1,81 +1,71 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "ReferenceWGS84.h"
static asn_TYPE_member_t asn_MBR_ReferenceWGS84_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceWGS84, relativeNorth),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RelDistance,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "relativeNorth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct ReferenceWGS84, relativeEast),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RelDistance,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "relativeEast"
- },
- { ATF_POINTER, 1, offsetof(struct ReferenceWGS84, relativeAlt),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RelativeAlt,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "relativeAlt"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceWGS84, relativeNorth),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RelDistance,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "relativeNorth"},
+ {ATF_NOFLAGS, 0, offsetof(struct ReferenceWGS84, relativeEast),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RelDistance,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "relativeEast"},
+ {ATF_POINTER, 1, offsetof(struct ReferenceWGS84, relativeAlt),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RelativeAlt,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "relativeAlt"},
};
-static int asn_MAP_ReferenceWGS84_oms_1[] = { 2 };
+static int asn_MAP_ReferenceWGS84_oms_1[] = {2};
static ber_tlv_tag_t asn_DEF_ReferenceWGS84_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_ReferenceWGS84_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* relativeNorth at 247 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relativeEast at 248 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* relativeAlt at 250 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* relativeNorth at 247 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* relativeEast at 248 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* relativeAlt at 250 */
};
static asn_SEQUENCE_specifics_t asn_SPC_ReferenceWGS84_specs_1 = {
- sizeof(struct ReferenceWGS84),
- offsetof(struct ReferenceWGS84, _asn_ctx),
- asn_MAP_ReferenceWGS84_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_ReferenceWGS84_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct ReferenceWGS84),
+ offsetof(struct ReferenceWGS84, _asn_ctx),
+ asn_MAP_ReferenceWGS84_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_ReferenceWGS84_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_ReferenceWGS84 = {
- "ReferenceWGS84",
- "ReferenceWGS84",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ReferenceWGS84_tags_1,
- sizeof(asn_DEF_ReferenceWGS84_tags_1)
- /sizeof(asn_DEF_ReferenceWGS84_tags_1[0]), /* 1 */
- asn_DEF_ReferenceWGS84_tags_1, /* Same as above */
- sizeof(asn_DEF_ReferenceWGS84_tags_1)
- /sizeof(asn_DEF_ReferenceWGS84_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_ReferenceWGS84_1,
- 3, /* Elements count */
- &asn_SPC_ReferenceWGS84_specs_1 /* Additional specs */
+ "ReferenceWGS84",
+ "ReferenceWGS84",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ReferenceWGS84_tags_1,
+ sizeof(asn_DEF_ReferenceWGS84_tags_1) /
+ sizeof(asn_DEF_ReferenceWGS84_tags_1[0]), /* 1 */
+ asn_DEF_ReferenceWGS84_tags_1, /* Same as above */
+ sizeof(asn_DEF_ReferenceWGS84_tags_1) /
+ sizeof(asn_DEF_ReferenceWGS84_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_ReferenceWGS84_1,
+ 3, /* Elements count */
+ &asn_SPC_ReferenceWGS84_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/ReferenceWGS84.h b/src/core/libs/supl/asn-rrlp/ReferenceWGS84.h
index 544127c70..61a95f5ba 100644
--- a/src/core/libs/supl/asn-rrlp/ReferenceWGS84.h
+++ b/src/core/libs/supl/asn-rrlp/ReferenceWGS84.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _ReferenceWGS84_H_
#define _ReferenceWGS84_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.c b/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.c
index 539a2b5de..89dcd0796 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.c
@@ -1,81 +1,79 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel-5-MsrPosition-Rsp-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel_5_MsrPosition_Rsp_Extension_1[] = {
- { ATF_POINTER, 3, offsetof(struct Rel_5_MsrPosition_Rsp_Extension, extended_reference),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Extended_reference,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extended-reference"
- },
- { ATF_POINTER, 2, offsetof(struct Rel_5_MsrPosition_Rsp_Extension, otd_MeasureInfo_5_Ext),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_MeasureInfo_5_Ext,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otd-MeasureInfo-5-Ext"
- },
- { ATF_POINTER, 1, offsetof(struct Rel_5_MsrPosition_Rsp_Extension, ulPseudoSegInd),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_UlPseudoSegInd,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ulPseudoSegInd"
- },
+ {ATF_POINTER, 3,
+ offsetof(struct Rel_5_MsrPosition_Rsp_Extension, extended_reference),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Extended_reference,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extended-reference"},
+ {ATF_POINTER, 2,
+ offsetof(struct Rel_5_MsrPosition_Rsp_Extension, otd_MeasureInfo_5_Ext),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_MeasureInfo_5_Ext,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otd-MeasureInfo-5-Ext"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel_5_MsrPosition_Rsp_Extension, ulPseudoSegInd),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_UlPseudoSegInd,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ulPseudoSegInd"},
};
-static int asn_MAP_Rel_5_MsrPosition_Rsp_Extension_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_Rel_5_MsrPosition_Rsp_Extension_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t
+ asn_MAP_Rel_5_MsrPosition_Rsp_Extension_tag2el_1[] = {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* extended-reference at 985 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* otd-MeasureInfo-5-Ext at 991 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* ulPseudoSegInd at 992 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel_5_MsrPosition_Rsp_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* extended-reference at 985 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* otd-MeasureInfo-5-Ext at 991 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ulPseudoSegInd at 992 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel_5_MsrPosition_Rsp_Extension_specs_1 = {
- sizeof(struct Rel_5_MsrPosition_Rsp_Extension),
- offsetof(struct Rel_5_MsrPosition_Rsp_Extension, _asn_ctx),
- asn_MAP_Rel_5_MsrPosition_Rsp_Extension_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_Rel_5_MsrPosition_Rsp_Extension_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- 2, /* Start extensions */
- 4 /* Stop extensions */
+static asn_SEQUENCE_specifics_t
+ asn_SPC_Rel_5_MsrPosition_Rsp_Extension_specs_1 = {
+ sizeof(struct Rel_5_MsrPosition_Rsp_Extension),
+ offsetof(struct Rel_5_MsrPosition_Rsp_Extension, _asn_ctx),
+ asn_MAP_Rel_5_MsrPosition_Rsp_Extension_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_Rel_5_MsrPosition_Rsp_Extension_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ 2, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel_5_MsrPosition_Rsp_Extension = {
- "Rel-5-MsrPosition-Rsp-Extension",
- "Rel-5-MsrPosition-Rsp-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1,
- sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1)
- /sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1)
- /sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel_5_MsrPosition_Rsp_Extension_1,
- 3, /* Elements count */
- &asn_SPC_Rel_5_MsrPosition_Rsp_Extension_specs_1 /* Additional specs */
+ "Rel-5-MsrPosition-Rsp-Extension",
+ "Rel-5-MsrPosition-Rsp-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1,
+ sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_5_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel_5_MsrPosition_Rsp_Extension_1,
+ 3, /* Elements count */
+ &asn_SPC_Rel_5_MsrPosition_Rsp_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.h b/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.h
index 3a0f2ef4e..73a16d74a 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel-5-MsrPosition-Rsp-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel_5_MsrPosition_Rsp_Extension_H_
#define _Rel_5_MsrPosition_Rsp_Extension_H_
-
#include
/* Including external dependencies */
@@ -30,9 +29,9 @@ extern "C"
struct SeqOfOTD_MsrElementRest *otd_MeasureInfo_5_Ext /* OPTIONAL */;
UlPseudoSegInd_t *ulPseudoSegInd /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.c b/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.c
index 9c492e83f..e76a67c0c 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.c
@@ -1,61 +1,61 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel-5-ProtocolError-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel_5_ProtocolError_Extension_1[] = {
- { ATF_POINTER, 1, offsetof(struct Rel_5_ProtocolError_Extension, extended_reference),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Extended_reference,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extended-reference"
- },
+ {ATF_POINTER, 1,
+ offsetof(struct Rel_5_ProtocolError_Extension, extended_reference),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Extended_reference,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extended-reference"},
};
-static int asn_MAP_Rel_5_ProtocolError_Extension_oms_1[] = { 0 };
+static int asn_MAP_Rel_5_ProtocolError_Extension_oms_1[] = {0};
static ber_tlv_tag_t asn_DEF_Rel_5_ProtocolError_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_Rel_5_ProtocolError_Extension_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* extended-reference at 1030 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel_5_ProtocolError_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* extended-reference at 1030 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel_5_ProtocolError_Extension_specs_1 = {
- sizeof(struct Rel_5_ProtocolError_Extension),
- offsetof(struct Rel_5_ProtocolError_Extension, _asn_ctx),
- asn_MAP_Rel_5_ProtocolError_Extension_tag2el_1,
- 1, /* Count of tags in the map */
- asn_MAP_Rel_5_ProtocolError_Extension_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- 0, /* Start extensions */
- 2 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_Rel_5_ProtocolError_Extension_specs_1 =
+ {
+ sizeof(struct Rel_5_ProtocolError_Extension),
+ offsetof(struct Rel_5_ProtocolError_Extension, _asn_ctx),
+ asn_MAP_Rel_5_ProtocolError_Extension_tag2el_1,
+ 1, /* Count of tags in the map */
+ asn_MAP_Rel_5_ProtocolError_Extension_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ 0, /* Start extensions */
+ 2 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel_5_ProtocolError_Extension = {
- "Rel-5-ProtocolError-Extension",
- "Rel-5-ProtocolError-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel_5_ProtocolError_Extension_tags_1,
- sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1)
- /sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel_5_ProtocolError_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1)
- /sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel_5_ProtocolError_Extension_1,
- 1, /* Elements count */
- &asn_SPC_Rel_5_ProtocolError_Extension_specs_1 /* Additional specs */
+ "Rel-5-ProtocolError-Extension",
+ "Rel-5-ProtocolError-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel_5_ProtocolError_Extension_tags_1,
+ sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel_5_ProtocolError_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_5_ProtocolError_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel_5_ProtocolError_Extension_1,
+ 1, /* Elements count */
+ &asn_SPC_Rel_5_ProtocolError_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.h b/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.h
index 00762b59c..1a5ad8771 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel-5-ProtocolError-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel_5_ProtocolError_Extension_H_
#define _Rel_5_ProtocolError_Extension_H_
-
#include
/* Including external dependencies */
@@ -26,9 +25,9 @@ extern "C"
{
struct Extended_reference *extended_reference /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.c b/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.c
index 65917fd31..c4f31654c 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.c
@@ -1,81 +1,78 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel-7-MsrPosition-Rsp-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel_7_MsrPosition_Rsp_Extension_1[] = {
- { ATF_POINTER, 3, offsetof(struct Rel_7_MsrPosition_Rsp_Extension, velEstimate),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_VelocityEstimate,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "velEstimate"
- },
- { ATF_POINTER, 2, offsetof(struct Rel_7_MsrPosition_Rsp_Extension, ganssLocationInfo),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSLocationInfo,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssLocationInfo"
- },
- { ATF_POINTER, 1, offsetof(struct Rel_7_MsrPosition_Rsp_Extension, ganssMeasureInfo),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSMeasureInfo,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssMeasureInfo"
- },
+ {ATF_POINTER, 3,
+ offsetof(struct Rel_7_MsrPosition_Rsp_Extension, velEstimate),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_VelocityEstimate,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "velEstimate"},
+ {ATF_POINTER, 2,
+ offsetof(struct Rel_7_MsrPosition_Rsp_Extension, ganssLocationInfo),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSLocationInfo,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssLocationInfo"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel_7_MsrPosition_Rsp_Extension, ganssMeasureInfo),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSMeasureInfo,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssMeasureInfo"},
};
-static int asn_MAP_Rel_7_MsrPosition_Rsp_Extension_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_Rel_7_MsrPosition_Rsp_Extension_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t
+ asn_MAP_Rel_7_MsrPosition_Rsp_Extension_tag2el_1[] = {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* velEstimate at 1397 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* ganssLocationInfo at 1402 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* ganssMeasureInfo at 1403 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel_7_MsrPosition_Rsp_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* velEstimate at 1397 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssLocationInfo at 1402 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssMeasureInfo at 1403 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel_7_MsrPosition_Rsp_Extension_specs_1 = {
- sizeof(struct Rel_7_MsrPosition_Rsp_Extension),
- offsetof(struct Rel_7_MsrPosition_Rsp_Extension, _asn_ctx),
- asn_MAP_Rel_7_MsrPosition_Rsp_Extension_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_Rel_7_MsrPosition_Rsp_Extension_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- 2, /* Start extensions */
- 4 /* Stop extensions */
+static asn_SEQUENCE_specifics_t
+ asn_SPC_Rel_7_MsrPosition_Rsp_Extension_specs_1 = {
+ sizeof(struct Rel_7_MsrPosition_Rsp_Extension),
+ offsetof(struct Rel_7_MsrPosition_Rsp_Extension, _asn_ctx),
+ asn_MAP_Rel_7_MsrPosition_Rsp_Extension_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_Rel_7_MsrPosition_Rsp_Extension_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ 2, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel_7_MsrPosition_Rsp_Extension = {
- "Rel-7-MsrPosition-Rsp-Extension",
- "Rel-7-MsrPosition-Rsp-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1,
- sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1)
- /sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1)
- /sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel_7_MsrPosition_Rsp_Extension_1,
- 3, /* Elements count */
- &asn_SPC_Rel_7_MsrPosition_Rsp_Extension_specs_1 /* Additional specs */
+ "Rel-7-MsrPosition-Rsp-Extension",
+ "Rel-7-MsrPosition-Rsp-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1,
+ sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_7_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel_7_MsrPosition_Rsp_Extension_1,
+ 3, /* Elements count */
+ &asn_SPC_Rel_7_MsrPosition_Rsp_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.h b/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.h
index d030be0bf..eb7cf0fcd 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel-7-MsrPosition-Rsp-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel_7_MsrPosition_Rsp_Extension_H_
#define _Rel_7_MsrPosition_Rsp_Extension_H_
-
#include
/* Including external dependencies */
@@ -30,9 +29,9 @@ extern "C"
struct GANSSLocationInfo *ganssLocationInfo /* OPTIONAL */;
struct GANSSMeasureInfo *ganssMeasureInfo /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.c b/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.c
index e0b00f49d..fac4e015c 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.c
@@ -1,126 +1,124 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel-98-MsrPosition-Rsp-Extension.h"
static asn_TYPE_member_t asn_MBR_rel_98_Ext_MeasureInfo_2[] = {
- { ATF_POINTER, 1, offsetof(struct rel_98_Ext_MeasureInfo, otd_MeasureInfo_R98_Ext),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_OTD_MeasureInfo_R98_Ext,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "otd-MeasureInfo-R98-Ext"
- },
+ {ATF_POINTER, 1,
+ offsetof(struct rel_98_Ext_MeasureInfo, otd_MeasureInfo_R98_Ext),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_OTD_MeasureInfo_R98_Ext,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "otd-MeasureInfo-R98-Ext"},
};
-static int asn_MAP_rel_98_Ext_MeasureInfo_oms_2[] = { 0 };
+static int asn_MAP_rel_98_Ext_MeasureInfo_oms_2[] = {0};
static ber_tlv_tag_t asn_DEF_rel_98_Ext_MeasureInfo_tags_2[] = {
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_rel_98_Ext_MeasureInfo_tag2el_2[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* otd-MeasureInfo-R98-Ext at 960 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* otd-MeasureInfo-R98-Ext at 960 */
};
static asn_SEQUENCE_specifics_t asn_SPC_rel_98_Ext_MeasureInfo_specs_2 = {
- sizeof(struct rel_98_Ext_MeasureInfo),
- offsetof(struct rel_98_Ext_MeasureInfo, _asn_ctx),
- asn_MAP_rel_98_Ext_MeasureInfo_tag2el_2,
- 1, /* Count of tags in the map */
- asn_MAP_rel_98_Ext_MeasureInfo_oms_2, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct rel_98_Ext_MeasureInfo),
+ offsetof(struct rel_98_Ext_MeasureInfo, _asn_ctx),
+ asn_MAP_rel_98_Ext_MeasureInfo_tag2el_2,
+ 1, /* Count of tags in the map */
+ asn_MAP_rel_98_Ext_MeasureInfo_oms_2, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_rel_98_Ext_MeasureInfo_2 = {
- "rel-98-Ext-MeasureInfo",
- "rel-98-Ext-MeasureInfo",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_rel_98_Ext_MeasureInfo_tags_2,
- sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2)
- /sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2[0]) - 1, /* 1 */
- asn_DEF_rel_98_Ext_MeasureInfo_tags_2, /* Same as above */
- sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2)
- /sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2[0]), /* 2 */
- 0, /* No PER visible constraints */
- asn_MBR_rel_98_Ext_MeasureInfo_2,
- 1, /* Elements count */
- &asn_SPC_rel_98_Ext_MeasureInfo_specs_2 /* Additional specs */
+ asn_TYPE_descriptor_t asn_DEF_rel_98_Ext_MeasureInfo_2 = {
+ "rel-98-Ext-MeasureInfo",
+ "rel-98-Ext-MeasureInfo",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_rel_98_Ext_MeasureInfo_tags_2,
+ sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2) /
+ sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2[0]) -
+ 1, /* 1 */
+ asn_DEF_rel_98_Ext_MeasureInfo_tags_2, /* Same as above */
+ sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2) /
+ sizeof(asn_DEF_rel_98_Ext_MeasureInfo_tags_2[0]), /* 2 */
+ 0, /* No PER visible constraints */
+ asn_MBR_rel_98_Ext_MeasureInfo_2,
+ 1, /* Elements count */
+ &asn_SPC_rel_98_Ext_MeasureInfo_specs_2 /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Rel_98_MsrPosition_Rsp_Extension_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct Rel_98_MsrPosition_Rsp_Extension, rel_98_Ext_MeasureInfo),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- 0,
- &asn_DEF_rel_98_Ext_MeasureInfo_2,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel-98-Ext-MeasureInfo"
- },
- { ATF_POINTER, 1, offsetof(struct Rel_98_MsrPosition_Rsp_Extension, timeAssistanceMeasurements),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSTimeAssistanceMeasurements,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "timeAssistanceMeasurements"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct Rel_98_MsrPosition_Rsp_Extension, rel_98_Ext_MeasureInfo),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_rel_98_Ext_MeasureInfo_2,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel-98-Ext-MeasureInfo"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel_98_MsrPosition_Rsp_Extension,
+ timeAssistanceMeasurements),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSTimeAssistanceMeasurements,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "timeAssistanceMeasurements"},
};
-static int asn_MAP_Rel_98_MsrPosition_Rsp_Extension_oms_1[] = { 1 };
+static int asn_MAP_Rel_98_MsrPosition_Rsp_Extension_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t
+ asn_MAP_Rel_98_MsrPosition_Rsp_Extension_tag2el_1[] = {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* rel-98-Ext-MeasureInfo at 960 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* timeAssistanceMeasurements at 963 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel_98_MsrPosition_Rsp_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rel-98-Ext-MeasureInfo at 960 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* timeAssistanceMeasurements at 963 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel_98_MsrPosition_Rsp_Extension_specs_1 = {
- sizeof(struct Rel_98_MsrPosition_Rsp_Extension),
- offsetof(struct Rel_98_MsrPosition_Rsp_Extension, _asn_ctx),
- asn_MAP_Rel_98_MsrPosition_Rsp_Extension_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_Rel_98_MsrPosition_Rsp_Extension_oms_1, /* Optional members */
- 0, 1, /* Root/Additions */
- 0, /* Start extensions */
- 3 /* Stop extensions */
+static asn_SEQUENCE_specifics_t
+ asn_SPC_Rel_98_MsrPosition_Rsp_Extension_specs_1 = {
+ sizeof(struct Rel_98_MsrPosition_Rsp_Extension),
+ offsetof(struct Rel_98_MsrPosition_Rsp_Extension, _asn_ctx),
+ asn_MAP_Rel_98_MsrPosition_Rsp_Extension_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_Rel_98_MsrPosition_Rsp_Extension_oms_1, /* Optional members */
+ 0,
+ 1, /* Root/Additions */
+ 0, /* Start extensions */
+ 3 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel_98_MsrPosition_Rsp_Extension = {
- "Rel-98-MsrPosition-Rsp-Extension",
- "Rel-98-MsrPosition-Rsp-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1,
- sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1)
- /sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1)
- /sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel_98_MsrPosition_Rsp_Extension_1,
- 2, /* Elements count */
- &asn_SPC_Rel_98_MsrPosition_Rsp_Extension_specs_1 /* Additional specs */
+ "Rel-98-MsrPosition-Rsp-Extension",
+ "Rel-98-MsrPosition-Rsp-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1,
+ sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1) /
+ sizeof(asn_DEF_Rel_98_MsrPosition_Rsp_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel_98_MsrPosition_Rsp_Extension_1,
+ 2, /* Elements count */
+ &asn_SPC_Rel_98_MsrPosition_Rsp_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.h b/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.h
index 0d3425c17..00757641a 100644
--- a/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel-98-MsrPosition-Rsp-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel_98_MsrPosition_Rsp_Extension_H_
#define _Rel_98_MsrPosition_Rsp_Extension_H_
-
#include
/* Including external dependencies */
@@ -27,16 +26,18 @@ extern "C"
{
struct rel_98_Ext_MeasureInfo
{
- struct OTD_MeasureInfo_R98_Ext *otd_MeasureInfo_R98_Ext /* OPTIONAL */;
+ struct OTD_MeasureInfo_R98_Ext
+ *otd_MeasureInfo_R98_Ext /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} rel_98_Ext_MeasureInfo;
/*
- * This type is extensible,
- * possible extensions are below.
- */
- struct GPSTimeAssistanceMeasurements *timeAssistanceMeasurements /* OPTIONAL */;
+ * This type is extensible,
+ * possible extensions are below.
+ */
+ struct GPSTimeAssistanceMeasurements
+ *timeAssistanceMeasurements /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.c b/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.c
index d41d4045d..31398433d 100644
--- a/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.c
@@ -1,59 +1,60 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel5-AssistanceData-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel5_AssistanceData_Extension_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct Rel5_AssistanceData_Extension, extended_reference),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Extended_reference,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extended-reference"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct Rel5_AssistanceData_Extension, extended_reference),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Extended_reference,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extended-reference"},
};
static ber_tlv_tag_t asn_DEF_Rel5_AssistanceData_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_Rel5_AssistanceData_Extension_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* extended-reference at 1023 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel5_AssistanceData_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* extended-reference at 1023 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel5_AssistanceData_Extension_specs_1 = {
- sizeof(struct Rel5_AssistanceData_Extension),
- offsetof(struct Rel5_AssistanceData_Extension, _asn_ctx),
- asn_MAP_Rel5_AssistanceData_Extension_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- 0, /* Start extensions */
- 2 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_Rel5_AssistanceData_Extension_specs_1 =
+ {
+ sizeof(struct Rel5_AssistanceData_Extension),
+ offsetof(struct Rel5_AssistanceData_Extension, _asn_ctx),
+ asn_MAP_Rel5_AssistanceData_Extension_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ 0, /* Start extensions */
+ 2 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel5_AssistanceData_Extension = {
- "Rel5-AssistanceData-Extension",
- "Rel5-AssistanceData-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel5_AssistanceData_Extension_tags_1,
- sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1)
- /sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel5_AssistanceData_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1)
- /sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel5_AssistanceData_Extension_1,
- 1, /* Elements count */
- &asn_SPC_Rel5_AssistanceData_Extension_specs_1 /* Additional specs */
+ "Rel5-AssistanceData-Extension",
+ "Rel5-AssistanceData-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel5_AssistanceData_Extension_tags_1,
+ sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1) /
+ sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel5_AssistanceData_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1) /
+ sizeof(asn_DEF_Rel5_AssistanceData_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel5_AssistanceData_Extension_1,
+ 1, /* Elements count */
+ &asn_SPC_Rel5_AssistanceData_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.h b/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.h
index 77ad994dd..9cbad4114 100644
--- a/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel5-AssistanceData-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel5_AssistanceData_Extension_H_
#define _Rel5_AssistanceData_Extension_H_
-
#include
/* Including external dependencies */
@@ -24,9 +23,9 @@ extern "C"
{
Extended_reference_t extended_reference;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.c b/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.c
index 33d6d3868..0f67e8000 100644
--- a/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.c
@@ -1,59 +1,60 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel5-MsrPosition-Req-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel5_MsrPosition_Req_Extension_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct Rel5_MsrPosition_Req_Extension, extended_reference),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Extended_reference,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "extended-reference"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct Rel5_MsrPosition_Req_Extension, extended_reference),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Extended_reference,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "extended-reference"},
};
static ber_tlv_tag_t asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_Rel5_MsrPosition_Req_Extension_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* extended-reference at 1017 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel5_MsrPosition_Req_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* extended-reference at 1017 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel5_MsrPosition_Req_Extension_specs_1 = {
- sizeof(struct Rel5_MsrPosition_Req_Extension),
- offsetof(struct Rel5_MsrPosition_Req_Extension, _asn_ctx),
- asn_MAP_Rel5_MsrPosition_Req_Extension_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- 0, /* Start extensions */
- 2 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_Rel5_MsrPosition_Req_Extension_specs_1 =
+ {
+ sizeof(struct Rel5_MsrPosition_Req_Extension),
+ offsetof(struct Rel5_MsrPosition_Req_Extension, _asn_ctx),
+ asn_MAP_Rel5_MsrPosition_Req_Extension_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ 0, /* Start extensions */
+ 2 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel5_MsrPosition_Req_Extension = {
- "Rel5-MsrPosition-Req-Extension",
- "Rel5-MsrPosition-Req-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1,
- sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1)
- /sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1)
- /sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel5_MsrPosition_Req_Extension_1,
- 1, /* Elements count */
- &asn_SPC_Rel5_MsrPosition_Req_Extension_specs_1 /* Additional specs */
+ "Rel5-MsrPosition-Req-Extension",
+ "Rel5-MsrPosition-Req-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1,
+ sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1) /
+ sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1) /
+ sizeof(asn_DEF_Rel5_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel5_MsrPosition_Req_Extension_1,
+ 1, /* Elements count */
+ &asn_SPC_Rel5_MsrPosition_Req_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.h b/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.h
index d566be25f..ae30f51eb 100644
--- a/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel5-MsrPosition-Req-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel5_MsrPosition_Req_Extension_H_
#define _Rel5_MsrPosition_Req_Extension_H_
-
#include
/* Including external dependencies */
@@ -24,9 +23,9 @@ extern "C"
{
Extended_reference_t extended_reference;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.c b/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.c
index 54a513ebc..9a1ad5c2c 100644
--- a/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.c
@@ -1,81 +1,79 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel7-AssistanceData-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel7_AssistanceData_Extension_1[] = {
- { ATF_POINTER, 3, offsetof(struct Rel7_AssistanceData_Extension, ganss_AssistData),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSS_AssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganss-AssistData"
- },
- { ATF_POINTER, 2, offsetof(struct Rel7_AssistanceData_Extension, ganssCarrierPhaseMeasurementRequest),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssCarrierPhaseMeasurementRequest"
- },
- { ATF_POINTER, 1, offsetof(struct Rel7_AssistanceData_Extension, ganssTODGSMTimeAssociationMeasurementRequest),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODGSMTimeAssociationMeasurementRequest"
- },
+ {ATF_POINTER, 3,
+ offsetof(struct Rel7_AssistanceData_Extension, ganss_AssistData),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSS_AssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganss-AssistData"},
+ {ATF_POINTER, 2,
+ offsetof(struct Rel7_AssistanceData_Extension,
+ ganssCarrierPhaseMeasurementRequest),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssCarrierPhaseMeasurementRequest"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel7_AssistanceData_Extension,
+ ganssTODGSMTimeAssociationMeasurementRequest),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODGSMTimeAssociationMeasurementRequest"},
};
-static int asn_MAP_Rel7_AssistanceData_Extension_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_Rel7_AssistanceData_Extension_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_Rel7_AssistanceData_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_Rel7_AssistanceData_Extension_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* ganss-AssistData at 1491 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* ganssCarrierPhaseMeasurementRequest at 1492 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* ganssTODGSMTimeAssociationMeasurementRequest at 1493 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel7_AssistanceData_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganss-AssistData at 1491 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssCarrierPhaseMeasurementRequest at 1492 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ganssTODGSMTimeAssociationMeasurementRequest at 1493 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel7_AssistanceData_Extension_specs_1 = {
- sizeof(struct Rel7_AssistanceData_Extension),
- offsetof(struct Rel7_AssistanceData_Extension, _asn_ctx),
- asn_MAP_Rel7_AssistanceData_Extension_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_Rel7_AssistanceData_Extension_oms_1, /* Optional members */
- 3, 0, /* Root/Additions */
- 2, /* Start extensions */
- 4 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_Rel7_AssistanceData_Extension_specs_1 =
+ {
+ sizeof(struct Rel7_AssistanceData_Extension),
+ offsetof(struct Rel7_AssistanceData_Extension, _asn_ctx),
+ asn_MAP_Rel7_AssistanceData_Extension_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_Rel7_AssistanceData_Extension_oms_1, /* Optional members */
+ 3,
+ 0, /* Root/Additions */
+ 2, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel7_AssistanceData_Extension = {
- "Rel7-AssistanceData-Extension",
- "Rel7-AssistanceData-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel7_AssistanceData_Extension_tags_1,
- sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1)
- /sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel7_AssistanceData_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1)
- /sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel7_AssistanceData_Extension_1,
- 3, /* Elements count */
- &asn_SPC_Rel7_AssistanceData_Extension_specs_1 /* Additional specs */
+ "Rel7-AssistanceData-Extension",
+ "Rel7-AssistanceData-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel7_AssistanceData_Extension_tags_1,
+ sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1) /
+ sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel7_AssistanceData_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1) /
+ sizeof(asn_DEF_Rel7_AssistanceData_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel7_AssistanceData_Extension_1,
+ 3, /* Elements count */
+ &asn_SPC_Rel7_AssistanceData_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.h b/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.h
index 4ecb0ffc5..5d2fb4023 100644
--- a/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel7-AssistanceData-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel7_AssistanceData_Extension_H_
#define _Rel7_AssistanceData_Extension_H_
-
#include
/* Including external dependencies */
@@ -29,9 +28,9 @@ extern "C"
NULL_t *ganssCarrierPhaseMeasurementRequest /* OPTIONAL */;
NULL_t *ganssTODGSMTimeAssociationMeasurementRequest /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.c b/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.c
index 994b800f4..c78a04553 100644
--- a/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.c
@@ -1,111 +1,105 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel7-MsrPosition-Req-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel7_MsrPosition_Req_Extension_1[] = {
- { ATF_POINTER, 6, offsetof(struct Rel7_MsrPosition_Req_Extension, velocityRequested),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "velocityRequested"
- },
- { ATF_POINTER, 5, offsetof(struct Rel7_MsrPosition_Req_Extension, ganssPositionMethod),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSPositioningMethod,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssPositionMethod"
- },
- { ATF_POINTER, 4, offsetof(struct Rel7_MsrPosition_Req_Extension, ganss_AssistData),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSS_AssistData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganss-AssistData"
- },
- { ATF_POINTER, 3, offsetof(struct Rel7_MsrPosition_Req_Extension, ganssCarrierPhaseMeasurementRequest),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssCarrierPhaseMeasurementRequest"
- },
- { ATF_POINTER, 2, offsetof(struct Rel7_MsrPosition_Req_Extension, ganssTODGSMTimeAssociationMeasurementRequest),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssTODGSMTimeAssociationMeasurementRequest"
- },
- { ATF_POINTER, 1, offsetof(struct Rel7_MsrPosition_Req_Extension, requiredResponseTime),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RequiredResponseTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "requiredResponseTime"
- },
+ {ATF_POINTER, 6,
+ offsetof(struct Rel7_MsrPosition_Req_Extension, velocityRequested),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "velocityRequested"},
+ {ATF_POINTER, 5,
+ offsetof(struct Rel7_MsrPosition_Req_Extension, ganssPositionMethod),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSPositioningMethod,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssPositionMethod"},
+ {ATF_POINTER, 4,
+ offsetof(struct Rel7_MsrPosition_Req_Extension, ganss_AssistData),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSS_AssistData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganss-AssistData"},
+ {ATF_POINTER, 3,
+ offsetof(struct Rel7_MsrPosition_Req_Extension,
+ ganssCarrierPhaseMeasurementRequest),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssCarrierPhaseMeasurementRequest"},
+ {ATF_POINTER, 2,
+ offsetof(struct Rel7_MsrPosition_Req_Extension,
+ ganssTODGSMTimeAssociationMeasurementRequest),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssTODGSMTimeAssociationMeasurementRequest"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel7_MsrPosition_Req_Extension, requiredResponseTime),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RequiredResponseTime,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "requiredResponseTime"},
};
-static int asn_MAP_Rel7_MsrPosition_Req_Extension_oms_1[] = { 0, 1, 2, 3, 4, 5 };
+static int asn_MAP_Rel7_MsrPosition_Req_Extension_oms_1[] = {0, 1, 2, 3, 4, 5};
static ber_tlv_tag_t asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_Rel7_MsrPosition_Req_Extension_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* velocityRequested at 1045 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* ganssPositionMethod at 1046 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0}, /* ganss-AssistData at 1047 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0,
+ 0}, /* ganssCarrierPhaseMeasurementRequest at 1048 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0,
+ 0}, /* ganssTODGSMTimeAssociationMeasurementRequest at 1049 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0} /* requiredResponseTime at 1050 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel7_MsrPosition_Req_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* velocityRequested at 1045 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssPositionMethod at 1046 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ganss-AssistData at 1047 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ganssCarrierPhaseMeasurementRequest at 1048 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ganssTODGSMTimeAssociationMeasurementRequest at 1049 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* requiredResponseTime at 1050 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel7_MsrPosition_Req_Extension_specs_1 = {
- sizeof(struct Rel7_MsrPosition_Req_Extension),
- offsetof(struct Rel7_MsrPosition_Req_Extension, _asn_ctx),
- asn_MAP_Rel7_MsrPosition_Req_Extension_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_Rel7_MsrPosition_Req_Extension_oms_1, /* Optional members */
- 6, 0, /* Root/Additions */
- 5, /* Start extensions */
- 7 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_Rel7_MsrPosition_Req_Extension_specs_1 =
+ {
+ sizeof(struct Rel7_MsrPosition_Req_Extension),
+ offsetof(struct Rel7_MsrPosition_Req_Extension, _asn_ctx),
+ asn_MAP_Rel7_MsrPosition_Req_Extension_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_Rel7_MsrPosition_Req_Extension_oms_1, /* Optional members */
+ 6,
+ 0, /* Root/Additions */
+ 5, /* Start extensions */
+ 7 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel7_MsrPosition_Req_Extension = {
- "Rel7-MsrPosition-Req-Extension",
- "Rel7-MsrPosition-Req-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1,
- sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1)
- /sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1)
- /sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel7_MsrPosition_Req_Extension_1,
- 6, /* Elements count */
- &asn_SPC_Rel7_MsrPosition_Req_Extension_specs_1 /* Additional specs */
+ "Rel7-MsrPosition-Req-Extension",
+ "Rel7-MsrPosition-Req-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1,
+ sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1) /
+ sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1) /
+ sizeof(asn_DEF_Rel7_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel7_MsrPosition_Req_Extension_1,
+ 6, /* Elements count */
+ &asn_SPC_Rel7_MsrPosition_Req_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.h b/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.h
index 690b05fa5..424e919a8 100644
--- a/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel7-MsrPosition-Req-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel7_MsrPosition_Req_Extension_H_
#define _Rel7_MsrPosition_Req_Extension_H_
-
#include
/* Including external dependencies */
@@ -34,9 +33,9 @@ extern "C"
NULL_t *ganssTODGSMTimeAssociationMeasurementRequest /* OPTIONAL */;
RequiredResponseTime_t *requiredResponseTime /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.c b/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.c
index b94825baf..a83981a21 100644
--- a/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.c
@@ -1,81 +1,80 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel98-AssistanceData-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel98_AssistanceData_Extension_1[] = {
- { ATF_POINTER, 3, offsetof(struct Rel98_AssistanceData_Extension, rel98_Ext_ExpOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel98_Ext_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel98-Ext-ExpOTD"
- },
- { ATF_POINTER, 2, offsetof(struct Rel98_AssistanceData_Extension, gpsTimeAssistanceMeasurementRequest),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTimeAssistanceMeasurementRequest"
- },
- { ATF_POINTER, 1, offsetof(struct Rel98_AssistanceData_Extension, gpsReferenceTimeUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSReferenceTimeUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsReferenceTimeUncertainty"
- },
+ {ATF_POINTER, 3,
+ offsetof(struct Rel98_AssistanceData_Extension, rel98_Ext_ExpOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel98_Ext_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel98-Ext-ExpOTD"},
+ {ATF_POINTER, 2,
+ offsetof(struct Rel98_AssistanceData_Extension,
+ gpsTimeAssistanceMeasurementRequest),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTimeAssistanceMeasurementRequest"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel98_AssistanceData_Extension,
+ gpsReferenceTimeUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSReferenceTimeUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsReferenceTimeUncertainty"},
};
-static int asn_MAP_Rel98_AssistanceData_Extension_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_Rel98_AssistanceData_Extension_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_Rel98_AssistanceData_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t asn_MAP_Rel98_AssistanceData_Extension_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* rel98-Ext-ExpOTD at 879 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* gpsTimeAssistanceMeasurementRequest at 881 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* gpsReferenceTimeUncertainty at 882 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel98_AssistanceData_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rel98-Ext-ExpOTD at 879 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsTimeAssistanceMeasurementRequest at 881 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gpsReferenceTimeUncertainty at 882 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel98_AssistanceData_Extension_specs_1 = {
- sizeof(struct Rel98_AssistanceData_Extension),
- offsetof(struct Rel98_AssistanceData_Extension, _asn_ctx),
- asn_MAP_Rel98_AssistanceData_Extension_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_Rel98_AssistanceData_Extension_oms_1, /* Optional members */
- 1, 2, /* Root/Additions */
- 0, /* Start extensions */
- 4 /* Stop extensions */
+static asn_SEQUENCE_specifics_t asn_SPC_Rel98_AssistanceData_Extension_specs_1 =
+ {
+ sizeof(struct Rel98_AssistanceData_Extension),
+ offsetof(struct Rel98_AssistanceData_Extension, _asn_ctx),
+ asn_MAP_Rel98_AssistanceData_Extension_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_Rel98_AssistanceData_Extension_oms_1, /* Optional members */
+ 1,
+ 2, /* Root/Additions */
+ 0, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel98_AssistanceData_Extension = {
- "Rel98-AssistanceData-Extension",
- "Rel98-AssistanceData-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel98_AssistanceData_Extension_tags_1,
- sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1)
- /sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel98_AssistanceData_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1)
- /sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel98_AssistanceData_Extension_1,
- 3, /* Elements count */
- &asn_SPC_Rel98_AssistanceData_Extension_specs_1 /* Additional specs */
+ "Rel98-AssistanceData-Extension",
+ "Rel98-AssistanceData-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel98_AssistanceData_Extension_tags_1,
+ sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1) /
+ sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel98_AssistanceData_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1) /
+ sizeof(asn_DEF_Rel98_AssistanceData_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel98_AssistanceData_Extension_1,
+ 3, /* Elements count */
+ &asn_SPC_Rel98_AssistanceData_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.h b/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.h
index f8e314e77..9238ccbf3 100644
--- a/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel98-AssistanceData-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel98_AssistanceData_Extension_H_
#define _Rel98_AssistanceData_Extension_H_
-
#include
/* Including external dependencies */
@@ -28,11 +27,12 @@ extern "C"
{
struct Rel98_Ext_ExpOTD *rel98_Ext_ExpOTD /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
NULL_t *gpsTimeAssistanceMeasurementRequest /* OPTIONAL */;
- GPSReferenceTimeUncertainty_t *gpsReferenceTimeUncertainty /* OPTIONAL */;
+ GPSReferenceTimeUncertainty_t
+ *gpsReferenceTimeUncertainty /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.c b/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.c
index 943579089..500ee581f 100644
--- a/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.c
@@ -1,71 +1,68 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel98-Ext-ExpOTD.h"
static asn_TYPE_member_t asn_MBR_Rel98_Ext_ExpOTD_1[] = {
- { ATF_POINTER, 2, offsetof(struct Rel98_Ext_ExpOTD, msrAssistData_R98_ExpOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_MsrAssistData_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "msrAssistData-R98-ExpOTD"
- },
- { ATF_POINTER, 1, offsetof(struct Rel98_Ext_ExpOTD, systemInfoAssistData_R98_ExpOTD),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SystemInfoAssistData_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoAssistData-R98-ExpOTD"
- },
+ {ATF_POINTER, 2,
+ offsetof(struct Rel98_Ext_ExpOTD, msrAssistData_R98_ExpOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_MsrAssistData_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "msrAssistData-R98-ExpOTD"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel98_Ext_ExpOTD, systemInfoAssistData_R98_ExpOTD),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SystemInfoAssistData_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoAssistData-R98-ExpOTD"},
};
-static int asn_MAP_Rel98_Ext_ExpOTD_oms_1[] = { 0, 1 };
+static int asn_MAP_Rel98_Ext_ExpOTD_oms_1[] = {0, 1};
static ber_tlv_tag_t asn_DEF_Rel98_Ext_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_Rel98_Ext_ExpOTD_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* msrAssistData-R98-ExpOTD at 890 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* systemInfoAssistData-R98-ExpOTD at 894 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* msrAssistData-R98-ExpOTD at 890 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0} /* systemInfoAssistData-R98-ExpOTD at 894 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Rel98_Ext_ExpOTD_specs_1 = {
- sizeof(struct Rel98_Ext_ExpOTD),
- offsetof(struct Rel98_Ext_ExpOTD, _asn_ctx),
- asn_MAP_Rel98_Ext_ExpOTD_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_Rel98_Ext_ExpOTD_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct Rel98_Ext_ExpOTD),
+ offsetof(struct Rel98_Ext_ExpOTD, _asn_ctx),
+ asn_MAP_Rel98_Ext_ExpOTD_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_Rel98_Ext_ExpOTD_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel98_Ext_ExpOTD = {
- "Rel98-Ext-ExpOTD",
- "Rel98-Ext-ExpOTD",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel98_Ext_ExpOTD_tags_1,
- sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1)
- /sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_Rel98_Ext_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1)
- /sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel98_Ext_ExpOTD_1,
- 2, /* Elements count */
- &asn_SPC_Rel98_Ext_ExpOTD_specs_1 /* Additional specs */
+ "Rel98-Ext-ExpOTD",
+ "Rel98-Ext-ExpOTD",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel98_Ext_ExpOTD_tags_1,
+ sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1) /
+ sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_Rel98_Ext_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1) /
+ sizeof(asn_DEF_Rel98_Ext_ExpOTD_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel98_Ext_ExpOTD_1,
+ 2, /* Elements count */
+ &asn_SPC_Rel98_Ext_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.h b/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.h
index 75903c13f..eb30325f7 100644
--- a/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/Rel98-Ext-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel98_Ext_ExpOTD_H_
#define _Rel98_Ext_ExpOTD_H_
-
#include
/* Including external dependencies */
@@ -25,8 +24,10 @@ extern "C"
/* Rel98-Ext-ExpOTD */
typedef struct Rel98_Ext_ExpOTD
{
- struct MsrAssistData_R98_ExpOTD *msrAssistData_R98_ExpOTD /* OPTIONAL */;
- struct SystemInfoAssistData_R98_ExpOTD *systemInfoAssistData_R98_ExpOTD /* OPTIONAL */;
+ struct MsrAssistData_R98_ExpOTD
+ *msrAssistData_R98_ExpOTD /* OPTIONAL */;
+ struct SystemInfoAssistData_R98_ExpOTD
+ *systemInfoAssistData_R98_ExpOTD /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.c b/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.c
index 1ad5bc639..5b28f808f 100644
--- a/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.c
+++ b/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.c
@@ -1,81 +1,80 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "Rel98-MsrPosition-Req-Extension.h"
static asn_TYPE_member_t asn_MBR_Rel98_MsrPosition_Req_Extension_1[] = {
- { ATF_POINTER, 3, offsetof(struct Rel98_MsrPosition_Req_Extension, rel98_Ext_ExpOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_Rel98_Ext_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "rel98-Ext-ExpOTD"
- },
- { ATF_POINTER, 2, offsetof(struct Rel98_MsrPosition_Req_Extension, gpsTimeAssistanceMeasurementRequest),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTimeAssistanceMeasurementRequest"
- },
- { ATF_POINTER, 1, offsetof(struct Rel98_MsrPosition_Req_Extension, gpsReferenceTimeUncertainty),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSReferenceTimeUncertainty,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsReferenceTimeUncertainty"
- },
+ {ATF_POINTER, 3,
+ offsetof(struct Rel98_MsrPosition_Req_Extension, rel98_Ext_ExpOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_Rel98_Ext_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "rel98-Ext-ExpOTD"},
+ {ATF_POINTER, 2,
+ offsetof(struct Rel98_MsrPosition_Req_Extension,
+ gpsTimeAssistanceMeasurementRequest),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTimeAssistanceMeasurementRequest"},
+ {ATF_POINTER, 1,
+ offsetof(struct Rel98_MsrPosition_Req_Extension,
+ gpsReferenceTimeUncertainty),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSReferenceTimeUncertainty,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsReferenceTimeUncertainty"},
};
-static int asn_MAP_Rel98_MsrPosition_Req_Extension_oms_1[] = { 0, 1, 2 };
+static int asn_MAP_Rel98_MsrPosition_Req_Extension_oms_1[] = {0, 1, 2};
static ber_tlv_tag_t asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t
+ asn_MAP_Rel98_MsrPosition_Req_Extension_tag2el_1[] = {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* rel98-Ext-ExpOTD at 871 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* gpsTimeAssistanceMeasurementRequest at 873 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0,
+ 0} /* gpsReferenceTimeUncertainty at 874 */
};
-static asn_TYPE_tag2member_t asn_MAP_Rel98_MsrPosition_Req_Extension_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rel98-Ext-ExpOTD at 871 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* gpsTimeAssistanceMeasurementRequest at 873 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gpsReferenceTimeUncertainty at 874 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_Rel98_MsrPosition_Req_Extension_specs_1 = {
- sizeof(struct Rel98_MsrPosition_Req_Extension),
- offsetof(struct Rel98_MsrPosition_Req_Extension, _asn_ctx),
- asn_MAP_Rel98_MsrPosition_Req_Extension_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_Rel98_MsrPosition_Req_Extension_oms_1, /* Optional members */
- 1, 2, /* Root/Additions */
- 0, /* Start extensions */
- 4 /* Stop extensions */
+static asn_SEQUENCE_specifics_t
+ asn_SPC_Rel98_MsrPosition_Req_Extension_specs_1 = {
+ sizeof(struct Rel98_MsrPosition_Req_Extension),
+ offsetof(struct Rel98_MsrPosition_Req_Extension, _asn_ctx),
+ asn_MAP_Rel98_MsrPosition_Req_Extension_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_Rel98_MsrPosition_Req_Extension_oms_1, /* Optional members */
+ 1,
+ 2, /* Root/Additions */
+ 0, /* Start extensions */
+ 4 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_Rel98_MsrPosition_Req_Extension = {
- "Rel98-MsrPosition-Req-Extension",
- "Rel98-MsrPosition-Req-Extension",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1,
- sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1)
- /sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
- asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1, /* Same as above */
- sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1)
- /sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_Rel98_MsrPosition_Req_Extension_1,
- 3, /* Elements count */
- &asn_SPC_Rel98_MsrPosition_Req_Extension_specs_1 /* Additional specs */
+ "Rel98-MsrPosition-Req-Extension",
+ "Rel98-MsrPosition-Req-Extension",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1,
+ sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1) /
+ sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
+ asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1, /* Same as above */
+ sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1) /
+ sizeof(asn_DEF_Rel98_MsrPosition_Req_Extension_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Rel98_MsrPosition_Req_Extension_1,
+ 3, /* Elements count */
+ &asn_SPC_Rel98_MsrPosition_Req_Extension_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.h b/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.h
index 3922335b3..1d785c7ba 100644
--- a/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.h
+++ b/src/core/libs/supl/asn-rrlp/Rel98-MsrPosition-Req-Extension.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _Rel98_MsrPosition_Req_Extension_H_
#define _Rel98_MsrPosition_Req_Extension_H_
-
#include
/* Including external dependencies */
@@ -28,11 +27,12 @@ extern "C"
{
struct Rel98_Ext_ExpOTD *rel98_Ext_ExpOTD /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
NULL_t *gpsTimeAssistanceMeasurementRequest /* OPTIONAL */;
- GPSReferenceTimeUncertainty_t *gpsReferenceTimeUncertainty /* OPTIONAL */;
+ GPSReferenceTimeUncertainty_t
+ *gpsReferenceTimeUncertainty /* OPTIONAL */;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/RelDistance.c b/src/core/libs/supl/asn-rrlp/RelDistance.c
index 8273278e4..e2624f0df 100644
--- a/src/core/libs/supl/asn-rrlp/RelDistance.c
+++ b/src/core/libs/supl/asn-rrlp/RelDistance.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RelDistance.h"
-int
-RelDistance_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -200000 && value <= 200000)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int RelDistance_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -200000 && value <= 200000))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-RelDistance_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void RelDistance_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-RelDistance_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void RelDistance_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-RelDistance_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int RelDistance_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-RelDistance_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) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t RelDistance_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)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-RelDistance_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) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t RelDistance_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)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-RelDistance_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) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t RelDistance_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)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-RelDistance_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) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t RelDistance_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)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-RelDistance_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t RelDistance_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-RelDistance_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- RelDistance_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t RelDistance_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ RelDistance_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_REL_DISTANCE_CONSTR_1 = {
- { APC_CONSTRAINED, 19, -1, -200000, 200000 } /* (-200000..200000) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 19, -1, -200000, 200000} /* (-200000..200000) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_RelDistance_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_RelDistance = {
- "RelDistance",
- "RelDistance",
- RelDistance_free,
- RelDistance_print,
- RelDistance_constraint,
- RelDistance_decode_ber,
- RelDistance_encode_der,
- RelDistance_decode_xer,
- RelDistance_encode_xer,
- RelDistance_decode_uper,
- RelDistance_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RelDistance_tags_1,
- sizeof(asn_DEF_RelDistance_tags_1)
- /sizeof(asn_DEF_RelDistance_tags_1[0]), /* 1 */
- asn_DEF_RelDistance_tags_1, /* Same as above */
- sizeof(asn_DEF_RelDistance_tags_1)
- /sizeof(asn_DEF_RelDistance_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_REL_DISTANCE_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "RelDistance",
+ "RelDistance",
+ RelDistance_free,
+ RelDistance_print,
+ RelDistance_constraint,
+ RelDistance_decode_ber,
+ RelDistance_encode_der,
+ RelDistance_decode_xer,
+ RelDistance_encode_xer,
+ RelDistance_decode_uper,
+ RelDistance_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RelDistance_tags_1,
+ sizeof(asn_DEF_RelDistance_tags_1) /
+ sizeof(asn_DEF_RelDistance_tags_1[0]), /* 1 */
+ asn_DEF_RelDistance_tags_1, /* Same as above */
+ sizeof(asn_DEF_RelDistance_tags_1) /
+ sizeof(asn_DEF_RelDistance_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_REL_DISTANCE_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RelDistance.h b/src/core/libs/supl/asn-rrlp/RelDistance.h
index a9437f579..c53c6cc66 100644
--- a/src/core/libs/supl/asn-rrlp/RelDistance.h
+++ b/src/core/libs/supl/asn-rrlp/RelDistance.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RelDistance_H_
#define _RelDistance_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/RelativeAlt.c b/src/core/libs/supl/asn-rrlp/RelativeAlt.c
index 78cc612e4..f92227b37 100644
--- a/src/core/libs/supl/asn-rrlp/RelativeAlt.c
+++ b/src/core/libs/supl/asn-rrlp/RelativeAlt.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RelativeAlt.h"
-int
-RelativeAlt_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -4000 && value <= 4000)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int RelativeAlt_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -4000 && value <= 4000))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-RelativeAlt_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void RelativeAlt_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-RelativeAlt_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void RelativeAlt_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-RelativeAlt_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int RelativeAlt_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-RelativeAlt_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) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t RelativeAlt_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)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-RelativeAlt_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) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t RelativeAlt_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)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-RelativeAlt_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) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t RelativeAlt_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)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-RelativeAlt_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) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t RelativeAlt_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)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-RelativeAlt_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t RelativeAlt_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-RelativeAlt_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- RelativeAlt_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t RelativeAlt_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ RelativeAlt_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_RELATIVE_ALT_CONSTR_1 = {
- { APC_CONSTRAINED, 13, 13, -4000, 4000 } /* (-4000..4000) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 13, 13, -4000, 4000} /* (-4000..4000) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_RelativeAlt_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_RelativeAlt = {
- "RelativeAlt",
- "RelativeAlt",
- RelativeAlt_free,
- RelativeAlt_print,
- RelativeAlt_constraint,
- RelativeAlt_decode_ber,
- RelativeAlt_encode_der,
- RelativeAlt_decode_xer,
- RelativeAlt_encode_xer,
- RelativeAlt_decode_uper,
- RelativeAlt_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RelativeAlt_tags_1,
- sizeof(asn_DEF_RelativeAlt_tags_1)
- /sizeof(asn_DEF_RelativeAlt_tags_1[0]), /* 1 */
- asn_DEF_RelativeAlt_tags_1, /* Same as above */
- sizeof(asn_DEF_RelativeAlt_tags_1)
- /sizeof(asn_DEF_RelativeAlt_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_RELATIVE_ALT_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "RelativeAlt",
+ "RelativeAlt",
+ RelativeAlt_free,
+ RelativeAlt_print,
+ RelativeAlt_constraint,
+ RelativeAlt_decode_ber,
+ RelativeAlt_encode_der,
+ RelativeAlt_decode_xer,
+ RelativeAlt_encode_xer,
+ RelativeAlt_decode_uper,
+ RelativeAlt_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RelativeAlt_tags_1,
+ sizeof(asn_DEF_RelativeAlt_tags_1) /
+ sizeof(asn_DEF_RelativeAlt_tags_1[0]), /* 1 */
+ asn_DEF_RelativeAlt_tags_1, /* Same as above */
+ sizeof(asn_DEF_RelativeAlt_tags_1) /
+ sizeof(asn_DEF_RelativeAlt_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_RELATIVE_ALT_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RelativeAlt.h b/src/core/libs/supl/asn-rrlp/RelativeAlt.h
index 22861f7f5..5a9a56d4f 100644
--- a/src/core/libs/supl/asn-rrlp/RelativeAlt.h
+++ b/src/core/libs/supl/asn-rrlp/RelativeAlt.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RelativeAlt_H_
#define _RelativeAlt_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/RequestIndex.c b/src/core/libs/supl/asn-rrlp/RequestIndex.c
index f238a32f6..7c9441dde 100644
--- a/src/core/libs/supl/asn-rrlp/RequestIndex.c
+++ b/src/core/libs/supl/asn-rrlp/RequestIndex.c
@@ -1,145 +1,163 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RequestIndex.h"
-int
-RequestIndex_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 1 && value <= 16)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int RequestIndex_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 1 && value <= 16))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-RequestIndex_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void RequestIndex_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-RequestIndex_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void RequestIndex_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-RequestIndex_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int RequestIndex_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-RequestIndex_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) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t RequestIndex_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)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-RequestIndex_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) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t RequestIndex_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)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-RequestIndex_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) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t RequestIndex_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)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-RequestIndex_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) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t RequestIndex_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)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-RequestIndex_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t RequestIndex_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-RequestIndex_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- RequestIndex_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t RequestIndex_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ RequestIndex_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_REQUEST_INDEX_CONSTR_1 = {
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (1..16) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (1..16) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_RequestIndex_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_RequestIndex = {
- "RequestIndex",
- "RequestIndex",
- RequestIndex_free,
- RequestIndex_print,
- RequestIndex_constraint,
- RequestIndex_decode_ber,
- RequestIndex_encode_der,
- RequestIndex_decode_xer,
- RequestIndex_encode_xer,
- RequestIndex_decode_uper,
- RequestIndex_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RequestIndex_tags_1,
- sizeof(asn_DEF_RequestIndex_tags_1)
- /sizeof(asn_DEF_RequestIndex_tags_1[0]), /* 1 */
- asn_DEF_RequestIndex_tags_1, /* Same as above */
- sizeof(asn_DEF_RequestIndex_tags_1)
- /sizeof(asn_DEF_RequestIndex_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_REQUEST_INDEX_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "RequestIndex",
+ "RequestIndex",
+ RequestIndex_free,
+ RequestIndex_print,
+ RequestIndex_constraint,
+ RequestIndex_decode_ber,
+ RequestIndex_encode_der,
+ RequestIndex_decode_xer,
+ RequestIndex_encode_xer,
+ RequestIndex_decode_uper,
+ RequestIndex_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RequestIndex_tags_1,
+ sizeof(asn_DEF_RequestIndex_tags_1) /
+ sizeof(asn_DEF_RequestIndex_tags_1[0]), /* 1 */
+ asn_DEF_RequestIndex_tags_1, /* Same as above */
+ sizeof(asn_DEF_RequestIndex_tags_1) /
+ sizeof(asn_DEF_RequestIndex_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_REQUEST_INDEX_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RequestIndex.h b/src/core/libs/supl/asn-rrlp/RequestIndex.h
index 177415736..5320c12cc 100644
--- a/src/core/libs/supl/asn-rrlp/RequestIndex.h
+++ b/src/core/libs/supl/asn-rrlp/RequestIndex.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RequestIndex_H_
#define _RequestIndex_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/RequiredResponseTime.c b/src/core/libs/supl/asn-rrlp/RequiredResponseTime.c
index 89fd8b230..f167d8354 100644
--- a/src/core/libs/supl/asn-rrlp/RequiredResponseTime.c
+++ b/src/core/libs/supl/asn-rrlp/RequiredResponseTime.c
@@ -1,145 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RequiredResponseTime.h"
-int
-RequiredResponseTime_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 1 && value <= 128)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int RequiredResponseTime_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 1 && value <= 128))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-RequiredResponseTime_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void RequiredResponseTime_1_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-RequiredResponseTime_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void RequiredResponseTime_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-RequiredResponseTime_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int RequiredResponseTime_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-RequiredResponseTime_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) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t RequiredResponseTime_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)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-RequiredResponseTime_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) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t RequiredResponseTime_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)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-RequiredResponseTime_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) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t RequiredResponseTime_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)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-RequiredResponseTime_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) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t RequiredResponseTime_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)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-RequiredResponseTime_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t RequiredResponseTime_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-RequiredResponseTime_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- RequiredResponseTime_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t RequiredResponseTime_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ RequiredResponseTime_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_REQUIRED_RESPONSE_TIME_CONSTR_1 = {
- { APC_CONSTRAINED, 7, 7, 1, 128 } /* (1..128) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, 1, 128} /* (1..128) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_RequiredResponseTime_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_RequiredResponseTime = {
- "RequiredResponseTime",
- "RequiredResponseTime",
- RequiredResponseTime_free,
- RequiredResponseTime_print,
- RequiredResponseTime_constraint,
- RequiredResponseTime_decode_ber,
- RequiredResponseTime_encode_der,
- RequiredResponseTime_decode_xer,
- RequiredResponseTime_encode_xer,
- RequiredResponseTime_decode_uper,
- RequiredResponseTime_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RequiredResponseTime_tags_1,
- sizeof(asn_DEF_RequiredResponseTime_tags_1)
- /sizeof(asn_DEF_RequiredResponseTime_tags_1[0]), /* 1 */
- asn_DEF_RequiredResponseTime_tags_1, /* Same as above */
- sizeof(asn_DEF_RequiredResponseTime_tags_1)
- /sizeof(asn_DEF_RequiredResponseTime_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_REQUIRED_RESPONSE_TIME_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "RequiredResponseTime",
+ "RequiredResponseTime",
+ RequiredResponseTime_free,
+ RequiredResponseTime_print,
+ RequiredResponseTime_constraint,
+ RequiredResponseTime_decode_ber,
+ RequiredResponseTime_encode_der,
+ RequiredResponseTime_decode_xer,
+ RequiredResponseTime_encode_xer,
+ RequiredResponseTime_decode_uper,
+ RequiredResponseTime_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RequiredResponseTime_tags_1,
+ sizeof(asn_DEF_RequiredResponseTime_tags_1) /
+ sizeof(asn_DEF_RequiredResponseTime_tags_1[0]), /* 1 */
+ asn_DEF_RequiredResponseTime_tags_1, /* Same as above */
+ sizeof(asn_DEF_RequiredResponseTime_tags_1) /
+ sizeof(asn_DEF_RequiredResponseTime_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_REQUIRED_RESPONSE_TIME_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RequiredResponseTime.h b/src/core/libs/supl/asn-rrlp/RequiredResponseTime.h
index f55669f23..ee26a1114 100644
--- a/src/core/libs/supl/asn-rrlp/RequiredResponseTime.h
+++ b/src/core/libs/supl/asn-rrlp/RequiredResponseTime.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RequiredResponseTime_H_
#define _RequiredResponseTime_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/RoughRTD.c b/src/core/libs/supl/asn-rrlp/RoughRTD.c
index d9222b869..8e773c3f5 100644
--- a/src/core/libs/supl/asn-rrlp/RoughRTD.c
+++ b/src/core/libs/supl/asn-rrlp/RoughRTD.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "RoughRTD.h"
-int
-RoughRTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1250)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int RoughRTD_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1250))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-RoughRTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void RoughRTD_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-RoughRTD_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void RoughRTD_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-RoughRTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int RoughRTD_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-RoughRTD_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) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t RoughRTD_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)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-RoughRTD_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) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t RoughRTD_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)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-RoughRTD_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) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t RoughRTD_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)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-RoughRTD_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) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t RoughRTD_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)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-RoughRTD_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t RoughRTD_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-RoughRTD_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- RoughRTD_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t RoughRTD_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ RoughRTD_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_ROUGH_RTD_CONSTR_1 = {
- { APC_CONSTRAINED, 11, 11, 0, 1250 } /* (0..1250) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 11, 11, 0, 1250} /* (0..1250) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_RoughRTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_RoughRTD = {
- "RoughRTD",
- "RoughRTD",
- RoughRTD_free,
- RoughRTD_print,
- RoughRTD_constraint,
- RoughRTD_decode_ber,
- RoughRTD_encode_der,
- RoughRTD_decode_xer,
- RoughRTD_encode_xer,
- RoughRTD_decode_uper,
- RoughRTD_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_RoughRTD_tags_1,
- sizeof(asn_DEF_RoughRTD_tags_1)
- /sizeof(asn_DEF_RoughRTD_tags_1[0]), /* 1 */
- asn_DEF_RoughRTD_tags_1, /* Same as above */
- sizeof(asn_DEF_RoughRTD_tags_1)
- /sizeof(asn_DEF_RoughRTD_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_ROUGH_RTD_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "RoughRTD",
+ "RoughRTD",
+ RoughRTD_free,
+ RoughRTD_print,
+ RoughRTD_constraint,
+ RoughRTD_decode_ber,
+ RoughRTD_encode_der,
+ RoughRTD_decode_xer,
+ RoughRTD_encode_xer,
+ RoughRTD_decode_uper,
+ RoughRTD_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_RoughRTD_tags_1,
+ sizeof(asn_DEF_RoughRTD_tags_1) /
+ sizeof(asn_DEF_RoughRTD_tags_1[0]), /* 1 */
+ asn_DEF_RoughRTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_RoughRTD_tags_1) /
+ sizeof(asn_DEF_RoughRTD_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_ROUGH_RTD_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/RoughRTD.h b/src/core/libs/supl/asn-rrlp/RoughRTD.h
index 59e72aff4..82bfa3fb5 100644
--- a/src/core/libs/supl/asn-rrlp/RoughRTD.h
+++ b/src/core/libs/supl/asn-rrlp/RoughRTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _RoughRTD_H_
#define _RoughRTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SVID.c b/src/core/libs/supl/asn-rrlp/SVID.c
index ab082f9c0..207f5fd99 100644
--- a/src/core/libs/supl/asn-rrlp/SVID.c
+++ b/src/core/libs/supl/asn-rrlp/SVID.c
@@ -1,145 +1,152 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SVID.h"
-int
-SVID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int SVID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-SVID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void SVID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-SVID_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- SVID_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void SVID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-SVID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int SVID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-SVID_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) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t SVID_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)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-SVID_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) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t SVID_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)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-SVID_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) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t SVID_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)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-SVID_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) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t SVID_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)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-SVID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t SVID_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-SVID_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- SVID_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t SVID_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ SVID_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_SVID_CONSTR_1 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_SVID_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_SVID = {
- "SVID",
- "SVID",
- SVID_free,
- SVID_print,
- SVID_constraint,
- SVID_decode_ber,
- SVID_encode_der,
- SVID_decode_xer,
- SVID_encode_xer,
- SVID_decode_uper,
- SVID_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SVID_tags_1,
- sizeof(asn_DEF_SVID_tags_1)
- /sizeof(asn_DEF_SVID_tags_1[0]), /* 1 */
- asn_DEF_SVID_tags_1, /* Same as above */
- sizeof(asn_DEF_SVID_tags_1)
- /sizeof(asn_DEF_SVID_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SVID_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "SVID",
+ "SVID",
+ SVID_free,
+ SVID_print,
+ SVID_constraint,
+ SVID_decode_ber,
+ SVID_encode_der,
+ SVID_decode_xer,
+ SVID_encode_xer,
+ SVID_decode_uper,
+ SVID_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SVID_tags_1,
+ sizeof(asn_DEF_SVID_tags_1) / sizeof(asn_DEF_SVID_tags_1[0]), /* 1 */
+ asn_DEF_SVID_tags_1, /* Same as above */
+ sizeof(asn_DEF_SVID_tags_1) / sizeof(asn_DEF_SVID_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SVID_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SVID.h b/src/core/libs/supl/asn-rrlp/SVID.h
index 288162594..9330322ad 100644
--- a/src/core/libs/supl/asn-rrlp/SVID.h
+++ b/src/core/libs/supl/asn-rrlp/SVID.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SVID_H_
#define _SVID_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SVIDMASK.c b/src/core/libs/supl/asn-rrlp/SVIDMASK.c
index 9791443d6..cd553ccfc 100644
--- a/src/core/libs/supl/asn-rrlp/SVIDMASK.c
+++ b/src/core/libs/supl/asn-rrlp/SVIDMASK.c
@@ -1,151 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SVIDMASK.h"
-int
-SVIDMASK_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
- size_t size;
-
- if(!sptr) {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: value not given (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
-
- if(st->size > 0) {
- /* Size in bits */
- size = 8 * st->size - (st->bits_unused & 0x07);
- } else {
- size = 0;
- }
-
- if((size >= 1 && size <= 36)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int SVIDMASK_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key)
+{
+ const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
+ size_t size;
+
+ if (!sptr)
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
+
+ if (st->size > 0)
+ {
+ /* Size in bits */
+ size = 8 * st->size - (st->bits_unused & 0x07);
+ }
+ else
+ {
+ size = 0;
+ }
+
+ if ((size >= 1 && size <= 36))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using BIT_STRING,
* so here we adjust the DEF accordingly.
*/
-static void
-SVIDMASK_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_BIT_STRING.free_struct;
- td->print_struct = asn_DEF_BIT_STRING.print_struct;
- td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder;
- td->der_encoder = asn_DEF_BIT_STRING.der_encoder;
- td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder;
- td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder;
- td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder;
- td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_BIT_STRING.per_constraints;
- td->elements = asn_DEF_BIT_STRING.elements;
- td->elements_count = asn_DEF_BIT_STRING.elements_count;
- td->specifics = asn_DEF_BIT_STRING.specifics;
+static void SVIDMASK_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_BIT_STRING.free_struct;
+ td->print_struct = asn_DEF_BIT_STRING.print_struct;
+ td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder;
+ td->der_encoder = asn_DEF_BIT_STRING.der_encoder;
+ td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder;
+ td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder;
+ td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder;
+ td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_BIT_STRING.per_constraints;
+ td->elements = asn_DEF_BIT_STRING.elements;
+ td->elements_count = asn_DEF_BIT_STRING.elements_count;
+ td->specifics = asn_DEF_BIT_STRING.specifics;
}
-void
-SVIDMASK_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void SVIDMASK_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-SVIDMASK_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int SVIDMASK_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-SVIDMASK_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) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t SVIDMASK_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)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-SVIDMASK_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) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t SVIDMASK_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)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-SVIDMASK_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) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t SVIDMASK_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)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-SVIDMASK_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) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t SVIDMASK_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)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-SVIDMASK_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t SVIDMASK_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-SVIDMASK_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- SVIDMASK_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t SVIDMASK_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ SVIDMASK_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_SVIDMASK_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 6, 6, 1, 36 } /* (SIZE(1..36)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 6, 6, 1, 36} /* (SIZE(1..36)) */,
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_SVIDMASK_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))};
asn_TYPE_descriptor_t asn_DEF_SVIDMASK = {
- "SVIDMASK",
- "SVIDMASK",
- SVIDMASK_free,
- SVIDMASK_print,
- SVIDMASK_constraint,
- SVIDMASK_decode_ber,
- SVIDMASK_encode_der,
- SVIDMASK_decode_xer,
- SVIDMASK_encode_xer,
- SVIDMASK_decode_uper,
- SVIDMASK_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SVIDMASK_tags_1,
- sizeof(asn_DEF_SVIDMASK_tags_1)
- /sizeof(asn_DEF_SVIDMASK_tags_1[0]), /* 1 */
- asn_DEF_SVIDMASK_tags_1, /* Same as above */
- sizeof(asn_DEF_SVIDMASK_tags_1)
- /sizeof(asn_DEF_SVIDMASK_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SVIDMASK_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "SVIDMASK",
+ "SVIDMASK",
+ SVIDMASK_free,
+ SVIDMASK_print,
+ SVIDMASK_constraint,
+ SVIDMASK_decode_ber,
+ SVIDMASK_encode_der,
+ SVIDMASK_decode_xer,
+ SVIDMASK_encode_xer,
+ SVIDMASK_decode_uper,
+ SVIDMASK_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SVIDMASK_tags_1,
+ sizeof(asn_DEF_SVIDMASK_tags_1) /
+ sizeof(asn_DEF_SVIDMASK_tags_1[0]), /* 1 */
+ asn_DEF_SVIDMASK_tags_1, /* Same as above */
+ sizeof(asn_DEF_SVIDMASK_tags_1) /
+ sizeof(asn_DEF_SVIDMASK_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SVIDMASK_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SVIDMASK.h b/src/core/libs/supl/asn-rrlp/SVIDMASK.h
index 0e0e6414b..7ead136e7 100644
--- a/src/core/libs/supl/asn-rrlp/SVIDMASK.h
+++ b/src/core/libs/supl/asn-rrlp/SVIDMASK.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SVIDMASK_H_
#define _SVIDMASK_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SatElement.c b/src/core/libs/supl/asn-rrlp/SatElement.c
index bab8b9de3..cf9a25061 100644
--- a/src/core/libs/supl/asn-rrlp/SatElement.c
+++ b/src/core/libs/supl/asn-rrlp/SatElement.c
@@ -1,379 +1,373 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SatElement.h"
-static int
-memb_iode_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 239)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_iode_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 239))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_udre_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_udre_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_pseudoRangeCor_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -2047 && value <= 2047)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_pseudoRangeCor_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -2047 && value <= 2047))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_rangeRateCor_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -127 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_rangeRateCor_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -127 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_deltaPseudoRangeCor2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -127 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_deltaPseudoRangeCor2_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -127 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_deltaRangeRateCor2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -7 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_deltaRangeRateCor2_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -7 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_deltaPseudoRangeCor3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -127 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_deltaPseudoRangeCor3_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -127 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_deltaRangeRateCor3_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -7 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_deltaRangeRateCor3_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -7 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_IODE_CONSTR_3 = {
- { APC_CONSTRAINED, 8, 8, 0, 239 } /* (0..239) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 239} /* (0..239) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UDRE_CONSTR_4 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5 = {
- { APC_CONSTRAINED, 12, 12, -2047, 2047 } /* (-2047..2047) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, -2047, 2047} /* (-2047..2047) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6 = {
- { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -127, 127} /* (-127..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DELTA_PSEUDO_RANGE_COR2_CONSTR_7 = {
- { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -127, 127} /* (-127..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DELTA_RANGE_RATE_COR2_CONSTR_8 = {
- { APC_CONSTRAINED, 4, 4, -7, 7 } /* (-7..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, -7, 7} /* (-7..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DELTA_PSEUDO_RANGE_COR3_CONSTR_9 = {
- { APC_CONSTRAINED, 8, 8, -127, 127 } /* (-127..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -127, 127} /* (-127..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_DELTA_RANGE_RATE_COR3_CONSTR_10 = {
- { APC_CONSTRAINED, 4, 4, -7, 7 } /* (-7..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, -7, 7} /* (-7..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SatElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, satelliteID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "satelliteID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, iode),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_iode_constraint_1,
- &ASN_PER_MEMB_IODE_CONSTR_3,
- 0,
- "iode"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, udre),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_udre_constraint_1,
- &ASN_PER_MEMB_UDRE_CONSTR_4,
- 0,
- "udre"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, pseudoRangeCor),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_pseudoRangeCor_constraint_1,
- &ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5,
- 0,
- "pseudoRangeCor"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, rangeRateCor),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_rangeRateCor_constraint_1,
- &ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6,
- 0,
- "rangeRateCor"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaPseudoRangeCor2),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_deltaPseudoRangeCor2_constraint_1,
- &ASN_PER_MEMB_DELTA_PSEUDO_RANGE_COR2_CONSTR_7,
- 0,
- "deltaPseudoRangeCor2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaRangeRateCor2),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_deltaRangeRateCor2_constraint_1,
- &ASN_PER_MEMB_DELTA_RANGE_RATE_COR2_CONSTR_8,
- 0,
- "deltaRangeRateCor2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaPseudoRangeCor3),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_deltaPseudoRangeCor3_constraint_1,
- &ASN_PER_MEMB_DELTA_PSEUDO_RANGE_COR3_CONSTR_9,
- 0,
- "deltaPseudoRangeCor3"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaRangeRateCor3),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_deltaRangeRateCor3_constraint_1,
- &ASN_PER_MEMB_DELTA_RANGE_RATE_COR3_CONSTR_10,
- 0,
- "deltaRangeRateCor3"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, satelliteID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "satelliteID"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, iode),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_iode_constraint_1,
+ &ASN_PER_MEMB_IODE_CONSTR_3, 0, "iode"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, udre),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_udre_constraint_1,
+ &ASN_PER_MEMB_UDRE_CONSTR_4, 0, "udre"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, pseudoRangeCor),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_pseudoRangeCor_constraint_1,
+ &ASN_PER_MEMB_PSEUDO_RANGE_COR_CONSTR_5, 0, "pseudoRangeCor"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, rangeRateCor),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_rangeRateCor_constraint_1,
+ &ASN_PER_MEMB_RANGE_RATE_COR_CONSTR_6, 0, "rangeRateCor"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaPseudoRangeCor2),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_deltaPseudoRangeCor2_constraint_1,
+ &ASN_PER_MEMB_DELTA_PSEUDO_RANGE_COR2_CONSTR_7, 0, "deltaPseudoRangeCor2"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaRangeRateCor2),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_deltaRangeRateCor2_constraint_1,
+ &ASN_PER_MEMB_DELTA_RANGE_RATE_COR2_CONSTR_8, 0, "deltaRangeRateCor2"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaPseudoRangeCor3),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_deltaPseudoRangeCor3_constraint_1,
+ &ASN_PER_MEMB_DELTA_PSEUDO_RANGE_COR3_CONSTR_9, 0, "deltaPseudoRangeCor3"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatElement, deltaRangeRateCor3),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_deltaRangeRateCor3_constraint_1,
+ &ASN_PER_MEMB_DELTA_RANGE_RATE_COR3_CONSTR_10, 0, "deltaRangeRateCor3"},
};
static ber_tlv_tag_t asn_DEF_SatElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_SatElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* satelliteID at 664 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iode at 667 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* udre at 669 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pseudoRangeCor at 673 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rangeRateCor at 677 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* deltaPseudoRangeCor2 at 680 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* deltaRangeRateCor2 at 683 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* deltaPseudoRangeCor3 at 686 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* deltaRangeRateCor3 at 689 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* satelliteID at 664 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* iode at 667 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* udre at 669 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* pseudoRangeCor at 673 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* rangeRateCor at 677 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0,
+ 0}, /* deltaPseudoRangeCor2 at 680 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0,
+ 0}, /* deltaRangeRateCor2 at 683 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0,
+ 0}, /* deltaPseudoRangeCor3 at 686 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0,
+ 0} /* deltaRangeRateCor3 at 689 */
};
static asn_SEQUENCE_specifics_t asn_SPC_SatElement_specs_1 = {
- sizeof(struct SatElement),
- offsetof(struct SatElement, _asn_ctx),
- asn_MAP_SatElement_tag2el_1,
- 9, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct SatElement),
+ offsetof(struct SatElement, _asn_ctx),
+ asn_MAP_SatElement_tag2el_1,
+ 9, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_SatElement = {
- "SatElement",
- "SatElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SatElement_tags_1,
- sizeof(asn_DEF_SatElement_tags_1)
- /sizeof(asn_DEF_SatElement_tags_1[0]), /* 1 */
- asn_DEF_SatElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SatElement_tags_1)
- /sizeof(asn_DEF_SatElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_SatElement_1,
- 9, /* Elements count */
- &asn_SPC_SatElement_specs_1 /* Additional specs */
+ "SatElement",
+ "SatElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SatElement_tags_1,
+ sizeof(asn_DEF_SatElement_tags_1) /
+ sizeof(asn_DEF_SatElement_tags_1[0]), /* 1 */
+ asn_DEF_SatElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SatElement_tags_1) /
+ sizeof(asn_DEF_SatElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_SatElement_1,
+ 9, /* Elements count */
+ &asn_SPC_SatElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SatElement.h b/src/core/libs/supl/asn-rrlp/SatElement.h
index 59bcd8888..3f6a3860a 100644
--- a/src/core/libs/supl/asn-rrlp/SatElement.h
+++ b/src/core/libs/supl/asn-rrlp/SatElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SatElement_H_
#define _SatElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SatStatus.c b/src/core/libs/supl/asn-rrlp/SatStatus.c
index 4f7306873..7fc1d03a8 100644
--- a/src/core/libs/supl/asn-rrlp/SatStatus.c
+++ b/src/core/libs/supl/asn-rrlp/SatStatus.c
@@ -1,80 +1,72 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SatStatus.h"
static asn_per_constraints_t ASN_PER_TYPE_SAT_STATUS_CONSTR_1 = {
- { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2} /* (0..2,...) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SatStatus_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct SatStatus, choice.newSatelliteAndModelUC),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_UncompressedEphemeris,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "newSatelliteAndModelUC"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatStatus, choice.oldSatelliteAndModel),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "oldSatelliteAndModel"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SatStatus, choice.newNaviModelUC),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_UncompressedEphemeris,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "newNaviModelUC"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct SatStatus, choice.newSatelliteAndModelUC),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_UncompressedEphemeris,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "newSatelliteAndModelUC"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatStatus, choice.oldSatelliteAndModel),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "oldSatelliteAndModel"},
+ {ATF_NOFLAGS, 0, offsetof(struct SatStatus, choice.newNaviModelUC),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_UncompressedEphemeris,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "newNaviModelUC"},
};
static asn_TYPE_tag2member_t asn_MAP_SatStatus_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* newSatelliteAndModelUC at 710 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* oldSatelliteAndModel at 713 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* newNaviModelUC at 716 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0}, /* newSatelliteAndModelUC at 710 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* oldSatelliteAndModel at 713 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* newNaviModelUC at 716 */
};
static asn_CHOICE_specifics_t asn_SPC_SatStatus_specs_1 = {
- sizeof(struct SatStatus),
- offsetof(struct SatStatus, _asn_ctx),
- offsetof(struct SatStatus, present),
- sizeof(((struct SatStatus *)0)->present),
- asn_MAP_SatStatus_tag2el_1,
- 3, /* Count of tags in the map */
- 0,
- 3 /* Extensions start */
+ sizeof(struct SatStatus),
+ offsetof(struct SatStatus, _asn_ctx),
+ offsetof(struct SatStatus, present),
+ sizeof(((struct SatStatus *)0)->present),
+ asn_MAP_SatStatus_tag2el_1,
+ 3, /* Count of tags in the map */
+ 0,
+ 3 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_SatStatus = {
- "SatStatus",
- "SatStatus",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_SAT_STATUS_CONSTR_1,
- asn_MBR_SatStatus_1,
- 3, /* Elements count */
- &asn_SPC_SatStatus_specs_1 /* Additional specs */
+ "SatStatus",
+ "SatStatus",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_SAT_STATUS_CONSTR_1,
+ asn_MBR_SatStatus_1,
+ 3, /* Elements count */
+ &asn_SPC_SatStatus_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SatStatus.h b/src/core/libs/supl/asn-rrlp/SatStatus.h
index ffde0c7b4..4396376fd 100644
--- a/src/core/libs/supl/asn-rrlp/SatStatus.h
+++ b/src/core/libs/supl/asn-rrlp/SatStatus.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SatStatus_H_
#define _SatStatus_H_
-
#include
/* Including external dependencies */
@@ -40,9 +39,9 @@ extern "C"
NULL_t oldSatelliteAndModel;
UncompressedEphemeris_t newNaviModelUC;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
} choice;
/* Context for parsing across buffer boundaries */
diff --git a/src/core/libs/supl/asn-rrlp/SatelliteID.c b/src/core/libs/supl/asn-rrlp/SatelliteID.c
index 9d95fda67..30d66d529 100644
--- a/src/core/libs/supl/asn-rrlp/SatelliteID.c
+++ b/src/core/libs/supl/asn-rrlp/SatelliteID.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SatelliteID.h"
-int
-SatelliteID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int SatelliteID_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-SatelliteID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void SatelliteID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-SatelliteID_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void SatelliteID_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-SatelliteID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int SatelliteID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-SatelliteID_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) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t SatelliteID_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)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-SatelliteID_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) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t SatelliteID_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)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-SatelliteID_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) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t SatelliteID_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)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-SatelliteID_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) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t SatelliteID_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)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-SatelliteID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t SatelliteID_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-SatelliteID_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- SatelliteID_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t SatelliteID_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ SatelliteID_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_SATELLITE_ID_CONSTR_1 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_SatelliteID_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_SatelliteID = {
- "SatelliteID",
- "SatelliteID",
- SatelliteID_free,
- SatelliteID_print,
- SatelliteID_constraint,
- SatelliteID_decode_ber,
- SatelliteID_encode_der,
- SatelliteID_decode_xer,
- SatelliteID_encode_xer,
- SatelliteID_decode_uper,
- SatelliteID_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SatelliteID_tags_1,
- sizeof(asn_DEF_SatelliteID_tags_1)
- /sizeof(asn_DEF_SatelliteID_tags_1[0]), /* 1 */
- asn_DEF_SatelliteID_tags_1, /* Same as above */
- sizeof(asn_DEF_SatelliteID_tags_1)
- /sizeof(asn_DEF_SatelliteID_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SATELLITE_ID_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "SatelliteID",
+ "SatelliteID",
+ SatelliteID_free,
+ SatelliteID_print,
+ SatelliteID_constraint,
+ SatelliteID_decode_ber,
+ SatelliteID_encode_der,
+ SatelliteID_decode_xer,
+ SatelliteID_encode_xer,
+ SatelliteID_decode_uper,
+ SatelliteID_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SatelliteID_tags_1,
+ sizeof(asn_DEF_SatelliteID_tags_1) /
+ sizeof(asn_DEF_SatelliteID_tags_1[0]), /* 1 */
+ asn_DEF_SatelliteID_tags_1, /* Same as above */
+ sizeof(asn_DEF_SatelliteID_tags_1) /
+ sizeof(asn_DEF_SatelliteID_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SATELLITE_ID_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SatelliteID.h b/src/core/libs/supl/asn-rrlp/SatelliteID.h
index df5d83a7f..05372d530 100644
--- a/src/core/libs/supl/asn-rrlp/SatelliteID.h
+++ b/src/core/libs/supl/asn-rrlp/SatelliteID.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SatelliteID_H_
#define _SatelliteID_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.c b/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.c
index 867b4dbae..ab1c4ee2f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOf-BadSatelliteSet.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_BAD_SATELLITE_SET_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOf_BadSatelliteSet_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_SatelliteID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0,
+ &asn_DEF_SatelliteID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOf_BadSatelliteSet_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOf_BadSatelliteSet_specs_1 = {
- sizeof(struct SeqOf_BadSatelliteSet),
- offsetof(struct SeqOf_BadSatelliteSet, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOf_BadSatelliteSet),
+ offsetof(struct SeqOf_BadSatelliteSet, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOf_BadSatelliteSet = {
- "SeqOf-BadSatelliteSet",
- "SeqOf-BadSatelliteSet",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOf_BadSatelliteSet_tags_1,
- sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1)
- /sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1[0]), /* 1 */
- asn_DEF_SeqOf_BadSatelliteSet_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1)
- /sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_BAD_SATELLITE_SET_CONSTR_1,
- asn_MBR_SeqOf_BadSatelliteSet_1,
- 1, /* Single element */
- &asn_SPC_SeqOf_BadSatelliteSet_specs_1 /* Additional specs */
+ "SeqOf-BadSatelliteSet",
+ "SeqOf-BadSatelliteSet",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOf_BadSatelliteSet_tags_1,
+ sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1) /
+ sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1[0]), /* 1 */
+ asn_DEF_SeqOf_BadSatelliteSet_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1) /
+ sizeof(asn_DEF_SeqOf_BadSatelliteSet_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_BAD_SATELLITE_SET_CONSTR_1,
+ asn_MBR_SeqOf_BadSatelliteSet_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOf_BadSatelliteSet_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.h b/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.h
index 97c19943f..62d739b9c 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOf-BadSatelliteSet.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOf_BadSatelliteSet_H_
#define _SeqOf_BadSatelliteSet_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.c b/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.c
index c613f6ea8..172e65172 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOf-GANSSDataBits.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_DATA_BITS_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 10, 10, 1, 1024 } /* (SIZE(1..1024)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 10, 10, 1, 1024} /* (SIZE(1..1024)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOf_GANSSDataBits_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_GANSSDataBit,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0,
+ &asn_DEF_GANSSDataBit,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOf_GANSSDataBits_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOf_GANSSDataBits_specs_1 = {
- sizeof(struct SeqOf_GANSSDataBits),
- offsetof(struct SeqOf_GANSSDataBits, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOf_GANSSDataBits),
+ offsetof(struct SeqOf_GANSSDataBits, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOf_GANSSDataBits = {
- "SeqOf-GANSSDataBits",
- "SeqOf-GANSSDataBits",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOf_GANSSDataBits_tags_1,
- sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1)
- /sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1[0]), /* 1 */
- asn_DEF_SeqOf_GANSSDataBits_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1)
- /sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_DATA_BITS_CONSTR_1,
- asn_MBR_SeqOf_GANSSDataBits_1,
- 1, /* Single element */
- &asn_SPC_SeqOf_GANSSDataBits_specs_1 /* Additional specs */
+ "SeqOf-GANSSDataBits",
+ "SeqOf-GANSSDataBits",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOf_GANSSDataBits_tags_1,
+ sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1) /
+ sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1[0]), /* 1 */
+ asn_DEF_SeqOf_GANSSDataBits_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1) /
+ sizeof(asn_DEF_SeqOf_GANSSDataBits_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_DATA_BITS_CONSTR_1,
+ asn_MBR_SeqOf_GANSSDataBits_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOf_GANSSDataBits_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.h b/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.h
index 87b7a5e48..5f1280740 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOf-GANSSDataBits.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOf_GANSSDataBits_H_
#define _SeqOf_GANSSDataBits_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.c b/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.c
index a52a77112..1aeff9d77 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfAcquisElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_ACQUIS_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfAcquisElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_AcquisElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_AcquisElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfAcquisElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfAcquisElement_specs_1 = {
- sizeof(struct SeqOfAcquisElement),
- offsetof(struct SeqOfAcquisElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfAcquisElement),
+ offsetof(struct SeqOfAcquisElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfAcquisElement = {
- "SeqOfAcquisElement",
- "SeqOfAcquisElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfAcquisElement_tags_1,
- sizeof(asn_DEF_SeqOfAcquisElement_tags_1)
- /sizeof(asn_DEF_SeqOfAcquisElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfAcquisElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfAcquisElement_tags_1)
- /sizeof(asn_DEF_SeqOfAcquisElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_ACQUIS_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfAcquisElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfAcquisElement_specs_1 /* Additional specs */
+ "SeqOfAcquisElement",
+ "SeqOfAcquisElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfAcquisElement_tags_1,
+ sizeof(asn_DEF_SeqOfAcquisElement_tags_1) /
+ sizeof(asn_DEF_SeqOfAcquisElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfAcquisElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfAcquisElement_tags_1) /
+ sizeof(asn_DEF_SeqOfAcquisElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_ACQUIS_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfAcquisElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfAcquisElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.h b/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.h
index 4af9824af..b0b1854c4 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfAcquisElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfAcquisElement_H_
#define _SeqOfAcquisElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.c b/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.c
index 3d030ddc1..35f590953 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfAlmanacElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_ALMANAC_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 6, 6, 1, 64 } /* (SIZE(1..64)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 6, 6, 1, 64} /* (SIZE(1..64)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfAlmanacElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_AlmanacElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_AlmanacElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfAlmanacElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfAlmanacElement_specs_1 = {
- sizeof(struct SeqOfAlmanacElement),
- offsetof(struct SeqOfAlmanacElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfAlmanacElement),
+ offsetof(struct SeqOfAlmanacElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfAlmanacElement = {
- "SeqOfAlmanacElement",
- "SeqOfAlmanacElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfAlmanacElement_tags_1,
- sizeof(asn_DEF_SeqOfAlmanacElement_tags_1)
- /sizeof(asn_DEF_SeqOfAlmanacElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfAlmanacElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfAlmanacElement_tags_1)
- /sizeof(asn_DEF_SeqOfAlmanacElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_ALMANAC_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfAlmanacElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfAlmanacElement_specs_1 /* Additional specs */
+ "SeqOfAlmanacElement",
+ "SeqOfAlmanacElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfAlmanacElement_tags_1,
+ sizeof(asn_DEF_SeqOfAlmanacElement_tags_1) /
+ sizeof(asn_DEF_SeqOfAlmanacElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfAlmanacElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfAlmanacElement_tags_1) /
+ sizeof(asn_DEF_SeqOfAlmanacElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_ALMANAC_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfAlmanacElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfAlmanacElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.h b/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.h
index 91ada0e38..a73a7ff9a 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfAlmanacElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfAlmanacElement_H_
#define _SeqOfAlmanacElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.c b/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.c
index 61e5d3c6f..225da2729 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfBadSignalElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_BAD_SIGNAL_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfBadSignalElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_BadSignalElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_BadSignalElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfBadSignalElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfBadSignalElement_specs_1 = {
- sizeof(struct SeqOfBadSignalElement),
- offsetof(struct SeqOfBadSignalElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfBadSignalElement),
+ offsetof(struct SeqOfBadSignalElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfBadSignalElement = {
- "SeqOfBadSignalElement",
- "SeqOfBadSignalElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfBadSignalElement_tags_1,
- sizeof(asn_DEF_SeqOfBadSignalElement_tags_1)
- /sizeof(asn_DEF_SeqOfBadSignalElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfBadSignalElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfBadSignalElement_tags_1)
- /sizeof(asn_DEF_SeqOfBadSignalElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_BAD_SIGNAL_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfBadSignalElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfBadSignalElement_specs_1 /* Additional specs */
+ "SeqOfBadSignalElement",
+ "SeqOfBadSignalElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfBadSignalElement_tags_1,
+ sizeof(asn_DEF_SeqOfBadSignalElement_tags_1) /
+ sizeof(asn_DEF_SeqOfBadSignalElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfBadSignalElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfBadSignalElement_tags_1) /
+ sizeof(asn_DEF_SeqOfBadSignalElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_BAD_SIGNAL_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfBadSignalElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfBadSignalElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.h b/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.h
index a6dda3091..c4c9c3533 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfBadSignalElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfBadSignalElement_H_
#define _SeqOfBadSignalElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.c b/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.c
index d53e83fe1..b07e09a50 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfDGANSSSgnElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_DGANSS_SGN_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfDGANSSSgnElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_DGANSSSgnElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_DGANSSSgnElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfDGANSSSgnElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfDGANSSSgnElement_specs_1 = {
- sizeof(struct SeqOfDGANSSSgnElement),
- offsetof(struct SeqOfDGANSSSgnElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfDGANSSSgnElement),
+ offsetof(struct SeqOfDGANSSSgnElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfDGANSSSgnElement = {
- "SeqOfDGANSSSgnElement",
- "SeqOfDGANSSSgnElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfDGANSSSgnElement_tags_1,
- sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1)
- /sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfDGANSSSgnElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1)
- /sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_DGANSS_SGN_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfDGANSSSgnElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfDGANSSSgnElement_specs_1 /* Additional specs */
+ "SeqOfDGANSSSgnElement",
+ "SeqOfDGANSSSgnElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfDGANSSSgnElement_tags_1,
+ sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1) /
+ sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfDGANSSSgnElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1) /
+ sizeof(asn_DEF_SeqOfDGANSSSgnElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_DGANSS_SGN_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfDGANSSSgnElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfDGANSSSgnElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.h b/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.h
index 662a98a7d..848427e35 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfDGANSSSgnElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfDGANSSSgnElement_H_
#define _SeqOfDGANSSSgnElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.c
index 066acec5a..454ced504 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSS-MsrSetElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_MSR_SET_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_GANSS_MSR_SET_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 2, 2, 1, 3} /* (SIZE(1..3)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSS_MsrSetElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSS_MsrSetElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSS_MsrSetElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSS_MsrSetElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSS_MsrSetElement_specs_1 = {
- sizeof(struct SeqOfGANSS_MsrSetElement),
- offsetof(struct SeqOfGANSS_MsrSetElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGANSS_MsrSetElement),
+ offsetof(struct SeqOfGANSS_MsrSetElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSS_MsrSetElement = {
- "SeqOfGANSS-MsrSetElement",
- "SeqOfGANSS-MsrSetElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSS_MsrSetElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSS_MsrSetElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_MSR_SET_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSS_MsrSetElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSS_MsrSetElement_specs_1 /* Additional specs */
+ "SeqOfGANSS-MsrSetElement",
+ "SeqOfGANSS-MsrSetElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSS_MsrSetElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSS_MsrSetElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSS_MsrSetElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_MSR_SET_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSS_MsrSetElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSS_MsrSetElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.h
index dadd90007..93378a11f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-MsrSetElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSS_MsrSetElement_H_
#define _SeqOfGANSS_MsrSetElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.c
index e77545690..efe0b08fa 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSS-SgnElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_SGN_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSS_SgnElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSS_SgnElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSS_SgnElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSS_SgnElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSS_SgnElement_specs_1 = {
- sizeof(struct SeqOfGANSS_SgnElement),
- offsetof(struct SeqOfGANSS_SgnElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGANSS_SgnElement),
+ offsetof(struct SeqOfGANSS_SgnElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSS_SgnElement = {
- "SeqOfGANSS-SgnElement",
- "SeqOfGANSS-SgnElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSS_SgnElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSS_SgnElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_SGN_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSS_SgnElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSS_SgnElement_specs_1 /* Additional specs */
+ "SeqOfGANSS-SgnElement",
+ "SeqOfGANSS-SgnElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSS_SgnElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSS_SgnElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSS_SgnElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_SGN_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSS_SgnElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSS_SgnElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.h
index b2bbcea2e..aaa6d409f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSS_SgnElement_H_
#define _SeqOfGANSS_SgnElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.c
index 4144d9ae6..e2013b8d4 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSS-SgnTypeElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_SGN_TYPE_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 3, 3, 1, 6 } /* (SIZE(1..6)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_GANSS_SGN_TYPE_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 3, 3, 1, 6} /* (SIZE(1..6)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSS_SgnTypeElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSS_SgnTypeElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSS_SgnTypeElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSS_SgnTypeElement_specs_1 = {
- sizeof(struct SeqOfGANSS_SgnTypeElement),
- offsetof(struct SeqOfGANSS_SgnTypeElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGANSS_SgnTypeElement),
+ offsetof(struct SeqOfGANSS_SgnTypeElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSS_SgnTypeElement = {
- "SeqOfGANSS-SgnTypeElement",
- "SeqOfGANSS-SgnTypeElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_SGN_TYPE_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSS_SgnTypeElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSS_SgnTypeElement_specs_1 /* Additional specs */
+ "SeqOfGANSS-SgnTypeElement",
+ "SeqOfGANSS-SgnTypeElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSS_SgnTypeElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_SGN_TYPE_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSS_SgnTypeElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSS_SgnTypeElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.h
index 1bc77858e..f1a7dcb1c 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSS-SgnTypeElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSS_SgnTypeElement_H_
#define _SeqOfGANSS_SgnTypeElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.c
index 18eb57152..fdaae1587 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSSAlmanacElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_ALMANAC_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 6, 6, 1, 36 } /* (SIZE(1..36)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_GANSS_ALMANAC_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 6, 6, 1, 36} /* (SIZE(1..36)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSSAlmanacElement_1[] = {
- { ATF_POINTER, 0, 0,
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_GANSSAlmanacElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0,
+ &asn_DEF_GANSSAlmanacElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSSAlmanacElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSSAlmanacElement_specs_1 = {
- sizeof(struct SeqOfGANSSAlmanacElement),
- offsetof(struct SeqOfGANSSAlmanacElement, _asn_ctx),
- 2, /* XER encoding is XMLValueList */
+ sizeof(struct SeqOfGANSSAlmanacElement),
+ offsetof(struct SeqOfGANSSAlmanacElement, _asn_ctx),
+ 2, /* XER encoding is XMLValueList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSSAlmanacElement = {
- "SeqOfGANSSAlmanacElement",
- "SeqOfGANSSAlmanacElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSSAlmanacElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSSAlmanacElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_ALMANAC_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSSAlmanacElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSSAlmanacElement_specs_1 /* Additional specs */
+ "SeqOfGANSSAlmanacElement",
+ "SeqOfGANSSAlmanacElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSSAlmanacElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSSAlmanacElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSAlmanacElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_ALMANAC_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSSAlmanacElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSSAlmanacElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.h
index 84bcb452b..1dcfdae87 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSAlmanacElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSSAlmanacElement_H_
#define _SeqOfGANSSAlmanacElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.c
index 56bdf4074..3e6aae21e 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.c
@@ -1,57 +1,54 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSSGenericAssistDataElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_GENERIC_ASSIST_DATA_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 3, 3, 1, 8 } /* (SIZE(1..8)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_GANSS_GENERIC_ASSIST_DATA_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 3, 3, 1, 8} /* (SIZE(1..8)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSSGenericAssistDataElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSSGenericAssistDataElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSSGenericAssistDataElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSSGenericAssistDataElement_specs_1 = {
- sizeof(struct SeqOfGANSSGenericAssistDataElement),
- offsetof(struct SeqOfGANSSGenericAssistDataElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_SET_OF_specifics_t
+ asn_SPC_SeqOfGANSSGenericAssistDataElement_specs_1 = {
+ sizeof(struct SeqOfGANSSGenericAssistDataElement),
+ offsetof(struct SeqOfGANSSGenericAssistDataElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSSGenericAssistDataElement = {
- "SeqOfGANSSGenericAssistDataElement",
- "SeqOfGANSSGenericAssistDataElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_GENERIC_ASSIST_DATA_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSSGenericAssistDataElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSSGenericAssistDataElement_specs_1 /* Additional specs */
+ "SeqOfGANSSGenericAssistDataElement",
+ "SeqOfGANSSGenericAssistDataElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSGenericAssistDataElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_GENERIC_ASSIST_DATA_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSSGenericAssistDataElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSSGenericAssistDataElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.h
index e9a88f2df..fe4b14618 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSGenericAssistDataElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSSGenericAssistDataElement_H_
#define _SeqOfGANSSGenericAssistDataElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.c
index f38140eec..53d8469a3 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.c
@@ -1,57 +1,54 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSSRefMeasurementElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_REF_MEASUREMENT_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_GANSS_REF_MEASUREMENT_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSSRefMeasurementElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSSRefMeasurementElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSSRefMeasurementElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSSRefMeasurementElement_specs_1 = {
- sizeof(struct SeqOfGANSSRefMeasurementElement),
- offsetof(struct SeqOfGANSSRefMeasurementElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSSRefMeasurementElement_specs_1 =
+ {
+ sizeof(struct SeqOfGANSSRefMeasurementElement),
+ offsetof(struct SeqOfGANSSRefMeasurementElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSSRefMeasurementElement = {
- "SeqOfGANSSRefMeasurementElement",
- "SeqOfGANSSRefMeasurementElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_REF_MEASUREMENT_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSSRefMeasurementElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSSRefMeasurementElement_specs_1 /* Additional specs */
+ "SeqOfGANSSRefMeasurementElement",
+ "SeqOfGANSSRefMeasurementElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSRefMeasurementElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_REF_MEASUREMENT_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSSRefMeasurementElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSSRefMeasurementElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.h
index 71ea6d8ac..2f70207aa 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSRefMeasurementElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSSRefMeasurementElement_H_
#define _SeqOfGANSSRefMeasurementElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.c
index 21c130866..9788e28c3 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSSSatelliteElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_SATELLITE_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_GANSS_SATELLITE_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 5, 5, 1, 32} /* (SIZE(1..32)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSSSatelliteElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSSSatelliteElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSSSatelliteElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSSSatelliteElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSSSatelliteElement_specs_1 = {
- sizeof(struct SeqOfGANSSSatelliteElement),
- offsetof(struct SeqOfGANSSSatelliteElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGANSSSatelliteElement),
+ offsetof(struct SeqOfGANSSSatelliteElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSSSatelliteElement = {
- "SeqOfGANSSSatelliteElement",
- "SeqOfGANSSSatelliteElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSSSatelliteElement_tags_1,
- sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSSSatelliteElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_SATELLITE_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGANSSSatelliteElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSSSatelliteElement_specs_1 /* Additional specs */
+ "SeqOfGANSSSatelliteElement",
+ "SeqOfGANSSSatelliteElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSSSatelliteElement_tags_1,
+ sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSSSatelliteElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSSatelliteElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_SATELLITE_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGANSSSatelliteElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSSSatelliteElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.h
index 6f1ad918f..e43f9a69d 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSSatelliteElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSSSatelliteElement_H_
#define _SeqOfGANSSSatelliteElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.c b/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.c
index e3341bd4d..6861e5b3f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGANSSTimeModel.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GANSS_TIME_MODEL_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 3, 3, 1, 7 } /* (SIZE(1..7)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 3, 3, 1, 7} /* (SIZE(1..7)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGANSSTimeModel_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GANSSTimeModelElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GANSSTimeModelElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGANSSTimeModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGANSSTimeModel_specs_1 = {
- sizeof(struct SeqOfGANSSTimeModel),
- offsetof(struct SeqOfGANSSTimeModel, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGANSSTimeModel),
+ offsetof(struct SeqOfGANSSTimeModel, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGANSSTimeModel = {
- "SeqOfGANSSTimeModel",
- "SeqOfGANSSTimeModel",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGANSSTimeModel_tags_1,
- sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGANSSTimeModel_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1)
- /sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GANSS_TIME_MODEL_CONSTR_1,
- asn_MBR_SeqOfGANSSTimeModel_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGANSSTimeModel_specs_1 /* Additional specs */
+ "SeqOfGANSSTimeModel",
+ "SeqOfGANSSTimeModel",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGANSSTimeModel_tags_1,
+ sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGANSSTimeModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1) /
+ sizeof(asn_DEF_SeqOfGANSSTimeModel_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GANSS_TIME_MODEL_CONSTR_1,
+ asn_MBR_SeqOfGANSSTimeModel_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGANSSTimeModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.h b/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.h
index 69294282d..56af35507 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGANSSTimeModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGANSSTimeModel_H_
#define _SeqOfGANSSTimeModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.c
index 16637c8b6..99d3ebb67 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGPS-MsrElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GPS_MSR_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGPS_MsrElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GPS_MsrElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GPS_MsrElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGPS_MsrElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGPS_MsrElement_specs_1 = {
- sizeof(struct SeqOfGPS_MsrElement),
- offsetof(struct SeqOfGPS_MsrElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGPS_MsrElement),
+ offsetof(struct SeqOfGPS_MsrElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGPS_MsrElement = {
- "SeqOfGPS-MsrElement",
- "SeqOfGPS-MsrElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGPS_MsrElement_tags_1,
- sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1)
- /sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGPS_MsrElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1)
- /sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GPS_MSR_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGPS_MsrElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGPS_MsrElement_specs_1 /* Additional specs */
+ "SeqOfGPS-MsrElement",
+ "SeqOfGPS-MsrElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGPS_MsrElement_tags_1,
+ sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGPS_MsrElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGPS_MsrElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GPS_MSR_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGPS_MsrElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGPS_MsrElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.h
index 6d8816f40..bc2af2409 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGPS_MsrElement_H_
#define _SeqOfGPS_MsrElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.c b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.c
index ab5c3a559..a990f4f38 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfGPS-MsrSetElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GPS_MSR_SET_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_GPS_MSR_SET_ELEMENT_CONSTR_1 =
+ {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 2, 2, 1, 3} /* (SIZE(1..3)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfGPS_MsrSetElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_GPS_MsrSetElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_GPS_MsrSetElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfGPS_MsrSetElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfGPS_MsrSetElement_specs_1 = {
- sizeof(struct SeqOfGPS_MsrSetElement),
- offsetof(struct SeqOfGPS_MsrSetElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfGPS_MsrSetElement),
+ offsetof(struct SeqOfGPS_MsrSetElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfGPS_MsrSetElement = {
- "SeqOfGPS-MsrSetElement",
- "SeqOfGPS-MsrSetElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfGPS_MsrSetElement_tags_1,
- sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfGPS_MsrSetElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1)
- /sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_GPS_MSR_SET_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfGPS_MsrSetElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfGPS_MsrSetElement_specs_1 /* Additional specs */
+ "SeqOfGPS-MsrSetElement",
+ "SeqOfGPS-MsrSetElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfGPS_MsrSetElement_tags_1,
+ sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfGPS_MsrSetElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1) /
+ sizeof(asn_DEF_SeqOfGPS_MsrSetElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_GPS_MSR_SET_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfGPS_MsrSetElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfGPS_MsrSetElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.h b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.h
index 6a7cf5cb1..f1484567d 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfGPS-MsrSetElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfGPS_MsrSetElement_H_
#define _SeqOfGPS_MsrSetElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.c
index 60bd0348d..3ee788715 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfMsrAssistBTS-R98-ExpOTD.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_R98_EXP_OTD_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_R98_EXP_OTD_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 15} /* (SIZE(1..15)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfMsrAssistBTS_R98_ExpOTD_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_MsrAssistBTS_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_MsrAssistBTS_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfMsrAssistBTS_R98_ExpOTD_specs_1 = {
- sizeof(struct SeqOfMsrAssistBTS_R98_ExpOTD),
- offsetof(struct SeqOfMsrAssistBTS_R98_ExpOTD, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfMsrAssistBTS_R98_ExpOTD),
+ offsetof(struct SeqOfMsrAssistBTS_R98_ExpOTD, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD = {
- "SeqOfMsrAssistBTS-R98-ExpOTD",
- "SeqOfMsrAssistBTS-R98-ExpOTD",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1,
- sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_R98_EXP_OTD_CONSTR_1,
- asn_MBR_SeqOfMsrAssistBTS_R98_ExpOTD_1,
- 1, /* Single element */
- &asn_SPC_SeqOfMsrAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
+ "SeqOfMsrAssistBTS-R98-ExpOTD",
+ "SeqOfMsrAssistBTS-R98-ExpOTD",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1,
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_R98_EXP_OTD_CONSTR_1,
+ asn_MBR_SeqOfMsrAssistBTS_R98_ExpOTD_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfMsrAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.h
index eda30a58d..c6fb067b4 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfMsrAssistBTS_R98_ExpOTD_H_
#define _SeqOfMsrAssistBTS_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.c b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.c
index 27bff4abf..54238ae86 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfMsrAssistBTS.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 15 } /* (SIZE(1..15)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 15} /* (SIZE(1..15)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfMsrAssistBTS_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_MsrAssistBTS,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_MsrAssistBTS,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfMsrAssistBTS_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfMsrAssistBTS_specs_1 = {
- sizeof(struct SeqOfMsrAssistBTS),
- offsetof(struct SeqOfMsrAssistBTS, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfMsrAssistBTS),
+ offsetof(struct SeqOfMsrAssistBTS, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfMsrAssistBTS = {
- "SeqOfMsrAssistBTS",
- "SeqOfMsrAssistBTS",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfMsrAssistBTS_tags_1,
- sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1)
- /sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1[0]), /* 1 */
- asn_DEF_SeqOfMsrAssistBTS_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1)
- /sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_CONSTR_1,
- asn_MBR_SeqOfMsrAssistBTS_1,
- 1, /* Single element */
- &asn_SPC_SeqOfMsrAssistBTS_specs_1 /* Additional specs */
+ "SeqOfMsrAssistBTS",
+ "SeqOfMsrAssistBTS",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfMsrAssistBTS_tags_1,
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1) /
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfMsrAssistBTS_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1) /
+ sizeof(asn_DEF_SeqOfMsrAssistBTS_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_MSR_ASSIST_BTS_CONSTR_1,
+ asn_MBR_SeqOfMsrAssistBTS_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfMsrAssistBTS_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.h b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.h
index 6a335b660..a87fe0b33 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfMsrAssistBTS.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfMsrAssistBTS_H_
#define _SeqOfMsrAssistBTS_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.c b/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.c
index 1606f1a20..ecf87d4c8 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfNavModelElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_NAV_MODEL_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfNavModelElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_NavModelElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_NavModelElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfNavModelElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfNavModelElement_specs_1 = {
- sizeof(struct SeqOfNavModelElement),
- offsetof(struct SeqOfNavModelElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfNavModelElement),
+ offsetof(struct SeqOfNavModelElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfNavModelElement = {
- "SeqOfNavModelElement",
- "SeqOfNavModelElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfNavModelElement_tags_1,
- sizeof(asn_DEF_SeqOfNavModelElement_tags_1)
- /sizeof(asn_DEF_SeqOfNavModelElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfNavModelElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfNavModelElement_tags_1)
- /sizeof(asn_DEF_SeqOfNavModelElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_NAV_MODEL_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfNavModelElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfNavModelElement_specs_1 /* Additional specs */
+ "SeqOfNavModelElement",
+ "SeqOfNavModelElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfNavModelElement_tags_1,
+ sizeof(asn_DEF_SeqOfNavModelElement_tags_1) /
+ sizeof(asn_DEF_SeqOfNavModelElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfNavModelElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfNavModelElement_tags_1) /
+ sizeof(asn_DEF_SeqOfNavModelElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_NAV_MODEL_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfNavModelElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfNavModelElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.h b/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.h
index 65c7c1707..4ad6ea00d 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfNavModelElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfNavModelElement_H_
#define _SeqOfNavModelElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.c b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.c
index 5e2bb795d..c84e758a1 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfOTD-FirstSetMsrs-R98-Ext.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_R98_EXT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 3, 3, 1, 5 } /* (SIZE(1..5)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_R98_EXT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 3, 3, 1, 5} /* (SIZE(1..5)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfOTD_FirstSetMsrs_R98_Ext_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_OTD_FirstSetMsrs,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_OTD_FirstSetMsrs,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfOTD_FirstSetMsrs_R98_Ext_specs_1 = {
- sizeof(struct SeqOfOTD_FirstSetMsrs_R98_Ext),
- offsetof(struct SeqOfOTD_FirstSetMsrs_R98_Ext, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfOTD_FirstSetMsrs_R98_Ext),
+ offsetof(struct SeqOfOTD_FirstSetMsrs_R98_Ext, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext = {
- "SeqOfOTD-FirstSetMsrs-R98-Ext",
- "SeqOfOTD-FirstSetMsrs-R98-Ext",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1,
- sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1[0]), /* 1 */
- asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_R98_EXT_CONSTR_1,
- asn_MBR_SeqOfOTD_FirstSetMsrs_R98_Ext_1,
- 1, /* Single element */
- &asn_SPC_SeqOfOTD_FirstSetMsrs_R98_Ext_specs_1 /* Additional specs */
+ "SeqOfOTD-FirstSetMsrs-R98-Ext",
+ "SeqOfOTD-FirstSetMsrs-R98-Ext",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1,
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_R98_Ext_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_R98_EXT_CONSTR_1,
+ asn_MBR_SeqOfOTD_FirstSetMsrs_R98_Ext_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfOTD_FirstSetMsrs_R98_Ext_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.h b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.h
index 5b22e1e2a..56fd5116c 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs-R98-Ext.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfOTD_FirstSetMsrs_R98_Ext_H_
#define _SeqOfOTD_FirstSetMsrs_R98_Ext_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.c b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.c
index bfebd113d..3fd18b74f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfOTD-FirstSetMsrs.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 10 } /* (SIZE(1..10)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 10} /* (SIZE(1..10)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfOTD_FirstSetMsrs_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_OTD_FirstSetMsrs,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_OTD_FirstSetMsrs,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfOTD_FirstSetMsrs_specs_1 = {
- sizeof(struct SeqOfOTD_FirstSetMsrs),
- offsetof(struct SeqOfOTD_FirstSetMsrs, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfOTD_FirstSetMsrs),
+ offsetof(struct SeqOfOTD_FirstSetMsrs, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfOTD_FirstSetMsrs = {
- "SeqOfOTD-FirstSetMsrs",
- "SeqOfOTD-FirstSetMsrs",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1,
- sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1[0]), /* 1 */
- asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_CONSTR_1,
- asn_MBR_SeqOfOTD_FirstSetMsrs_1,
- 1, /* Single element */
- &asn_SPC_SeqOfOTD_FirstSetMsrs_specs_1 /* Additional specs */
+ "SeqOfOTD-FirstSetMsrs",
+ "SeqOfOTD-FirstSetMsrs",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1,
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_FirstSetMsrs_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_OTD_FIRST_SET_MSRS_CONSTR_1,
+ asn_MBR_SeqOfOTD_FirstSetMsrs_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfOTD_FirstSetMsrs_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.h b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.h
index 064613c99..f0e58d16f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-FirstSetMsrs.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfOTD_FirstSetMsrs_H_
#define _SeqOfOTD_FirstSetMsrs_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.c b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.c
index dae155d61..d93a8834e 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfOTD-MsrElementRest.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_OTD_MSR_ELEMENT_REST_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_OTD_MSR_ELEMENT_REST_CONSTR_1 =
+ {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 1, 1, 1, 2} /* (SIZE(1..2)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfOTD_MsrElementRest_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_OTD_MsrElementRest,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_OTD_MsrElementRest,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfOTD_MsrElementRest_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfOTD_MsrElementRest_specs_1 = {
- sizeof(struct SeqOfOTD_MsrElementRest),
- offsetof(struct SeqOfOTD_MsrElementRest, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfOTD_MsrElementRest),
+ offsetof(struct SeqOfOTD_MsrElementRest, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfOTD_MsrElementRest = {
- "SeqOfOTD-MsrElementRest",
- "SeqOfOTD-MsrElementRest",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfOTD_MsrElementRest_tags_1,
- sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1[0]), /* 1 */
- asn_DEF_SeqOfOTD_MsrElementRest_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_OTD_MSR_ELEMENT_REST_CONSTR_1,
- asn_MBR_SeqOfOTD_MsrElementRest_1,
- 1, /* Single element */
- &asn_SPC_SeqOfOTD_MsrElementRest_specs_1 /* Additional specs */
+ "SeqOfOTD-MsrElementRest",
+ "SeqOfOTD-MsrElementRest",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfOTD_MsrElementRest_tags_1,
+ sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfOTD_MsrElementRest_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_MsrElementRest_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_OTD_MSR_ELEMENT_REST_CONSTR_1,
+ asn_MBR_SeqOfOTD_MsrElementRest_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfOTD_MsrElementRest_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.h b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.h
index 1fcd622d9..73dda4159 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrElementRest.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfOTD_MsrElementRest_H_
#define _SeqOfOTD_MsrElementRest_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.c b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.c
index 2c7b3b47d..030e737eb 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfOTD-MsrsOfOtherSets.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_OTD_MSRS_OF_OTHER_SETS_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 10 } /* (SIZE(1..10)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_OTD_MSRS_OF_OTHER_SETS_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 10} /* (SIZE(1..10)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfOTD_MsrsOfOtherSets_1[] = {
- { ATF_POINTER, 0, 0,
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_OTD_MsrsOfOtherSets,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0,
+ &asn_DEF_OTD_MsrsOfOtherSets,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfOTD_MsrsOfOtherSets_specs_1 = {
- sizeof(struct SeqOfOTD_MsrsOfOtherSets),
- offsetof(struct SeqOfOTD_MsrsOfOtherSets, _asn_ctx),
- 2, /* XER encoding is XMLValueList */
+ sizeof(struct SeqOfOTD_MsrsOfOtherSets),
+ offsetof(struct SeqOfOTD_MsrsOfOtherSets, _asn_ctx),
+ 2, /* XER encoding is XMLValueList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfOTD_MsrsOfOtherSets = {
- "SeqOfOTD-MsrsOfOtherSets",
- "SeqOfOTD-MsrsOfOtherSets",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1,
- sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1[0]), /* 1 */
- asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1)
- /sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_OTD_MSRS_OF_OTHER_SETS_CONSTR_1,
- asn_MBR_SeqOfOTD_MsrsOfOtherSets_1,
- 1, /* Single element */
- &asn_SPC_SeqOfOTD_MsrsOfOtherSets_specs_1 /* Additional specs */
+ "SeqOfOTD-MsrsOfOtherSets",
+ "SeqOfOTD-MsrsOfOtherSets",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1,
+ sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1) /
+ sizeof(asn_DEF_SeqOfOTD_MsrsOfOtherSets_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_OTD_MSRS_OF_OTHER_SETS_CONSTR_1,
+ asn_MBR_SeqOfOTD_MsrsOfOtherSets_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfOTD_MsrsOfOtherSets_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.h b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.h
index d07504607..e0dbc155f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfOTD-MsrsOfOtherSets.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfOTD_MsrsOfOtherSets_H_
#define _SeqOfOTD_MsrsOfOtherSets_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.c b/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.c
index 9e55174be..e8c91385f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfReferenceIdentityType.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_REFERENCE_IDENTITY_TYPE_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_REFERENCE_IDENTITY_TYPE_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 2, 2, 1, 3} /* (SIZE(1..3)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfReferenceIdentityType_1[] = {
- { ATF_POINTER, 0, 0,
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_ReferenceIdentityType,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0,
+ &asn_DEF_ReferenceIdentityType,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfReferenceIdentityType_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfReferenceIdentityType_specs_1 = {
- sizeof(struct SeqOfReferenceIdentityType),
- offsetof(struct SeqOfReferenceIdentityType, _asn_ctx),
- 2, /* XER encoding is XMLValueList */
+ sizeof(struct SeqOfReferenceIdentityType),
+ offsetof(struct SeqOfReferenceIdentityType, _asn_ctx),
+ 2, /* XER encoding is XMLValueList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfReferenceIdentityType = {
- "SeqOfReferenceIdentityType",
- "SeqOfReferenceIdentityType",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfReferenceIdentityType_tags_1,
- sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1)
- /sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1[0]), /* 1 */
- asn_DEF_SeqOfReferenceIdentityType_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1)
- /sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_REFERENCE_IDENTITY_TYPE_CONSTR_1,
- asn_MBR_SeqOfReferenceIdentityType_1,
- 1, /* Single element */
- &asn_SPC_SeqOfReferenceIdentityType_specs_1 /* Additional specs */
+ "SeqOfReferenceIdentityType",
+ "SeqOfReferenceIdentityType",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfReferenceIdentityType_tags_1,
+ sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1) /
+ sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfReferenceIdentityType_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1) /
+ sizeof(asn_DEF_SeqOfReferenceIdentityType_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_REFERENCE_IDENTITY_TYPE_CONSTR_1,
+ asn_MBR_SeqOfReferenceIdentityType_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfReferenceIdentityType_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.h b/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.h
index f5a3c0403..505629503 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfReferenceIdentityType.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfReferenceIdentityType_H_
#define _SeqOfReferenceIdentityType_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSatElement.c b/src/core/libs/supl/asn-rrlp/SeqOfSatElement.c
index 2e8aaa42c..e824a864d 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSatElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSatElement.c
@@ -1,57 +1,50 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfSatElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_SAT_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 4, 4, 1, 16} /* (SIZE(1..16)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfSatElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_SatElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_SatElement, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfSatElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfSatElement_specs_1 = {
- sizeof(struct SeqOfSatElement),
- offsetof(struct SeqOfSatElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfSatElement), offsetof(struct SeqOfSatElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfSatElement = {
- "SeqOfSatElement",
- "SeqOfSatElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfSatElement_tags_1,
- sizeof(asn_DEF_SeqOfSatElement_tags_1)
- /sizeof(asn_DEF_SeqOfSatElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfSatElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfSatElement_tags_1)
- /sizeof(asn_DEF_SeqOfSatElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_SAT_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfSatElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfSatElement_specs_1 /* Additional specs */
+ "SeqOfSatElement",
+ "SeqOfSatElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfSatElement_tags_1,
+ sizeof(asn_DEF_SeqOfSatElement_tags_1) /
+ sizeof(asn_DEF_SeqOfSatElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfSatElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfSatElement_tags_1) /
+ sizeof(asn_DEF_SeqOfSatElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_SAT_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfSatElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfSatElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSatElement.h b/src/core/libs/supl/asn-rrlp/SeqOfSatElement.h
index 096382c3e..29a2adf63 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSatElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSatElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfSatElement_H_
#define _SeqOfSatElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.c b/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.c
index 23920f7fc..527dc2487 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.c
@@ -1,57 +1,52 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfSgnTypeElement.h"
static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_SGN_TYPE_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */,
- 0, 0 /* No PER value map */
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 2, 2, 1, 3} /* (SIZE(1..3)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfSgnTypeElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_SgnTypeElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_SgnTypeElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfSgnTypeElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfSgnTypeElement_specs_1 = {
- sizeof(struct SeqOfSgnTypeElement),
- offsetof(struct SeqOfSgnTypeElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfSgnTypeElement),
+ offsetof(struct SeqOfSgnTypeElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfSgnTypeElement = {
- "SeqOfSgnTypeElement",
- "SeqOfSgnTypeElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfSgnTypeElement_tags_1,
- sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1)
- /sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfSgnTypeElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1)
- /sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_SGN_TYPE_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfSgnTypeElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfSgnTypeElement_specs_1 /* Additional specs */
+ "SeqOfSgnTypeElement",
+ "SeqOfSgnTypeElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfSgnTypeElement_tags_1,
+ sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1) /
+ sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfSgnTypeElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1) /
+ sizeof(asn_DEF_SeqOfSgnTypeElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_SGN_TYPE_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfSgnTypeElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfSgnTypeElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.h b/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.h
index d106c9c18..23335a112 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSgnTypeElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfSgnTypeElement_H_
#define _SeqOfSgnTypeElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.c b/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.c
index 43c0778d7..ff3243ed2 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfStandardClockModelElement.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_STANDARD_CLOCK_MODEL_ELEMENT_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_STANDARD_CLOCK_MODEL_ELEMENT_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 1, 1, 1, 2} /* (SIZE(1..2)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfStandardClockModelElement_1[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_StandardClockModelElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0,
+ &asn_DEF_StandardClockModelElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfStandardClockModelElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfStandardClockModelElement_specs_1 = {
- sizeof(struct SeqOfStandardClockModelElement),
- offsetof(struct SeqOfStandardClockModelElement, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
+ sizeof(struct SeqOfStandardClockModelElement),
+ offsetof(struct SeqOfStandardClockModelElement, _asn_ctx),
+ 0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfStandardClockModelElement = {
- "SeqOfStandardClockModelElement",
- "SeqOfStandardClockModelElement",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfStandardClockModelElement_tags_1,
- sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1)
- /sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1[0]), /* 1 */
- asn_DEF_SeqOfStandardClockModelElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1)
- /sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_STANDARD_CLOCK_MODEL_ELEMENT_CONSTR_1,
- asn_MBR_SeqOfStandardClockModelElement_1,
- 1, /* Single element */
- &asn_SPC_SeqOfStandardClockModelElement_specs_1 /* Additional specs */
+ "SeqOfStandardClockModelElement",
+ "SeqOfStandardClockModelElement",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfStandardClockModelElement_tags_1,
+ sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1) /
+ sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfStandardClockModelElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1) /
+ sizeof(asn_DEF_SeqOfStandardClockModelElement_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_STANDARD_CLOCK_MODEL_ELEMENT_CONSTR_1,
+ asn_MBR_SeqOfStandardClockModelElement_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfStandardClockModelElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.h b/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.h
index 13b193f5f..a4e97bad3 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfStandardClockModelElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfStandardClockModelElement_H_
#define _SeqOfStandardClockModelElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.c
index 0f53a336b..5138c29b4 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.c
@@ -1,57 +1,54 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfSystemInfoAssistBTS-R98-ExpOTD.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 5, 5, 1, 32} /* (SIZE(1..32)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfSystemInfoAssistBTS_R98_ExpOTD_1[] = {
- { ATF_POINTER, 0, 0,
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_SystemInfoAssistBTS_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0,
+ &asn_DEF_SystemInfoAssistBTS_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_SeqOfSystemInfoAssistBTS_R98_ExpOTD_specs_1 = {
- sizeof(struct SeqOfSystemInfoAssistBTS_R98_ExpOTD),
- offsetof(struct SeqOfSystemInfoAssistBTS_R98_ExpOTD, _asn_ctx),
- 2, /* XER encoding is XMLValueList */
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_SET_OF_specifics_t
+ asn_SPC_SeqOfSystemInfoAssistBTS_R98_ExpOTD_specs_1 = {
+ sizeof(struct SeqOfSystemInfoAssistBTS_R98_ExpOTD),
+ offsetof(struct SeqOfSystemInfoAssistBTS_R98_ExpOTD, _asn_ctx),
+ 2, /* XER encoding is XMLValueList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD = {
- "SeqOfSystemInfoAssistBTS-R98-ExpOTD",
- "SeqOfSystemInfoAssistBTS-R98-ExpOTD",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1,
- sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1,
- asn_MBR_SeqOfSystemInfoAssistBTS_R98_ExpOTD_1,
- 1, /* Single element */
- &asn_SPC_SeqOfSystemInfoAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
+ "SeqOfSystemInfoAssistBTS-R98-ExpOTD",
+ "SeqOfSystemInfoAssistBTS-R98-ExpOTD",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1,
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1,
+ asn_MBR_SeqOfSystemInfoAssistBTS_R98_ExpOTD_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfSystemInfoAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.h
index 20aca403e..2054c071f 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfSystemInfoAssistBTS_R98_ExpOTD_H_
#define _SeqOfSystemInfoAssistBTS_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.c b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.c
index 9a0af489a..673f95688 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.c
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.c
@@ -1,57 +1,53 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SeqOfSystemInfoAssistBTS.h"
-static asn_per_constraints_t ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_CONSTR_1 = {
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- { APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */,
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_CONSTR_1 = {
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ {APC_CONSTRAINED, 5, 5, 1, 32} /* (SIZE(1..32)) */,
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SeqOfSystemInfoAssistBTS_1[] = {
- { ATF_POINTER, 0, 0,
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_SystemInfoAssistBTS,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- ""
- },
+ {ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0,
+ &asn_DEF_SystemInfoAssistBTS,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, ""},
};
static ber_tlv_tag_t asn_DEF_SeqOfSystemInfoAssistBTS_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_SET_OF_specifics_t asn_SPC_SeqOfSystemInfoAssistBTS_specs_1 = {
- sizeof(struct SeqOfSystemInfoAssistBTS),
- offsetof(struct SeqOfSystemInfoAssistBTS, _asn_ctx),
- 2, /* XER encoding is XMLValueList */
+ sizeof(struct SeqOfSystemInfoAssistBTS),
+ offsetof(struct SeqOfSystemInfoAssistBTS, _asn_ctx),
+ 2, /* XER encoding is XMLValueList */
};
asn_TYPE_descriptor_t asn_DEF_SeqOfSystemInfoAssistBTS = {
- "SeqOfSystemInfoAssistBTS",
- "SeqOfSystemInfoAssistBTS",
- SEQUENCE_OF_free,
- SEQUENCE_OF_print,
- SEQUENCE_OF_constraint,
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
- SEQUENCE_OF_decode_uper,
- SEQUENCE_OF_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SeqOfSystemInfoAssistBTS_tags_1,
- sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1)
- /sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1[0]), /* 1 */
- asn_DEF_SeqOfSystemInfoAssistBTS_tags_1, /* Same as above */
- sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1)
- /sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_CONSTR_1,
- asn_MBR_SeqOfSystemInfoAssistBTS_1,
- 1, /* Single element */
- &asn_SPC_SeqOfSystemInfoAssistBTS_specs_1 /* Additional specs */
+ "SeqOfSystemInfoAssistBTS",
+ "SeqOfSystemInfoAssistBTS",
+ SEQUENCE_OF_free,
+ SEQUENCE_OF_print,
+ SEQUENCE_OF_constraint,
+ SEQUENCE_OF_decode_ber,
+ SEQUENCE_OF_encode_der,
+ SEQUENCE_OF_decode_xer,
+ SEQUENCE_OF_encode_xer,
+ SEQUENCE_OF_decode_uper,
+ SEQUENCE_OF_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SeqOfSystemInfoAssistBTS_tags_1,
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1) /
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1[0]), /* 1 */
+ asn_DEF_SeqOfSystemInfoAssistBTS_tags_1, /* Same as above */
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1) /
+ sizeof(asn_DEF_SeqOfSystemInfoAssistBTS_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SEQ_OF_SYSTEM_INFO_ASSIST_BTS_CONSTR_1,
+ asn_MBR_SeqOfSystemInfoAssistBTS_1,
+ 1, /* Single element */
+ &asn_SPC_SeqOfSystemInfoAssistBTS_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.h b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.h
index 8ab68ffb6..12301f50c 100644
--- a/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.h
+++ b/src/core/libs/supl/asn-rrlp/SeqOfSystemInfoAssistBTS.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SeqOfSystemInfoAssistBTS_H_
#define _SeqOfSystemInfoAssistBTS_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SgnTypeElement.c b/src/core/libs/supl/asn-rrlp/SgnTypeElement.c
index 946abbe38..716ca2898 100644
--- a/src/core/libs/supl/asn-rrlp/SgnTypeElement.c
+++ b/src/core/libs/supl/asn-rrlp/SgnTypeElement.c
@@ -1,111 +1,104 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SgnTypeElement.h"
-static int
-memb_ganssStatusHealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ganssStatusHealth_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_GANSS_STATUS_HEALTH_CONSTR_3 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SgnTypeElement_1[] = {
- { ATF_POINTER, 1, offsetof(struct SgnTypeElement, ganssSignalID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GANSSSignalID,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ganssSignalID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SgnTypeElement, ganssStatusHealth),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ganssStatusHealth_constraint_1,
- &ASN_PER_MEMB_GANSS_STATUS_HEALTH_CONSTR_3,
- 0,
- "ganssStatusHealth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SgnTypeElement, dganssSgnList),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfDGANSSSgnElement,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "dganssSgnList"
- },
+ {ATF_POINTER, 1, offsetof(struct SgnTypeElement, ganssSignalID),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GANSSSignalID,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ganssSignalID"},
+ {ATF_NOFLAGS, 0, offsetof(struct SgnTypeElement, ganssStatusHealth),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ganssStatusHealth_constraint_1,
+ &ASN_PER_MEMB_GANSS_STATUS_HEALTH_CONSTR_3, 0, "ganssStatusHealth"},
+ {ATF_NOFLAGS, 0, offsetof(struct SgnTypeElement, dganssSgnList),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfDGANSSSgnElement,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "dganssSgnList"},
};
-static int asn_MAP_SgnTypeElement_oms_1[] = { 0 };
+static int asn_MAP_SgnTypeElement_oms_1[] = {0};
static ber_tlv_tag_t asn_DEF_SgnTypeElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_SgnTypeElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ganssSignalID at 1196 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ganssStatusHealth at 1197 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* dganssSgnList at 1200 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ganssSignalID at 1196 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0,
+ 0}, /* ganssStatusHealth at 1197 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0} /* dganssSgnList at 1200 */
};
static asn_SEQUENCE_specifics_t asn_SPC_SgnTypeElement_specs_1 = {
- sizeof(struct SgnTypeElement),
- offsetof(struct SgnTypeElement, _asn_ctx),
- asn_MAP_SgnTypeElement_tag2el_1,
- 3, /* Count of tags in the map */
- asn_MAP_SgnTypeElement_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct SgnTypeElement),
+ offsetof(struct SgnTypeElement, _asn_ctx),
+ asn_MAP_SgnTypeElement_tag2el_1,
+ 3, /* Count of tags in the map */
+ asn_MAP_SgnTypeElement_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_SgnTypeElement = {
- "SgnTypeElement",
- "SgnTypeElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SgnTypeElement_tags_1,
- sizeof(asn_DEF_SgnTypeElement_tags_1)
- /sizeof(asn_DEF_SgnTypeElement_tags_1[0]), /* 1 */
- asn_DEF_SgnTypeElement_tags_1, /* Same as above */
- sizeof(asn_DEF_SgnTypeElement_tags_1)
- /sizeof(asn_DEF_SgnTypeElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_SgnTypeElement_1,
- 3, /* Elements count */
- &asn_SPC_SgnTypeElement_specs_1 /* Additional specs */
+ "SgnTypeElement",
+ "SgnTypeElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SgnTypeElement_tags_1,
+ sizeof(asn_DEF_SgnTypeElement_tags_1) /
+ sizeof(asn_DEF_SgnTypeElement_tags_1[0]), /* 1 */
+ asn_DEF_SgnTypeElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_SgnTypeElement_tags_1) /
+ sizeof(asn_DEF_SgnTypeElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_SgnTypeElement_1,
+ 3, /* Elements count */
+ &asn_SPC_SgnTypeElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SgnTypeElement.h b/src/core/libs/supl/asn-rrlp/SgnTypeElement.h
index 968ee88ef..6e4bd8a15 100644
--- a/src/core/libs/supl/asn-rrlp/SgnTypeElement.h
+++ b/src/core/libs/supl/asn-rrlp/SgnTypeElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SgnTypeElement_H_
#define _SgnTypeElement_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/StandardClockModelElement.c b/src/core/libs/supl/asn-rrlp/StandardClockModelElement.c
index 2e17a8a54..82c5110bc 100644
--- a/src/core/libs/supl/asn-rrlp/StandardClockModelElement.c
+++ b/src/core/libs/supl/asn-rrlp/StandardClockModelElement.c
@@ -1,291 +1,291 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "StandardClockModelElement.h"
-static int
-memb_stanClockTocLSB_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 511)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stanClockTocLSB_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 511))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stanClockAF2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -2048 && value <= 2047)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stanClockAF2_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -2048 && value <= 2047))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stanClockAF1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -131072 && value <= 131071)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stanClockAF1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -131072 && value <= 131071))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stanClockAF0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -134217728 && value <= 134217727)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stanClockAF0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -134217728 && value <= 134217727))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stanClockTgd_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -512 && value <= 511)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stanClockTgd_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -512 && value <= 511))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_stanModelID_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_stanModelID_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_STAN_CLOCK_TOC_LSB_CONSTR_2 = {
- { APC_CONSTRAINED, 9, 9, 0, 511 } /* (0..511) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 9, 9, 0, 511} /* (0..511) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STAN_CLOCK_A_F2_CONSTR_3 = {
- { APC_CONSTRAINED, 12, 12, -2048, 2047 } /* (-2048..2047) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 12, 12, -2048, 2047} /* (-2048..2047) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STAN_CLOCK_A_F1_CONSTR_4 = {
- { APC_CONSTRAINED, 18, -1, -131072, 131071 } /* (-131072..131071) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 18, -1, -131072, 131071} /* (-131072..131071) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STAN_CLOCK_A_F0_CONSTR_5 = {
- { APC_CONSTRAINED, 28, -1, -134217728, 134217727 } /* (-134217728..134217727) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 28, -1, -134217728,
+ 134217727} /* (-134217728..134217727) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STAN_CLOCK_TGD_CONSTR_6 = {
- { APC_CONSTRAINED, 10, 10, -512, 511 } /* (-512..511) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, -512, 511} /* (-512..511) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_STAN_MODEL_ID_CONSTR_7 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_StandardClockModelElement_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockTocLSB),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stanClockTocLSB_constraint_1,
- &ASN_PER_MEMB_STAN_CLOCK_TOC_LSB_CONSTR_2,
- 0,
- "stanClockTocLSB"
- },
- { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF2),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stanClockAF2_constraint_1,
- &ASN_PER_MEMB_STAN_CLOCK_A_F2_CONSTR_3,
- 0,
- "stanClockAF2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF1),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stanClockAF1_constraint_1,
- &ASN_PER_MEMB_STAN_CLOCK_A_F1_CONSTR_4,
- 0,
- "stanClockAF1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF0),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stanClockAF0_constraint_1,
- &ASN_PER_MEMB_STAN_CLOCK_A_F0_CONSTR_5,
- 0,
- "stanClockAF0"
- },
- { ATF_POINTER, 2, offsetof(struct StandardClockModelElement, stanClockTgd),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stanClockTgd_constraint_1,
- &ASN_PER_MEMB_STAN_CLOCK_TGD_CONSTR_6,
- 0,
- "stanClockTgd"
- },
- { ATF_POINTER, 1, offsetof(struct StandardClockModelElement, stanModelID),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_stanModelID_constraint_1,
- &ASN_PER_MEMB_STAN_MODEL_ID_CONSTR_7,
- 0,
- "stanModelID"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct StandardClockModelElement, stanClockTocLSB),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stanClockTocLSB_constraint_1,
+ &ASN_PER_MEMB_STAN_CLOCK_TOC_LSB_CONSTR_2, 0, "stanClockTocLSB"},
+ {ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF2),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stanClockAF2_constraint_1,
+ &ASN_PER_MEMB_STAN_CLOCK_A_F2_CONSTR_3, 0, "stanClockAF2"},
+ {ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF1),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stanClockAF1_constraint_1,
+ &ASN_PER_MEMB_STAN_CLOCK_A_F1_CONSTR_4, 0, "stanClockAF1"},
+ {ATF_NOFLAGS, 0, offsetof(struct StandardClockModelElement, stanClockAF0),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stanClockAF0_constraint_1,
+ &ASN_PER_MEMB_STAN_CLOCK_A_F0_CONSTR_5, 0, "stanClockAF0"},
+ {ATF_POINTER, 2, offsetof(struct StandardClockModelElement, stanClockTgd),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stanClockTgd_constraint_1,
+ &ASN_PER_MEMB_STAN_CLOCK_TGD_CONSTR_6, 0, "stanClockTgd"},
+ {ATF_POINTER, 1, offsetof(struct StandardClockModelElement, stanModelID),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_stanModelID_constraint_1,
+ &ASN_PER_MEMB_STAN_MODEL_ID_CONSTR_7, 0, "stanModelID"},
};
-static int asn_MAP_StandardClockModelElement_oms_1[] = { 4, 5 };
+static int asn_MAP_StandardClockModelElement_oms_1[] = {4, 5};
static ber_tlv_tag_t asn_DEF_StandardClockModelElement_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_StandardClockModelElement_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stanClockTocLSB at 1281 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stanClockAF2 at 1282 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* stanClockAF1 at 1283 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* stanClockAF0 at 1284 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* stanClockTgd at 1285 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* stanModelID at 1286 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* stanClockTocLSB at 1281 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* stanClockAF2 at 1282 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* stanClockAF1 at 1283 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* stanClockAF0 at 1284 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* stanClockTgd at 1285 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0} /* stanModelID at 1286 */
};
static asn_SEQUENCE_specifics_t asn_SPC_StandardClockModelElement_specs_1 = {
- sizeof(struct StandardClockModelElement),
- offsetof(struct StandardClockModelElement, _asn_ctx),
- asn_MAP_StandardClockModelElement_tag2el_1,
- 6, /* Count of tags in the map */
- asn_MAP_StandardClockModelElement_oms_1, /* Optional members */
- 2, 0, /* Root/Additions */
- 5, /* Start extensions */
- 7 /* Stop extensions */
+ sizeof(struct StandardClockModelElement),
+ offsetof(struct StandardClockModelElement, _asn_ctx),
+ asn_MAP_StandardClockModelElement_tag2el_1,
+ 6, /* Count of tags in the map */
+ asn_MAP_StandardClockModelElement_oms_1, /* Optional members */
+ 2,
+ 0, /* Root/Additions */
+ 5, /* Start extensions */
+ 7 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_StandardClockModelElement = {
- "StandardClockModelElement",
- "StandardClockModelElement",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_StandardClockModelElement_tags_1,
- sizeof(asn_DEF_StandardClockModelElement_tags_1)
- /sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */
- asn_DEF_StandardClockModelElement_tags_1, /* Same as above */
- sizeof(asn_DEF_StandardClockModelElement_tags_1)
- /sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_StandardClockModelElement_1,
- 6, /* Elements count */
- &asn_SPC_StandardClockModelElement_specs_1 /* Additional specs */
+ "StandardClockModelElement",
+ "StandardClockModelElement",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_StandardClockModelElement_tags_1,
+ sizeof(asn_DEF_StandardClockModelElement_tags_1) /
+ sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */
+ asn_DEF_StandardClockModelElement_tags_1, /* Same as above */
+ sizeof(asn_DEF_StandardClockModelElement_tags_1) /
+ sizeof(asn_DEF_StandardClockModelElement_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_StandardClockModelElement_1,
+ 6, /* Elements count */
+ &asn_SPC_StandardClockModelElement_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/StandardClockModelElement.h b/src/core/libs/supl/asn-rrlp/StandardClockModelElement.h
index 72651dcbd..76ef24a89 100644
--- a/src/core/libs/supl/asn-rrlp/StandardClockModelElement.h
+++ b/src/core/libs/supl/asn-rrlp/StandardClockModelElement.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _StandardClockModelElement_H_
#define _StandardClockModelElement_H_
-
#include
/* Including external dependencies */
@@ -29,9 +28,9 @@ extern "C"
long *stanClockTgd /* OPTIONAL */;
long *stanModelID /* OPTIONAL */;
/*
- * This type is extensible,
- * possible extensions are below.
- */
+ * This type is extensible,
+ * possible extensions are below.
+ */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
diff --git a/src/core/libs/supl/asn-rrlp/StdResolution.c b/src/core/libs/supl/asn-rrlp/StdResolution.c
index 574f0af9a..739679862 100644
--- a/src/core/libs/supl/asn-rrlp/StdResolution.c
+++ b/src/core/libs/supl/asn-rrlp/StdResolution.c
@@ -1,145 +1,163 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "StdResolution.h"
-int
-StdResolution_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int StdResolution_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-StdResolution_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void StdResolution_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-StdResolution_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void StdResolution_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-StdResolution_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int StdResolution_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-StdResolution_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) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t StdResolution_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)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-StdResolution_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) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t StdResolution_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)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-StdResolution_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) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t StdResolution_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)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-StdResolution_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) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t StdResolution_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)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-StdResolution_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t StdResolution_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-StdResolution_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- StdResolution_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t StdResolution_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ StdResolution_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_STD_RESOLUTION_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_StdResolution_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_StdResolution = {
- "StdResolution",
- "StdResolution",
- StdResolution_free,
- StdResolution_print,
- StdResolution_constraint,
- StdResolution_decode_ber,
- StdResolution_encode_der,
- StdResolution_decode_xer,
- StdResolution_encode_xer,
- StdResolution_decode_uper,
- StdResolution_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_StdResolution_tags_1,
- sizeof(asn_DEF_StdResolution_tags_1)
- /sizeof(asn_DEF_StdResolution_tags_1[0]), /* 1 */
- asn_DEF_StdResolution_tags_1, /* Same as above */
- sizeof(asn_DEF_StdResolution_tags_1)
- /sizeof(asn_DEF_StdResolution_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_STD_RESOLUTION_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "StdResolution",
+ "StdResolution",
+ StdResolution_free,
+ StdResolution_print,
+ StdResolution_constraint,
+ StdResolution_decode_ber,
+ StdResolution_encode_der,
+ StdResolution_decode_xer,
+ StdResolution_encode_xer,
+ StdResolution_decode_uper,
+ StdResolution_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_StdResolution_tags_1,
+ sizeof(asn_DEF_StdResolution_tags_1) /
+ sizeof(asn_DEF_StdResolution_tags_1[0]), /* 1 */
+ asn_DEF_StdResolution_tags_1, /* Same as above */
+ sizeof(asn_DEF_StdResolution_tags_1) /
+ sizeof(asn_DEF_StdResolution_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_STD_RESOLUTION_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/StdResolution.h b/src/core/libs/supl/asn-rrlp/StdResolution.h
index f93fd309d..ae93dfd13 100644
--- a/src/core/libs/supl/asn-rrlp/StdResolution.h
+++ b/src/core/libs/supl/asn-rrlp/StdResolution.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _StdResolution_H_
#define _StdResolution_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.c
index e0d73b1ff..ca495403a 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.c
@@ -1,70 +1,67 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SystemInfoAssistBTS-R98-ExpOTD.h"
-static asn_per_constraints_t ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+static asn_per_constraints_t
+ ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1 = {
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SystemInfoAssistBTS_R98_ExpOTD_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, choice.notPresent),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "notPresent"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, choice.present),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AssistBTSData_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "present"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, choice.notPresent),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "notPresent"},
+ {ATF_NOFLAGS, 0,
+ offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, choice.present),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AssistBTSData_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "present"},
};
-static asn_TYPE_tag2member_t asn_MAP_SystemInfoAssistBTS_R98_ExpOTD_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* notPresent at 927 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* present at 929 */
+static asn_TYPE_tag2member_t asn_MAP_SystemInfoAssistBTS_R98_ExpOTD_tag2el_1[] =
+ {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* notPresent at 927 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* present at 929 */
};
static asn_CHOICE_specifics_t asn_SPC_SystemInfoAssistBTS_R98_ExpOTD_specs_1 = {
- sizeof(struct SystemInfoAssistBTS_R98_ExpOTD),
- offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, _asn_ctx),
- offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, present),
- sizeof(((struct SystemInfoAssistBTS_R98_ExpOTD *)0)->present),
- asn_MAP_SystemInfoAssistBTS_R98_ExpOTD_tag2el_1,
- 2, /* Count of tags in the map */
- 0,
- -1 /* Extensions start */
+ sizeof(struct SystemInfoAssistBTS_R98_ExpOTD),
+ offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, _asn_ctx),
+ offsetof(struct SystemInfoAssistBTS_R98_ExpOTD, present),
+ sizeof(((struct SystemInfoAssistBTS_R98_ExpOTD *)0)->present),
+ asn_MAP_SystemInfoAssistBTS_R98_ExpOTD_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ -1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_SystemInfoAssistBTS_R98_ExpOTD = {
- "SystemInfoAssistBTS-R98-ExpOTD",
- "SystemInfoAssistBTS-R98-ExpOTD",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1,
- asn_MBR_SystemInfoAssistBTS_R98_ExpOTD_1,
- 2, /* Elements count */
- &asn_SPC_SystemInfoAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
+ "SystemInfoAssistBTS-R98-ExpOTD",
+ "SystemInfoAssistBTS-R98-ExpOTD",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_R98_EXP_OTD_CONSTR_1,
+ asn_MBR_SystemInfoAssistBTS_R98_ExpOTD_1,
+ 2, /* Elements count */
+ &asn_SPC_SystemInfoAssistBTS_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.h
index 99d17a4e1..fd389ee03 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SystemInfoAssistBTS_R98_ExpOTD_H_
#define _SystemInfoAssistBTS_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.c b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.c
index 3b7d17674..a0875af9e 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.c
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.c
@@ -1,70 +1,63 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SystemInfoAssistBTS.h"
static asn_per_constraints_t ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_SystemInfoAssistBTS_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistBTS, choice.notPresent),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NULL,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "notPresent"
- },
- { ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistBTS, choice.present),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_AssistBTSData,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "present"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistBTS, choice.notPresent),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NULL, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "notPresent"},
+ {ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistBTS, choice.present),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_AssistBTSData,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "present"},
};
static asn_TYPE_tag2member_t asn_MAP_SystemInfoAssistBTS_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* notPresent at 223 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* present at 225 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* notPresent at 223 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* present at 225 */
};
static asn_CHOICE_specifics_t asn_SPC_SystemInfoAssistBTS_specs_1 = {
- sizeof(struct SystemInfoAssistBTS),
- offsetof(struct SystemInfoAssistBTS, _asn_ctx),
- offsetof(struct SystemInfoAssistBTS, present),
- sizeof(((struct SystemInfoAssistBTS *)0)->present),
- asn_MAP_SystemInfoAssistBTS_tag2el_1,
- 2, /* Count of tags in the map */
- 0,
- -1 /* Extensions start */
+ sizeof(struct SystemInfoAssistBTS),
+ offsetof(struct SystemInfoAssistBTS, _asn_ctx),
+ offsetof(struct SystemInfoAssistBTS, present),
+ sizeof(((struct SystemInfoAssistBTS *)0)->present),
+ asn_MAP_SystemInfoAssistBTS_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ -1 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_SystemInfoAssistBTS = {
- "SystemInfoAssistBTS",
- "SystemInfoAssistBTS",
- CHOICE_free,
- CHOICE_print,
- CHOICE_constraint,
- CHOICE_decode_ber,
- CHOICE_encode_der,
- CHOICE_decode_xer,
- CHOICE_encode_xer,
- CHOICE_decode_uper,
- CHOICE_encode_uper,
- CHOICE_outmost_tag,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- &ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_CONSTR_1,
- asn_MBR_SystemInfoAssistBTS_1,
- 2, /* Elements count */
- &asn_SPC_SystemInfoAssistBTS_specs_1 /* Additional specs */
+ "SystemInfoAssistBTS",
+ "SystemInfoAssistBTS",
+ CHOICE_free,
+ CHOICE_print,
+ CHOICE_constraint,
+ CHOICE_decode_ber,
+ CHOICE_encode_der,
+ CHOICE_decode_xer,
+ CHOICE_encode_xer,
+ CHOICE_decode_uper,
+ CHOICE_encode_uper,
+ CHOICE_outmost_tag,
+ 0, /* No effective tags (pointer) */
+ 0, /* No effective tags (count) */
+ 0, /* No tags (pointer) */
+ 0, /* No tags (count) */
+ &ASN_PER_TYPE_SYSTEM_INFO_ASSIST_BTS_CONSTR_1,
+ asn_MBR_SystemInfoAssistBTS_1,
+ 2, /* Elements count */
+ &asn_SPC_SystemInfoAssistBTS_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.h b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.h
index 1c3012b02..5eecf4a9d 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.h
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistBTS.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SystemInfoAssistBTS_H_
#define _SystemInfoAssistBTS_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.c b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.c
index 2b7bcde9a..12690aba2 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.c
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.c
@@ -1,59 +1,61 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SystemInfoAssistData-R98-ExpOTD.h"
static asn_TYPE_member_t asn_MBR_SystemInfoAssistData_R98_ExpOTD_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistData_R98_ExpOTD, systemInfoAssistListR98_ExpOTD),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoAssistListR98-ExpOTD"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct SystemInfoAssistData_R98_ExpOTD,
+ systemInfoAssistListR98_ExpOTD),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfSystemInfoAssistBTS_R98_ExpOTD,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoAssistListR98-ExpOTD"},
};
static ber_tlv_tag_t asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
+static asn_TYPE_tag2member_t
+ asn_MAP_SystemInfoAssistData_R98_ExpOTD_tag2el_1[] = {
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* systemInfoAssistListR98-ExpOTD at 917 */
};
-static asn_TYPE_tag2member_t asn_MAP_SystemInfoAssistData_R98_ExpOTD_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* systemInfoAssistListR98-ExpOTD at 917 */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_SystemInfoAssistData_R98_ExpOTD_specs_1 = {
- sizeof(struct SystemInfoAssistData_R98_ExpOTD),
- offsetof(struct SystemInfoAssistData_R98_ExpOTD, _asn_ctx),
- asn_MAP_SystemInfoAssistData_R98_ExpOTD_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+static asn_SEQUENCE_specifics_t
+ asn_SPC_SystemInfoAssistData_R98_ExpOTD_specs_1 = {
+ sizeof(struct SystemInfoAssistData_R98_ExpOTD),
+ offsetof(struct SystemInfoAssistData_R98_ExpOTD, _asn_ctx),
+ asn_MAP_SystemInfoAssistData_R98_ExpOTD_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_SystemInfoAssistData_R98_ExpOTD = {
- "SystemInfoAssistData-R98-ExpOTD",
- "SystemInfoAssistData-R98-ExpOTD",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1,
- sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
- asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1, /* Same as above */
- sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1)
- /sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_SystemInfoAssistData_R98_ExpOTD_1,
- 1, /* Elements count */
- &asn_SPC_SystemInfoAssistData_R98_ExpOTD_specs_1 /* Additional specs */
+ "SystemInfoAssistData-R98-ExpOTD",
+ "SystemInfoAssistData-R98-ExpOTD",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1,
+ sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
+ asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1, /* Same as above */
+ sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1) /
+ sizeof(asn_DEF_SystemInfoAssistData_R98_ExpOTD_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_SystemInfoAssistData_R98_ExpOTD_1,
+ 1, /* Elements count */
+ &asn_SPC_SystemInfoAssistData_R98_ExpOTD_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.h b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.h
index 8cf3628a4..7b171b457 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.h
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData-R98-ExpOTD.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SystemInfoAssistData_R98_ExpOTD_H_
#define _SystemInfoAssistData_R98_ExpOTD_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.c b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.c
index 92c50d615..1a1bd263b 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.c
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.c
@@ -1,59 +1,58 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SystemInfoAssistData.h"
static asn_TYPE_member_t asn_MBR_SystemInfoAssistData_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct SystemInfoAssistData, systemInfoAssistList),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_SeqOfSystemInfoAssistBTS,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "systemInfoAssistList"
- },
+ {ATF_NOFLAGS, 0,
+ offsetof(struct SystemInfoAssistData, systemInfoAssistList),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_SeqOfSystemInfoAssistBTS,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "systemInfoAssistList"},
};
static ber_tlv_tag_t asn_DEF_SystemInfoAssistData_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_SystemInfoAssistData_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* systemInfoAssistList at 218 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0,
+ 0} /* systemInfoAssistList at 218 */
};
static asn_SEQUENCE_specifics_t asn_SPC_SystemInfoAssistData_specs_1 = {
- sizeof(struct SystemInfoAssistData),
- offsetof(struct SystemInfoAssistData, _asn_ctx),
- asn_MAP_SystemInfoAssistData_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct SystemInfoAssistData),
+ offsetof(struct SystemInfoAssistData, _asn_ctx),
+ asn_MAP_SystemInfoAssistData_tag2el_1,
+ 1, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_SystemInfoAssistData = {
- "SystemInfoAssistData",
- "SystemInfoAssistData",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SystemInfoAssistData_tags_1,
- sizeof(asn_DEF_SystemInfoAssistData_tags_1)
- /sizeof(asn_DEF_SystemInfoAssistData_tags_1[0]), /* 1 */
- asn_DEF_SystemInfoAssistData_tags_1, /* Same as above */
- sizeof(asn_DEF_SystemInfoAssistData_tags_1)
- /sizeof(asn_DEF_SystemInfoAssistData_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_SystemInfoAssistData_1,
- 1, /* Elements count */
- &asn_SPC_SystemInfoAssistData_specs_1 /* Additional specs */
+ "SystemInfoAssistData",
+ "SystemInfoAssistData",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SystemInfoAssistData_tags_1,
+ sizeof(asn_DEF_SystemInfoAssistData_tags_1) /
+ sizeof(asn_DEF_SystemInfoAssistData_tags_1[0]), /* 1 */
+ asn_DEF_SystemInfoAssistData_tags_1, /* Same as above */
+ sizeof(asn_DEF_SystemInfoAssistData_tags_1) /
+ sizeof(asn_DEF_SystemInfoAssistData_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_SystemInfoAssistData_1,
+ 1, /* Elements count */
+ &asn_SPC_SystemInfoAssistData_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.h b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.h
index ef8051bb8..ab50e499f 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.h
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoAssistData.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SystemInfoAssistData_H_
#define _SystemInfoAssistData_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoIndex.c b/src/core/libs/supl/asn-rrlp/SystemInfoIndex.c
index 68c0b86bd..3118488ff 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoIndex.c
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoIndex.c
@@ -1,145 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "SystemInfoIndex.h"
-int
-SystemInfoIndex_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 1 && value <= 32)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int SystemInfoIndex_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 1 && value <= 32))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-SystemInfoIndex_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void SystemInfoIndex_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-SystemInfoIndex_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void SystemInfoIndex_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-SystemInfoIndex_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int SystemInfoIndex_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-SystemInfoIndex_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) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t SystemInfoIndex_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)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-SystemInfoIndex_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) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t SystemInfoIndex_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)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-SystemInfoIndex_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) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t SystemInfoIndex_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)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-SystemInfoIndex_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) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t SystemInfoIndex_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)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-SystemInfoIndex_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t SystemInfoIndex_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-SystemInfoIndex_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- SystemInfoIndex_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t SystemInfoIndex_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ SystemInfoIndex_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_SYSTEM_INFO_INDEX_CONSTR_1 = {
- { APC_CONSTRAINED, 5, 5, 1, 32 } /* (1..32) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 1, 32} /* (1..32) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_SystemInfoIndex_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_SystemInfoIndex = {
- "SystemInfoIndex",
- "SystemInfoIndex",
- SystemInfoIndex_free,
- SystemInfoIndex_print,
- SystemInfoIndex_constraint,
- SystemInfoIndex_decode_ber,
- SystemInfoIndex_encode_der,
- SystemInfoIndex_decode_xer,
- SystemInfoIndex_encode_xer,
- SystemInfoIndex_decode_uper,
- SystemInfoIndex_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_SystemInfoIndex_tags_1,
- sizeof(asn_DEF_SystemInfoIndex_tags_1)
- /sizeof(asn_DEF_SystemInfoIndex_tags_1[0]), /* 1 */
- asn_DEF_SystemInfoIndex_tags_1, /* Same as above */
- sizeof(asn_DEF_SystemInfoIndex_tags_1)
- /sizeof(asn_DEF_SystemInfoIndex_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_SYSTEM_INFO_INDEX_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "SystemInfoIndex",
+ "SystemInfoIndex",
+ SystemInfoIndex_free,
+ SystemInfoIndex_print,
+ SystemInfoIndex_constraint,
+ SystemInfoIndex_decode_ber,
+ SystemInfoIndex_encode_der,
+ SystemInfoIndex_decode_xer,
+ SystemInfoIndex_encode_xer,
+ SystemInfoIndex_decode_uper,
+ SystemInfoIndex_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_SystemInfoIndex_tags_1,
+ sizeof(asn_DEF_SystemInfoIndex_tags_1) /
+ sizeof(asn_DEF_SystemInfoIndex_tags_1[0]), /* 1 */
+ asn_DEF_SystemInfoIndex_tags_1, /* Same as above */
+ sizeof(asn_DEF_SystemInfoIndex_tags_1) /
+ sizeof(asn_DEF_SystemInfoIndex_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_SYSTEM_INFO_INDEX_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/SystemInfoIndex.h b/src/core/libs/supl/asn-rrlp/SystemInfoIndex.h
index 3be83da8e..562cfa66c 100644
--- a/src/core/libs/supl/asn-rrlp/SystemInfoIndex.h
+++ b/src/core/libs/supl/asn-rrlp/SystemInfoIndex.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _SystemInfoIndex_H_
#define _SystemInfoIndex_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TA0.c b/src/core/libs/supl/asn-rrlp/TA0.c
index 1879f9e19..d737478a5 100644
--- a/src/core/libs/supl/asn-rrlp/TA0.c
+++ b/src/core/libs/supl/asn-rrlp/TA0.c
@@ -1,145 +1,153 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TA0.h"
-int
-TA0_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int TA0_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-TA0_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void TA0_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-TA0_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TA0_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TA0_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TA0_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TA0_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TA0_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) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TA0_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)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TA0_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) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TA0_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)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TA0_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) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TA0_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)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TA0_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) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TA0_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)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TA0_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TA0_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TA0_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TA0_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TA0_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ TA0_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_T_A0_CONSTR_1 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_TA0_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_TA0 = {
- "TA0",
- "TA0",
- TA0_free,
- TA0_print,
- TA0_constraint,
- TA0_decode_ber,
- TA0_encode_der,
- TA0_decode_xer,
- TA0_encode_xer,
- TA0_decode_uper,
- TA0_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TA0_tags_1,
- sizeof(asn_DEF_TA0_tags_1)
- /sizeof(asn_DEF_TA0_tags_1[0]), /* 1 */
- asn_DEF_TA0_tags_1, /* Same as above */
- sizeof(asn_DEF_TA0_tags_1)
- /sizeof(asn_DEF_TA0_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_T_A0_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "TA0",
+ "TA0",
+ TA0_free,
+ TA0_print,
+ TA0_constraint,
+ TA0_decode_ber,
+ TA0_encode_der,
+ TA0_decode_xer,
+ TA0_encode_xer,
+ TA0_decode_uper,
+ TA0_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TA0_tags_1,
+ sizeof(asn_DEF_TA0_tags_1) / sizeof(asn_DEF_TA0_tags_1[0]), /* 1 */
+ asn_DEF_TA0_tags_1, /* Same as above */
+ sizeof(asn_DEF_TA0_tags_1) / sizeof(asn_DEF_TA0_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_T_A0_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TA0.h b/src/core/libs/supl/asn-rrlp/TA0.h
index 69c7a4e3e..e71928d20 100644
--- a/src/core/libs/supl/asn-rrlp/TA0.h
+++ b/src/core/libs/supl/asn-rrlp/TA0.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TA0_H_
#define _TA0_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TA1.c b/src/core/libs/supl/asn-rrlp/TA1.c
index 43b3fb216..5ee4dda82 100644
--- a/src/core/libs/supl/asn-rrlp/TA1.c
+++ b/src/core/libs/supl/asn-rrlp/TA1.c
@@ -1,145 +1,152 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TA1.h"
-int
-TA1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int TA1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-TA1_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void TA1_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-TA1_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TA1_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TA1_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TA1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TA1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TA1_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) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TA1_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)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TA1_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) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TA1_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)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TA1_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) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TA1_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)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TA1_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) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TA1_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)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TA1_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TA1_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TA1_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TA1_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TA1_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ TA1_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_T_A1_CONSTR_1 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_TA1_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_TA1 = {
- "TA1",
- "TA1",
- TA1_free,
- TA1_print,
- TA1_constraint,
- TA1_decode_ber,
- TA1_encode_der,
- TA1_decode_xer,
- TA1_encode_xer,
- TA1_decode_uper,
- TA1_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TA1_tags_1,
- sizeof(asn_DEF_TA1_tags_1)
- /sizeof(asn_DEF_TA1_tags_1[0]), /* 1 */
- asn_DEF_TA1_tags_1, /* Same as above */
- sizeof(asn_DEF_TA1_tags_1)
- /sizeof(asn_DEF_TA1_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_T_A1_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "TA1",
+ "TA1",
+ TA1_free,
+ TA1_print,
+ TA1_constraint,
+ TA1_decode_ber,
+ TA1_encode_der,
+ TA1_decode_xer,
+ TA1_encode_xer,
+ TA1_decode_uper,
+ TA1_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TA1_tags_1,
+ sizeof(asn_DEF_TA1_tags_1) / sizeof(asn_DEF_TA1_tags_1[0]), /* 1 */
+ asn_DEF_TA1_tags_1, /* Same as above */
+ sizeof(asn_DEF_TA1_tags_1) / sizeof(asn_DEF_TA1_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_T_A1_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TA1.h b/src/core/libs/supl/asn-rrlp/TA1.h
index 7ea57155e..9421afef7 100644
--- a/src/core/libs/supl/asn-rrlp/TA1.h
+++ b/src/core/libs/supl/asn-rrlp/TA1.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TA1_H_
#define _TA1_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TA2.c b/src/core/libs/supl/asn-rrlp/TA2.c
index f86657377..7ef77bfb0 100644
--- a/src/core/libs/supl/asn-rrlp/TA2.c
+++ b/src/core/libs/supl/asn-rrlp/TA2.c
@@ -1,145 +1,152 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TA2.h"
-int
-TA2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -64 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int TA2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -64 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-TA2_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void TA2_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-TA2_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TA2_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TA2_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TA2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TA2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TA2_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) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TA2_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)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TA2_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) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TA2_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)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TA2_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) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TA2_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)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TA2_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) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TA2_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)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TA2_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TA2_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TA2_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TA2_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TA2_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ TA2_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_T_A2_CONSTR_1 = {
- { APC_CONSTRAINED, 7, 7, -64, 63 } /* (-64..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 7, 7, -64, 63} /* (-64..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_TA2_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_TA2 = {
- "TA2",
- "TA2",
- TA2_free,
- TA2_print,
- TA2_constraint,
- TA2_decode_ber,
- TA2_encode_der,
- TA2_decode_xer,
- TA2_encode_xer,
- TA2_decode_uper,
- TA2_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TA2_tags_1,
- sizeof(asn_DEF_TA2_tags_1)
- /sizeof(asn_DEF_TA2_tags_1[0]), /* 1 */
- asn_DEF_TA2_tags_1, /* Same as above */
- sizeof(asn_DEF_TA2_tags_1)
- /sizeof(asn_DEF_TA2_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_T_A2_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "TA2",
+ "TA2",
+ TA2_free,
+ TA2_print,
+ TA2_constraint,
+ TA2_decode_ber,
+ TA2_encode_der,
+ TA2_decode_xer,
+ TA2_encode_xer,
+ TA2_decode_uper,
+ TA2_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TA2_tags_1,
+ sizeof(asn_DEF_TA2_tags_1) / sizeof(asn_DEF_TA2_tags_1[0]), /* 1 */
+ asn_DEF_TA2_tags_1, /* Same as above */
+ sizeof(asn_DEF_TA2_tags_1) / sizeof(asn_DEF_TA2_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_T_A2_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TA2.h b/src/core/libs/supl/asn-rrlp/TA2.h
index 78ec5b528..001b1995e 100644
--- a/src/core/libs/supl/asn-rrlp/TA2.h
+++ b/src/core/libs/supl/asn-rrlp/TA2.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TA2_H_
#define _TA2_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TLMReservedBits.c b/src/core/libs/supl/asn-rrlp/TLMReservedBits.c
index cac6e5f46..c435355ab 100644
--- a/src/core/libs/supl/asn-rrlp/TLMReservedBits.c
+++ b/src/core/libs/supl/asn-rrlp/TLMReservedBits.c
@@ -1,145 +1,165 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TLMReservedBits.h"
-int
-TLMReservedBits_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int TLMReservedBits_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-TLMReservedBits_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void TLMReservedBits_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-TLMReservedBits_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TLMReservedBits_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TLMReservedBits_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TLMReservedBits_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TLMReservedBits_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) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TLMReservedBits_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)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TLMReservedBits_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) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TLMReservedBits_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)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TLMReservedBits_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) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TLMReservedBits_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)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TLMReservedBits_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) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TLMReservedBits_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)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TLMReservedBits_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TLMReservedBits_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TLMReservedBits_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TLMReservedBits_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TLMReservedBits_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ TLMReservedBits_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_TLM_RESERVED_BITS_CONSTR_1 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_TLMReservedBits_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_TLMReservedBits = {
- "TLMReservedBits",
- "TLMReservedBits",
- TLMReservedBits_free,
- TLMReservedBits_print,
- TLMReservedBits_constraint,
- TLMReservedBits_decode_ber,
- TLMReservedBits_encode_der,
- TLMReservedBits_decode_xer,
- TLMReservedBits_encode_xer,
- TLMReservedBits_decode_uper,
- TLMReservedBits_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TLMReservedBits_tags_1,
- sizeof(asn_DEF_TLMReservedBits_tags_1)
- /sizeof(asn_DEF_TLMReservedBits_tags_1[0]), /* 1 */
- asn_DEF_TLMReservedBits_tags_1, /* Same as above */
- sizeof(asn_DEF_TLMReservedBits_tags_1)
- /sizeof(asn_DEF_TLMReservedBits_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_TLM_RESERVED_BITS_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "TLMReservedBits",
+ "TLMReservedBits",
+ TLMReservedBits_free,
+ TLMReservedBits_print,
+ TLMReservedBits_constraint,
+ TLMReservedBits_decode_ber,
+ TLMReservedBits_encode_der,
+ TLMReservedBits_decode_xer,
+ TLMReservedBits_encode_xer,
+ TLMReservedBits_decode_uper,
+ TLMReservedBits_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TLMReservedBits_tags_1,
+ sizeof(asn_DEF_TLMReservedBits_tags_1) /
+ sizeof(asn_DEF_TLMReservedBits_tags_1[0]), /* 1 */
+ asn_DEF_TLMReservedBits_tags_1, /* Same as above */
+ sizeof(asn_DEF_TLMReservedBits_tags_1) /
+ sizeof(asn_DEF_TLMReservedBits_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_TLM_RESERVED_BITS_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TLMReservedBits.h b/src/core/libs/supl/asn-rrlp/TLMReservedBits.h
index ee52c807b..cb947af1e 100644
--- a/src/core/libs/supl/asn-rrlp/TLMReservedBits.h
+++ b/src/core/libs/supl/asn-rrlp/TLMReservedBits.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TLMReservedBits_H_
#define _TLMReservedBits_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TLMWord.c b/src/core/libs/supl/asn-rrlp/TLMWord.c
index 1bd83baaf..b8e5b6d4f 100644
--- a/src/core/libs/supl/asn-rrlp/TLMWord.c
+++ b/src/core/libs/supl/asn-rrlp/TLMWord.c
@@ -1,145 +1,153 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TLMWord.h"
-int
-TLMWord_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 16383)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int TLMWord_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 16383))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-TLMWord_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void TLMWord_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-TLMWord_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TLMWord_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TLMWord_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TLMWord_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TLMWord_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) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TLMWord_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)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TLMWord_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) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TLMWord_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)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TLMWord_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) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TLMWord_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)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TLMWord_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) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TLMWord_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)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TLMWord_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TLMWord_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TLMWord_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TLMWord_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TLMWord_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ TLMWord_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_TLM_WORD_CONSTR_1 = {
- { APC_CONSTRAINED, 14, 14, 0, 16383 } /* (0..16383) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 14, 14, 0, 16383} /* (0..16383) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_TLMWord_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_TLMWord = {
- "TLMWord",
- "TLMWord",
- TLMWord_free,
- TLMWord_print,
- TLMWord_constraint,
- TLMWord_decode_ber,
- TLMWord_encode_der,
- TLMWord_decode_xer,
- TLMWord_encode_xer,
- TLMWord_decode_uper,
- TLMWord_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TLMWord_tags_1,
- sizeof(asn_DEF_TLMWord_tags_1)
- /sizeof(asn_DEF_TLMWord_tags_1[0]), /* 1 */
- asn_DEF_TLMWord_tags_1, /* Same as above */
- sizeof(asn_DEF_TLMWord_tags_1)
- /sizeof(asn_DEF_TLMWord_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_TLM_WORD_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "TLMWord",
+ "TLMWord",
+ TLMWord_free,
+ TLMWord_print,
+ TLMWord_constraint,
+ TLMWord_decode_ber,
+ TLMWord_encode_der,
+ TLMWord_decode_xer,
+ TLMWord_encode_xer,
+ TLMWord_decode_uper,
+ TLMWord_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TLMWord_tags_1,
+ sizeof(asn_DEF_TLMWord_tags_1) / sizeof(asn_DEF_TLMWord_tags_1[0]), /* 1 */
+ asn_DEF_TLMWord_tags_1, /* Same as above */
+ sizeof(asn_DEF_TLMWord_tags_1) / sizeof(asn_DEF_TLMWord_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_TLM_WORD_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TLMWord.h b/src/core/libs/supl/asn-rrlp/TLMWord.h
index 9b3ad8438..05f12ef9e 100644
--- a/src/core/libs/supl/asn-rrlp/TLMWord.h
+++ b/src/core/libs/supl/asn-rrlp/TLMWord.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TLMWord_H_
#define _TLMWord_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.c b/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.c
index a4acf4e11..bc7c61c61 100644
--- a/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.c
+++ b/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.c
@@ -1,69 +1,62 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TOA-MeasurementsOfRef.h"
static asn_TYPE_member_t asn_MBR_TOA_MeasurementsOfRef_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TOA_MeasurementsOfRef, refQuality),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_RefQuality,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "refQuality"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TOA_MeasurementsOfRef, numOfMeasurements),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NumOfMeasurements,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "numOfMeasurements"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct TOA_MeasurementsOfRef, refQuality),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_RefQuality, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "refQuality"},
+ {ATF_NOFLAGS, 0, offsetof(struct TOA_MeasurementsOfRef, numOfMeasurements),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NumOfMeasurements,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "numOfMeasurements"},
};
static ber_tlv_tag_t asn_DEF_TOA_MeasurementsOfRef_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_TOA_MeasurementsOfRef_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refQuality at 360 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* numOfMeasurements at 362 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* refQuality at 360 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* numOfMeasurements at 362 */
};
static asn_SEQUENCE_specifics_t asn_SPC_TOA_MeasurementsOfRef_specs_1 = {
- sizeof(struct TOA_MeasurementsOfRef),
- offsetof(struct TOA_MeasurementsOfRef, _asn_ctx),
- asn_MAP_TOA_MeasurementsOfRef_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct TOA_MeasurementsOfRef),
+ offsetof(struct TOA_MeasurementsOfRef, _asn_ctx),
+ asn_MAP_TOA_MeasurementsOfRef_tag2el_1,
+ 2, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_TOA_MeasurementsOfRef = {
- "TOA-MeasurementsOfRef",
- "TOA-MeasurementsOfRef",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TOA_MeasurementsOfRef_tags_1,
- sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1)
- /sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1[0]), /* 1 */
- asn_DEF_TOA_MeasurementsOfRef_tags_1, /* Same as above */
- sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1)
- /sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_TOA_MeasurementsOfRef_1,
- 2, /* Elements count */
- &asn_SPC_TOA_MeasurementsOfRef_specs_1 /* Additional specs */
+ "TOA-MeasurementsOfRef",
+ "TOA-MeasurementsOfRef",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TOA_MeasurementsOfRef_tags_1,
+ sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1) /
+ sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1[0]), /* 1 */
+ asn_DEF_TOA_MeasurementsOfRef_tags_1, /* Same as above */
+ sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1) /
+ sizeof(asn_DEF_TOA_MeasurementsOfRef_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_TOA_MeasurementsOfRef_1,
+ 2, /* Elements count */
+ &asn_SPC_TOA_MeasurementsOfRef_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.h b/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.h
index 0df538d54..3f54b3cdf 100644
--- a/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.h
+++ b/src/core/libs/supl/asn-rrlp/TOA-MeasurementsOfRef.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TOA_MeasurementsOfRef_H_
#define _TOA_MeasurementsOfRef_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TimeRelation.c b/src/core/libs/supl/asn-rrlp/TimeRelation.c
index 8ce850cc2..a5e751cd8 100644
--- a/src/core/libs/supl/asn-rrlp/TimeRelation.c
+++ b/src/core/libs/supl/asn-rrlp/TimeRelation.c
@@ -1,71 +1,62 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TimeRelation.h"
static asn_TYPE_member_t asn_MBR_TimeRelation_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TimeRelation, gpsTOW),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GPSTOW23b,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gpsTOW"
- },
- { ATF_POINTER, 1, offsetof(struct TimeRelation, gsmTime),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_GSMTime,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "gsmTime"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct TimeRelation, gpsTOW),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GPSTOW23b, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gpsTOW"},
+ {ATF_POINTER, 1, offsetof(struct TimeRelation, gsmTime),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_GSMTime, 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "gsmTime"},
};
-static int asn_MAP_TimeRelation_oms_1[] = { 1 };
+static int asn_MAP_TimeRelation_oms_1[] = {1};
static ber_tlv_tag_t asn_DEF_TimeRelation_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_TimeRelation_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* gpsTOW at 828 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gsmTime at 829 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* gpsTOW at 828 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0} /* gsmTime at 829 */
};
static asn_SEQUENCE_specifics_t asn_SPC_TimeRelation_specs_1 = {
- sizeof(struct TimeRelation),
- offsetof(struct TimeRelation, _asn_ctx),
- asn_MAP_TimeRelation_tag2el_1,
- 2, /* Count of tags in the map */
- asn_MAP_TimeRelation_oms_1, /* Optional members */
- 1, 0, /* Root/Additions */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct TimeRelation),
+ offsetof(struct TimeRelation, _asn_ctx),
+ asn_MAP_TimeRelation_tag2el_1,
+ 2, /* Count of tags in the map */
+ asn_MAP_TimeRelation_oms_1, /* Optional members */
+ 1,
+ 0, /* Root/Additions */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_TimeRelation = {
- "TimeRelation",
- "TimeRelation",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TimeRelation_tags_1,
- sizeof(asn_DEF_TimeRelation_tags_1)
- /sizeof(asn_DEF_TimeRelation_tags_1[0]), /* 1 */
- asn_DEF_TimeRelation_tags_1, /* Same as above */
- sizeof(asn_DEF_TimeRelation_tags_1)
- /sizeof(asn_DEF_TimeRelation_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_TimeRelation_1,
- 2, /* Elements count */
- &asn_SPC_TimeRelation_specs_1 /* Additional specs */
+ "TimeRelation",
+ "TimeRelation",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TimeRelation_tags_1,
+ sizeof(asn_DEF_TimeRelation_tags_1) /
+ sizeof(asn_DEF_TimeRelation_tags_1[0]), /* 1 */
+ asn_DEF_TimeRelation_tags_1, /* Same as above */
+ sizeof(asn_DEF_TimeRelation_tags_1) /
+ sizeof(asn_DEF_TimeRelation_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_TimeRelation_1,
+ 2, /* Elements count */
+ &asn_SPC_TimeRelation_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TimeRelation.h b/src/core/libs/supl/asn-rrlp/TimeRelation.h
index d6cbb5302..cfcce0ca9 100644
--- a/src/core/libs/supl/asn-rrlp/TimeRelation.h
+++ b/src/core/libs/supl/asn-rrlp/TimeRelation.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TimeRelation_H_
#define _TimeRelation_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TimeSlot.c b/src/core/libs/supl/asn-rrlp/TimeSlot.c
index e9f8728d7..b155af70f 100644
--- a/src/core/libs/supl/asn-rrlp/TimeSlot.c
+++ b/src/core/libs/supl/asn-rrlp/TimeSlot.c
@@ -1,145 +1,156 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TimeSlot.h"
-int
-TimeSlot_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 7)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+int TimeSlot_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 7))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-TimeSlot_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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;
+static void TimeSlot_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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;
}
-void
-TimeSlot_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TimeSlot_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TimeSlot_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TimeSlot_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TimeSlot_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) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TimeSlot_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)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TimeSlot_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) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TimeSlot_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)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TimeSlot_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) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TimeSlot_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)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TimeSlot_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) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TimeSlot_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)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TimeSlot_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TimeSlot_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure, asn_per_data_t *per_data)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TimeSlot_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TimeSlot_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TimeSlot_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ TimeSlot_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_TIME_SLOT_CONSTR_1 = {
- { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 3, 3, 0, 7} /* (0..7) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static ber_tlv_tag_t asn_DEF_TimeSlot_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
asn_TYPE_descriptor_t asn_DEF_TimeSlot = {
- "TimeSlot",
- "TimeSlot",
- TimeSlot_free,
- TimeSlot_print,
- TimeSlot_constraint,
- TimeSlot_decode_ber,
- TimeSlot_encode_der,
- TimeSlot_decode_xer,
- TimeSlot_encode_xer,
- TimeSlot_decode_uper,
- TimeSlot_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TimeSlot_tags_1,
- sizeof(asn_DEF_TimeSlot_tags_1)
- /sizeof(asn_DEF_TimeSlot_tags_1[0]), /* 1 */
- asn_DEF_TimeSlot_tags_1, /* Same as above */
- sizeof(asn_DEF_TimeSlot_tags_1)
- /sizeof(asn_DEF_TimeSlot_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_TIME_SLOT_CONSTR_1,
- 0, 0, /* No members */
- 0 /* No specifics */
+ "TimeSlot",
+ "TimeSlot",
+ TimeSlot_free,
+ TimeSlot_print,
+ TimeSlot_constraint,
+ TimeSlot_decode_ber,
+ TimeSlot_encode_der,
+ TimeSlot_decode_xer,
+ TimeSlot_encode_xer,
+ TimeSlot_decode_uper,
+ TimeSlot_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TimeSlot_tags_1,
+ sizeof(asn_DEF_TimeSlot_tags_1) /
+ sizeof(asn_DEF_TimeSlot_tags_1[0]), /* 1 */
+ asn_DEF_TimeSlot_tags_1, /* Same as above */
+ sizeof(asn_DEF_TimeSlot_tags_1) /
+ sizeof(asn_DEF_TimeSlot_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_TIME_SLOT_CONSTR_1,
+ 0,
+ 0, /* No members */
+ 0 /* No specifics */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TimeSlot.h b/src/core/libs/supl/asn-rrlp/TimeSlot.h
index 2d91de034..41bc35c04 100644
--- a/src/core/libs/supl/asn-rrlp/TimeSlot.h
+++ b/src/core/libs/supl/asn-rrlp/TimeSlot.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TimeSlot_H_
#define _TimeSlot_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/TimeSlotScheme.c b/src/core/libs/supl/asn-rrlp/TimeSlotScheme.c
index 347b073f7..0538187ab 100644
--- a/src/core/libs/supl/asn-rrlp/TimeSlotScheme.c
+++ b/src/core/libs/supl/asn-rrlp/TimeSlotScheme.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "TimeSlotScheme.h"
-int
-TimeSlotScheme_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int TimeSlotScheme_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-TimeSlotScheme_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void TimeSlotScheme_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-TimeSlotScheme_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void TimeSlotScheme_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-TimeSlotScheme_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int TimeSlotScheme_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-TimeSlotScheme_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) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t TimeSlotScheme_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)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-TimeSlotScheme_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) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t TimeSlotScheme_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)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-TimeSlotScheme_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) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t TimeSlotScheme_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)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-TimeSlotScheme_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) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t TimeSlotScheme_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)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-TimeSlotScheme_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t TimeSlotScheme_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-TimeSlotScheme_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- TimeSlotScheme_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t TimeSlotScheme_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ TimeSlotScheme_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_TIME_SLOT_SCHEME_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_TimeSlotScheme_value2enum_1[] = {
- { 0, 11, "equalLength" },
- { 1, 13, "variousLength" }
-};
+ {0, 11, "equalLength"}, {1, 13, "variousLength"}};
static unsigned int asn_MAP_TimeSlotScheme_enum2value_1[] = {
- 0, /* equalLength(0) */
- 1 /* variousLength(1) */
+ 0, /* equalLength(0) */
+ 1 /* variousLength(1) */
};
static asn_INTEGER_specifics_t asn_SPC_TimeSlotScheme_specs_1 = {
- asn_MAP_TimeSlotScheme_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_TimeSlotScheme_enum2value_1, /* N => "tag"; sorted by N */
- 2, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_TimeSlotScheme_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_TimeSlotScheme_enum2value_1, /* N => "tag"; sorted by N */
+ 2, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_TimeSlotScheme_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_TimeSlotScheme = {
- "TimeSlotScheme",
- "TimeSlotScheme",
- TimeSlotScheme_free,
- TimeSlotScheme_print,
- TimeSlotScheme_constraint,
- TimeSlotScheme_decode_ber,
- TimeSlotScheme_encode_der,
- TimeSlotScheme_decode_xer,
- TimeSlotScheme_encode_xer,
- TimeSlotScheme_decode_uper,
- TimeSlotScheme_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_TimeSlotScheme_tags_1,
- sizeof(asn_DEF_TimeSlotScheme_tags_1)
- /sizeof(asn_DEF_TimeSlotScheme_tags_1[0]), /* 1 */
- asn_DEF_TimeSlotScheme_tags_1, /* Same as above */
- sizeof(asn_DEF_TimeSlotScheme_tags_1)
- /sizeof(asn_DEF_TimeSlotScheme_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_TIME_SLOT_SCHEME_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_TimeSlotScheme_specs_1 /* Additional specs */
+ "TimeSlotScheme",
+ "TimeSlotScheme",
+ TimeSlotScheme_free,
+ TimeSlotScheme_print,
+ TimeSlotScheme_constraint,
+ TimeSlotScheme_decode_ber,
+ TimeSlotScheme_encode_der,
+ TimeSlotScheme_decode_xer,
+ TimeSlotScheme_encode_xer,
+ TimeSlotScheme_decode_uper,
+ TimeSlotScheme_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_TimeSlotScheme_tags_1,
+ sizeof(asn_DEF_TimeSlotScheme_tags_1) /
+ sizeof(asn_DEF_TimeSlotScheme_tags_1[0]), /* 1 */
+ asn_DEF_TimeSlotScheme_tags_1, /* Same as above */
+ sizeof(asn_DEF_TimeSlotScheme_tags_1) /
+ sizeof(asn_DEF_TimeSlotScheme_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_TIME_SLOT_SCHEME_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_TimeSlotScheme_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/TimeSlotScheme.h b/src/core/libs/supl/asn-rrlp/TimeSlotScheme.h
index 23e060a13..4aeb73b59 100644
--- a/src/core/libs/supl/asn-rrlp/TimeSlotScheme.h
+++ b/src/core/libs/supl/asn-rrlp/TimeSlotScheme.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _TimeSlotScheme_H_
#define _TimeSlotScheme_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/UTCModel.c b/src/core/libs/supl/asn-rrlp/UTCModel.c
index a8d0557e1..a2bcd79d3 100644
--- a/src/core/libs/supl/asn-rrlp/UTCModel.c
+++ b/src/core/libs/supl/asn-rrlp/UTCModel.c
@@ -1,369 +1,365 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "UTCModel.h"
-static int
-memb_utcA1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcA1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcA0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcA0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcTot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcTot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcWNt_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcWNt_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcDeltaTls_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcDeltaTls_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcWNlsf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 255)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcWNlsf_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 255))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcDN_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcDN_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_utcDeltaTlsf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_utcDeltaTlsf_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_MEMB_UTC_A1_CONSTR_2 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_A0_CONSTR_3 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_TOT_CONSTR_4 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_W_NT_CONSTR_5 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_DELTA_TLS_CONSTR_6 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_W_NLSF_CONSTR_7 = {
- { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, 0, 255} /* (0..255) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_DN_CONSTR_8 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_UTC_DELTA_TLSF_CONSTR_9 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_UTCModel_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcA1),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcA1_constraint_1,
- &ASN_PER_MEMB_UTC_A1_CONSTR_2,
- 0,
- "utcA1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcA0),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcA0_constraint_1,
- &ASN_PER_MEMB_UTC_A0_CONSTR_3,
- 0,
- "utcA0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcTot),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcTot_constraint_1,
- &ASN_PER_MEMB_UTC_TOT_CONSTR_4,
- 0,
- "utcTot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcWNt),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcWNt_constraint_1,
- &ASN_PER_MEMB_UTC_W_NT_CONSTR_5,
- 0,
- "utcWNt"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcDeltaTls),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcDeltaTls_constraint_1,
- &ASN_PER_MEMB_UTC_DELTA_TLS_CONSTR_6,
- 0,
- "utcDeltaTls"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcWNlsf),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcWNlsf_constraint_1,
- &ASN_PER_MEMB_UTC_W_NLSF_CONSTR_7,
- 0,
- "utcWNlsf"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcDN),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcDN_constraint_1,
- &ASN_PER_MEMB_UTC_DN_CONSTR_8,
- 0,
- "utcDN"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcDeltaTlsf),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_utcDeltaTlsf_constraint_1,
- &ASN_PER_MEMB_UTC_DELTA_TLSF_CONSTR_9,
- 0,
- "utcDeltaTlsf"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcA1),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcA1_constraint_1,
+ &ASN_PER_MEMB_UTC_A1_CONSTR_2, 0, "utcA1"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcA0),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcA0_constraint_1,
+ &ASN_PER_MEMB_UTC_A0_CONSTR_3, 0, "utcA0"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcTot),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcTot_constraint_1,
+ &ASN_PER_MEMB_UTC_TOT_CONSTR_4, 0, "utcTot"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcWNt),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcWNt_constraint_1,
+ &ASN_PER_MEMB_UTC_W_NT_CONSTR_5, 0, "utcWNt"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcDeltaTls),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcDeltaTls_constraint_1,
+ &ASN_PER_MEMB_UTC_DELTA_TLS_CONSTR_6, 0, "utcDeltaTls"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcWNlsf),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcWNlsf_constraint_1,
+ &ASN_PER_MEMB_UTC_W_NLSF_CONSTR_7, 0, "utcWNlsf"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcDN),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcDN_constraint_1,
+ &ASN_PER_MEMB_UTC_DN_CONSTR_8, 0, "utcDN"},
+ {ATF_NOFLAGS, 0, offsetof(struct UTCModel, utcDeltaTlsf),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_utcDeltaTlsf_constraint_1,
+ &ASN_PER_MEMB_UTC_DELTA_TLSF_CONSTR_9, 0, "utcDeltaTlsf"},
};
static ber_tlv_tag_t asn_DEF_UTCModel_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_UTCModel_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* utcA1 at 775 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* utcA0 at 776 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* utcTot at 777 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* utcWNt at 778 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* utcDeltaTls at 779 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* utcWNlsf at 780 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* utcDN at 781 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* utcDeltaTlsf at 782 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* utcA1 at 775 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* utcA0 at 776 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* utcTot at 777 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* utcWNt at 778 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* utcDeltaTls at 779 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* utcWNlsf at 780 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* utcDN at 781 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0} /* utcDeltaTlsf at 782 */
};
static asn_SEQUENCE_specifics_t asn_SPC_UTCModel_specs_1 = {
- sizeof(struct UTCModel),
- offsetof(struct UTCModel, _asn_ctx),
- asn_MAP_UTCModel_tag2el_1,
- 8, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct UTCModel),
+ offsetof(struct UTCModel, _asn_ctx),
+ asn_MAP_UTCModel_tag2el_1,
+ 8, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_UTCModel = {
- "UTCModel",
- "UTCModel",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_UTCModel_tags_1,
- sizeof(asn_DEF_UTCModel_tags_1)
- /sizeof(asn_DEF_UTCModel_tags_1[0]), /* 1 */
- asn_DEF_UTCModel_tags_1, /* Same as above */
- sizeof(asn_DEF_UTCModel_tags_1)
- /sizeof(asn_DEF_UTCModel_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_UTCModel_1,
- 8, /* Elements count */
- &asn_SPC_UTCModel_specs_1 /* Additional specs */
+ "UTCModel",
+ "UTCModel",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_UTCModel_tags_1,
+ sizeof(asn_DEF_UTCModel_tags_1) /
+ sizeof(asn_DEF_UTCModel_tags_1[0]), /* 1 */
+ asn_DEF_UTCModel_tags_1, /* Same as above */
+ sizeof(asn_DEF_UTCModel_tags_1) /
+ sizeof(asn_DEF_UTCModel_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_UTCModel_1,
+ 8, /* Elements count */
+ &asn_SPC_UTCModel_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/UTCModel.h b/src/core/libs/supl/asn-rrlp/UTCModel.h
index cd96de255..de84b4169 100644
--- a/src/core/libs/supl/asn-rrlp/UTCModel.h
+++ b/src/core/libs/supl/asn-rrlp/UTCModel.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _UTCModel_H_
#define _UTCModel_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.c b/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.c
index 28d2189fc..c87a76643 100644
--- a/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.c
+++ b/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.c
@@ -1,145 +1,161 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "UlPseudoSegInd.h"
-int
-UlPseudoSegInd_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int UlPseudoSegInd_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-UlPseudoSegInd_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void UlPseudoSegInd_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-UlPseudoSegInd_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void UlPseudoSegInd_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-UlPseudoSegInd_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int UlPseudoSegInd_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-UlPseudoSegInd_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) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t UlPseudoSegInd_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)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-UlPseudoSegInd_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) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t UlPseudoSegInd_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)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-UlPseudoSegInd_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) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t UlPseudoSegInd_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)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-UlPseudoSegInd_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) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t UlPseudoSegInd_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)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-UlPseudoSegInd_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t UlPseudoSegInd_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-UlPseudoSegInd_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t UlPseudoSegInd_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ UlPseudoSegInd_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_UL_PSEUDO_SEG_IND_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_UlPseudoSegInd_value2enum_1[] = {
- { 0, 11, "firstOfMany" },
- { 1, 12, "secondOfMany" }
-};
+ {0, 11, "firstOfMany"}, {1, 12, "secondOfMany"}};
static unsigned int asn_MAP_UlPseudoSegInd_enum2value_1[] = {
- 0, /* firstOfMany(0) */
- 1 /* secondOfMany(1) */
+ 0, /* firstOfMany(0) */
+ 1 /* secondOfMany(1) */
};
static asn_INTEGER_specifics_t asn_SPC_UlPseudoSegInd_specs_1 = {
- asn_MAP_UlPseudoSegInd_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_UlPseudoSegInd_enum2value_1, /* N => "tag"; sorted by N */
- 2, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_UlPseudoSegInd_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_UlPseudoSegInd_enum2value_1, /* N => "tag"; sorted by N */
+ 2, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_UlPseudoSegInd_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_UlPseudoSegInd = {
- "UlPseudoSegInd",
- "UlPseudoSegInd",
- UlPseudoSegInd_free,
- UlPseudoSegInd_print,
- UlPseudoSegInd_constraint,
- UlPseudoSegInd_decode_ber,
- UlPseudoSegInd_encode_der,
- UlPseudoSegInd_decode_xer,
- UlPseudoSegInd_encode_xer,
- UlPseudoSegInd_decode_uper,
- UlPseudoSegInd_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_UlPseudoSegInd_tags_1,
- sizeof(asn_DEF_UlPseudoSegInd_tags_1)
- /sizeof(asn_DEF_UlPseudoSegInd_tags_1[0]), /* 1 */
- asn_DEF_UlPseudoSegInd_tags_1, /* Same as above */
- sizeof(asn_DEF_UlPseudoSegInd_tags_1)
- /sizeof(asn_DEF_UlPseudoSegInd_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_UL_PSEUDO_SEG_IND_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_UlPseudoSegInd_specs_1 /* Additional specs */
+ "UlPseudoSegInd",
+ "UlPseudoSegInd",
+ UlPseudoSegInd_free,
+ UlPseudoSegInd_print,
+ UlPseudoSegInd_constraint,
+ UlPseudoSegInd_decode_ber,
+ UlPseudoSegInd_encode_der,
+ UlPseudoSegInd_decode_xer,
+ UlPseudoSegInd_encode_xer,
+ UlPseudoSegInd_decode_uper,
+ UlPseudoSegInd_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_UlPseudoSegInd_tags_1,
+ sizeof(asn_DEF_UlPseudoSegInd_tags_1) /
+ sizeof(asn_DEF_UlPseudoSegInd_tags_1[0]), /* 1 */
+ asn_DEF_UlPseudoSegInd_tags_1, /* Same as above */
+ sizeof(asn_DEF_UlPseudoSegInd_tags_1) /
+ sizeof(asn_DEF_UlPseudoSegInd_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_UL_PSEUDO_SEG_IND_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_UlPseudoSegInd_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.h b/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.h
index 2f7bc4547..5e379b486 100644
--- a/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.h
+++ b/src/core/libs/supl/asn-rrlp/UlPseudoSegInd.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _UlPseudoSegInd_H_
#define _UlPseudoSegInd_H_
-
#include
/* Including external dependencies */
diff --git a/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.c b/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.c
index c367db368..b9e6f5061 100644
--- a/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.c
+++ b/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.c
@@ -1,1439 +1,1480 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "UncompressedEphemeris.h"
-static int
-ephemE_17_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const unsigned long *)sptr;
-
- /* Constraint check succeeded */
- return 0;
+static int ephemE_17_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const unsigned long *)sptr;
+
+ /* Constraint check succeeded */
+ return 0;
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-ephemE_17_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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 */
+static void ephemE_17_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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 */
}
-static void
-ephemE_17_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ephemE_17_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+static void ephemE_17_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-static int
-ephemE_17_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+static int ephemE_17_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-static asn_dec_rval_t
-ephemE_17_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) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+static asn_dec_rval_t ephemE_17_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)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-static asn_enc_rval_t
-ephemE_17_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) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+static asn_enc_rval_t ephemE_17_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)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-static asn_dec_rval_t
-ephemE_17_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) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+static asn_dec_rval_t ephemE_17_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)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-static asn_enc_rval_t
-ephemE_17_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) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+static asn_enc_rval_t ephemE_17_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)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-static asn_dec_rval_t
-ephemE_17_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+static asn_dec_rval_t ephemE_17_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-static asn_enc_rval_t
-ephemE_17_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ephemE_17_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+static asn_enc_rval_t ephemE_17_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ ephemE_17_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
-static int
-ephemAPowerHalf_19_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const unsigned long *)sptr;
-
- /* Constraint check succeeded */
- return 0;
+static int ephemAPowerHalf_19_constraint(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const unsigned long *)sptr;
+
+ /* Constraint check succeeded */
+ return 0;
}
/*
* This type is implemented using NativeInteger,
* so here we adjust the DEF accordingly.
*/
-static void
-ephemAPowerHalf_19_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_NativeInteger.free_struct;
- td->print_struct = asn_DEF_NativeInteger.print_struct;
- td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
- td->der_encoder = asn_DEF_NativeInteger.der_encoder;
- td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
- td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
- td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
- td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
- if(!td->per_constraints)
- 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 */
+static void ephemAPowerHalf_19_inherit_TYPE_descriptor(
+ asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_NativeInteger.free_struct;
+ td->print_struct = asn_DEF_NativeInteger.print_struct;
+ td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
+ td->der_encoder = asn_DEF_NativeInteger.der_encoder;
+ td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
+ td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
+ td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
+ td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
+ if (!td->per_constraints)
+ 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 */
}
-static void
-ephemAPowerHalf_19_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+static void ephemAPowerHalf_19_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-static int
-ephemAPowerHalf_19_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+static int ephemAPowerHalf_19_print(asn_TYPE_descriptor_t *td,
+ const void *struct_ptr, int ilevel,
+ asn_app_consume_bytes_f *cb, void *app_key)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-static asn_dec_rval_t
-ephemAPowerHalf_19_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) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+static asn_dec_rval_t ephemAPowerHalf_19_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)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-static asn_enc_rval_t
-ephemAPowerHalf_19_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) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+static asn_enc_rval_t ephemAPowerHalf_19_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)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-static asn_dec_rval_t
-ephemAPowerHalf_19_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) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+static asn_dec_rval_t ephemAPowerHalf_19_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)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-static asn_enc_rval_t
-ephemAPowerHalf_19_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) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+static asn_enc_rval_t ephemAPowerHalf_19_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)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-static asn_dec_rval_t
-ephemAPowerHalf_19_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+static asn_dec_rval_t ephemAPowerHalf_19_decode_uper(
+ asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints, void **structure,
+ asn_per_data_t *per_data)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-static asn_enc_rval_t
-ephemAPowerHalf_19_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+static asn_enc_rval_t ephemAPowerHalf_19_encode_uper(
+ asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints,
+ void *structure, asn_per_outp_t *per_out)
+{
+ ephemAPowerHalf_19_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
-static int
-memb_ephemCodeOnL2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 3)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCodeOnL2_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 3))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemURA_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 15)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemURA_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 15))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemSVhealth_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 63)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemSVhealth_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 63))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemIODC_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1023)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemIODC_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1023))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemL2Pflag_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemL2Pflag_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemTgd_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemTgd_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemToc_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 37799)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemToc_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 37799))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemAF2_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -128 && value <= 127)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemAF2_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -128 && value <= 127))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemAF1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemAF1_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemAF0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -2097152 && value <= 2097151)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemAF0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -2097152 && value <= 2097151))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemCrs_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCrs_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemDeltaN_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemDeltaN_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemM0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemM0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemCuc_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCuc_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemE_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const unsigned long *)sptr;
-
- /* Constraint check succeeded */
- return 0;
+static int memb_ephemE_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const unsigned long *)sptr;
+
+ /* Constraint check succeeded */
+ return 0;
}
-static int
-memb_ephemCus_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCus_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemAPowerHalf_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const unsigned long *)sptr;
-
- /* Constraint check succeeded */
- return 0;
+static int memb_ephemAPowerHalf_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const unsigned long *)sptr;
+
+ /* Constraint check succeeded */
+ return 0;
}
-static int
-memb_ephemToe_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 37799)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemToe_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 37799))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemFitFlag_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 1)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemFitFlag_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 1))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemAODA_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= 0 && value <= 31)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemAODA_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= 0 && value <= 31))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemCic_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCic_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemOmegaA0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemOmegaA0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemCis_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCis_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemI0_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemI0_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemCrc_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -32768 && value <= 32767)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemCrc_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -32768 && value <= 32767))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= (-2147483647L - 1) && value <= 2147483647)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemW_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= (-2147483647L - 1) && value <= 2147483647))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemOmegaADot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8388608 && value <= 8388607)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemOmegaADot_constraint_1(
+ asn_TYPE_descriptor_t *td, const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8388608 && value <= 8388607))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
-static int
-memb_ephemIDot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
- 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__);
- return -1;
- }
-
- value = *(const long *)sptr;
-
- if((value >= -8192 && value <= 8191)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- _ASN_CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
+static int memb_ephemIDot_constraint_1(asn_TYPE_descriptor_t *td,
+ const void *sptr,
+ 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__);
+ return -1;
+ }
+
+ value = *(const long *)sptr;
+
+ if ((value >= -8192 && value <= 8191))
+ {
+ /* Constraint check succeeded */
+ return 0;
+ }
+ else
+ {
+ _ASN_CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
+ return -1;
+ }
}
static asn_per_constraints_t ASN_PER_TYPE_EPHEM_E_CONSTR_17 = {
- { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, 0, 4294967295} /* (0..4294967295) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_TYPE_EPHEM_A_POWER_HALF_CONSTR_19 = {
- { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, 0, 4294967295} /* (0..4294967295) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CODE_ON_L2_CONSTR_2 = {
- { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 2, 2, 0, 3} /* (0..3) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_URA_CONSTR_3 = {
- { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 4, 4, 0, 15} /* (0..15) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_S_VHEALTH_CONSTR_4 = {
- { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 6, 6, 0, 63} /* (0..63) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_IODC_CONSTR_5 = {
- { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 10, 10, 0, 1023} /* (0..1023) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_L2_PFLAG_CONSTR_6 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_TGD_CONSTR_8 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_TOC_CONSTR_9 = {
- { APC_CONSTRAINED, 16, 16, 0, 37799 } /* (0..37799) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 37799} /* (0..37799) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_A_F2_CONSTR_10 = {
- { APC_CONSTRAINED, 8, 8, -128, 127 } /* (-128..127) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 8, 8, -128, 127} /* (-128..127) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_A_F1_CONSTR_11 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_A_F0_CONSTR_12 = {
- { APC_CONSTRAINED, 22, -1, -2097152, 2097151 } /* (-2097152..2097151) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 22, -1, -2097152, 2097151} /* (-2097152..2097151) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CRS_CONSTR_13 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_DELTA_N_CONSTR_14 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_M0_CONSTR_15 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CUC_CONSTR_16 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_E_CONSTR_17 = {
- { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, 0, 4294967295} /* (0..4294967295) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CUS_CONSTR_18 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_A_POWER_HALF_CONSTR_19 = {
- { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, 0, 4294967295} /* (0..4294967295) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_TOE_CONSTR_20 = {
- { APC_CONSTRAINED, 16, 16, 0, 37799 } /* (0..37799) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, 0, 37799} /* (0..37799) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_FIT_FLAG_CONSTR_21 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_AODA_CONSTR_22 = {
- { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 5, 5, 0, 31} /* (0..31) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CIC_CONSTR_23 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_OMEGA_A0_CONSTR_24 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CIS_CONSTR_25 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_I0_CONSTR_26 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_CRC_CONSTR_27 = {
- { APC_CONSTRAINED, 16, 16, -32768, 32767 } /* (-32768..32767) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 16, 16, -32768, 32767} /* (-32768..32767) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_W_CONSTR_28 = {
- { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 32, -1, (-2147483647L - 1),
+ 2147483647} /* (-2147483648..2147483647) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_OMEGA_A_DOT_CONSTR_29 = {
- { APC_CONSTRAINED, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 24, -1, -8388608, 8388607} /* (-8388608..8388607) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_per_constraints_t ASN_PER_MEMB_EPHEM_I_DOT_CONSTR_30 = {
- { APC_CONSTRAINED, 14, 14, -8192, 8191 } /* (-8192..8191) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 14, 14, -8192, 8191} /* (-8192..8191) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_specifics_t asn_SPC_ephemE_specs_17 = {
- 0, 0, 0, 0, 0,
- 0, /* Native long size */
- 1 /* Unsigned representation */
+ 0, 0, 0, 0, 0, 0, /* Native long size */
+ 1 /* Unsigned representation */
};
static ber_tlv_tag_t asn_DEF_ephemE_tags_17[] = {
- (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_CONTEXT | (15 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_ephemE_17 = {
- "ephemE",
- "ephemE",
- ephemE_17_free,
- ephemE_17_print,
- ephemE_17_constraint,
- ephemE_17_decode_ber,
- ephemE_17_encode_der,
- ephemE_17_decode_xer,
- ephemE_17_encode_xer,
- ephemE_17_decode_uper,
- ephemE_17_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ephemE_tags_17,
- sizeof(asn_DEF_ephemE_tags_17)
- /sizeof(asn_DEF_ephemE_tags_17[0]) - 1, /* 1 */
- asn_DEF_ephemE_tags_17, /* Same as above */
- sizeof(asn_DEF_ephemE_tags_17)
- /sizeof(asn_DEF_ephemE_tags_17[0]), /* 2 */
- &ASN_PER_TYPE_EPHEM_E_CONSTR_17,
- 0, 0, /* No members */
- &asn_SPC_ephemE_specs_17 /* Additional specs */
+ asn_TYPE_descriptor_t asn_DEF_ephemE_17 = {
+ "ephemE",
+ "ephemE",
+ ephemE_17_free,
+ ephemE_17_print,
+ ephemE_17_constraint,
+ ephemE_17_decode_ber,
+ ephemE_17_encode_der,
+ ephemE_17_decode_xer,
+ ephemE_17_encode_xer,
+ ephemE_17_decode_uper,
+ ephemE_17_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ephemE_tags_17,
+ sizeof(asn_DEF_ephemE_tags_17) / sizeof(asn_DEF_ephemE_tags_17[0]) -
+ 1, /* 1 */
+ asn_DEF_ephemE_tags_17, /* Same as above */
+ sizeof(asn_DEF_ephemE_tags_17) /
+ sizeof(asn_DEF_ephemE_tags_17[0]), /* 2 */
+ &ASN_PER_TYPE_EPHEM_E_CONSTR_17,
+ 0,
+ 0, /* No members */
+ &asn_SPC_ephemE_specs_17 /* Additional specs */
};
static asn_INTEGER_specifics_t asn_SPC_ephemAPowerHalf_specs_19 = {
- 0, 0, 0, 0, 0,
- 0, /* Native long size */
- 1 /* Unsigned representation */
+ 0, 0, 0, 0, 0, 0, /* Native long size */
+ 1 /* Unsigned representation */
};
static ber_tlv_tag_t asn_DEF_ephemAPowerHalf_tags_19[] = {
- (ASN_TAG_CLASS_CONTEXT | (17 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
+ (ASN_TAG_CLASS_CONTEXT | (17 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))};
static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_ephemAPowerHalf_19 = {
- "ephemAPowerHalf",
- "ephemAPowerHalf",
- ephemAPowerHalf_19_free,
- ephemAPowerHalf_19_print,
- ephemAPowerHalf_19_constraint,
- ephemAPowerHalf_19_decode_ber,
- ephemAPowerHalf_19_encode_der,
- ephemAPowerHalf_19_decode_xer,
- ephemAPowerHalf_19_encode_xer,
- ephemAPowerHalf_19_decode_uper,
- ephemAPowerHalf_19_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_ephemAPowerHalf_tags_19,
- sizeof(asn_DEF_ephemAPowerHalf_tags_19)
- /sizeof(asn_DEF_ephemAPowerHalf_tags_19[0]) - 1, /* 1 */
- asn_DEF_ephemAPowerHalf_tags_19, /* Same as above */
- sizeof(asn_DEF_ephemAPowerHalf_tags_19)
- /sizeof(asn_DEF_ephemAPowerHalf_tags_19[0]), /* 2 */
- &ASN_PER_TYPE_EPHEM_A_POWER_HALF_CONSTR_19,
- 0, 0, /* No members */
- &asn_SPC_ephemAPowerHalf_specs_19 /* Additional specs */
+ asn_TYPE_descriptor_t asn_DEF_ephemAPowerHalf_19 = {
+ "ephemAPowerHalf",
+ "ephemAPowerHalf",
+ ephemAPowerHalf_19_free,
+ ephemAPowerHalf_19_print,
+ ephemAPowerHalf_19_constraint,
+ ephemAPowerHalf_19_decode_ber,
+ ephemAPowerHalf_19_encode_der,
+ ephemAPowerHalf_19_decode_xer,
+ ephemAPowerHalf_19_encode_xer,
+ ephemAPowerHalf_19_decode_uper,
+ ephemAPowerHalf_19_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_ephemAPowerHalf_tags_19,
+ sizeof(asn_DEF_ephemAPowerHalf_tags_19) /
+ sizeof(asn_DEF_ephemAPowerHalf_tags_19[0]) -
+ 1, /* 1 */
+ asn_DEF_ephemAPowerHalf_tags_19, /* Same as above */
+ sizeof(asn_DEF_ephemAPowerHalf_tags_19) /
+ sizeof(asn_DEF_ephemAPowerHalf_tags_19[0]), /* 2 */
+ &ASN_PER_TYPE_EPHEM_A_POWER_HALF_CONSTR_19,
+ 0,
+ 0, /* No members */
+ &asn_SPC_ephemAPowerHalf_specs_19 /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_UncompressedEphemeris_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCodeOnL2),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCodeOnL2_constraint_1,
- &ASN_PER_MEMB_EPHEM_CODE_ON_L2_CONSTR_2,
- 0,
- "ephemCodeOnL2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemURA),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemURA_constraint_1,
- &ASN_PER_MEMB_EPHEM_URA_CONSTR_3,
- 0,
- "ephemURA"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemSVhealth),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemSVhealth_constraint_1,
- &ASN_PER_MEMB_EPHEM_S_VHEALTH_CONSTR_4,
- 0,
- "ephemSVhealth"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemIODC),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemIODC_constraint_1,
- &ASN_PER_MEMB_EPHEM_IODC_CONSTR_5,
- 0,
- "ephemIODC"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemL2Pflag),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemL2Pflag_constraint_1,
- &ASN_PER_MEMB_EPHEM_L2_PFLAG_CONSTR_6,
- 0,
- "ephemL2Pflag"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemSF1Rsvd),
- (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_EphemerisSubframe1Reserved,
- 0, /* Defer constraints checking to the member type */
- 0, /* No PER visible constraints */
- 0,
- "ephemSF1Rsvd"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemTgd),
- (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemTgd_constraint_1,
- &ASN_PER_MEMB_EPHEM_TGD_CONSTR_8,
- 0,
- "ephemTgd"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemToc),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemToc_constraint_1,
- &ASN_PER_MEMB_EPHEM_TOC_CONSTR_9,
- 0,
- "ephemToc"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAF2),
- (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemAF2_constraint_1,
- &ASN_PER_MEMB_EPHEM_A_F2_CONSTR_10,
- 0,
- "ephemAF2"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAF1),
- (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemAF1_constraint_1,
- &ASN_PER_MEMB_EPHEM_A_F1_CONSTR_11,
- 0,
- "ephemAF1"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAF0),
- (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemAF0_constraint_1,
- &ASN_PER_MEMB_EPHEM_A_F0_CONSTR_12,
- 0,
- "ephemAF0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCrs),
- (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCrs_constraint_1,
- &ASN_PER_MEMB_EPHEM_CRS_CONSTR_13,
- 0,
- "ephemCrs"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemDeltaN),
- (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemDeltaN_constraint_1,
- &ASN_PER_MEMB_EPHEM_DELTA_N_CONSTR_14,
- 0,
- "ephemDeltaN"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemM0),
- (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemM0_constraint_1,
- &ASN_PER_MEMB_EPHEM_M0_CONSTR_15,
- 0,
- "ephemM0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCuc),
- (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCuc_constraint_1,
- &ASN_PER_MEMB_EPHEM_CUC_CONSTR_16,
- 0,
- "ephemCuc"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemE),
- (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ephemE_17,
- memb_ephemE_constraint_1,
- &ASN_PER_MEMB_EPHEM_E_CONSTR_17,
- 0,
- "ephemE"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCus),
- (ASN_TAG_CLASS_CONTEXT | (16 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCus_constraint_1,
- &ASN_PER_MEMB_EPHEM_CUS_CONSTR_18,
- 0,
- "ephemCus"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAPowerHalf),
- (ASN_TAG_CLASS_CONTEXT | (17 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_ephemAPowerHalf_19,
- memb_ephemAPowerHalf_constraint_1,
- &ASN_PER_MEMB_EPHEM_A_POWER_HALF_CONSTR_19,
- 0,
- "ephemAPowerHalf"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemToe),
- (ASN_TAG_CLASS_CONTEXT | (18 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemToe_constraint_1,
- &ASN_PER_MEMB_EPHEM_TOE_CONSTR_20,
- 0,
- "ephemToe"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemFitFlag),
- (ASN_TAG_CLASS_CONTEXT | (19 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemFitFlag_constraint_1,
- &ASN_PER_MEMB_EPHEM_FIT_FLAG_CONSTR_21,
- 0,
- "ephemFitFlag"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAODA),
- (ASN_TAG_CLASS_CONTEXT | (20 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemAODA_constraint_1,
- &ASN_PER_MEMB_EPHEM_AODA_CONSTR_22,
- 0,
- "ephemAODA"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCic),
- (ASN_TAG_CLASS_CONTEXT | (21 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCic_constraint_1,
- &ASN_PER_MEMB_EPHEM_CIC_CONSTR_23,
- 0,
- "ephemCic"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemOmegaA0),
- (ASN_TAG_CLASS_CONTEXT | (22 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemOmegaA0_constraint_1,
- &ASN_PER_MEMB_EPHEM_OMEGA_A0_CONSTR_24,
- 0,
- "ephemOmegaA0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCis),
- (ASN_TAG_CLASS_CONTEXT | (23 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCis_constraint_1,
- &ASN_PER_MEMB_EPHEM_CIS_CONSTR_25,
- 0,
- "ephemCis"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemI0),
- (ASN_TAG_CLASS_CONTEXT | (24 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemI0_constraint_1,
- &ASN_PER_MEMB_EPHEM_I0_CONSTR_26,
- 0,
- "ephemI0"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCrc),
- (ASN_TAG_CLASS_CONTEXT | (25 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemCrc_constraint_1,
- &ASN_PER_MEMB_EPHEM_CRC_CONSTR_27,
- 0,
- "ephemCrc"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemW),
- (ASN_TAG_CLASS_CONTEXT | (26 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemW_constraint_1,
- &ASN_PER_MEMB_EPHEM_W_CONSTR_28,
- 0,
- "ephemW"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemOmegaADot),
- (ASN_TAG_CLASS_CONTEXT | (27 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemOmegaADot_constraint_1,
- &ASN_PER_MEMB_EPHEM_OMEGA_A_DOT_CONSTR_29,
- 0,
- "ephemOmegaADot"
- },
- { ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemIDot),
- (ASN_TAG_CLASS_CONTEXT | (28 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- memb_ephemIDot_constraint_1,
- &ASN_PER_MEMB_EPHEM_I_DOT_CONSTR_30,
- 0,
- "ephemIDot"
- },
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCodeOnL2),
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCodeOnL2_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CODE_ON_L2_CONSTR_2, 0, "ephemCodeOnL2"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemURA),
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemURA_constraint_1,
+ &ASN_PER_MEMB_EPHEM_URA_CONSTR_3, 0, "ephemURA"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemSVhealth),
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemSVhealth_constraint_1,
+ &ASN_PER_MEMB_EPHEM_S_VHEALTH_CONSTR_4, 0, "ephemSVhealth"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemIODC),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemIODC_constraint_1,
+ &ASN_PER_MEMB_EPHEM_IODC_CONSTR_5, 0, "ephemIODC"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemL2Pflag),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemL2Pflag_constraint_1,
+ &ASN_PER_MEMB_EPHEM_L2_PFLAG_CONSTR_6, 0, "ephemL2Pflag"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemSF1Rsvd),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_EphemerisSubframe1Reserved,
+ 0, /* Defer constraints checking to the member type */
+ 0, /* No PER visible constraints */
+ 0, "ephemSF1Rsvd"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemTgd),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemTgd_constraint_1,
+ &ASN_PER_MEMB_EPHEM_TGD_CONSTR_8, 0, "ephemTgd"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemToc),
+ (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemToc_constraint_1,
+ &ASN_PER_MEMB_EPHEM_TOC_CONSTR_9, 0, "ephemToc"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAF2),
+ (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemAF2_constraint_1,
+ &ASN_PER_MEMB_EPHEM_A_F2_CONSTR_10, 0, "ephemAF2"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAF1),
+ (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemAF1_constraint_1,
+ &ASN_PER_MEMB_EPHEM_A_F1_CONSTR_11, 0, "ephemAF1"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAF0),
+ (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemAF0_constraint_1,
+ &ASN_PER_MEMB_EPHEM_A_F0_CONSTR_12, 0, "ephemAF0"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCrs),
+ (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCrs_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CRS_CONSTR_13, 0, "ephemCrs"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemDeltaN),
+ (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemDeltaN_constraint_1,
+ &ASN_PER_MEMB_EPHEM_DELTA_N_CONSTR_14, 0, "ephemDeltaN"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemM0),
+ (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemM0_constraint_1,
+ &ASN_PER_MEMB_EPHEM_M0_CONSTR_15, 0, "ephemM0"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCuc),
+ (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCuc_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CUC_CONSTR_16, 0, "ephemCuc"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemE),
+ (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ephemE_17, memb_ephemE_constraint_1,
+ &ASN_PER_MEMB_EPHEM_E_CONSTR_17, 0, "ephemE"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCus),
+ (ASN_TAG_CLASS_CONTEXT | (16 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCus_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CUS_CONSTR_18, 0, "ephemCus"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAPowerHalf),
+ (ASN_TAG_CLASS_CONTEXT | (17 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_ephemAPowerHalf_19, memb_ephemAPowerHalf_constraint_1,
+ &ASN_PER_MEMB_EPHEM_A_POWER_HALF_CONSTR_19, 0, "ephemAPowerHalf"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemToe),
+ (ASN_TAG_CLASS_CONTEXT | (18 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemToe_constraint_1,
+ &ASN_PER_MEMB_EPHEM_TOE_CONSTR_20, 0, "ephemToe"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemFitFlag),
+ (ASN_TAG_CLASS_CONTEXT | (19 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemFitFlag_constraint_1,
+ &ASN_PER_MEMB_EPHEM_FIT_FLAG_CONSTR_21, 0, "ephemFitFlag"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemAODA),
+ (ASN_TAG_CLASS_CONTEXT | (20 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemAODA_constraint_1,
+ &ASN_PER_MEMB_EPHEM_AODA_CONSTR_22, 0, "ephemAODA"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCic),
+ (ASN_TAG_CLASS_CONTEXT | (21 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCic_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CIC_CONSTR_23, 0, "ephemCic"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemOmegaA0),
+ (ASN_TAG_CLASS_CONTEXT | (22 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemOmegaA0_constraint_1,
+ &ASN_PER_MEMB_EPHEM_OMEGA_A0_CONSTR_24, 0, "ephemOmegaA0"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCis),
+ (ASN_TAG_CLASS_CONTEXT | (23 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCis_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CIS_CONSTR_25, 0, "ephemCis"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemI0),
+ (ASN_TAG_CLASS_CONTEXT | (24 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemI0_constraint_1,
+ &ASN_PER_MEMB_EPHEM_I0_CONSTR_26, 0, "ephemI0"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemCrc),
+ (ASN_TAG_CLASS_CONTEXT | (25 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemCrc_constraint_1,
+ &ASN_PER_MEMB_EPHEM_CRC_CONSTR_27, 0, "ephemCrc"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemW),
+ (ASN_TAG_CLASS_CONTEXT | (26 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemW_constraint_1,
+ &ASN_PER_MEMB_EPHEM_W_CONSTR_28, 0, "ephemW"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemOmegaADot),
+ (ASN_TAG_CLASS_CONTEXT | (27 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemOmegaADot_constraint_1,
+ &ASN_PER_MEMB_EPHEM_OMEGA_A_DOT_CONSTR_29, 0, "ephemOmegaADot"},
+ {ATF_NOFLAGS, 0, offsetof(struct UncompressedEphemeris, ephemIDot),
+ (ASN_TAG_CLASS_CONTEXT | (28 << 2)),
+ -1, /* IMPLICIT tag at current level */
+ &asn_DEF_NativeInteger, memb_ephemIDot_constraint_1,
+ &ASN_PER_MEMB_EPHEM_I_DOT_CONSTR_30, 0, "ephemIDot"},
};
static ber_tlv_tag_t asn_DEF_UncompressedEphemeris_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};
static asn_TYPE_tag2member_t asn_MAP_UncompressedEphemeris_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ephemCodeOnL2 at 722 */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ephemURA at 723 */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ephemSVhealth at 724 */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ephemIODC at 725 */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ephemL2Pflag at 726 */
- { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ephemSF1Rsvd at 727 */
- { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ephemTgd at 728 */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ephemToc at 729 */
- { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* ephemAF2 at 730 */
- { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ephemAF1 at 731 */
- { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* ephemAF0 at 732 */
- { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* ephemCrs at 733 */
- { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ephemDeltaN at 734 */
- { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ephemM0 at 735 */
- { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ephemCuc at 736 */
- { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* ephemE at 737 */
- { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* ephemCus at 738 */
- { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* ephemAPowerHalf at 739 */
- { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* ephemToe at 740 */
- { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* ephemFitFlag at 741 */
- { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* ephemAODA at 742 */
- { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 }, /* ephemCic at 743 */
- { (ASN_TAG_CLASS_CONTEXT | (22 << 2)), 22, 0, 0 }, /* ephemOmegaA0 at 744 */
- { (ASN_TAG_CLASS_CONTEXT | (23 << 2)), 23, 0, 0 }, /* ephemCis at 745 */
- { (ASN_TAG_CLASS_CONTEXT | (24 << 2)), 24, 0, 0 }, /* ephemI0 at 746 */
- { (ASN_TAG_CLASS_CONTEXT | (25 << 2)), 25, 0, 0 }, /* ephemCrc at 747 */
- { (ASN_TAG_CLASS_CONTEXT | (26 << 2)), 26, 0, 0 }, /* ephemW at 748 */
- { (ASN_TAG_CLASS_CONTEXT | (27 << 2)), 27, 0, 0 }, /* ephemOmegaADot at 749 */
- { (ASN_TAG_CLASS_CONTEXT | (28 << 2)), 28, 0, 0 } /* ephemIDot at 750 */
+ {(ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0}, /* ephemCodeOnL2 at 722 */
+ {(ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0}, /* ephemURA at 723 */
+ {(ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0}, /* ephemSVhealth at 724 */
+ {(ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0}, /* ephemIODC at 725 */
+ {(ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0}, /* ephemL2Pflag at 726 */
+ {(ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0}, /* ephemSF1Rsvd at 727 */
+ {(ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0}, /* ephemTgd at 728 */
+ {(ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0}, /* ephemToc at 729 */
+ {(ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0}, /* ephemAF2 at 730 */
+ {(ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0}, /* ephemAF1 at 731 */
+ {(ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0}, /* ephemAF0 at 732 */
+ {(ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0}, /* ephemCrs at 733 */
+ {(ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0}, /* ephemDeltaN at 734 */
+ {(ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0}, /* ephemM0 at 735 */
+ {(ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0}, /* ephemCuc at 736 */
+ {(ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0}, /* ephemE at 737 */
+ {(ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0}, /* ephemCus at 738 */
+ {(ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0,
+ 0}, /* ephemAPowerHalf at 739 */
+ {(ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0}, /* ephemToe at 740 */
+ {(ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0}, /* ephemFitFlag at 741 */
+ {(ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0}, /* ephemAODA at 742 */
+ {(ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0}, /* ephemCic at 743 */
+ {(ASN_TAG_CLASS_CONTEXT | (22 << 2)), 22, 0, 0}, /* ephemOmegaA0 at 744 */
+ {(ASN_TAG_CLASS_CONTEXT | (23 << 2)), 23, 0, 0}, /* ephemCis at 745 */
+ {(ASN_TAG_CLASS_CONTEXT | (24 << 2)), 24, 0, 0}, /* ephemI0 at 746 */
+ {(ASN_TAG_CLASS_CONTEXT | (25 << 2)), 25, 0, 0}, /* ephemCrc at 747 */
+ {(ASN_TAG_CLASS_CONTEXT | (26 << 2)), 26, 0, 0}, /* ephemW at 748 */
+ {(ASN_TAG_CLASS_CONTEXT | (27 << 2)), 27, 0, 0}, /* ephemOmegaADot at 749 */
+ {(ASN_TAG_CLASS_CONTEXT | (28 << 2)), 28, 0, 0} /* ephemIDot at 750 */
};
static asn_SEQUENCE_specifics_t asn_SPC_UncompressedEphemeris_specs_1 = {
- sizeof(struct UncompressedEphemeris),
- offsetof(struct UncompressedEphemeris, _asn_ctx),
- asn_MAP_UncompressedEphemeris_tag2el_1,
- 29, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* Start extensions */
- -1 /* Stop extensions */
+ sizeof(struct UncompressedEphemeris),
+ offsetof(struct UncompressedEphemeris, _asn_ctx),
+ asn_MAP_UncompressedEphemeris_tag2el_1,
+ 29, /* Count of tags in the map */
+ 0,
+ 0,
+ 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_UncompressedEphemeris = {
- "UncompressedEphemeris",
- "UncompressedEphemeris",
- SEQUENCE_free,
- SEQUENCE_print,
- SEQUENCE_constraint,
- SEQUENCE_decode_ber,
- SEQUENCE_encode_der,
- SEQUENCE_decode_xer,
- SEQUENCE_encode_xer,
- SEQUENCE_decode_uper,
- SEQUENCE_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_UncompressedEphemeris_tags_1,
- sizeof(asn_DEF_UncompressedEphemeris_tags_1)
- /sizeof(asn_DEF_UncompressedEphemeris_tags_1[0]), /* 1 */
- asn_DEF_UncompressedEphemeris_tags_1, /* Same as above */
- sizeof(asn_DEF_UncompressedEphemeris_tags_1)
- /sizeof(asn_DEF_UncompressedEphemeris_tags_1[0]), /* 1 */
- 0, /* No PER visible constraints */
- asn_MBR_UncompressedEphemeris_1,
- 29, /* Elements count */
- &asn_SPC_UncompressedEphemeris_specs_1 /* Additional specs */
+ "UncompressedEphemeris",
+ "UncompressedEphemeris",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ SEQUENCE_decode_uper,
+ SEQUENCE_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_UncompressedEphemeris_tags_1,
+ sizeof(asn_DEF_UncompressedEphemeris_tags_1) /
+ sizeof(asn_DEF_UncompressedEphemeris_tags_1[0]), /* 1 */
+ asn_DEF_UncompressedEphemeris_tags_1, /* Same as above */
+ sizeof(asn_DEF_UncompressedEphemeris_tags_1) /
+ sizeof(asn_DEF_UncompressedEphemeris_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ asn_MBR_UncompressedEphemeris_1,
+ 29, /* Elements count */
+ &asn_SPC_UncompressedEphemeris_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.h b/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.h
index 9677f5a56..43e9bf74a 100644
--- a/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.h
+++ b/src/core/libs/supl/asn-rrlp/UncompressedEphemeris.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _UncompressedEphemeris_H_
#define _UncompressedEphemeris_H_
-
#include
/* Including external dependencies */
@@ -58,8 +57,10 @@ extern "C"
} UncompressedEphemeris_t;
/* Implementation */
- /* extern asn_TYPE_descriptor_t asn_DEF_ephemE_17; // (Use -fall-defs-global to expose) */
- /* extern asn_TYPE_descriptor_t asn_DEF_ephemAPowerHalf_19; // (Use -fall-defs-global to expose) */
+ /* extern asn_TYPE_descriptor_t asn_DEF_ephemE_17; // (Use
+ * -fall-defs-global to expose) */
+ /* extern asn_TYPE_descriptor_t asn_DEF_ephemAPowerHalf_19; // (Use
+ * -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_UncompressedEphemeris;
#ifdef __cplusplus
diff --git a/src/core/libs/supl/asn-rrlp/UseMultipleSets.c b/src/core/libs/supl/asn-rrlp/UseMultipleSets.c
index 35b9b1164..2ec5c7b96 100644
--- a/src/core/libs/supl/asn-rrlp/UseMultipleSets.c
+++ b/src/core/libs/supl/asn-rrlp/UseMultipleSets.c
@@ -1,145 +1,162 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#include "UseMultipleSets.h"
-int
-UseMultipleSets_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- /* Replace with underlying type checker */
- td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
- return td->check_constraints(td, sptr, ctfailcb, app_key);
+int UseMultipleSets_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb,
+ void *app_key)
+{
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
-static void
-UseMultipleSets_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
- td->free_struct = asn_DEF_ENUMERATED.free_struct;
- td->print_struct = asn_DEF_ENUMERATED.print_struct;
- td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
- td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
- td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
- td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
- td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
- td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
- if(!td->per_constraints)
- td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
- td->elements = asn_DEF_ENUMERATED.elements;
- td->elements_count = asn_DEF_ENUMERATED.elements_count;
- /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
+static void UseMultipleSets_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
+{
+ td->free_struct = asn_DEF_ENUMERATED.free_struct;
+ td->print_struct = asn_DEF_ENUMERATED.print_struct;
+ td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
+ td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
+ td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
+ td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
+ td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
+ td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
+ if (!td->per_constraints)
+ td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
+ td->elements = asn_DEF_ENUMERATED.elements;
+ td->elements_count = asn_DEF_ENUMERATED.elements_count;
+ /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined
+ * explicitly
+ */
}
-void
-UseMultipleSets_free(asn_TYPE_descriptor_t *td,
- void *struct_ptr, int contents_only) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- td->free_struct(td, struct_ptr, contents_only);
+void UseMultipleSets_free(asn_TYPE_descriptor_t *td, void *struct_ptr,
+ int contents_only)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
}
-int
-UseMultipleSets_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
- int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+int UseMultipleSets_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb,
+ void *app_key)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
-asn_dec_rval_t
-UseMultipleSets_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) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+asn_dec_rval_t UseMultipleSets_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)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size,
+ tag_mode);
}
-asn_enc_rval_t
-UseMultipleSets_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) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+asn_enc_rval_t UseMultipleSets_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)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
-asn_dec_rval_t
-UseMultipleSets_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) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+asn_dec_rval_t UseMultipleSets_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)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr,
+ size);
}
-asn_enc_rval_t
-UseMultipleSets_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) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+asn_enc_rval_t UseMultipleSets_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)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
-asn_dec_rval_t
-UseMultipleSets_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
+asn_dec_rval_t UseMultipleSets_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
+ asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void **structure,
+ asn_per_data_t *per_data)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->uper_decoder(opt_codec_ctx, td, constraints, structure,
+ per_data);
}
-asn_enc_rval_t
-UseMultipleSets_encode_uper(asn_TYPE_descriptor_t *td,
- asn_per_constraints_t *constraints,
- void *structure, asn_per_outp_t *per_out) {
- UseMultipleSets_1_inherit_TYPE_descriptor(td);
- return td->uper_encoder(td, constraints, structure, per_out);
+asn_enc_rval_t UseMultipleSets_encode_uper(asn_TYPE_descriptor_t *td,
+ asn_per_constraints_t *constraints,
+ void *structure,
+ asn_per_outp_t *per_out)
+{
+ UseMultipleSets_1_inherit_TYPE_descriptor(td);
+ return td->uper_encoder(td, constraints, structure, per_out);
}
static asn_per_constraints_t ASN_PER_TYPE_USE_MULTIPLE_SETS_CONSTR_1 = {
- { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
- { APC_UNCONSTRAINED, -1, -1, 0, 0 },
- 0, 0 /* No PER value map */
+ {APC_CONSTRAINED, 1, 1, 0, 1} /* (0..1) */,
+ {APC_UNCONSTRAINED, -1, -1, 0, 0},
+ 0,
+ 0 /* No PER value map */
};
static asn_INTEGER_enum_map_t asn_MAP_UseMultipleSets_value2enum_1[] = {
- { 0, 12, "multipleSets" },
- { 1, 6, "oneSet" }
-};
+ {0, 12, "multipleSets"}, {1, 6, "oneSet"}};
static unsigned int asn_MAP_UseMultipleSets_enum2value_1[] = {
- 0, /* multipleSets(0) */
- 1 /* oneSet(1) */
+ 0, /* multipleSets(0) */
+ 1 /* oneSet(1) */
};
static asn_INTEGER_specifics_t asn_SPC_UseMultipleSets_specs_1 = {
- asn_MAP_UseMultipleSets_value2enum_1, /* "tag" => N; sorted by tag */
- asn_MAP_UseMultipleSets_enum2value_1, /* N => "tag"; sorted by N */
- 2, /* Number of elements in the maps */
- 0, /* Enumeration is not extensible */
- 1, /* Strict enumeration */
- 0, /* Native long size */
- 0
-};
+ asn_MAP_UseMultipleSets_value2enum_1, /* "tag" => N; sorted by tag */
+ asn_MAP_UseMultipleSets_enum2value_1, /* N => "tag"; sorted by N */
+ 2, /* Number of elements in the maps */
+ 0, /* Enumeration is not extensible */
+ 1, /* Strict enumeration */
+ 0, /* Native long size */
+ 0};
static ber_tlv_tag_t asn_DEF_UseMultipleSets_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
-};
+ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))};
asn_TYPE_descriptor_t asn_DEF_UseMultipleSets = {
- "UseMultipleSets",
- "UseMultipleSets",
- UseMultipleSets_free,
- UseMultipleSets_print,
- UseMultipleSets_constraint,
- UseMultipleSets_decode_ber,
- UseMultipleSets_encode_der,
- UseMultipleSets_decode_xer,
- UseMultipleSets_encode_xer,
- UseMultipleSets_decode_uper,
- UseMultipleSets_encode_uper,
- 0, /* Use generic outmost tag fetcher */
- asn_DEF_UseMultipleSets_tags_1,
- sizeof(asn_DEF_UseMultipleSets_tags_1)
- /sizeof(asn_DEF_UseMultipleSets_tags_1[0]), /* 1 */
- asn_DEF_UseMultipleSets_tags_1, /* Same as above */
- sizeof(asn_DEF_UseMultipleSets_tags_1)
- /sizeof(asn_DEF_UseMultipleSets_tags_1[0]), /* 1 */
- &ASN_PER_TYPE_USE_MULTIPLE_SETS_CONSTR_1,
- 0, 0, /* Defined elsewhere */
- &asn_SPC_UseMultipleSets_specs_1 /* Additional specs */
+ "UseMultipleSets",
+ "UseMultipleSets",
+ UseMultipleSets_free,
+ UseMultipleSets_print,
+ UseMultipleSets_constraint,
+ UseMultipleSets_decode_ber,
+ UseMultipleSets_encode_der,
+ UseMultipleSets_decode_xer,
+ UseMultipleSets_encode_xer,
+ UseMultipleSets_decode_uper,
+ UseMultipleSets_encode_uper,
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_UseMultipleSets_tags_1,
+ sizeof(asn_DEF_UseMultipleSets_tags_1) /
+ sizeof(asn_DEF_UseMultipleSets_tags_1[0]), /* 1 */
+ asn_DEF_UseMultipleSets_tags_1, /* Same as above */
+ sizeof(asn_DEF_UseMultipleSets_tags_1) /
+ sizeof(asn_DEF_UseMultipleSets_tags_1[0]), /* 1 */
+ &ASN_PER_TYPE_USE_MULTIPLE_SETS_CONSTR_1,
+ 0,
+ 0, /* Defined elsewhere */
+ &asn_SPC_UseMultipleSets_specs_1 /* Additional specs */
};
-
diff --git a/src/core/libs/supl/asn-rrlp/UseMultipleSets.h b/src/core/libs/supl/asn-rrlp/UseMultipleSets.h
index 45136278c..34c003394 100644
--- a/src/core/libs/supl/asn-rrlp/UseMultipleSets.h
+++ b/src/core/libs/supl/asn-rrlp/UseMultipleSets.h
@@ -1,13 +1,12 @@
/*
* Generated by asn1c-0.9.22 (http://lionet.info/asn1c)
* From ASN.1 module "RRLP-Components"
- * found in "../rrlp-components.asn"
+ * found in "../rrlp-components.asn"
*/
#ifndef _UseMultipleSets_H_
#define _UseMultipleSets_H_
-
#include