blob: 51582e91e53b8abd48726406d8985bb0be8023dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef UCONFIG_H
#define UCONFIG_H
/* Uconfig - Read a Unix config file.
Each line of the config file has the form:
KEY = VALUE
*/
/* A Uconfig handle */
struct uconfig_s;
/* Intialize a handle using a configuration file. */
struct uconfig_s *uconfig_new(const char *file);
/* Get the value associated to KEY, or NULL if none is found. */
char *uconfig_get(const struct uconfig_s *uconfig, const char *key);
/* Destroy the given Uconfig handle. */
void uconfig_destroy(struct uconfig_s *uconfig);
#endif
|