1.7 KiB
1.7 KiB
The configuration module objectives are
- Allow easy parameters management in oai, helping the development of a flexible, modularized and fully configurable softmodem.
- Use a common configuration API in all oai modules
- Allow development of alternative configuration sources without modifying the oai code. Today the only delivered configuration source is the libconfig format configuration file.
As a developer you may need to look at these sections:
- add parameters in an existing section
- add a parameter set, in a new section
- configuration module API
- configuration module public structures
Whatever your need is, configuration module usage examples can be found in oai sources:
- complex example, using all the configuration module functionalities, including parameter checking: NB-IoT configuration code and NB-IoT configuration include file
- very simple example, just reading a parameter set corresponding to a dedicated section: the telnetsrv_autoinit function in common/utils/telnetsrv/telnetsrv.c, around line 726
- an example with run-time definition of parameters, in the logging sub-system: the log_getconfig function at the top of openair2/UTIL/LOG/log.c