Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
ini.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause */
10
11
#ifndef DUNST_INI_H
12
#define DUNST_INI_H
13
14
#include <stdbool.h>
15
#include <stdio.h>
16
17
struct
entry
{
18
char
*key;
19
char
*value;
20
};
21
22
struct
section
{
23
char
*name;
24
int
entry_count;
25
struct
entry
*entries;
26
};
27
28
struct
ini
{
29
int
section_count;
30
struct
section
*sections;
31
};
32
38
const
char
*
next_section
(
const
struct
ini
*
ini
,
const
char
*
section
);
39
const
char
*section_get_value(
struct
ini
*
ini
,
const
struct
section
*s,
const
char
*key);
40
const
char
*get_value(
struct
ini
*
ini
,
const
char
*
section
,
const
char
*key);
41
struct
ini
*load_ini_file(FILE *fp);
42
void
finish_ini(
struct
ini
*
ini
);
43
44
#endif
next_section
const char * next_section(const struct ini *ini, const char *section)
Definition
ini.c:73
entry
Definition
ini.h:17
ini
Definition
ini.h:28
section
Definition
ini.h:22
src
ini.h
Generated on Wed Jan 28 2026 22:21:34 for Dunst by
1.13.2