aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/settings.h
blob: b5aad98b49ecf2e3df828c3c5ffe335df7801718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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_numeric(const char *);
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