aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: 61e43c13368c75d4b7c00d3016cf72c879d3c396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Core configuration storage */
typedef struct /*_websocksy_config*/ {
	char* host;
	char* port;
	unsigned verbosity;
	time_t ping_interval;
	ws_backend backend;
} ws_config;

/* Configuration parsing functions */
int config_parse_file(ws_config* config, char* filename);
int config_parse_arguments(ws_config* config, int argc, char** argv);