[systemd-devel] Configuration file parser library

Tom Gundersen teg at jklm.no
Sat Nov 9 06:19:49 PST 2013


On Sat, Nov 9, 2013 at 3:02 PM, Chris Morgan <chmorgan at gmail.com> wrote:
> Hello.
>
> I wanted to implement a configuration file format for an application of mine
> that uses a similar format to what systemd uses. I was wondering if the
> parser used today was from an external library. I googled a bit but wasn't
> able to dig anything up. I haven't looked at the code in detail yet.

We are not using an external library for parsing (see
src/share/conf-parser.h). However, systemd's config file format is
itself similar (but not identical) to the .desktop (and Window's .ini)
format, so you may be able to use existing parsers for those formats.

Cheers,

Tom


More information about the systemd-devel mailing list