blob: bfc8cf3106981ee2d39b7241377ac6e84e5bad5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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);
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
|