aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: b15148601680433e8ba7099e15e0fbdfea955029 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Core configuration storage */
typedef struct /*_websocksy_config*/ {
	char* host;
	char* port;
	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);