blob: 4b1f15e36f690caf2fd28b7ca5f95cfe582ef2b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef SETTINGS_H
#define SETTINGS_H
#include "common.h"
#include <stdbool.h>
typedef struct {
char data[400];
} err_reason_t;
__FICS_BEGIN_DECLS
void settings_init(void);
void settings_deinit(void);
void check_some_settings_strictly(void);
bool is_valid_hostname(const char *, err_reason_t *);
bool is_valid_username(const char *, err_reason_t *);
const char *settings_get(const char *set_name);
void settings_read_conf(const char *path);
__FICS_END_DECLS
#endif
|