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
17struct entry {
18 char *key;
19 char *value;
20};
21
22struct section {
23 char *name;
24 int entry_count;
25 struct entry *entries;
26};
27
28struct ini {
29 int section_count;
30 struct section *sections;
31};
32
38const char *next_section(const struct ini *ini, const char *section);
39const char *section_get_value(struct ini *ini, const struct section *s, const char *key);
40const char *get_value(struct ini *ini, const char *section, const char *key);
41struct ini *load_ini_file(FILE *fp);
42void finish_ini(struct ini *ini);
43
44#endif
const char * next_section(const struct ini *ini, const char *section)
Definition ini.c:73
Definition ini.h:17
Definition ini.h:28
Definition ini.h:22