aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-06-07 19:20:42 +0200
committercbdev <cb@cbcdn.com>2019-06-07 19:20:42 +0200
commitc9062e7d1a1d917f618b71ac3810b4f3e396ab0d (patch)
treec5cccc090f4f46b4253a3ba1a6cbc35a167d109b /config.h
parentedcec9fa9086599d56bffe7fdb2c1f05ae7a3ad8 (diff)
downloadwebsocksy-c9062e7d1a1d917f618b71ac3810b4f3e396ab0d.tar.gz
websocksy-c9062e7d1a1d917f618b71ac3810b4f3e396ab0d.tar.bz2
websocksy-c9062e7d1a1d917f618b71ac3810b4f3e396ab0d.zip
Main readme and config module
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..87502fb
--- /dev/null
+++ b/config.h
@@ -0,0 +1,8 @@
+typedef struct /*_websocksy_config*/ {
+ char* host;
+ char* port;
+ ws_backend backend;
+} ws_config;
+
+int config_parse_file(ws_config* config, char* filename);
+int config_parse_arguments(ws_config* config, int argc, char** argv);