Debian Codegraph @

src/common/cockpitconf.h

raw
1 /*
2 * Copyright (C) 2015 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef COCKPIT_CONF_H__
7 #define COCKPIT_CONF_H__
8
9 #define COCKPIT_CONF_SSH_SECTION "Ssh-Login"
10
11 #include <stdbool.h>
12 #include <stdint.h>
13
14 const char * cockpit_conf_string (const char *section,
15 const char *field);
16
17
18 const char * const *
19 cockpit_conf_strv (const char *section,
20 const char *field,
21 char delimiter);
22
23 bool cockpit_conf_bool (const char *section,
24 const char *field,
25 bool defawlt);
26
27 unsigned cockpit_conf_uint (const char *section,
28 const char *field,
29 unsigned default_value,
30 unsigned max,
31 unsigned min);
32
33 const char * const * cockpit_conf_get_dirs (void);
34
35 void cockpit_conf_cleanup (void);
36
37 void cockpit_conf_init (void);
38
39 #endif /* COCKPIT_CONF_H__ */