libini_config  0.5.0
 All Data Structures Functions Variables Enumerations Enumerator Modules Pages
The INI configuration interface

The goal of the this interface is to allow applications to read configuration from an INI file.

So why yet another library to read data from an INI file? As we started the SSSD project we looked around for a open source library that would meet the following requirements:

We have seen several solutions but none was able to fully address our requirements. As a result we started developing our own INI parsing library.

Currently INI parser allows reading and merging INI files and getting a resulting configuration in one object.

One of the main advantages of this interface is that the library is created with the idea of reading the configuration data, not managing it. Thus currently you will not find any function that alters the configuration data read from the files. There is a set of proposed enhancements to be able to manipulate the configuration data and save it back but there has been no real driver for it. This API is focused on letting applications read data from a file (or files) and interpret it, not to generate configuration files. There are all sorts of different tools that already do that.

The INI configuration interface uses COLLECTION (see libcollection interface) to store data internally.

Concepts: