Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
ini.h File Reference

Parser for INI config files. More...

#include <stdbool.h>
#include <stdio.h>
+ Include dependency graph for ini.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  entry
 
struct  section
 
struct  ini
 

Functions

const char * next_section (const struct ini *ini, const char *section)
 
const char * section_get_value (struct ini *ini, const struct section *s, const char *key)
 
const char * get_value (struct ini *ini, const char *section, const char *key)
 
struct iniload_ini_file (FILE *fp)
 
void finish_ini (struct ini *ini)
 

Detailed Description

Parser for INI config files.

License
BSD-3-Clause

Definition in file ini.h.

Function Documentation

◆ finish_ini()

void finish_ini ( struct ini * ini)

Definition at line 163 of file ini.c.

◆ get_value()

const char * get_value ( struct ini * ini,
const char * section,
const char * key )

Definition at line 62 of file ini.c.

◆ load_ini_file()

struct ini * load_ini_file ( FILE * fp)

Definition at line 89 of file ini.c.

◆ next_section()

const char * next_section ( const struct ini * ini,
const char * section )
Returns
the next known section
Return values
ifsection == NULL returns first section
NULLif no more sections are available

Definition at line 73 of file ini.c.

◆ section_get_value()

const char * section_get_value ( struct ini * ini,
const struct section * s,
const char * key )

Definition at line 50 of file ini.c.